mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 07:35:31 +01:00
[5654] Makes this PR Compile
This one made me cry.
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
return //Quietly fail
|
||||
|
||||
var/actually_added = refactory.add_stored_material(substance,howmuch*matstack.perunit)
|
||||
matstack.use(Ceiling(actually_added/matstack.perunit))
|
||||
matstack.use(CEILING((actually_added/matstack.perunit), 1))
|
||||
if(actually_added && actually_added < howmuch)
|
||||
to_chat(src,"<span class='warning'>Your refactory module is now full, so only [actually_added] units were stored.</span>")
|
||||
visible_message("<span class='notice'>[src] nibbles some of the [substance] right off the stack!</span>")
|
||||
@@ -283,7 +283,7 @@
|
||||
|
||||
var/nagmessage = "Adjust your mass to be a size between 25 to 200%. Up-sizing consumes metal, downsizing returns metal."
|
||||
var/new_size = input(user, nagmessage, "Pick a Size", user.size_multiplier*100) as num|null
|
||||
if(!new_size || !IsInRange(new_size,25,200))
|
||||
if(!new_size || !ISINRANGE(new_size,25,200))
|
||||
return
|
||||
|
||||
var/size_factor = new_size/100
|
||||
|
||||
@@ -64,14 +64,14 @@
|
||||
|
||||
#define MAX_HUGE_MESSAGE_LEN 8192
|
||||
#define POST_DELIMITER_STR "\<\>"
|
||||
/proc/sanitize_or_reflect(message,user)
|
||||
/proc/sanitize_or_reflect(message,user)
|
||||
//Way too long to send
|
||||
if(length(message) > MAX_HUGE_MESSAGE_LEN)
|
||||
fail_to_chat(user)
|
||||
return
|
||||
|
||||
message = sanitize(message, max_length = MAX_HUGE_MESSAGE_LEN)
|
||||
|
||||
|
||||
//Came back still too long to send
|
||||
if(length(message) > MAX_MESSAGE_LEN)
|
||||
fail_to_chat(user,message)
|
||||
@@ -83,9 +83,9 @@
|
||||
if(!message)
|
||||
to_chat(user,"<span class='danger'>Your message was NOT SENT, either because it was FAR too long, or sanitized to nothing at all.</span>")
|
||||
return
|
||||
|
||||
|
||||
var/length = length(message)
|
||||
var/posts = Ceiling(length/MAX_MESSAGE_LEN)
|
||||
var/posts = CEILING((length/MAX_MESSAGE_LEN), 1)
|
||||
to_chat(user,message)
|
||||
to_chat(user,"<span class='danger'>^ This message was NOT SENT ^ -- It was [length] characters, and the limit is [MAX_MESSAGE_LEN]. It would fit in [posts] separate messages.</span>")
|
||||
#undef MAX_HUGE_MESSAGE_LEN
|
||||
|
||||
Reference in New Issue
Block a user