Commit Graph

16 Commits

Author SHA1 Message Date
Wuzzy
87699ab3b2 New effect type: repeating effects 2014-07-19 00:59:19 +02:00
Wuzzy
7bfd30ce39 Use random time for stress test effects 2014-07-17 18:12:27 +02:00
Wuzzy
5bc2ba600c Slight performance improvements 2014-07-17 18:06:49 +02:00
Wuzzy
a942264256 Further performance optimizations 2014-07-17 17:42:31 +02:00
Wuzzy
6d27ae23a7 Remove arbitrary limit for stresstest 2014-07-17 17:06:47 +02:00
Wuzzy
54b18385c8 Add “player” argument to the cancel callback 2014-07-17 16:07:44 +02:00
Wuzzy
c400ac1ed9 Add cancel_on_death parameter for effect types.
This optional parameter controls wheather the effect shall be cancelled
when the player dies. By default, this is true.
2014-07-15 00:38:01 +02:00
Wuzzy
c01b53e349 Show effect ID for the examples, on success 2014-07-14 19:06:37 +02:00
Wuzzy
0ea070a3bd Add “cancelall” example (cancels user’s effects) 2014-07-14 18:29:22 +02:00
Wuzzy
15daa210c4 Add effect failure
The apply function of effects can return false, in that case, the effect
is not applied
2014-07-14 17:55:48 +02:00
Wuzzy
21f053270f Add effect metadata
Effect metadata is a means to store additional user-defined data for the effect,
which can be reused when the cancel function of the effect is called.
This commit also adds a new example (blind) to demonstrate usage of that.
2014-07-14 17:28:51 +02:00
Wuzzy
85fbd146b1 Add support for hidden effects
Hidden effects are effects which are not exposed to the player’s HUD.
2014-07-13 22:07:04 +02:00
Wuzzy
3385987106 Add comments to examples.lua 2014-07-13 21:19:02 +02:00
Wuzzy
050be27a3b Add stresstest example use globalstep less often 2014-07-07 10:39:21 +02:00
Wuzzy
bbc90ad630 Add support for HUD icons; improve HUD alignment 2014-07-07 09:38:55 +02:00
Wuzzy
c796ef7876 Move examples to its own file; it is not loaded 2014-07-06 18:37:32 +02:00