[0.15.27] Negative LuaForce.laboratory_speed_modifier issues
Posted: Fri Jul 21, 2017 10:48 am
What did you do?
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.
Code: Select all
/c game.player.force.laboratory_speed_modifier = -2
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.