[ScryMUD] SVN Commit Info r766 - branches/version-2-1/mud/grrmud/server

scrymud at wanfear.com scrymud at wanfear.com
Thu Dec 16 18:37:04 PST 2004


Author: justin
Date: 2004-12-16 18:37:04 -0800 (Thu, 16 Dec 2004)
New Revision: 766

Modified:
   branches/version-2-1/mud/grrmud/server/script.cc
Log:
Reverted from 720 to 719
exact_damage now updates the prompt when used
exact_damage may be used without an emote as indicated by the docs



Modified: branches/version-2-1/mud/grrmud/server/script.cc
===================================================================
--- branches/version-2-1/mud/grrmud/server/script.cc	2004-12-16 09:27:56 UTC (rev 765)
+++ branches/version-2-1/mud/grrmud/server/script.cc	2004-12-17 02:37:04 UTC (rev 766)
@@ -194,12 +194,18 @@
    dice_cnt = bound(0, 20, dice_cnt);
    dice_sides = bound(0, 100, dice_sides);
 
-   pc.emote(msg);
+   if (pc.pc) {
+      pc.setDoPrompt(TRUE);
+   }
 
+   if (msg.Strlen() > 0) {
+      pc.emote(msg);
+   }
+
    exact_raw_damage(d(dice_cnt, dice_sides), NORMAL, pc);
 
    if (pc.HP < 0) { //was a fatality
-      agg_kills_vict(&pc, pc);
+      agg_kills_vict(NULL, pc);
    }
 
    return 0;
@@ -1169,7 +1175,6 @@
 
 int MobScript::_cnt = 0;
 int MobScript::parseScriptCommand(ScriptCmd& cmd, critter& owner, int& obj_was_deleted) {
-   int result;
    // Look at first command and see if it has non-standard actors.
    obj_was_deleted = FALSE;
    critter* script_actor = NULL;
@@ -1216,11 +1221,7 @@
    }//if
 
    targ = cmd.getCommand(); //reuse targ, it should contain the command now.
-   result = script_actor->processInput(targ, FALSE, TRUE, &owner, NULL);
-   if (script_actor->pc && script_actor != &owner) {
-      script_actor->setDoPrompt(TRUE);
-   }
-   return result;
+   return script_actor->processInput(targ, FALSE, TRUE, &owner, NULL);
 }//parseScriptCommand
 
 




More information about the ScryMUD mailing list