BeeStation / NSV13

NSV13, a Ship-to-ship Combat SS13 Server
GNU Affero General Public License v3.0
115 stars 257 forks source link

Updates the armour pumps to account for lag properly #2668

Closed Bokkiewokkie closed 1 week ago

Bokkiewokkie commented 1 month ago

About The Pull Request

Adds delta_time to the armour pumps' process(), to avoid lag affecting the pump performance.

Why It's Good For The Game

Now the pumps should actually work at the same speed all the time, most importantly not slowing down when there is game lag from things like big fleet battles and atmospherics processing during a firetorping.

Changelog

:cl: fix: Fixed armour pumps not accounting for game lag in their processing /:cl:

Bokkiewokkie commented 1 month ago

deltat needs to be divided by 2 due to the machinery processing ticks being 2 seconds apart, yet deltat being passed as delay / 10, or you will buff APNP by a factor of 2x

gwah, of course