[svn 3151] Additive tmpvals not removed properly

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

[svn 3151] Additive tmpvals not removed properly

#1 Post by complexityQuantifier »

Additive tmpvals seem to not get reset correctly when equipment is removed.

Code: Select all

ght: 	linen robe of life	chronomancer's yew staff of wizardry	::	OFFHAND	BODY
fight: 	linen robe of life	plush linen cloak of the Shaloren	::	nil	BODY
fight: 	linen robe of life	wizard's copper ring of see invisible	::	nil	BODY
fight: 	linen robe of life	wizard's copper ring	::	nil	BODY
fight: 	linen robe of life	linen wizard hat of magic (#STATBONUS#)	::	nil	BODY
fight: 	linen robe of life	monstrous rough leather belt	::	nil	BODY
fight: 	linen robe of life	steel amulet of mastery (#MASTERY#)	::	nil	BODY
fight: 	linen robe of life	temporal rough leather gloves of warmaking	::	nil	BODY
fight: 	linen robe of life	nightwalker's brass lantern	::	nil	BODY
fight: 	linen robe of life	scholar's pair of rough leather boots of tirelessness	::	nil	BODY
fight: 	linen robe of life	miner's iron pickaxe	::	nil	BODY
addTmpVal	table: 0x2cd0a40	life_regen	0.6	 :=: 	1	196	add
addTmpVal	table: 0x2cd0a40	max_life	40	 :=: 	1	197	add
addTmpVal	table: 0x2cd0a40	healing_factor	0.11	 :=: 	1	198	add
addTmpValTable	table: 0x2b05250	8	5
addTmpVal	table: 0x2b05250	8	0.05	 :=: 	1	199	perc_inv
[LOG]	Rose wears: #0080FF##UID:1799:0#linen robe of life (0 def, 0 armor)#LAST#.
removeTempVal	life_regen	0.6	 :=: 	196
delTmpVal	life_regen	0.006
removeTempVal	resists	table: 0x2ead880	 :=: 	199
delTmpVal	8	0.05
removeTempVal	healing_factor	0.11	 :=: 	198
delTmpVal	healing_factor	0.0011
removeTempVal	max_life	40	 :=: 	197
delTmpVal	max_life	0.4
As you can see, when I remove this equipment, only 1% of the benefit is removed. I can get as much life_regen and max_life as I want by taking the cloak on and off. (Actually, looking at it, I get a lot more permanent gain when I take the cloak *off* than when I put it on. That may be because of the values hanging around.)

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

Re: [svn 3151] Additive tmpvals not removed properly

#2 Post by darkgod »

indeed, fixed
[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