[ScryMUD] SVN Commit Info r967 - trunk/mud/grrmud/server
svn-log at scrymud.net
svn-log at scrymud.net
Tue Feb 26 12:27:27 PST 2008
Author: kaj
Date: 2008-02-26 12:27:27 -0800 (Tue, 26 Feb 2008)
New Revision: 967
Modified:
trunk/mud/grrmud/server/commands.cc
Log:
Adding race to look <critter> command, right below condition.
Modified: trunk/mud/grrmud/server/commands.cc
===================================================================
--- trunk/mud/grrmud/server/commands.cc 2008-02-25 21:25:39 UTC (rev 966)
+++ trunk/mud/grrmud/server/commands.cc 2008-02-26 20:27:27 UTC (rev 967)
@@ -773,6 +773,20 @@
show(buf, pc);
}//else
+ //show the critter's race
+ const char* race_name = get_race_name(crit_ptr->getRace());
+ //check for initial vowel
+ switch (*race_name) {
+ case 'a': case 'e': case 'i': case 'o': case 'u':
+ Sprintf(buf, "%s is an %s.\n", get_he_she(*crit_ptr), race_name);
+ break;
+ default:
+ Sprintf(buf, "%s is a %s.\n", get_he_she(*crit_ptr), race_name);
+ break;
+ }
+ buf.Cap();
+ pc.show(buf);
+
int sanct_num = SANCTUARY_SKILL_NUM;
Cell<stat_spell_cell*> cll(crit_ptr->affected_by);
More information about the ScryMUD
mailing list