create

fun create(hp: Long, atk: Long, def: Long, crit: Int = 0, critDamage: Int = 100): BaseProperty

创建一个基础属性对象

Return

返回一个实现了BaseProperty接口的匿名对象,包含指定的属性值

Parameters

hp

生命值属性值

atk

攻击力属性值

def

防御力属性值

crit

暴击率属性值,默认为0

critDamage

暴击伤害属性值,默认为100