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

Heavy Disposable Batteries recharging through exploit. #37315

Closed
gwyter opened this issue Jan 23, 2020 · 4 comments
Closed

Heavy Disposable Batteries recharging through exploit. #37315

gwyter opened this issue Jan 23, 2020 · 4 comments
Labels
<Bug> This needs to be fixed Mods: Aftershock Anything to do with the Aftershock mod

Comments

@gwyter
Copy link
Contributor

gwyter commented Jan 23, 2020

Describe the bug

Heavy Disposable Batteries are rechargeable when loaded into an UPS and placed over a working recharging station.

Steps To Reproduce

  1. Load an UPS with a heavy disposable battery.
  2. Spend some charge (shooting, using tools, anything that drains power from the battery from 100% to something else.)
  3. Place the Disposable Battery-loaded UPS on a working recharging station.

Expected behavior

UPS wouldn't charge, as the disposable battery itself can't be recharged when not loaded to an UPS.

Versions and configuration

  • OS: Linux
    • OS Version: LSB Version: n/a; Distributor ID: ManjaroLinux; Description: Manjaro Linux; Release: 18.1.5; Codename: Juhraya;
  • Game Version: 0.D-11533-g12beec0 [64-bit]
  • Graphics Version: Tiles
  • Mods loaded: [Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Aftershock [aftershock]]
@Inglonias
Copy link
Contributor

Inglonias commented Jan 23, 2020

The easiest fix for this would be to disallow charging the UPS altogether. Is that acceptable, or is a more in-depth fix required?

To clarify, you would be able to charge batteries in a charging station, but not tools.

@gwyter
Copy link
Contributor Author

gwyter commented Jan 23, 2020

@Inglonias I don't see any downside to that, other than a few more key presses to recharge non-disposable batteries used for an UPS

@gwyter
Copy link
Contributor Author

gwyter commented Jan 23, 2020

@Inglonias looking further into the issue, I think it comes from Aftershock, checking it's files, the ups differs in having the RECHARGE flag in Aftershock but not in Dda, so when I get home I'll try to remove that and test

@Inglonias
Copy link
Contributor

That might explain why I missed this, yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Mods: Aftershock Anything to do with the Aftershock mod
Projects
None yet
Development

No branches or pull requests

3 participants