weasel 0.11.0

A customizable battle system for turn-based games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Passive

In this example we implement a simple passive ability. This skill increases the power of another ability at every turn.

At the start we'll spawn two soldiers. Both of them known the ability *punch*, but only one has the passive ability *power up*.

Every time the soldier ends his turn, *power up* increases the power of *punch* by one times the number of creatures on the battlefield.

Run the example with:
```
cargo run --example passive
```

The program is implemented in two source code files:
- [rules.rs]rules.rs: actor rules definition.
- [main.rs]main.rs: manages the battle and creates a few events.