summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-06-28 01:13:16 +0200
committerGitHub <noreply@github.com>2020-06-28 01:13:16 +0200
commit8033b88f861208895c68c1bebc5941211e58fc06 (patch)
tree70d4610447eac729c1df727beafb09d7fe9bf40a /src/map/script.c
parentf6f8ec5e247d3cd52598f2d026524d1bbc791120 (diff)
parent520863eaeda83da14b88d09f6378cd8abd5a5174 (diff)
downloadhercules-8033b88f861208895c68c1bebc5941211e58fc06.tar.gz
hercules-8033b88f861208895c68c1bebc5941211e58fc06.tar.bz2
hercules-8033b88f861208895c68c1bebc5941211e58fc06.tar.xz
hercules-8033b88f861208895c68c1bebc5941211e58fc06.zip
Merge pull request #2755 from Jedzkie/jedzkie-pr03
Added configuration on allowing actions on player when dead.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 743a1779a..4c196418b 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -28358,6 +28358,11 @@ static void script_hardcoded_constants(void)
script->set_constant("P_AIRSHIP_INVALID_END_MAP", P_AIRSHIP_INVALID_END_MAP, false, false);
script->set_constant("P_AIRSHIP_ITEM_NOT_ENOUGH", P_AIRSHIP_ITEM_NOT_ENOUGH, false, false);
script->set_constant("P_AIRSHIP_ITEM_INVALID", P_AIRSHIP_ITEM_INVALID, false, false);
+
+ script->constdb_comment("player allowed actions when dead");
+ script->set_constant("PCALLOWACTION_NONE", PCALLOWACTION_NONE, false, false);
+ script->set_constant("PCALLOWACTION_TRADE", PCALLOWACTION_TRADE, false, false);
+ script->set_constant("PCALLOWACTION_CHAT", PCALLOWACTION_CHAT, false, false);
script->constdb_comment("questinfo types");
script->set_constant("QINFO_JOB", QINFO_JOB, false, false);