addTemporaryValue may lose original value

Moderator: Moderator

Post Reply
Message
Author
Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

addTemporaryValue may lose original value

#1 Post by Castler »

When addTemporaryValue is used with an update method of "last", "highest", or "lowest", the original value is lost when the temporary value is removed.

Changing, e.g.,

Code: Select all

base["__thighest_"..prop] = base["__thighest_"..prop] or {}
to

Code: Select all

base["__thighest_"..prop] = base["__thighest_"..prop] or {[0]=base[prop]}
should fix this.
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: addTemporaryValue may lose original value

#2 Post by darkgod »

done
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply