-
Notifications
You must be signed in to change notification settings - Fork 20
Attribute
Noonmaru edited this page Oct 5, 2020
·
2 revisions
능력 사용자의 능력치를 활용할 수 있습니다.
참조: 능력치와 스탯계수
class MyAbility : Ability<AbilityConcept>() {
fun foo() {
val attackDamage = esper.getAttribute(EsperAttribute.ATTACK_DAMAGE)
esper.player.sendMessage("당신의 공격력은 $attackDamage 입니다.")
}
}
class MyAbility : Ability<AbilityConcept>() {
fun foo() {
val doubleDefense = esper.getStatistic(EsperStatistic.of(
EsperAttribute.DEFENSE to 2.0
))
esper.player.sendMessage("당신의 방어력 * 2는 $doubleDefense 입니다.")
}
}
이 클래스들은 Psychic을 구성할때 psychic.yml 파일에서 관리가 가능합니다.
또한 Custom template를 지원하여 보기좋은 Tooltip을 만들 수 있습니다.