Remove g.monstermoves
It's redundant with g.moves, so there is no more need for it. Way, way back, it looks like g.moves and g.monstermoves can and did desync, where g.moves would track the amount of moves the player had gotten (and would therefore increase faster if the player were hasted) and g.monstermoves would track the amount of monster move cycles, aka turns. But this has not been the case for a long time, and they both increment together in the same location in allmain.c. There are no longer any cases where they will not be the same value. This is a save-breaking change because it changes struct instance_globals, but I have not updated the editlevel in this commit.
This commit is contained in:
@@ -1417,7 +1417,7 @@ arti_invoke(struct obj *obj)
|
||||
|
||||
if (oart->inv_prop > LAST_PROP) {
|
||||
/* It's a special power, not "just" a property */
|
||||
if (obj->age > g.monstermoves) {
|
||||
if (obj->age > g.moves) {
|
||||
/* the artifact is tired :-) */
|
||||
You_feel("that %s %s ignoring you.", the(xname(obj)),
|
||||
otense(obj, "are"));
|
||||
@@ -1425,7 +1425,7 @@ arti_invoke(struct obj *obj)
|
||||
obj->age += (long) d(3, 10);
|
||||
return 1;
|
||||
}
|
||||
obj->age = g.monstermoves + rnz(100);
|
||||
obj->age = g.moves + rnz(100);
|
||||
|
||||
switch (oart->inv_prop) {
|
||||
case TAMING: {
|
||||
@@ -1593,7 +1593,7 @@ arti_invoke(struct obj *obj)
|
||||
iprop = u.uprops[oart->inv_prop].intrinsic;
|
||||
boolean on = (eprop & W_ARTI) != 0; /* true if prop just set */
|
||||
|
||||
if (on && obj->age > g.monstermoves) {
|
||||
if (on && obj->age > g.moves) {
|
||||
/* the artifact is tired :-) */
|
||||
u.uprops[oart->inv_prop].extrinsic ^= W_ARTI;
|
||||
You_feel("that %s %s ignoring you.", the(xname(obj)),
|
||||
@@ -1604,7 +1604,7 @@ arti_invoke(struct obj *obj)
|
||||
} else if (!on) {
|
||||
/* when turning off property, determine downtime */
|
||||
/* arbitrary for now until we can tune this -dlc */
|
||||
obj->age = g.monstermoves + rnz(100);
|
||||
obj->age = g.moves + rnz(100);
|
||||
}
|
||||
|
||||
if ((eprop & ~W_ARTI) || iprop) {
|
||||
|
||||
Reference in New Issue
Block a user