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:
@@ -634,7 +634,7 @@
|
||||
if(new_bulge == 0) //Disable.
|
||||
selected.bulge_size = 0
|
||||
to_chat(user,"<span class='notice'>Your stomach will not be seen on examine.</span>")
|
||||
else if (!IsInRange(new_bulge,25,200))
|
||||
else if (!ISINRANGE(new_bulge,25,200))
|
||||
selected.bulge_size = 0.25 //Set it to the default.
|
||||
to_chat(user,"<span class='notice'>Invalid size.</span>")
|
||||
else if(new_bulge)
|
||||
@@ -644,7 +644,7 @@
|
||||
var/new_grow = input(user, "Choose the size that prey will be grown/shrunk to, ranging from 25% to 200%", "Set Growth Shrink Size.", selected.shrink_grow_size) as num|null
|
||||
if (new_grow == null)
|
||||
return
|
||||
if (!IsInRange(new_grow,25,200))
|
||||
if (!ISINRANGE(new_grow,25,200))
|
||||
selected.shrink_grow_size = 1 //Set it to the default
|
||||
to_chat(user,"<span class='notice'>Invalid size.</span>")
|
||||
else if(new_grow)
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -109,7 +109,7 @@ var/const/RESIZE_A_SMALLTINY = (RESIZE_SMALL + RESIZE_TINY) / 2
|
||||
|
||||
var/nagmessage = "Adjust your mass to be a size between 25 to 200% (DO NOT ABUSE)"
|
||||
var/new_size = input(nagmessage, "Pick a Size") as num|null
|
||||
if(new_size && IsInRange(new_size,25,200))
|
||||
if(new_size && ISINRANGE(new_size,25,200))
|
||||
src.resize(new_size/100)
|
||||
message_admins("[key_name(src)] used the resize command in-game to be [new_size]% size. \
|
||||
([src ? "<a href='?_src_=holder;adminplayerobservecoodjump=1;X=[src.x];Y=[src.y];Z=[src.z]'>JMP</a>" : "null"])")
|
||||
|
||||
Reference in New Issue
Block a user