diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-10 00:52:31 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-10 00:52:31 +0100 |
commit | a1f75a644e0119fa6e31b0a0c852b71f6fc28410 (patch) | |
tree | dd7d67f3e527f9a25168f53c7c1be4975a8844e3 /actions.c | |
parent | 30842cc79c0a3e3566e9da61f2499fa1342c6d52 (diff) |
added "cyanmure" magic
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'actions.c')
-rw-r--r-- | actions.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -192,3 +192,14 @@ void use_ether(SURFACES *surfaces, POSITIONS *positions, struct character_t *src { __use_ether(surfaces, positions, src, dest->chr, *((int *)data)); } + +void cyanure(SURFACES *surfaces, POSITIONS *positions, struct character_t *src, struct target_t *dest, void *data) +{ + struct character_t *target = dest->chr; + + (void) data; + (void) src; + + damage_target_hp(surfaces, positions, target, target->max_hp / 4); + target->poisoned = true; +} |