From 7bce58cc13e34c82ad64c23c84666173c72a306f Mon Sep 17 00:00:00 2001 From: Rumble Date: Fri, 13 Mar 2009 23:56:40 +0000 Subject: [PATCH] Added some coding comments, typo fix, and do_cheat update. --Rumble --- src/act.movement.c | 2 +- src/act.wizard.c | 5 +++-- src/spells.h | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/act.movement.c b/src/act.movement.c index 17a4434..3f4bf67 100644 --- a/src/act.movement.c +++ b/src/act.movement.c @@ -295,7 +295,7 @@ int do_simple_move(struct char_data *ch, int dir, int need_specials_check) /*---------------------------------------------------------------------*/ /* Post Move Trigger Checks: Check the new room for triggers. * Assumptions: The character has already truly left the was_in room. If - * the entry trigger "prevents" movement into the room, it is thr triggers + * the entry trigger "prevents" movement into the room, it is the triggers * job to provide a message to the original was_in room. */ if (!entry_mtrigger(ch) || !enter_wtrigger(&world[going_to], ch, dir)) { char_from_room(ch); diff --git a/src/act.wizard.c b/src/act.wizard.c index 0b5eae7..68f6a36 100644 --- a/src/act.wizard.c +++ b/src/act.wizard.c @@ -1213,12 +1213,13 @@ void do_cheat(struct char_data *ch) break; case 2: // Shamra case 295: // Detta - case 390: // Random + case 156: // Fizban + case 390: // Jamdog GET_LEVEL(ch) = LVL_GRGOD; break; + case 390: // Random case 7: // Rhade case 19: // Amber - case 156: // Fizban case 253: // Mordecai GET_LEVEL(ch) = LVL_GOD; break; diff --git a/src/spells.h b/src/spells.h index 7a9d99f..c7f992e 100644 --- a/src/spells.h +++ b/src/spells.h @@ -150,6 +150,20 @@ #define SAVING_BREATH 3 #define SAVING_SPELL 4 +/*** + **Possible Targets: + ** TAR_IGNORE : IGNORE TARGET. + ** TAR_CHAR_ROOM : PC/NPC in room. + ** TAR_CHAR_WORLD: PC/NPC in world. + ** TAR_FIGHT_SELF: If fighting, and no argument, select tar_char as self. + ** TAR_FIGHT_VICT: If fighting, and no argument, select tar_char as victim (fighting). + ** TAR_SELF_ONLY : If no argument, select self, if argument check that it IS self. + ** TAR_NOT_SELF : Target is anyone else besides self. + ** TAR_OBJ_INV : Object in inventory. + ** TAR_OBJ_ROOM : Object in room. + ** TAR_OBJ_WORLD : Object in world. + ** TAR_OBJ_EQUIP : Object held. + ***/ #define TAR_IGNORE (1 << 0) #define TAR_CHAR_ROOM (1 << 1) #define TAR_CHAR_WORLD (1 << 2)