mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Optimalisations
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
if(drain_check)
|
||||
return 1
|
||||
|
||||
if(charge <= 0)
|
||||
return 0
|
||||
|
||||
var/cell_amt = min((amount * CELLRATE), charge)
|
||||
use(cell_amt)
|
||||
return cell_amt / CELLRATE
|
||||
|
||||
Reference in New Issue
Block a user