diff --git a/core/src/me/msoucy/ptures/model/Skills.kt b/core/src/me/msoucy/ptures/model/Skills.kt index b849f8f..9ef6c13 100644 --- a/core/src/me/msoucy/ptures/model/Skills.kt +++ b/core/src/me/msoucy/ptures/model/Skills.kt @@ -40,7 +40,7 @@ class Damage(val power : Int, val attribute : Attribute = Attribute.Neutral) { class StatusApplier(val target : Target, val apply : (Creature) -> Unit) @SkillMarker -class Skill(val name : String, val attribute : Attribute) { +sealed class Skill(open val name : String, val attribute : Attribute) { val damageSteps = mutableListOf() val postSteps = mutableListOf() @@ -59,6 +59,11 @@ class Skill(val name : String, val attribute : Attribute) { } } +class AdvancedSkill(name : String, attribute : Attribute) : Skill(name, attribute) { + override val name : String get() = super.name + "+" + val baseName : String get() = super.name +} + fun skill(name : String, attribute : Attribute = Attribute.Neutral, block : Skill.() -> Unit) : Skill { val ret = Skill(name, attribute) ret.block()