Skip to content

Commit

Permalink
Merge pull request Civ13#2824 from Bierkraan/working-branch
Browse files Browse the repository at this point in the history
Fix cell chargers
  • Loading branch information
Bierkraan authored May 12, 2024
2 parents 678b3a8 + 50fc069 commit 407bbcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/1713/machinery/cell.dm
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@
var/chargelevel = -1
var/charge_rate = 20 //This is the power drawn when charging, given in Watts (may need to be adjusted)

/obj/machinery/cell_charger/New()
..()
processing_objects += src

/obj/machinery/cell_charger/Del()
processing_objects -= src
..()

/obj/machinery/cell_charger/update_icon()
icon_state = "ccharger[charging ? 1 : 0]"

Expand Down

0 comments on commit 407bbcd

Please sign in to comment.