mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Code Readability - Power (#18245)
* power * dissipate -> do_dissipate * eye_protection = * move APC charging #defines out of apc, and reference them in more places
This commit is contained in:
@@ -132,8 +132,8 @@
|
||||
if(A.operating && A.cell)
|
||||
A.cell.charge = max(0, A.cell.charge - 50)
|
||||
power_drained += 50
|
||||
if(A.charging == 2) // If the cell was full
|
||||
A.charging = 1 // It's no longer full
|
||||
if(A.charging == APC_FULLY_CHARGED) // If the cell was full
|
||||
A.charging = APC_IS_CHARGING // It's no longer full
|
||||
if(drained >= drain_rate)
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user