summaryrefslogtreecommitdiff
path: root/actions.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-10 00:52:31 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-10 00:52:31 +0100
commita1f75a644e0119fa6e31b0a0c852b71f6fc28410 (patch)
treedd7d67f3e527f9a25168f53c7c1be4975a8844e3 /actions.c
parent30842cc79c0a3e3566e9da61f2499fa1342c6d52 (diff)
added "cyanmure" magic
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'actions.c')
-rw-r--r--actions.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/actions.c b/actions.c
index ac5cc03..9f02ef2 100644
--- a/actions.c
+++ b/actions.c
@@ -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;
+}