Properties template - noonmaru/psychics GitHub Wiki
descriptionμ λ¬Έμμ΄ ν νλ¦Ώμ ν΅ν΄ λ λνλ λ°©λ²μ μ€λͺ ν©λλ€.
μμ± κ°μ΄ λ³νν λλ§λ€ μ€λͺ μ λ³κ²½νλ μΌμ λ²κ±°λ‘κΈ°μ ν νλ¦Ώμ μ¬μ©νλκ±Έ μΆμ²λ립λλ€.
Kotlinμ templateκ³Ό μ¬μ©λ°©λ²μ΄ λΉμ·νλ©° Evalμ ν΅ν΄ κ°λ¨ν μμ κ³μ°ν μλ μμ΅λλ€.
@Name("myability")
class MyAbilityConcept : AbilityConcept() {
@Config
var a: Int = 10
@Config
var b: Double = 20.0
init {
cooldownTicks = 100
description = listOf(
"aμ κ°μ \${myability.a}",
"bμ κ°μ \${myability.b}",
"λμ λνκ°μ \${myability.a + myability.b}",
"",
"μ¬μ¬μ© λκΈ°μκ°μ \${common.cooldown-ticks / 20.0}μ΄"
)
}
}
template λ΄μ μμ± μ΄λ¦μ psychicνμΌμ μμ± μ΄λ¦μΌλ‘ μ¬μ©ν΄μΌν©λλ€.