Page 1 of 1

[0.15.27] Negative LuaForce.laboratory_speed_modifier issues

Posted: Fri Jul 21, 2017 10:48 am
by I_IBlackI_I
What did you do?

Code: Select all

/c game.player.force.laboratory_speed_modifier = -2
What happened?
Instead of receiving an error stating that laboratory_speed_modifier must be a value greater than x (I would suggest -1) it set it to the given value anyway. This causes research to go backwards and causes GUI glitches http://i.imgur.com/deLteZy.png

What did you expect to happen instead?
Get an error in the console stating that laboratory_speed_modifier can not be a value lower than -1

OR

Research_progress not being able to go into negative.

Re: [0.15.27] Negative LuaForce.laboratory_speed_modifier issues

Posted: Fri Jul 21, 2017 11:04 am
by kovarex
Fixed for the next version.

Re: [0.15.27] Negative LuaForce.laboratory_speed_modifier issues

Posted: Tue Jul 25, 2017 6:23 pm
by Gergely
:lol: :lol: :lol: LOL