diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-07-27 09:53:48 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-07-27 09:53:48 -0300 |
commit | 32ed04e8b183702a69ae61c88213652b0cc42070 (patch) | |
tree | bd4b77f2851e7e0bf53435f4ff3d0a2c0e68cdc7 /npc/commands/debug.txt | |
parent | 473515b941064921fc14946946894bb169818a3f (diff) | |
download | serverdata-32ed04e8b183702a69ae61c88213652b0cc42070.tar.gz serverdata-32ed04e8b183702a69ae61c88213652b0cc42070.tar.bz2 serverdata-32ed04e8b183702a69ae61c88213652b0cc42070.tar.xz serverdata-32ed04e8b183702a69ae61c88213652b0cc42070.zip |
Improve debug logging and optimize a tiny bit Cindy Cave
Diffstat (limited to 'npc/commands/debug.txt')
-rw-r--r-- | npc/commands/debug.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/npc/commands/debug.txt b/npc/commands/debug.txt index 419b5742..b86dab04 100644 --- a/npc/commands/debug.txt +++ b/npc/commands/debug.txt @@ -35,6 +35,7 @@ L_Level: goto L_LevelTooHigh; if (BaseLevel == @lvl) goto L_SameLevel; + gmlog sprintf("Level set from %d to %d", BaseLevel, @lvl); BaseLevel = @lvl; resetstatus; mes "You are now level " + BaseLevel + "."; @@ -114,9 +115,9 @@ L_FocusSkills: switch (@menuret) { case -3: goto L_Begin; case -2: - skill SKILL_POOL, @pool+1, 0; break; + skill SKILL_POOL, @pool+1, 0; gmlog("Focus+"); break; case -1: - skill SKILL_POOL, max(0, @pool-1), 0; break; + skill SKILL_POOL, max(0, @pool-1), 0; gmlog("Focus-"); break; case 0: updateskill SKILL_MALLARDS_EYE, 9; updateskill SKILL_BRAWLING, 9; @@ -124,15 +125,17 @@ L_FocusSkills: updateskill SKILL_RESIST_POISON, 9; updateskill SKILL_ASTRAL_SOUL, 9; updateskill SKILL_RAGING, 9; + gmlog("All focus to max"); break; case -4: - skill SKILL_POOL, 0, 0; break; + skill SKILL_POOL, 0, 0; updateskill SKILL_MALLARDS_EYE, 0; updateskill SKILL_BRAWLING, 0; updateskill SKILL_SPEED, 0; updateskill SKILL_RESIST_POISON, 0; updateskill SKILL_ASTRAL_SOUL, 0; updateskill SKILL_RAGING, 0; + gmlog("All focus reset"); break; default: if (FOCUSING & getpoolskillFID(@menuret)) { @@ -493,6 +496,7 @@ L_AddAll: mes "All skills added to their maximum level."; mes "Maximum number of Legacy Magic Experience points."; mes "You are now level " + BaseLevel + "."; + gmlog("Build set to max level and all skills"); next; goto L_Begin; @@ -551,6 +555,7 @@ L_ResetAll: mes "All skills removed."; mes "Magic experience reset."; mes "You are now level " + BaseLevel + "."; + gmlog("Character reset"); next; goto L_Begin; |