Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TG Mirror] Improves code for power usage of energy weapons [MDB IGNORE] #58

Closed
wants to merge 1 commit into from

Conversation

ffmirrorbot[bot]
Copy link

@ffmirrorbot ffmirrorbot bot commented Oct 15, 2023

Mirrored on Skyrat: ${this.url}
Original PR: (original url)

About The Pull Request

Currently, the power cost for each shot is just written as a number, and you have to know the size of the cell to know what this number means. If you just see than a laser gun costs 83 energy, then it's not clear that this translates to 12 shots unless you know that the cell holds 1000 units of energy. Now, all energy weapons (except those that cost 0 energy and one that costs 10000) use a macro define in the form of LASER_SHOTS(X). So the laser gun would example be LASER_SHOTS(12), to clearly convey that it gets 12 shots out of a full charge.

I also removed the laser/hellfire/antique subtype because it had no mechanical difference from laser/hellfire whatsoever.

Why It's Good For The Game

Readable code is good.

Changelog

No player facing changes.

… (#24323)

* Improves code for power usage of energy weapons

* Modular update

* This comment was wrong, it was 10 before

* One last modular

---------

Co-authored-by: GPeckman <[email protected]>
Co-authored-by: Giz <[email protected]>
@Iajret Iajret closed this Oct 17, 2023
@Iajret Iajret deleted the upstream-mirror-24323 branch October 17, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants