I thought original_damage_amount was supposed to output the amount of damage before armor mitigation?
It would also be nice if some value was provided where we can read the absorbed damage by shields.
Ty
[Rseding91] original_damage_amount and final_damage_amount output the same value
[Rseding91] original_damage_amount and final_damage_amount output the same value
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
Re: original_damage_amount and final_damage_amount output the same value
Why would this be a bug? If your armor doesn't defend against that damage type (eg impact on power armor, laser on biters), one would obviously expect the two values to be identical.
Re: original_damage_amount and final_damage_amount output the same value
Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.
Re: [Rseding91] original_damage_amount and final_damage_amount output the same value
O... M.. G!
THANK YOU!!!!
I think we can now even calculate how much hp an entity had before the killing blow (at least if it has no shields)
Awesome!
THANK YOU!!!!
Awesome!
Last edited by ownlyme on Wed Jul 03, 2019 1:18 pm, edited 2 times in total.
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
Re: [Rseding91] original_damage_amount and final_damage_amount output the same value
hmm nope final_damage_amount doesn't get limited by the entity's hp..
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
Re: original_damage_amount and final_damage_amount output the same value
interestingly, when calling LuaEntity.damage(), that function returns the correct damage amount, when the entity's hp get reduced to 0.
(But final_damage_amount doesn't)
Can you fix that too? would give the event another edge in usefulness
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance