Using tome_water
Posted: Sun Jan 08, 2023 9:28 pm
I have a situation when I use the tome_water. If I use the tome on a champion, it is supposed to increase their cold resistance by 20. However, when I have champion 1 use the tome it only increases the cold resistance by 16. He is missing four points. It works correctly when given to any other champion but not on champion 1. (All other tomes seem to work OK with champ 1)
I ran the mod to check the four champion cold resistances at game start. Their cold resistances were: 0, 0, 4, 12.
Then I placed a bit of script to run at game start...
function chkCold()
for j = 1,4 do
local c = party.party:getChampion(j)
print(c:getBaseStat("resist_cold"))
c:modifyBaseStat("resist_cold",5)
print(c:getBaseStat("resist_cold"))
end
end
delayedCall(self.go.id, 3, "chkCold")
This printed out...
0
5
0
5
0
5
0
5
for the 4 champs. But when I checked the champs cold resistances they were: 1, 5, 9, 17.
Again, champ 1 was missing 4 cold resistance points.
Can anyone tell me what is going on?
I ran the mod to check the four champion cold resistances at game start. Their cold resistances were: 0, 0, 4, 12.
Then I placed a bit of script to run at game start...
function chkCold()
for j = 1,4 do
local c = party.party:getChampion(j)
print(c:getBaseStat("resist_cold"))
c:modifyBaseStat("resist_cold",5)
print(c:getBaseStat("resist_cold"))
end
end
delayedCall(self.go.id, 3, "chkCold")
This printed out...
0
5
0
5
0
5
0
5
for the 4 champs. But when I checked the champs cold resistances they were: 1, 5, 9, 17.
Again, champ 1 was missing 4 cold resistance points.
Can anyone tell me what is going on?