summaryrefslogtreecommitdiff
path: root/priv_entries.h
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-10 00:14:19 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-10 00:14:19 +0100
commit30842cc79c0a3e3566e9da61f2499fa1342c6d52 (patch)
treedfe75cbb35d217389ae2c8ec8dfea52f7c50c20d /priv_entries.h
parentc870c8f03ffc7b78bca72dc9d7de7fd5305cf4f2 (diff)
added "Defend" action
physical and magical damages are divided by 2 when a character is on defensive state. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'priv_entries.h')
-rw-r--r--priv_entries.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/priv_entries.h b/priv_entries.h
index f553a2b..f7697a6 100644
--- a/priv_entries.h
+++ b/priv_entries.h
@@ -199,6 +199,14 @@ struct entry_t action_entries_g[] = {
.name = "Use",
.children = object_entries,
.children_cnt = countof(object_entries),
+ }, {
+ .name = "Defend",
+ .children_cnt = 0,
+ .action = {
+ .f = defend,
+ .data = NULL,
+ .target = TARGET_SELF,
+ },
},
};