Skip to content

Commit

Permalink
Removes shoddy 'active' state for holopads that was causing negative …
Browse files Browse the repository at this point in the history
…power draw. (shiptest-ss13#3128)

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

I implemented the active state for this wrong, and it's better if it
doesn't have one for now.
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

bugs bad functional power good
<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

:cl:
fix: infinite negative power draw while calling your grandmother no
longer happens.
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
Thera-Pissed authored and MrCat15352 committed Jun 22, 2024
1 parent 6c826fe commit 4034304
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/game/machinery/hologram.dm
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/

/obj/machinery/holopad/proc/SetLightsAndPower()
var/total_users = LAZYLEN(masters) + LAZYLEN(holo_calls)
if(total_users > 0)
set_active_power()
else
set_idle_power()
active_power_usage = initial(active_power_usage) * total_users
//active_power_usage = initial(active_power_usage) * total_users
if(total_users || replay_mode)
set_light(2)
else
Expand Down

0 comments on commit 4034304

Please sign in to comment.