Search found 4 matches

by demonicpigg
Sat Dec 28, 2024 10:47 pm
Forum: Not a bug
Topic: [2.0.23] Productivity bonus incorrect when set by mods
Replies: 4
Views: 407

Re: [2.0.23] Productivity bonus incorrect when set by mods

Okay, so just to make sure, it is expected to, and working as intended to set productivity to 105% and have it instead set to 104%? Just want to confirm, as that is.. well, not expected from my perspective.

I understand that it's intended to drop all values beyond 2 decimal places, which makes ...
by demonicpigg
Fri Dec 13, 2024 7:58 pm
Forum: Not a bug
Topic: [2.0.23] Productivity bonus incorrect when set by mods
Replies: 4
Views: 407

Re: [2.0.23] Productivity bonus incorrect when set by mods

My current belief is that the game simply floors the number to 2 decimal places. There's no functional difference between 1.05 and 1.059, which is generally fine, but this leads to the issue of 1.05 doesn't exist in lua, and is instead 1.04999... which gets floored to 1.04, and then stored as 1 ...
by demonicpigg
Fri Dec 13, 2024 4:21 pm
Forum: Not a bug
Topic: [2.0.23] Productivity bonus incorrect when set by mods
Replies: 4
Views: 407

[2.0.23] Productivity bonus incorrect when set by mods

My mod (https://mods.factorio.com/mod/progressive-productivity) sets productivity to different amounts in increments of minimally 1%, default 5% when the player gets to a breakpoint in production. When they hit a breakpoint, it notifies them with a game log, and currently, when they hit 105%, it ...
by demonicpigg
Wed Nov 20, 2024 3:40 am
Forum: Modding interface requests
Topic: Allow for higher resource_drain_rate_percent on miners
Replies: 2
Views: 236

Allow for higher resource_drain_rate_percent on miners

I was interested in creating a mod that added some different types of drills, one that mines slower, but gives more overall resources, one that mines faster, but gives less overall resources and one that helps clear a mining patch by mining ores quickly with high resource drain and mining speed that ...

Go to advanced search