summaryrefslogtreecommitdiff
path: root/actions.c
diff options
context:
space:
mode:
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;
+}