2609d67e38
If a battle is over or not can now be tested using this->isOver(). If the battle is over, battle->getWinner() can be used to get the winner of this fight, battle->getLooser() for the looser.
35 lines
653 B
YAML
35 lines
653 B
YAML
characters:
|
|
-
|
|
id: 1
|
|
name: "Player"
|
|
displayName: "The Player"
|
|
health: 100
|
|
maxhealth: 100
|
|
level: 10
|
|
-
|
|
id: 2
|
|
name: "High Level Char"
|
|
displayName: "High Level Char"
|
|
health: 1000
|
|
maxhealth: 1000
|
|
level: 100
|
|
-
|
|
id: 3
|
|
name: "Low Level Char"
|
|
displayName: "Low Level Char"
|
|
health: 10
|
|
maxhealth: 10
|
|
level: 1
|
|
monsters:
|
|
-
|
|
id: 1
|
|
name: "Evil Monster"
|
|
level: 5
|
|
-
|
|
id: 2
|
|
name: "High Dragon"
|
|
level: 100
|
|
-
|
|
id: 3
|
|
name: "Stone"
|
|
level: 1 |