Skip to content

v0.4.0

Compare
Choose a tag to compare
@Trisfald Trisfald released this 21 Feb 14:42
· 131 commits to master since this release

Features

Inanimate objects.

Introduced a new struct to represent inanimate entities: Object.
The new associated type ObjectId in CharacterRules let you customize the objects' id type.
Objects can be placed on the battlefield and possess statistics. However, they don't know any ability and they can't take any action.
Two new events, CreateObject and RemoveObject, can be used to add and remove objects from the battle.

Improvements to Battle API.

Added more methods to modify the state of Battle and of its submodules (Rounds, Entropy, Space, Entities). This's done to increase the power of user defined events.

Event's origin.

It's now possible to manually set the origin of an event. The Originated decorator let you do this on an EventTrigger.

Doc tests

Added doc tests with a simple example for all events in weasel.