mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 11:35:19 +01:00
[5654] Makes this PR Compile
This one made me cry.
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
add_overlay(barrel_color)
|
||||
|
||||
//Charge bar
|
||||
var/ratio = Ceiling((charge_left / max_charge) * charge_sections)
|
||||
var/ratio = CEILING(((charge_left / max_charge) * charge_sections), 1)
|
||||
for(var/i = 0, i < ratio, i++)
|
||||
var/image/charge_bar = image(icon, icon_state = "[initial(icon_state)]_charge")
|
||||
charge_bar.pixel_x = i
|
||||
@@ -174,7 +174,7 @@
|
||||
add_overlay(cap)
|
||||
|
||||
if(batt.shots_left)
|
||||
var/ratio = Ceiling((batt.shots_left / initial(batt.shots_left)) * 4) //4 is how many lights we have a sprite for
|
||||
var/ratio = CEILING(((batt.shots_left / initial(batt.shots_left)) * 4), 1) //4 is how many lights we have a sprite for
|
||||
var/image/charge = image(icon, icon_state = "[initial(icon_state)]_charge-[ratio]")
|
||||
charge.color = "#29EAF4" //Could use battery color but eh.
|
||||
charge.pixel_x = current * x_offset
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
itemState += "[modifystate]"
|
||||
*/
|
||||
if(power_supply)
|
||||
ratio = Ceiling((power_supply.charge / power_supply.maxcharge) * charge_sections)
|
||||
ratio = CEILING(((power_supply.charge / power_supply.maxcharge) * charge_sections), 1)
|
||||
|
||||
if(power_supply.charge < charge_cost)
|
||||
overlays += "[icon_state]_empty"
|
||||
|
||||
Reference in New Issue
Block a user