Added some coding comments, typo fix, and do_cheat update. --Rumble

This commit is contained in:
Rumble 2009-03-13 23:56:40 +00:00
parent 40d89ca26b
commit 7bce58cc13
3 changed files with 18 additions and 3 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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)