(Grenade) damage modifiers don't get updated

Things that we don't consider worth fixing at this moment.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 433
Joined: Thu Dec 21, 2017 8:02 am
Contact:

(Grenade) damage modifiers don't get updated

Post by ownlyme »

I manually adjusted my force's damage modifier of grenades (to 0), the tooltip also says 35, but it actually does 91 damage..
sometimes it's suddenly correct, but i really dont know why.

Savegame:
Attachments
test1024.zip
(3.41 MiB) Downloaded 81 times
creator of 52 mods
My requests: relAbove||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
Rseding91
Factorio Staff
Factorio Staff
Posts: 14616
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: (Grenade) damage modifiers don't get updated

Post by Rseding91 »

One of the mods you're using (or through a console command) - has changed the turret damage modifier on the force such that it now thinks the player character is a turret and it's modifying the damage through that.

It's a side effect of the "shooting" system running the same logic for a rocket as a grenade as a laser turret as a player. The tooltips where never designed for that value to ever be non-zero and so they don't show accurate values.

I can't just change the tooltips because it would cause things like bullets to show wrong values if you used them in a turret vs you shot them.
If you want to get ahold of me I'm almost always on Discord.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 433
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: (Grenade) damage modifiers don't get updated

Post by ownlyme »

Ahhh thanks.
Indeed, using

Code: Select all

game.player.force.set_turret_attack_modifier("character",0)
fixes it.
Interesting, gives me new ideas :P
creator of 52 mods
My requests: relAbove||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
Post Reply

Return to “Won't fix.”