diff --git a/Interfaces.kt b/Interfaces.kt index 8b006ee..fdd268e 100644 --- a/Interfaces.kt +++ b/Interfaces.kt @@ -9,7 +9,7 @@ abstract class Character { abstract val id: Int abstract val deck: Deck - var life: Int by Delegates.observable(20) {_, old, new -> + var life: Int by Delegates.observable(0) {_, old, new -> val diff = abs(old-new) if (new < old) { println("${this.name} 受到 $diff 點傷害")