[ScryMUD] SVN Commit Info r862 - trunk/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Wed Feb 7 23:05:00 PST 2007
Author: eroper
Date: 2007-02-07 23:05:00 -0800 (Wed, 07 Feb 2007)
New Revision: 862
Modified:
trunk/mud/grrmud/server/battle.cc
Log:
Combat damage messages are now based on the damage as a percentage of the
victims remaining hitpoints rather than on arbitrary static damage boundaries.
Modified: trunk/mud/grrmud/server/battle.cc
===================================================================
--- trunk/mud/grrmud/server/battle.cc 2007-02-08 06:22:30 UTC (rev 861)
+++ trunk/mud/grrmud/server/battle.cc 2007-02-08 07:05:00 UTC (rev 862)
@@ -581,7 +581,7 @@
sprintf(dam_str, " [%d]", (int)damage);
}
- if (damage < 3) {
+ if (damage < (xp_damage * 0.02) ) {
Sprintf(aggbuf, "You bruise%s %S ",
agg.isImmort()?dam_str:"", name_of_crit(vict, agg.SEE_BIT));
Sprintf(victbuf, "%S bruises%s you ", name_of_crit(agg, vict.SEE_BIT),
@@ -589,7 +589,7 @@
Sprintf(otherbuf, "%S bruises %S ", name_of_crit(agg, ~0),
name_of_crit(vict, ~0));
}//if
- else if (damage < 7) {
+ else if (damage < (xp_damage * 0.05) ) {
Sprintf(aggbuf, "You barely %S%s %S ", &wmsg, agg.isImmort()?dam_str:"",
name_of_crit(vict, agg.SEE_BIT));
Sprintf(victbuf, "%S barely %Ss%s you ",
@@ -597,7 +597,7 @@
Sprintf(otherbuf, "%S barely %Ss %S ", name_of_crit(agg, ~0),
&wmsg, name_of_crit(vict, ~0));
}//if
- else if (damage < 11) {
+ else if (damage < (xp_damage * 0.10) ) {
Sprintf(aggbuf, "You %S%s %S ", &wmsg, agg.isImmort()?dam_str:"",
name_of_crit(vict, agg.SEE_BIT));
if (strcmp("slash", wmsg) == 0) {
@@ -613,7 +613,7 @@
name_of_crit(vict, ~0));
}
}//if
- else if (damage < 15) {
+ else if (damage < (xp_damage * 0.15) ) {
Sprintf(aggbuf, "You %S%s %S hard ", &wmsg, agg.isImmort()?dam_str:"",
name_of_crit(vict, agg.SEE_BIT));
if (strcmp("slash", wmsg) == 0) {
@@ -629,7 +629,7 @@
name_of_crit(vict, ~0));
}
}//if
- else if (damage < 20) {
+ else if (damage < (xp_damage * 0.20) ) {
Sprintf(aggbuf, "You %S%s %S very hard ", &wmsg, agg.isImmort()?dam_str:"",
name_of_crit(vict, agg.SEE_BIT));
@@ -646,7 +646,7 @@
&wmsg, name_of_crit(vict, ~0));
}
}//if
- else if (damage < 25) {
+ else if (damage < (xp_damage * 0.50) ) {
Sprintf(aggbuf, "You OBLITERATE%s %S ", agg.isImmort()?dam_str:"",
name_of_crit(vict, agg.SEE_BIT));
Sprintf(victbuf, "%S OBLITERATES%s you ", name_of_crit(agg, vict.SEE_BIT),
@@ -654,7 +654,7 @@
Sprintf(otherbuf, "%S OBLITERATES %S ", name_of_crit(agg, ~0),
name_of_crit(vict, ~0));
}//if
- else if (damage < 36) {
+ else if (damage < (xp_damage * 0.80) ) {
Sprintf(aggbuf, "You LIQUIFY%s %S ", agg.isImmort()?dam_str:"",
name_of_crit(vict, agg.SEE_BIT));
Sprintf(victbuf, "%S LIQUIFIES%s you ", name_of_crit(agg, vict.SEE_BIT),
@@ -662,7 +662,7 @@
Sprintf(otherbuf, "%S LIQUIFIES %S ", name_of_crit(agg, ~0),
name_of_crit(vict, ~0));
}//if
- else if (damage >= 36) {
+ else { // >= 80% of the targets hitpoints
Sprintf(aggbuf, "You ANNIHILATE%s %S ", agg.isImmort()?dam_str:"",
name_of_crit(vict, agg.SEE_BIT));
Sprintf(victbuf, "%S ANNIHILATES%s you ", name_of_crit(agg, vict.SEE_BIT),
More information about the ScryMUD
mailing list