mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Added some coding comments, typo fix, and do_cheat update. --Rumble
This commit is contained in:
parent
40d89ca26b
commit
7bce58cc13
3 changed files with 18 additions and 3 deletions
|
@ -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.
|
/* Post Move Trigger Checks: Check the new room for triggers.
|
||||||
* Assumptions: The character has already truly left the was_in room. If
|
* 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. */
|
* job to provide a message to the original was_in room. */
|
||||||
if (!entry_mtrigger(ch) || !enter_wtrigger(&world[going_to], ch, dir)) {
|
if (!entry_mtrigger(ch) || !enter_wtrigger(&world[going_to], ch, dir)) {
|
||||||
char_from_room(ch);
|
char_from_room(ch);
|
||||||
|
|
|
@ -1213,12 +1213,13 @@ void do_cheat(struct char_data *ch)
|
||||||
break;
|
break;
|
||||||
case 2: // Shamra
|
case 2: // Shamra
|
||||||
case 295: // Detta
|
case 295: // Detta
|
||||||
case 390: // Random
|
case 156: // Fizban
|
||||||
|
case 390: // Jamdog
|
||||||
GET_LEVEL(ch) = LVL_GRGOD;
|
GET_LEVEL(ch) = LVL_GRGOD;
|
||||||
break;
|
break;
|
||||||
|
case 390: // Random
|
||||||
case 7: // Rhade
|
case 7: // Rhade
|
||||||
case 19: // Amber
|
case 19: // Amber
|
||||||
case 156: // Fizban
|
|
||||||
case 253: // Mordecai
|
case 253: // Mordecai
|
||||||
GET_LEVEL(ch) = LVL_GOD;
|
GET_LEVEL(ch) = LVL_GOD;
|
||||||
break;
|
break;
|
||||||
|
|
14
src/spells.h
14
src/spells.h
|
@ -150,6 +150,20 @@
|
||||||
#define SAVING_BREATH 3
|
#define SAVING_BREATH 3
|
||||||
#define SAVING_SPELL 4
|
#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_IGNORE (1 << 0)
|
||||||
#define TAR_CHAR_ROOM (1 << 1)
|
#define TAR_CHAR_ROOM (1 << 1)
|
||||||
#define TAR_CHAR_WORLD (1 << 2)
|
#define TAR_CHAR_WORLD (1 << 2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue