forked from vegastrike/Vega-Strike-Engine-Source
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Misc. Refactoring of Components (vegastrike#1005)
- Move graphicOptions.InWarp to ftl_drive.Enabled(). Also support enable, disable and toggle. - Remove base_computer::showUnitStats. It's been replaced by python code. - Remove two unused parameters in DamageRandSys. - Remove unused parameter in Component::Load and subclasses - Align Cloak with other components. - unit_csv::UnitToMap no longer uses the original unit stats as a starting point. - Rename Component::Percent to Component::PercentOperational. We will have namespace collisions when we implement hull, armor and shield, as there is a Percent function there as well. - Standardise on Component::Load(unit_key) and Component::Upgrade(upgrade_key) - Fix bug in AfterburnerUpgrade::Upgrade - added __upgrades suffix twice. - Disabled Component::Load code related to MasterPartList. This needs a PR on its own to do right. - Deleted Component::unit_key. This collides with parameters and doesn't actually add worth. Components shouldn't know about the ship. - Fix issue in JumpDrive and other some other components, where the constructor switched two parameters around. - Make Resource::Percent return 0 and not -1. The game uses this in cockpit and VDU and checking every cycle is costly. - Resource now checks if it is destroyed (0) before repairing.
- Loading branch information
Showing
50 changed files
with
382 additions
and
1,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.