Bug fix
Sending wired message when start fixed
This commit is contained in:
parent
f70d90ba77
commit
90e8610f43
@ -9,7 +9,7 @@ abstract class Character {
|
|||||||
abstract val id: Int
|
abstract val id: Int
|
||||||
abstract val deck: Deck
|
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)
|
val diff = abs(old-new)
|
||||||
if (new < old) {
|
if (new < old) {
|
||||||
println("${this.name} 受到 $diff 點傷害")
|
println("${this.name} 受到 $diff 點傷害")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user