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

[MIRROR] Update lead acid batteries charge values #2794

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1878
Original PR: tgstation/tgstation#82510

About The Pull Request

So during the whole power consistency update thing, it seems lead acid batteries were entirely forgotten about.
Which, well, is easy, because they never actually used STANDARD_CELL_CHARGE.
https://github.com/tgstation/tgstation/blob/c34d56a45b0461f5e0fad3cc75e81580c3357119/code/game/objects/items/maintenance_loot.dm#L32-L33
Looking into it, the previous value for STANDARD_CELL_CHARGE seemed to have been 1000, so we convert it directly:

maxcharge = STANDARD_CELL_CHARGE * 20
chargerate = STANDARD_CELL_CHARGE * 1.4

But, comparing this to the normal power cells, it seems their charge rates got halved during the update.
So, we do that too.

maxcharge = STANDARD_CELL_CHARGE * 20
chargerate = STANDARD_CELL_CHARGE * 0.7

And that fixes it.

Why It's Good For The Game

Fixes lead acid batteries still using the old power amounts, and not being relative to STANDARD_CELL_CHARGE.

Changelog

🆑 00-Steven
fix: Lead acid batteries have had their power values fixed.
/:cl:

* Update lead acid batteries charge values (#82510)

## About The Pull Request

So during the whole power consistency update thing, it seems lead acid
batteries were entirely forgotten about.
Which, well, is easy, because they never actually used
`STANDARD_CELL_CHARGE`.

https://github.com/tgstation/tgstation/blob/c34d56a45b0461f5e0fad3cc75e81580c3357119/code/game/objects/items/maintenance_loot.dm#L32-L33
Looking into it, the previous value for `STANDARD_CELL_CHARGE` seemed to
have been 1000, so we convert it directly:
```dm
maxcharge = STANDARD_CELL_CHARGE * 20
chargerate = STANDARD_CELL_CHARGE * 1.4
```
But, comparing this to the normal power cells, it seems their charge
rates got _halved_ during the update.
So, we do that too.
```dm
maxcharge = STANDARD_CELL_CHARGE * 20
chargerate = STANDARD_CELL_CHARGE * 0.7
```
And that fixes it.
## Why It's Good For The Game

Fixes lead acid batteries still using the old power amounts, and not
being relative to `STANDARD_CELL_CHARGE`.
## Changelog
:cl:
fix: Lead acid batteries have had their power values fixed.
/:cl:

* Update lead acid batteries charge values

---------

Co-authored-by: _0Steven <[email protected]>
@Iajret Iajret merged commit 950b6fd into master Apr 9, 2024
26 checks passed
@Iajret Iajret deleted the upstream-mirror-1878 branch April 9, 2024 16:50
AnywayFarus added a commit that referenced this pull request Apr 9, 2024
Iajret pushed a commit that referenced this pull request Jun 2, 2024
)

* Borgs: the moduling (Various fixups to borg module code)

* Update robot_upgrades.dm

---------

Co-authored-by: Waterpig <[email protected]>
Co-authored-by: Mal <[email protected]>
AnywayFarus pushed a commit that referenced this pull request Jun 2, 2024
) (#3602)

* Borgs: the moduling (Various fixups to borg module code)

* Update robot_upgrades.dm

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Waterpig <[email protected]>
Co-authored-by: Mal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants