From 30842cc79c0a3e3566e9da61f2499fa1342c6d52 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 10 Jan 2015 00:14:19 +0100 Subject: added "Defend" action physical and magical damages are divided by 2 when a character is on defensive state. Signed-off-by: Olivier Gayot --- priv_entries.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'priv_entries.h') 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, + }, }, }; -- cgit v1.2.3