Skip to content

v0.5.0

Compare
Choose a tag to compare
@Trisfald Trisfald released this 26 Feb 19:50
· 103 commits to master since this release

Features

Improvements to ActorRules.

The method activable now take BattleState as argument. This allows to decide whether an ability is activable depending on the entire state of the battle, not only the state of the actor.

The methods on_round_start and on_round_end now take BattleState as argument as well. This let the user implement passive skills such as gain x health for each adjacent enemy at the end of every round.

Improvements to verify methods.

Some trait methods are used to verify if an operation is allowed.

allow_new_entity, activable, check_move now return a WeaselResult instead of a bool. In this way the user can specify the reason for which the operation has been rejected.

Added WeaselError::GenericError.

Added a new variant of WeaselError to represent generic errors that don't have additional information.

New examples.

New example, undo, to demonstrate how to undo/redo events.

The example passive shows instead how to define simple passive abilities.