Skip to content

Commit

Permalink
fira
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Nov 6, 2023
1 parent c022af7 commit 8656683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/datums/components/cell.dm
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@
to_chat(user, SPAN_WARNING("You were interrupted."))
return

if(power_cell.charge <= 0)
return

var/to_transfer = min(max_recharge_tick, power_cell.charge, (max_charge - charge))
if(power_cell.use(to_transfer))
add_charge(null, to_transfer)
Expand Down

0 comments on commit 8656683

Please sign in to comment.