通过 maplebirch.tool.other.addTraits() 注册自定义特质。
maplebirch.tool.other.addTraits()
请使用 maplebirch.tool.other.addTraits()。
title
name
colour
has
text
const other = maplebirch.tool.other; other.addTraits({ title: "一般特质", name: "brave", colour: "green", has: () => V.brave >= 1, text: "角色展现出勇气", }); other.applyLocation();
框架对特质添加做了内部解析与去重,避免重复或错误覆盖。maplebirch.tool.other.addTraits 的用法保持不变。
maplebirch.tool.other.addTraits