[1.05] Dying with unstoppable active

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Stonewalljack
Posts: 1
Joined: Tue Dec 10, 2013 1:56 am

[1.05] Dying with unstoppable active

#1 Post by Stonewalljack »

Was clearing out the room of death with my shalor beserker, made a bump attack and died with 7 turns of unstoppable still left.

Screenshot of in game log:
http://imgur.com/UhaOG9U

Log file:
[LOG] #RED##UID:1930:0##fbd578#Gatz#LAST# is unstoppable!
[LOG] #UID:15100:0#Overpowered greater multi-hued wyrm hits #fbd578#Gatz#LAST# for #RED#(1 refused)#LAST#, #LIGHT_RED#0 fire#LAST#, #RED#(3 refused)#LAST#, #1133F3#0 cold#LAST#, #RED#(6 refused)#LAST#, #ROYAL_BLUE#0 lightning#LAST#, #RED#(1 refused)#LAST#, #GREEN#0 acid#LAST# (0 total damage).
[LOG] #UID:15086:0#Overpowered greater multi-hued wyrm hits #fbd578#Gatz#LAST# for #RED#(4 refused)#LAST#, #LIGHT_RED#0 fire#LAST#, #RED#(4 refused)#LAST#, #1133F3#0 cold#LAST#, #RED#(6 refused)#LAST#, #ROYAL_BLUE#0 lightning#LAST#, #RED#(3 refused)#LAST#, #GREEN#0 acid#LAST# (0 total damage).
[LOG] #UID:15128:0#Overpowered greater multi-hued wyrm hits #fbd578#Gatz#LAST# for #RED#(4 refused)#LAST#, #LIGHT_RED#0 fire#LAST#, #RED#(4 refused)#LAST#, #1133F3#0 cold#LAST#, #RED#(5 refused)#LAST#, #ROYAL_BLUE#0 lightning#LAST#, #RED#(8 refused)#LAST#, #GREEN#0 acid#LAST# (0 total damage).
[LOG] #UID:15114:0#Overpowered greater multi-hued wyrm hits #fbd578#Gatz#LAST# for #RED#(5 refused)#LAST#, #LIGHT_RED#0 fire#LAST#, #RED#(3 refused)#LAST#, #1133F3#0 cold#LAST#, #RED#(7 refused)#LAST#, #ROYAL_BLUE#0 lightning#LAST#, #RED#(2 refused)#LAST#, #GREEN#0 acid#LAST# (0 total damage).
[LOG] #UID:1930:0##fbd578#Gatz#LAST# hits Overpowered greater multi-hued wyrm for #aaaaaa#440 physical#LAST#, #{bold}##DARK_GREEN#315 blight#{normal}##LAST#, #aaaaaa#1438 physical#LAST#, #DARK_GREEN#60 blight#LAST#, #PURPLE#16 arcane#LAST#, #YELLOW#5 light#LAST#, #aaaaaa#587 physical#LAST# (2861 total damage).
[LOG] #UID:1930:0##fbd578#Gatz#LAST# hits Overpowered greater multi-hued wyrm for #aaaaaa#1213 physical#LAST#, #aaaaaa#496 physical#LAST#, #aaaaaa#662 physical#LAST#, #{bold}##DARK_GREEN#564 blight#{normal}##LAST#, #aaaaaa#2209 physical#LAST# (5145 total damage).
[LOG] #UID:1930:0##fbd578#Gatz#LAST# hits Overpowered greater multi-hued wyrm for #aaaaaa#496 physical#LAST#, #aaaaaa#662 physical#LAST#, #{bold}##DARK_GREEN#988 blight#{normal}##LAST#, #aaaaaa#2101 physical#LAST# (4247 total damage).
[LOG] #UID:1930:0##fbd578#Gatz#LAST# hits Multi-hued drake for #aaaaaa#679 physical#LAST# damage.
[LOG] #UID:1930:0##fbd578#Gatz#LAST# hits Overpowered greater multi-hued wyrm for #{bold}##DARK_GREEN#708 blight#{normal}##LAST#, #aaaaaa#1507 physical#LAST#, #DARK_GREEN#60 blight#LAST#, #PURPLE#16 arcane#LAST#, #YELLOW#8 light#LAST#, #aaaaaa#0 physical#LAST#, #aaaaaa#496 physical#LAST#, #aaaaaa#662 physical#LAST# (3458 total damage).
[LOG] #{bold}##UID:1930:0##fbd578#Gatz#LAST# killed Overpowered greater multi-hued wyrm!#{normal}#
[LOG] #{bold}##UID:1930:0##fbd578#Gatz#LAST# killed Multi-hued drake!#{normal}#
[LOG] #{bold}##UID:1930:0##fbd578#Gatz#LAST# killed Overpowered greater multi-hued wyrm!#{normal}#
[LOG]
[USERCHAT] channel serial data xapettox tome 418
[USERCHAT] channel achievement xapettox tome Utterly Destroyed false false
[USERCHAT] channel serial data KingCohort tome 446
[USERCHAT] channel achievement GreyCentipede tome Eye of the storm (Insane (Adventure) difficulty) false true
[USERCHAT] channel achievement perdurabo tome Exterminator false false
Server latency 101
[ATTACK] attacking with Blighted Maul
[ATTACK] to overpowered greater multi-hued wyrm :: 384.28513055099 33 30 39.875 :: 1
checkHit 84.715170977866 39.875
=> chance to hit 100
[ATTACK] raw dam 384.28513055099 versus 30 0.3 with APR 33
[ATTACK] after armor 384.28513055099
[ATTACK] after range 552
[PHYS CRIT %] 81.833812552939
[ATTACK] after crit 1335.84
[ATTACK] after mult 1335.84
[ATTACK] mace accuracy bonus 84.715170977866 39.875 = 1.0448401709779
[LOG] #{bold}##UID:1930:0##fbd578#Gatz#LAST# performs a melee critical strike against Overpowered greater multi-hued wyrm!#{normal}#
[PROJECTOR] starting dam 279.14785879981
[PROJECTOR] after difficulty dam 279.14785879981
[PROJECTOR] res 0 1 on dam 558.29571759963
[PROJECTOR] after resists dam 558.29571759963
[PROJECTOR] after flat damage armor 558.29571759963
[PROJECTOR] final dam 558.29571759963
[LOG] You collect a new ingredient: #LIGHT_GREEN##UID:11:0#multi-hued wyrm scale#WHITE#.
[PROJECTOR] starting dam 11
[PROJECTOR] after difficulty dam 11
[PROJECTOR] res 36.25 0.6375 on dam 11
[PROJECTOR] after resists dam 7.0125
[PROJECTOR] after flat damage armor 7.0125
[PROJECTOR] final dam 7.0125
[PROFILE] filtering save of deaths to profile online
[PROFILE] mounted online on /current-profile
[PROFILE] unmounted online from /current-profile
[ONLINE PROFILE] saved character 3f0e35bc-b89e-4f40-b92e-57342edcec9c
[PROFILE] filtering save of scores to profile online
[PROFILE] mounted online on /current-profile
[PROFILE] unmounted online from /current-profile
Loading tile object/dragon_scale_multihued.png
[COROUTINE] registering savefilepipe thread: 0x11c1a778
[LOG] Gatz no longer revels in blood quite so much.
[ONLINE PROFILE] saved character 3f0e35bc-b89e-4f40-b92e-57342edcec9c
Saving JSON true
[LOG] Saving game...
[ONLINE PROFILE] saved character 3f0e35bc-b89e-4f40-b92e-57342edcec9c
[SOUND] loading from /data/sound/actions/death.ogg :=: sound "/data/sound/actions/death.ogg" : <static>
[SAVEFILE PIPE] new save running in the pipe: Gatz game :: game.teag :: table: 0x0cc00d48 => table: 0x148684b8 (6180)
Loading savefile /save/Gatz/
[LOG] #RED##UID:1930:0##fbd578#Gatz#LAST# is unstoppable!
[LOG] #UID:15114:0#Overpowered greater multi-hued wyrm hits #fbd578#Gatz#LAST# for #RED#(24 refused)#LAST#, #LIGHT_RED#0 fire#LAST# (0 total damage).
[LOG] #UID:1930:0##fbd578#Gatz#LAST# hits Overpowered greater multi-hued wyrm for #{bold}##DARK_GREEN#558 blight#{normal}##LAST# damage.
[LOG] #{bold}#Gatz the level 43 shalore berserker was scorched to death by an overpowered greater multi-hued wyrm on level 2 of Vor Armoury.#{normal}#
[LOG] #{bold}##UID:1930:0##fbd578#Gatz#LAST# killed Overpowered greater multi-hued wyrm!#{normal}#
[LOG] #{bold}##UID:15114:0#Overpowered greater multi-hued wyrm killed #fbd578#Gatz#LAST#!#{normal}#

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: [1.05] Dying with unstoppable active

#2 Post by Hachem_Muche »

This may be caused by cumulative rounding errors slowing depleting life over several turns. The following patch increases the chance the appropriate code will trigger and provides a failsafe against cumulative rounding errors:

Code: Select all

 game/modules/tome/class/Actor.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index f10f18b..fda826a 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -2045,9 +2045,10 @@ function _M:onTakeHit(value, src, death_note)
 	end
 
 	if self:attr("unstoppable") then
-		if value > self.life then
+		if value > self.life - 1 then
 			game:delayedLogDamage(src, self, 0, ("#RED#(%d refused)#LAST#"):format(value - self.life - 1), false)
 			value = self.life - 1
+			self.life = 1
 			game:delayedLogMessage(self, nil, "unstoppable", "#RED##Source# is unstoppable!")
 		end
 	end
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

jotwebe
Uruivellas
Posts: 725
Joined: Fri Apr 15, 2011 6:58 am
Location: GMT+1

Re: [1.05] Dying with unstoppable active

#3 Post by jotwebe »

Had the same thing happen on my 1.0.5 Shalore Marauder, although there I suspected a Heroism infusion running out.
Ghoul never existed, this never happened!

Post Reply