SinguloStation13 / SinguloStation13-Archived

GNU Affero General Public License v3.0
3 stars 12 forks source link

Fix custom shuttle mass calculation #77

Closed KubeRoot closed 3 years ago

KubeRoot commented 3 years ago

About The Pull Request

Due to a code oversight, custom shuttles currently calculate mass based on amount of tiles in the type of the shuttle's area. Because all custom shuttles' areas have the same types, this means the mass uses the sum of all custom shuttle areas.

This PR replaces the proc call that gets the turfs with a simple implementation that specifically iterates over the turfs of the shuttle's areas.

Why It's Good For The Game

Bugfix is good. Also, all shuttles will now no longer be ridiculously heavy as soon as one person builds a big shuttle.

Changelog

:cl: fix: Shuttle mass calculation /:cl: