diff --git a/code/__DEFINES/autofire.dm b/code/__DEFINES/autofire.dm
index 934cdcd7dc79..f276f487b666 100644
--- a/code/__DEFINES/autofire.dm
+++ b/code/__DEFINES/autofire.dm
@@ -1,4 +1,4 @@
// Controls how many buckets should be kept, each representing a tick. Max is ten seconds, to have better perf.
#define AUTOFIRE_BUCKET_LEN (world.fps * 10)
/// Helper for getting the correct bucket
-#define AUTOFIRE_BUCKET_POS(next_fire) (((round((next_fire - SSautomatedfire.head_offset) / world.tick_lag) + 1) % AUTOFIRE_BUCKET_LEN) || AUTOFIRE_BUCKET_LEN)
+#define AUTOFIRE_BUCKET_POS(next_fire) (((floor((next_fire - SSautomatedfire.head_offset) / world.tick_lag) + 1) % AUTOFIRE_BUCKET_LEN) || AUTOFIRE_BUCKET_LEN)
diff --git a/code/__HELPERS/#maths.dm b/code/__HELPERS/#maths.dm
index 171988d0ddae..076d96e0126d 100644
--- a/code/__HELPERS/#maths.dm
+++ b/code/__HELPERS/#maths.dm
@@ -44,7 +44,7 @@ GLOBAL_LIST_INIT(sqrtTable, list(1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4,
#define ToRadians(degrees) ((degrees) * 0.0174532925)
// min is inclusive, max is exclusive
-#define WRAP(val, min, max) clamp(( (min) == (max) ? (min) : (val) - (round(((val) - (min))/((max) - (min))) * ((max) - (min))) ),(min),(max))
+#define WRAP(val, min, max) clamp(( (min) == (max) ? (min) : (val) - (floor(((val) - (min))/((max) - (min))) * ((max) - (min))) ),(min),(max))
// MATH PROCS
@@ -97,7 +97,7 @@ GLOBAL_LIST_INIT(sqrtTable, list(1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4,
var/static/list/units_prefix = list("", "un", "duo", "tre", "quattuor", "quin", "sex", "septen", "octo", "novem")
var/static/list/tens_prefix = list("", "decem", "vigin", "trigin", "quadragin", "quinquagin", "sexagin", "septuagin", "octogin", "nongen")
var/static/list/one_to_nine = list("monuple", "double", "triple", "quadruple", "quintuple", "sextuple", "septuple", "octuple", "nonuple")
- number = round(number)
+ number = floor(number)
switch(number)
if(0)
return "empty tuple"
@@ -106,7 +106,7 @@ GLOBAL_LIST_INIT(sqrtTable, list(1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4,
if(10 to 19)
return "[units_prefix[(number%10)+1]]decuple"
if(20 to 99)
- return "[units_prefix[(number%10)+1]][tens_prefix[round((number % 100)/10)+1]]tuple"
+ return "[units_prefix[(number%10)+1]][tens_prefix[floor((number % 100)/10)+1]]tuple"
if(100)
return "centuple"
else //It gets too tedious to use latin prefixes from here.
diff --git a/code/__HELPERS/files.dm b/code/__HELPERS/files.dm
index 54bb438cd167..c974980bbe84 100644
--- a/code/__HELPERS/files.dm
+++ b/code/__HELPERS/files.dm
@@ -48,7 +48,7 @@
/client/proc/file_spam_check()
var/time_to_wait = GLOB.fileaccess_timer - world.time
if(time_to_wait > 0)
- to_chat(src, "Error: file_spam_check(): Spam. Please wait [round(time_to_wait/10)] seconds.")
+ to_chat(src, "Error: file_spam_check(): Spam. Please wait [floor(time_to_wait/10)] seconds.")
return 1
GLOB.fileaccess_timer = world.time + FTPDELAY
return 0
diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm
index 64f4515396f6..721c179b9cef 100644
--- a/code/__HELPERS/game.dm
+++ b/code/__HELPERS/game.dm
@@ -190,7 +190,7 @@
if(X1 1 || swapped)
swapped = 0
if(gap > 1)
- gap = round(gap / 1.3) // 1.3 is the emperic comb sort coefficient
+ gap = floor(gap / 1.3) // 1.3 is the emperic comb sort coefficient
if(gap < 1)
gap = 1
for(var/i = 1; gap + i <= result.len; i++)
diff --git a/code/__HELPERS/sanitize_values.dm b/code/__HELPERS/sanitize_values.dm
index 85e102a3c1ac..35df8644ad61 100644
--- a/code/__HELPERS/sanitize_values.dm
+++ b/code/__HELPERS/sanitize_values.dm
@@ -1,7 +1,7 @@
//general stuff
/proc/sanitize_integer(number, min=0, max=1, default=0)
if(isnum(number))
- number = round(number)
+ number = floor(number)
if(min <= number && number <= max)
return number
return default
diff --git a/code/__HELPERS/sorts/_Main.dm b/code/__HELPERS/sorts/_Main.dm
index 55af258b81d2..7fe3adf02870 100644
--- a/code/__HELPERS/sorts/_Main.dm
+++ b/code/__HELPERS/sorts/_Main.dm
@@ -113,7 +113,7 @@ GLOBAL_DATUM_INIT(sortInstance, /datum/sortInstance, new())
//[lo, left) elements <= pivot < [right, start) elements
//in other words, find where the pivot element should go using bisection search
while(left < right)
- var/mid = (left + right) >> 1 //round((left+right)/2)
+ var/mid = (left + right) >> 1 //floor((left+right)/2)
if(call(cmp)(fetchElement(L,mid), pivot) > 0)
right = mid
else
diff --git a/code/__HELPERS/type2type.dm b/code/__HELPERS/type2type.dm
index 5d0d113b0c55..e1d53e0a81d0 100644
--- a/code/__HELPERS/type2type.dm
+++ b/code/__HELPERS/type2type.dm
@@ -60,7 +60,7 @@
var/power = null
power = i - 1
while(power >= 0)
- var/val = round(num / 16 ** power)
+ var/val = floor(num / 16 ** power)
num -= val * 16 ** power
switch(val)
if(9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.0)
diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm
index ab77ee753e31..88bc3e8af9f5 100644
--- a/code/__HELPERS/unsorted.dm
+++ b/code/__HELPERS/unsorted.dm
@@ -40,15 +40,15 @@
#define skillcheckexplicit(user, skill, req_level) ((!user.skills || user.skills.is_skilled((skill), (req_level), TRUE)))
// Ensure the frequency is within bounds of what it should be sending/receiving at
-// Sets f within bounds via `clamp(round(f), 1441, 1489)`
+// Sets f within bounds via `clamp(floor(f), 1441, 1489)`
// If f is even, adds 1 to its value to make it odd
-#define sanitize_frequency(f) ((clamp(round(f), 1441, 1489) % 2) == 0 ? \
- clamp(round(f), 1441, 1489) + 1 : \
- clamp(round(f), 1441, 1489) \
+#define sanitize_frequency(f) ((clamp(floor(f), 1441, 1489) % 2) == 0 ? \
+ clamp(floor(f), 1441, 1489) + 1 : \
+ clamp(floor(f), 1441, 1489) \
)
//Turns 1479 into 147.9
-#define format_frequency(f) "[round((f) / 10)].[(f) % 10]"
+#define format_frequency(f) "[floor((f) / 10)].[(f) % 10]"
#define reverse_direction(direction) ( \
( dir & (NORTH|SOUTH) ? ~dir & (NORTH|SOUTH) : 0 ) | \
@@ -1766,8 +1766,8 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
pixel_y_offset += ((AMiconheight/world.icon_size)-1)*(world.icon_size*0.5)
//DY and DX
- var/rough_x = round(round(pixel_x_offset,world.icon_size)/world.icon_size)
- var/rough_y = round(round(pixel_y_offset,world.icon_size)/world.icon_size)
+ var/rough_x = floor(round(pixel_x_offset,world.icon_size)/world.icon_size)
+ var/rough_y = floor(round(pixel_y_offset,world.icon_size)/world.icon_size)
//Find coordinates
var/turf/T = get_turf(AM) //use AM's turfs, as it's coords are the same as AM's AND AM's coords are lost if it is inside another atom
diff --git a/code/_globalvars/global_lists.dm b/code/_globalvars/global_lists.dm
index c23f1fc7931f..c0fd361c6203 100644
--- a/code/_globalvars/global_lists.dm
+++ b/code/_globalvars/global_lists.dm
@@ -375,7 +375,7 @@ GLOBAL_LIST_INIT(hj_emotes, setup_hazard_joe_emotes())
while(gap > 1 || swapped)
swapped = 0
if(gap > 1)
- gap = round(gap / 1.247330950103979)
+ gap = floor(gap / 1.247330950103979)
if(gap < 1)
gap = 1
for(var/i = 1; gap + i <= length(surgeries); i++)
diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm
index 72e298d32729..57c529c7a156 100644
--- a/code/_onclick/click.dm
+++ b/code/_onclick/click.dm
@@ -376,8 +376,8 @@
var/shiftX = C.pixel_x / world.icon_size
var/shiftY = C.pixel_y / world.icon_size
var/list/actual_view = getviewsize(C ? C.view : GLOB.world_view_size)
- tX = clamp(origin.x + text2num(tX) + shiftX - round(actual_view[1] / 2) - 1, 1, world.maxx)
- tY = clamp(origin.y + text2num(tY) + shiftY - round(actual_view[2] / 2) - 1, 1, world.maxy)
+ tX = clamp(origin.x + text2num(tX) + shiftX - floor(actual_view[1] / 2) - 1, 1, world.maxx)
+ tY = clamp(origin.y + text2num(tY) + shiftY - floor(actual_view[2] / 2) - 1, 1, world.maxy)
return locate(tX, tY, tZ)
diff --git a/code/_onclick/hud/radial.dm b/code/_onclick/hud/radial.dm
index 4a23ebd882d3..2886b2edb0ee 100644
--- a/code/_onclick/hud/radial.dm
+++ b/code/_onclick/hud/radial.dm
@@ -142,7 +142,7 @@ GLOBAL_LIST_EMPTY(radial_menus)
else
zone = 360 - starting_angle + ending_angle
- max_elements = round(zone / min_angle)
+ max_elements = floor(zone / min_angle)
var/paged = max_elements < choices.len
if(elements.len < max_elements)
var/elements_to_add = max_elements - elements.len
@@ -177,7 +177,7 @@ GLOBAL_LIST_EMPTY(radial_menus)
/datum/radial_menu/proc/update_screen_objects(anim = FALSE)
var/list/page_choices = page_data[current_page]
- var/angle_per_element = round(zone / length(page_choices))
+ var/angle_per_element = floor(zone / length(page_choices))
for(var/i in 1 to length(elements))
var/atom/movable/screen/radial/E = elements[i]
var/angle = WRAP(starting_angle + (i - 1) * angle_per_element,0,360)
@@ -197,8 +197,8 @@ GLOBAL_LIST_EMPTY(radial_menus)
/datum/radial_menu/proc/SetElement(atom/movable/screen/radial/slice/E,choice_id,angle,anim,anim_order)
//Position
- var/py = round(cos(angle) * radius) + py_shift
- var/px = round(sin(angle) * radius)
+ var/py = floor(cos(angle) * radius) + py_shift
+ var/px = floor(sin(angle) * radius)
if(anim)
var/timing = anim_order * 0.5
var/matrix/starting = matrix()
@@ -271,8 +271,8 @@ GLOBAL_LIST_EMPTY(radial_menus)
if(use_labels)
MA.maptext_width = 64
MA.maptext_height = 64
- MA.maptext_x = -round(MA.maptext_width / 2) + 16
- MA.maptext_y = -round(MA.maptext_height / 2) + 16
+ MA.maptext_x = -floor(MA.maptext_width / 2) + 16
+ MA.maptext_y = -floor(MA.maptext_height / 2) + 16
MA.maptext = SMALL_FONTS_CENTRED(7, label)
return MA
diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm
index 17f06987cd3b..8508352bb338 100644
--- a/code/_onclick/hud/screen_objects.dm
+++ b/code/_onclick/hud/screen_objects.dm
@@ -75,7 +75,7 @@
return ..()
/atom/movable/screen/action_button/proc/get_button_screen_loc(button_number)
- var/row = round((button_number-1)/13) //13 is max amount of buttons per row
+ var/row = floor((button_number-1)/13) //13 is max amount of buttons per row
var/col = ((button_number - 1)%(13)) + 1
var/coord_col = "+[col-1]"
var/coord_col_offset = 4+2*col
@@ -129,9 +129,9 @@
//Calculate fullness for etiher max storage, or for storage slots if the container has them
var/fullness = 0
if (master_storage.storage_slots == null)
- fullness = round(10*total_w/master_storage.max_storage_space)
+ fullness = floor(10*total_w/master_storage.max_storage_space)
else
- fullness = round(10*master_storage.contents.len/master_storage.storage_slots)
+ fullness = floor(10*master_storage.contents.len/master_storage.storage_slots)
switch(fullness)
if(10)
color = "#ff0000"
diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm
index 71fc9162dcaa..ffcab30234ae 100644
--- a/code/_onclick/item_attack.dm
+++ b/code/_onclick/item_attack.dm
@@ -87,7 +87,7 @@
var/power = force
if(user.skills)
- power = round(power * (1 + 0.25 * user.skills.get_skill_level(SKILL_MELEE_WEAPONS))) //25% bonus per melee level
+ power = floor(power * (1 + 0.25 * user.skills.get_skill_level(SKILL_MELEE_WEAPONS))) //25% bonus per melee level
if(!ishuman(M))
var/used_verb = "attacked"
if(attack_verb && attack_verb.len)
diff --git a/code/controllers/configuration/config_entry.dm b/code/controllers/configuration/config_entry.dm
index d71bf1d747c9..657e7470fc54 100644
--- a/code/controllers/configuration/config_entry.dm
+++ b/code/controllers/configuration/config_entry.dm
@@ -80,7 +80,7 @@
return FALSE
var/temp = text2num(trim(str_val))
if(!isnull(temp))
- config_entry_value = clamp(integer ? round(temp) : temp, min_val, max_val)
+ config_entry_value = clamp(integer ? floor(temp) : temp, min_val, max_val)
if(config_entry_value != temp && !(datum_flags & DF_VAR_EDITED))
log_config("Changing [name] from [temp] to [config_entry_value]!")
return TRUE
diff --git a/code/controllers/mc/master.dm b/code/controllers/mc/master.dm
index 530078e4c432..edfda35a1e75 100644
--- a/code/controllers/mc/master.dm
+++ b/code/controllers/mc/master.dm
@@ -232,7 +232,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
for (var/datum/controller/subsystem/subsystem as anything in subsystems)
var/subsystem_init_stage = subsystem.init_stage
- if (!isnum(subsystem_init_stage) || subsystem_init_stage < 1 || subsystem_init_stage > INITSTAGE_MAX || round(subsystem_init_stage) != subsystem_init_stage)
+ if (!isnum(subsystem_init_stage) || subsystem_init_stage < 1 || subsystem_init_stage > INITSTAGE_MAX || floor(subsystem_init_stage) != subsystem_init_stage)
stack_trace("ERROR: MC: subsystem `[subsystem.type]` has invalid init_stage: `[subsystem_init_stage]`. Setting to `[INITSTAGE_MAX]`")
subsystem_init_stage = subsystem.init_stage = INITSTAGE_MAX
stage_sorted_subsystems[subsystem_init_stage] += subsystem
@@ -668,7 +668,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
tick_precentage = max(tick_precentage*0.5, tick_precentage-queue_node.tick_overrun)
- current_ticklimit = round(TICK_USAGE + tick_precentage)
+ current_ticklimit = floor(TICK_USAGE + tick_precentage)
ran = TRUE
diff --git a/code/controllers/subsystem/mapping.dm b/code/controllers/subsystem/mapping.dm
index 4e6da51c60f3..f6c45453950d 100644
--- a/code/controllers/subsystem/mapping.dm
+++ b/code/controllers/subsystem/mapping.dm
@@ -187,9 +187,9 @@ SUBSYSTEM_DEF(mapping)
var/x_offset = 1
var/y_offset = 1
if(bounds && world.maxx > bounds[MAP_MAXX])
- x_offset = round(world.maxx / 2 - bounds[MAP_MAXX] / 2) + 1
+ x_offset = floor(world.maxx / 2 - bounds[MAP_MAXX] / 2) + 1
if(bounds && world.maxy > bounds[MAP_MAXY])
- y_offset = round(world.maxy / 2 - bounds[MAP_MAXY] / 2) + 1
+ y_offset = floor(world.maxy / 2 - bounds[MAP_MAXY] / 2) + 1
if (!pm.load(x_offset, y_offset, start_z + parsed_maps[pm], no_changeturf = TRUE, new_z = TRUE))
errorList |= pm.original_path
// CM Snowflake for Mass Screenshot dimensions auto detection
diff --git a/code/controllers/subsystem/statpanel.dm b/code/controllers/subsystem/statpanel.dm
index b65ca1e758a2..e4d5f1520560 100644
--- a/code/controllers/subsystem/statpanel.dm
+++ b/code/controllers/subsystem/statpanel.dm
@@ -108,7 +108,7 @@ SUBSYSTEM_DEF(statpanels)
target.stat_panel.send_message("update_stat", list(
"global_data" = global_data,
- //"ping_str" = "Ping: [round(target.lastping, 1)]ms (Average: [round(target.avgping, 1)]ms)",
+ //"ping_str" = "Ping: [floor(target.lastping, 1)]ms (Average: [floor(target.avgping, 1)]ms)",
"other_str" = target.mob?.get_status_tab_items(),
))
diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm
index 40400f2a151c..1a6f98ee4cca 100644
--- a/code/controllers/subsystem/ticker.dm
+++ b/code/controllers/subsystem/ticker.dm
@@ -69,7 +69,7 @@ SUBSYSTEM_DEF(ticker)
if(isnull(start_at))
start_at = time_left || world.time + (CONFIG_GET(number/lobby_countdown) * 10)
to_chat_spaced(world, type = MESSAGE_TYPE_SYSTEM, margin_top = 2, margin_bottom = 0, html = SPAN_ROUNDHEADER("Welcome to the pre-game lobby of [CONFIG_GET(string/servername)]!"))
- to_chat_spaced(world, type = MESSAGE_TYPE_SYSTEM, margin_top = 0, html = SPAN_ROUNDBODY("Please, setup your character and select ready. Game will start in [round(time_left / 10) || CONFIG_GET(number/lobby_countdown)] seconds."))
+ to_chat_spaced(world, type = MESSAGE_TYPE_SYSTEM, margin_top = 0, html = SPAN_ROUNDBODY("Please, setup your character and select ready. Game will start in [floor(time_left / 10) || CONFIG_GET(number/lobby_countdown)] seconds."))
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_MODE_PREGAME_LOBBY)
current_state = GAME_STATE_PREGAME
fire()
@@ -346,8 +346,8 @@ SUBSYSTEM_DEF(ticker)
/datum/controller/subsystem/ticker/proc/GetTimeLeft()
if(isnull(SSticker.time_left))
- return round(max(0, start_at - world.time) / 10)
- return round(time_left / 10)
+ return floor(max(0, start_at - world.time) / 10)
+ return floor(time_left / 10)
/datum/controller/subsystem/ticker/proc/SetTimeLeft(newtime)
diff --git a/code/controllers/subsystem/timer.dm b/code/controllers/subsystem/timer.dm
index 069c9f50089b..8d819fa3282e 100644
--- a/code/controllers/subsystem/timer.dm
+++ b/code/controllers/subsystem/timer.dm
@@ -1,7 +1,7 @@
/// Controls how many buckets should be kept, each representing a tick. (1 minutes worth)
#define BUCKET_LEN (world.fps*1*60)
/// Helper for getting the correct bucket for a given timer
-#define BUCKET_POS(timer) (((round((timer.timeToRun - timer.timer_subsystem.head_offset) / world.tick_lag)+1) % BUCKET_LEN)||BUCKET_LEN)
+#define BUCKET_POS(timer) (((floor((timer.timeToRun - timer.timer_subsystem.head_offset) / world.tick_lag)+1) % BUCKET_LEN)||BUCKET_LEN)
/// Gets the maximum time at which timers will be invoked from buckets, used for deferring to secondary queue
#define TIMER_MAX(timer_ss) (timer_ss.head_offset + TICKS2DS(BUCKET_LEN + timer_ss.practical_offset - 1))
/// Max float with integer precision
@@ -411,7 +411,7 @@ SUBSYSTEM_DEF(timer)
if (flags & TIMER_STOPPABLE)
id = num2text(nextid, 100)
if (nextid >= SHORT_REAL_LIMIT)
- nextid += min(1, 2 ** round(nextid / SHORT_REAL_LIMIT))
+ nextid += min(1, 2 ** floor(nextid / SHORT_REAL_LIMIT))
else
nextid++
timer_subsystem.timer_id_dict[id] = src
diff --git a/code/controllers/subsystem/vote.dm b/code/controllers/subsystem/vote.dm
index 2438577a1771..85e2a57cc6d6 100644
--- a/code/controllers/subsystem/vote.dm
+++ b/code/controllers/subsystem/vote.dm
@@ -36,7 +36,7 @@ SUBSYSTEM_DEF(vote)
/datum/controller/subsystem/vote/fire()
if(mode)
- time_remaining = round((started_time + CONFIG_GET(number/vote_period) - world.time)/10)
+ time_remaining = floor((started_time + CONFIG_GET(number/vote_period) - world.time)/10)
if(time_remaining < 0)
result()
@@ -363,7 +363,7 @@ SUBSYSTEM_DEF(vote)
var/vp = CONFIG_GET(number/vote_period)
SEND_SOUND(world, sound(vote_sound, channel = SOUND_CHANNEL_VOX, volume = vote_sound_vol))
to_chat(world, SPAN_CENTERBOLD("
[text]
Type vote or click here to place your votes.
You have [DisplayTimeText(vp)] to vote.
"))
- time_remaining = round(vp/10)
+ time_remaining = floor(vp/10)
for(var/c in GLOB.clients)
var/client/C = c
var/datum/action/innate/vote/V = give_action(C.mob, /datum/action/innate/vote)
@@ -380,7 +380,7 @@ SUBSYSTEM_DEF(vote)
/datum/controller/subsystem/vote/proc/map_vote_adjustment(current_votes, carry_over, total_votes)
// Get 10% of the total map votes and remove them from the pool
- var/total_vote_adjustment = round(total_votes * CONFIG_GET(number/vote_adjustment_callback))
+ var/total_vote_adjustment = floor(total_votes * CONFIG_GET(number/vote_adjustment_callback))
// Do not remove more votes than were made for the map
return -(min(current_votes, total_vote_adjustment))
diff --git a/code/datums/ammo/ammo.dm b/code/datums/ammo/ammo.dm
index eba72f2594e2..a59290ab5f51 100644
--- a/code/datums/ammo/ammo.dm
+++ b/code/datums/ammo/ammo.dm
@@ -228,7 +228,7 @@
var/obj/projectile/P = new /obj/projectile(curloc, original_P.weapon_cause_data)
P.generate_bullet(GLOB.ammo_list[bonus_projectiles_type]) //No bonus damage or anything.
- P.accuracy = round(P.accuracy * original_P.accuracy/initial(original_P.accuracy)) //if the gun changes the accuracy of the main projectile, it also affects the bonus ones.
+ P.accuracy = floor(P.accuracy * original_P.accuracy/initial(original_P.accuracy)) //if the gun changes the accuracy of the main projectile, it also affects the bonus ones.
original_P.give_bullet_traits(P)
P.bonus_projectile_check = 2 //It's a bonus projectile!
diff --git a/code/datums/beam.dm b/code/datums/beam.dm
index 3eb3e4eb46e8..4b024df585f9 100644
--- a/code/datums/beam.dm
+++ b/code/datums/beam.dm
@@ -82,7 +82,7 @@
/datum/beam/proc/Draw()
if(always_turn)
origin.setDir(get_dir(origin, target)) //Causes the source of the beam to rotate to continuosly face the BeamTarget.
- var/Angle = round(Get_Angle(origin,target))
+ var/Angle = floor(Get_Angle(origin,target))
var/matrix/rot_matrix = matrix()
var/turf/origin_turf = get_turf(origin)
rot_matrix.Turn(Angle)
@@ -91,7 +91,7 @@
var/DX = get_pixel_position_x(target) - get_pixel_position_x(origin)
var/DY = get_pixel_position_y(target) - get_pixel_position_y(origin)
var/N = 0
- var/length = round(sqrt((DX)**2+(DY)**2)) //hypotenuse of the triangle formed by target and origin's displacement
+ var/length = floor(sqrt((DX)**2+(DY)**2)) //hypotenuse of the triangle formed by target and origin's displacement
for(N in 0 to length-1 step world.icon_size)//-1 as we want < not <=, but we want the speed of X in Y to Z and step X
if(QDELETED(src))
@@ -116,20 +116,20 @@
if(DX == 0)
Pixel_x = 0
else
- Pixel_x = round(sin(Angle) + world.icon_size*sin(Angle)*(N+world.icon_size/2) / world.icon_size)
+ Pixel_x = floor(sin(Angle) + world.icon_size*sin(Angle)*(N+world.icon_size/2) / world.icon_size)
if(DY == 0)
Pixel_y = 0
else
- Pixel_y = round(cos(Angle) + world.icon_size*cos(Angle)*(N+world.icon_size/2) / world.icon_size)
+ Pixel_y = floor(cos(Angle) + world.icon_size*cos(Angle)*(N+world.icon_size/2) / world.icon_size)
//Position the effect so the beam is one continous line
var/a
if(abs(Pixel_x)>world.icon_size)
- a = Pixel_x > 0 ? round(Pixel_x/32) : ceil(Pixel_x/world.icon_size)
+ a = Pixel_x > 0 ? floor(Pixel_x/32) : ceil(Pixel_x/world.icon_size)
X.x += a
Pixel_x %= world.icon_size
if(abs(Pixel_y)>world.icon_size)
- a = Pixel_y > 0 ? round(Pixel_y/32) : ceil(Pixel_y/world.icon_size)
+ a = Pixel_y > 0 ? floor(Pixel_y/32) : ceil(Pixel_y/world.icon_size)
X.y += a
Pixel_y %= world.icon_size
diff --git a/code/datums/components/cell.dm b/code/datums/components/cell.dm
index 81ef3733e2e2..cf40caa41c73 100644
--- a/code/datums/components/cell.dm
+++ b/code/datums/components/cell.dm
@@ -71,7 +71,7 @@
/datum/component/cell/proc/on_emp(datum/source, severity)
SIGNAL_HANDLER
- use_charge(null, round(max_charge / severity))
+ use_charge(null, floor(max_charge / severity))
/datum/component/cell/proc/start_drain(datum/source)
SIGNAL_HANDLER
@@ -92,7 +92,7 @@
if((charge_examine_range != UNLIMITED_DISTANCE) && get_dist(examiner, parent) > charge_examine_range)
return
- examine_text += "A small gauge in the corner reads \"Power: [round(100 * charge / max_charge)]%\"."
+ examine_text += "A small gauge in the corner reads \"Power: [floor(100 * charge / max_charge)]%\"."
/datum/component/cell/proc/on_object_hit(datum/source, obj/item/cell/attack_obj, mob/living/attacker, params)
SIGNAL_HANDLER
@@ -154,7 +154,7 @@
var/to_transfer = min(max_recharge_tick, power_cell.charge, (max_charge - charge))
if(power_cell.use(to_transfer))
add_charge(null, to_transfer)
- to_chat(user, "You transfer some power between [power_cell] and [parent]. The gauge now reads: [round(100 * charge / max_charge)]%.")
+ to_chat(user, "You transfer some power between [power_cell] and [parent]. The gauge now reads: [floor(100 * charge / max_charge)]%.")
/datum/component/cell/proc/add_charge(datum/source, charge_add = 0)
SIGNAL_HANDLER
diff --git a/code/datums/components/overlay_lighting.dm b/code/datums/components/overlay_lighting.dm
index ddcf3364604c..e7e8c2e9b984 100644
--- a/code/datums/components/overlay_lighting.dm
+++ b/code/datums/components/overlay_lighting.dm
@@ -356,7 +356,7 @@
if(current_holder && overlay_lighting_flags & LIGHTING_ON)
current_holder.underlays += visible_mask
if(directional)
- cast_range = clamp(round(new_range * 0.5), 1, 3)
+ cast_range = clamp(floor(new_range * 0.5), 1, 3)
if(overlay_lighting_flags & LIGHTING_ON)
make_luminosity_update()
diff --git a/code/datums/custom_hud.dm b/code/datums/custom_hud.dm
index 62ae36aa7b89..c9894398477a 100644
--- a/code/datums/custom_hud.dm
+++ b/code/datums/custom_hud.dm
@@ -71,7 +71,7 @@
var/coord_col = "-[col-1]"
var/coord_col_offset = "-[4+2*col]"
- var/row = round((placement-1)/13)
+ var/row = floor((placement-1)/13)
var/coord_row = "[-1 - row]"
var/coord_row_offset = 26
return "EAST[coord_col]:[coord_col_offset],NORTH[coord_row]:[coord_row_offset]"
@@ -126,7 +126,7 @@
var/coord_col = "-0"
var/coord_col_offset = "-[24 * col + 2]"
- var/row = round((placement-1)/6)
+ var/row = floor((placement-1)/6)
var/coord_row = "[-1 - row]"
var/coord_row_offset = -8
return "EAST[coord_col]:[coord_col_offset],NORTH[coord_row]:[coord_row_offset]"
diff --git a/code/datums/effects/neurotoxin.dm b/code/datums/effects/neurotoxin.dm
index b7402ca370fd..b1edca7d5806 100644
--- a/code/datums/effects/neurotoxin.dm
+++ b/code/datums/effects/neurotoxin.dm
@@ -87,12 +87,12 @@
addtimer(VARSET_CALLBACK(src,hallucinate,TRUE),rand(4 SECONDS,10 SECONDS))
if(duration > 19) // 4 ticks in smoke, neuro is affecting cereberal activity
- affected_mob.eye_blind = max(affected_mob.eye_blind, round(strength/4))
+ affected_mob.eye_blind = max(affected_mob.eye_blind, floor(strength/4))
if(duration >= 27) // 5+ ticks in smoke, you are ODing now
affected_mob.apply_effect(1, DAZE) // Unable to talk and weldervision
affected_mob.apply_damage(2,TOX)
- affected_mob.SetEarDeafness(max(affected_mob.ear_deaf, round(strength*1.5))) //Paralysis of hearing system, aka deafness
+ affected_mob.SetEarDeafness(max(affected_mob.ear_deaf, floor(strength*1.5))) //Paralysis of hearing system, aka deafness
if(duration >= 50) // 10+ ticks, apply some semi-perm damage and end their suffering if they are somehow still alive by now
affected_mob.apply_internal_damage(10,"liver")
diff --git a/code/datums/elements/bullet_trait/damage_boost.dm b/code/datums/elements/bullet_trait/damage_boost.dm
index 43d9d1b23377..20175d11256a 100644
--- a/code/datums/elements/bullet_trait/damage_boost.dm
+++ b/code/datums/elements/bullet_trait/damage_boost.dm
@@ -87,7 +87,7 @@ GLOBAL_LIST_INIT(damage_boost_vehicles, typecacheof(/obj/vehicle/multitile))
boosted_projectile.damage_boosted-- //Mark that damage has been returned to normal.
if(damage_boosted_atoms[hit_atom.type]) //If hitting a valid atom for damage boost
- boosted_projectile.damage = round(boosted_projectile.damage * active_damage_mult) //Modify Damage by multiplier
+ boosted_projectile.damage = floor(boosted_projectile.damage * active_damage_mult) //Modify Damage by multiplier
if (active_damage_mult)
boosted_projectile.last_damage_mult = active_damage_mult //Save multiplier for next check
diff --git a/code/datums/elements/bullet_trait/incendiary.dm b/code/datums/elements/bullet_trait/incendiary.dm
index 861e67651a53..74a7e32cc324 100644
--- a/code/datums/elements/bullet_trait/incendiary.dm
+++ b/code/datums/elements/bullet_trait/incendiary.dm
@@ -52,7 +52,7 @@
if(projectile_target.stat)
to_chat(projectile_target, SPAN_AVOIDHARM("You shrug off some persistent flames."))
return
- projectile_target.adjust_fire_stacks(burn_stacks/2 + round(damage_actual / 4), burn_reagent)
+ projectile_target.adjust_fire_stacks(burn_stacks/2 + floor(damage_actual / 4), burn_reagent)
projectile_target.IgniteMob()
projectile_target.visible_message(
SPAN_DANGER("[projectile_target] bursts into flames!"), \
diff --git a/code/datums/pain/_pain.dm b/code/datums/pain/_pain.dm
index b99927ac596e..fd4dfbf0bbb3 100644
--- a/code/datums/pain/_pain.dm
+++ b/code/datums/pain/_pain.dm
@@ -82,7 +82,7 @@
if(current_pain - new_pain_reduction > max_pain)
return 100
- var/percentage = round(((current_pain - new_pain_reduction) / max_pain) * 100)
+ var/percentage = floor(((current_pain - new_pain_reduction) / max_pain) * 100)
if(percentage < 0)
return 0
else
diff --git a/code/datums/statistics/entities/death_stats.dm b/code/datums/statistics/entities/death_stats.dm
index 76e3605c157f..18751ba604a1 100644
--- a/code/datums/statistics/entities/death_stats.dm
+++ b/code/datums/statistics/entities/death_stats.dm
@@ -113,13 +113,13 @@
cause_mob.life_kills_total += life_value
if(getBruteLoss())
- new_death.total_brute = round(getBruteLoss())
+ new_death.total_brute = floor(getBruteLoss())
if(getFireLoss())
- new_death.total_burn = round(getFireLoss())
+ new_death.total_burn = floor(getFireLoss())
if(getOxyLoss())
- new_death.total_oxy = round(getOxyLoss())
+ new_death.total_oxy = floor(getOxyLoss())
if(getToxLoss())
- new_death.total_tox = round(getToxLoss())
+ new_death.total_tox = floor(getToxLoss())
new_death.time_of_death = world.time
diff --git a/code/game/gamemodes/cm_initialize.dm b/code/game/gamemodes/cm_initialize.dm
index af63b99e4e57..c9c180295b1a 100644
--- a/code/game/gamemodes/cm_initialize.dm
+++ b/code/game/gamemodes/cm_initialize.dm
@@ -309,14 +309,14 @@ Additional game mode variables.
xenomorphs[hive] += new_xeno
else //Out of candidates, fill the xeno hive with burrowed larva
- remaining_slots = round((xeno_starting_num - i))
+ remaining_slots = floor((xeno_starting_num - i))
break
current_index++
if(remaining_slots)
- var/larva_per_hive = round(remaining_slots / LAZYLEN(hives))
+ var/larva_per_hive = floor(remaining_slots / LAZYLEN(hives))
for(var/hivenumb in hives)
var/datum/hive_status/hive = GLOB.hive_datum[hivenumb]
hive.stored_larva = larva_per_hive
@@ -944,7 +944,7 @@ Additional game mode variables.
CVS.populate_product_list_and_boxes(gear_scale)
//Scale the amount of cargo points through a direct multiplier
- GLOB.supply_controller.points += round(GLOB.supply_controller.points_scale * gear_scale)
+ GLOB.supply_controller.points += floor(GLOB.supply_controller.points_scale * gear_scale)
///Returns a multiplier to the amount of gear that is to be distributed roundstart, stored in [/datum/game_mode/var/gear_scale]
/datum/game_mode/proc/init_gear_scale()
@@ -972,7 +972,7 @@ Additional game mode variables.
gear_scale_max = gear_scale
for(var/obj/structure/machinery/cm_vending/sorted/vendor as anything in GLOB.cm_vending_vendors)
vendor.update_dynamic_stock(gear_scale_max)
- GLOB.supply_controller.points += round(gear_delta * GLOB.supply_controller.points_scale)
+ GLOB.supply_controller.points += floor(gear_delta * GLOB.supply_controller.points_scale)
/// Updates [var/latejoin_tally] and [var/gear_scale] based on role weights of latejoiners/cryoers. Delta is the amount of role positions added/removed
/datum/game_mode/proc/latejoin_update(role, delta = 1)
diff --git a/code/game/gamemodes/colonialmarines/colonialmarines.dm b/code/game/gamemodes/colonialmarines/colonialmarines.dm
index a66403fc00f5..ddb6e10ba319 100644
--- a/code/game/gamemodes/colonialmarines/colonialmarines.dm
+++ b/code/game/gamemodes/colonialmarines/colonialmarines.dm
@@ -134,7 +134,7 @@
if(!length(monkey_types))
return
- var/amount_to_spawn = round(GLOB.players_preassigned * MONKEYS_TO_TOTAL_RATIO)
+ var/amount_to_spawn = floor(GLOB.players_preassigned * MONKEYS_TO_TOTAL_RATIO)
for(var/i in 0 to min(amount_to_spawn, length(GLOB.monkey_spawns)))
var/turf/T = get_turf(pick_n_take(GLOB.monkey_spawns))
diff --git a/code/game/gamemodes/colonialmarines/xenovsxeno.dm b/code/game/gamemodes/colonialmarines/xenovsxeno.dm
index d287709d5516..40e67df4d458 100644
--- a/code/game/gamemodes/colonialmarines/xenovsxeno.dm
+++ b/code/game/gamemodes/colonialmarines/xenovsxeno.dm
@@ -45,7 +45,7 @@
monkey_types = SSmapping.configs[GROUND_MAP].monkey_types
if(monkey_amount)
if(monkey_types.len)
- for(var/i = min(round(monkey_amount*GLOB.clients.len), GLOB.monkey_spawns.len), i > 0, i--)
+ for(var/i = min(floor(monkey_amount*GLOB.clients.len), GLOB.monkey_spawns.len), i > 0, i--)
var/turf/T = get_turf(pick_n_take(GLOB.monkey_spawns))
var/monkey_to_spawn = pick(monkey_types)
diff --git a/code/game/jobs/job/antag/other/pred.dm b/code/game/jobs/job/antag/other/pred.dm
index 3808c5637da9..967ef73a7d1f 100644
--- a/code/game/jobs/job/antag/other/pred.dm
+++ b/code/game/jobs/job/antag/other/pred.dm
@@ -22,7 +22,7 @@
)
/datum/job/antag/predator/set_spawn_positions(count)
- spawn_positions = max((round(count * PREDATOR_TO_TOTAL_SPAWN_RATIO)), 4)
+ spawn_positions = max((floor(count * PREDATOR_TO_TOTAL_SPAWN_RATIO)), 4)
total_positions = spawn_positions
/datum/job/antag/predator/spawn_and_equip(mob/new_player/player)
diff --git a/code/game/jobs/job/antag/xeno/xenomorph.dm b/code/game/jobs/job/antag/xeno/xenomorph.dm
index 78b6ab7e3ab2..eeca16bc7f90 100644
--- a/code/game/jobs/job/antag/xeno/xenomorph.dm
+++ b/code/game/jobs/job/antag/xeno/xenomorph.dm
@@ -13,10 +13,10 @@
total_positions = -1
/datum/job/antag/xenos/proc/calculate_extra_spawn_positions(count)
- return max((round(count * XENO_TO_TOTAL_SPAWN_RATIO)), 0)
+ return max((floor(count * XENO_TO_TOTAL_SPAWN_RATIO)), 0)
/datum/job/antag/xenos/set_spawn_positions(count)
- spawn_positions = max((round(count * XENO_TO_TOTAL_SPAWN_RATIO)), 1)
+ spawn_positions = max((floor(count * XENO_TO_TOTAL_SPAWN_RATIO)), 1)
total_positions = spawn_positions
/datum/job/antag/xenos/spawn_in_player(mob/new_player/NP)
diff --git a/code/game/jobs/job/civilians/other/survivors.dm b/code/game/jobs/job/civilians/other/survivors.dm
index 71dd5f1b96e8..4fc344713d61 100644
--- a/code/game/jobs/job/civilians/other/survivors.dm
+++ b/code/game/jobs/job/civilians/other/survivors.dm
@@ -14,7 +14,7 @@
var/hostile = FALSE
/datum/job/civilian/survivor/set_spawn_positions(count)
- spawn_positions = clamp((round(count * SURVIVOR_TO_TOTAL_SPAWN_RATIO)), 2, 8)
+ spawn_positions = clamp((floor(count * SURVIVOR_TO_TOTAL_SPAWN_RATIO)), 2, 8)
total_positions = spawn_positions
/datum/job/civilian/survivor/equip_job(mob/living/survivor)
diff --git a/code/game/jobs/job/marine/squad/standard.dm b/code/game/jobs/job/marine/squad/standard.dm
index 2fcd8a3cdd28..a926c3370a4b 100644
--- a/code/game/jobs/job/marine/squad/standard.dm
+++ b/code/game/jobs/job/marine/squad/standard.dm
@@ -12,7 +12,7 @@
return ..()
/datum/job/marine/standard/set_spawn_positions(count)
- spawn_positions = max((round(count * STANDARD_MARINE_TO_TOTAL_SPAWN_RATIO)), 8)
+ spawn_positions = max((floor(count * STANDARD_MARINE_TO_TOTAL_SPAWN_RATIO)), 8)
/datum/job/marine/standard/whiskey
title = JOB_WO_SQUAD_MARINE
diff --git a/code/game/jobs/slot_scaling.dm b/code/game/jobs/slot_scaling.dm
index 8bd4af908c07..8c8568130763 100644
--- a/code/game/jobs/slot_scaling.dm
+++ b/code/game/jobs/slot_scaling.dm
@@ -10,7 +10,7 @@
/proc/job_slot_formula(marine_count, factor, c, min, max)
if(marine_count <= factor)
return min
- return round(clamp((marine_count/factor)+c, min, max))
+ return floor(clamp((marine_count/factor)+c, min, max))
/proc/medic_slot_formula(playercount)
return job_slot_formula(playercount,40,1,3,5)
diff --git a/code/game/machinery/OpTable.dm b/code/game/machinery/OpTable.dm
index 03c013703b07..1b27ddc9bd6b 100644
--- a/code/game/machinery/OpTable.dm
+++ b/code/game/machinery/OpTable.dm
@@ -196,7 +196,7 @@
// Check for blood
if(H.blood_volume < BLOOD_VOLUME_SAFE)
if(!(patient_exam & PATIENT_LOW_BLOOD))
- visible_message("[icon2html(src, viewers(src))] The [src] beeps, Warning: Patient has a dangerously low blood level: [round(H.blood_volume / BLOOD_VOLUME_NORMAL * 100)]%. Type: [H.blood_type].")
+ visible_message("[icon2html(src, viewers(src))] The [src] beeps, Warning: Patient has a dangerously low blood level: [floor(H.blood_volume / BLOOD_VOLUME_NORMAL * 100)]%. Type: [H.blood_type].")
patient_exam |= PATIENT_LOW_BLOOD
else
patient_exam &= ~PATIENT_LOW_BLOOD
@@ -204,7 +204,7 @@
// Check for nutrition
if(H.nutrition < NUTRITION_LOW)
if(!(patient_exam & PATIENT_LOW_NUTRITION))
- visible_message("[icon2html(src, viewers(src))] The [src] beeps, Warning: Patient has a dangerously low nutrition level: [round(H.nutrition / NUTRITION_MAX * 100)]%.")
+ visible_message("[icon2html(src, viewers(src))] The [src] beeps, Warning: Patient has a dangerously low nutrition level: [floor(H.nutrition / NUTRITION_MAX * 100)]%.")
patient_exam |= PATIENT_LOW_NUTRITION
else
patient_exam &= ~PATIENT_LOW_NUTRITION
diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm
index d62d688fcfc5..1cdc2e0a49fb 100644
--- a/code/game/machinery/atmoalter/canister.dm
+++ b/code/game/machinery/atmoalter/canister.dm
@@ -92,7 +92,7 @@ update_flag
/obj/structure/machinery/portable_atmospherics/canister/bullet_act(obj/projectile/Proj)
if(Proj.ammo.damage)
- update_health(round(Proj.ammo.damage / 2))
+ update_health(floor(Proj.ammo.damage / 2))
..()
return 1
diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm
index 97a25bf7d20a..fed690f6707b 100644
--- a/code/game/machinery/autolathe.dm
+++ b/code/game/machinery/autolathe.dm
@@ -78,7 +78,7 @@
if(istype(I,/obj/item/stack/sheet))
recipe.resources[material] = I.matter[material] //Doesn't take more if it's just a sheet or something. Get what you put in.
else
- recipe.resources[material] = round(I.matter[material]*1.25) // More expensive to produce than they are to recycle.
+ recipe.resources[material] = floor(I.matter[material]*1.25) // More expensive to produce than they are to recycle.
QDEL_NULL(I)
//Create parts for lathe.
@@ -339,7 +339,7 @@
if(istype(eating,/obj/item/stack))
var/obj/item/stack/stack = eating
- stack.use(max(1,round(total_used/mass_per_sheet))) // Always use at least 1 to prevent infinite materials.
+ stack.use(max(1,floor(total_used/mass_per_sheet))) // Always use at least 1 to prevent infinite materials.
else if(user.temp_drop_inv_item(O))
qdel(O)
@@ -535,7 +535,7 @@
print_data["can_make"] = FALSE
max_print_amt = 0
else
- print_amt = round(projected_stored_material[material]/R.resources[material])
+ print_amt = floor(projected_stored_material[material]/R.resources[material])
if(print_data["can_make"] && max_print_amt < 0 || max_print_amt > print_amt)
max_print_amt = print_amt
diff --git a/code/game/machinery/cell_charger.dm b/code/game/machinery/cell_charger.dm
index eb7a501fa078..528d90f4b4b9 100644
--- a/code/game/machinery/cell_charger.dm
+++ b/code/game/machinery/cell_charger.dm
@@ -16,7 +16,7 @@
if(charging && !(inoperable()) )
- var/newlevel = round(charging.percent() * 4 / 99)
+ var/newlevel = floor(charging.percent() * 4 / 99)
if(chargelevel != newlevel)
diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm
index 4973eda8c71a..de2522d921bf 100644
--- a/code/game/machinery/cloning.dm
+++ b/code/game/machinery/cloning.dm
@@ -35,7 +35,7 @@
else
if(isliving(src.implanted))
var/mob/living/L = src.implanted
- src.healthstring = "[round(L.getOxyLoss())] - [round(L.getFireLoss())] - [round(L.getToxLoss())] - [round(L.getBruteLoss())]"
+ src.healthstring = "[floor(L.getOxyLoss())] - [floor(L.getFireLoss())] - [floor(L.getToxLoss())] - [floor(L.getBruteLoss())]"
if (!src.healthstring)
src.healthstring = "ERROR"
return src.healthstring
diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm
index f6efe6edb5e2..bfa64ab174ed 100644
--- a/code/game/machinery/computer/computer.dm
+++ b/code/game/machinery/computer/computer.dm
@@ -60,7 +60,7 @@
visible_message("[Proj] ricochets off [src]!")
return 0
else
- if(prob(round(Proj.ammo.damage /2)))
+ if(prob(floor(Proj.ammo.damage /2)))
set_broken()
..()
return 1
diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm
index 5a328386c95d..c2aac2cf9e75 100644
--- a/code/game/machinery/cryo.dm
+++ b/code/game/machinery/cryo.dm
@@ -110,7 +110,7 @@
else
data["occupant"]["temperaturestatus"] = "bad"
- data["cellTemperature"] = round(temperature)
+ data["cellTemperature"] = floor(temperature)
data["isBeakerLoaded"] = beaker ? TRUE : FALSE
var/beakerContents = list()
diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm
index 76a370061a2f..a7af3ba4bdcb 100644
--- a/code/game/machinery/doors/windowdoor.dm
+++ b/code/game/machinery/doors/windowdoor.dm
@@ -125,7 +125,7 @@
/obj/structure/machinery/door/window/bullet_act(obj/projectile/Proj)
bullet_ping(Proj)
if(Proj.ammo.damage)
- take_damage(round(Proj.ammo.damage / 2))
+ take_damage(floor(Proj.ammo.damage / 2))
if(Proj.ammo.damage_type == BRUTE)
playsound(src.loc, 'sound/effects/Glasshit.ogg', 25, 1)
return 1
diff --git a/code/game/machinery/fuelcell_recycler.dm b/code/game/machinery/fuelcell_recycler.dm
index 52c01beaf6fe..89024adb41fb 100644
--- a/code/game/machinery/fuelcell_recycler.dm
+++ b/code/game/machinery/fuelcell_recycler.dm
@@ -206,7 +206,7 @@
///Percentage of fuel left in the cell
/obj/item/fuel_cell/proc/get_fuel_percent()
- return round(100 * fuel_amount/max_fuel_amount)
+ return floor(100 * fuel_amount/max_fuel_amount)
///Whether the fuel cell is full
/obj/item/fuel_cell/proc/is_regenerated()
diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm
index e16d2cacf63b..4e4e38d953d1 100644
--- a/code/game/machinery/iv_drip.dm
+++ b/code/game/machinery/iv_drip.dm
@@ -27,7 +27,7 @@
if(reagents.total_volume)
var/image/filling = image('icons/obj/structures/machinery/iv_drip.dmi', src, "reagent")
- var/percent = round((reagents.total_volume / beaker.volume) * 100)
+ var/percent = floor((reagents.total_volume / beaker.volume) * 100)
switch(percent)
if(0 to 9) filling.icon_state = "reagent0"
if(10 to 24) filling.icon_state = "reagent10"
diff --git a/code/game/machinery/kitchen/juicer.dm b/code/game/machinery/kitchen/juicer.dm
index 0a15c1bcf5ec..e538ad1185db 100644
--- a/code/game/machinery/kitchen/juicer.dm
+++ b/code/game/machinery/kitchen/juicer.dm
@@ -141,7 +141,7 @@
else if (O.potency == -1)
return 5
else
- return round(5*sqrt(O.potency))
+ return floor(5*sqrt(O.potency))
/obj/structure/machinery/juicer/proc/juice()
power_change() //it is a portable machine
diff --git a/code/game/machinery/kitchen/microwave.dm b/code/game/machinery/kitchen/microwave.dm
index 5a7e690fc3ca..78e64ab49f89 100644
--- a/code/game/machinery/kitchen/microwave.dm
+++ b/code/game/machinery/kitchen/microwave.dm
@@ -271,7 +271,7 @@
cooked.forceMove(src.loc)
return
else
- var/halftime = round(recipe.time/10/2)
+ var/halftime = floor(recipe.time/10/2)
if (!wzhzhzh(halftime * time_multiplier))
abort()
return
diff --git a/code/game/machinery/medical_pod/bodyscanner.dm b/code/game/machinery/medical_pod/bodyscanner.dm
index 732ff1ba97b9..73e5a87b2304 100644
--- a/code/game/machinery/medical_pod/bodyscanner.dm
+++ b/code/game/machinery/medical_pod/bodyscanner.dm
@@ -263,7 +263,7 @@
s_class = occ["brainloss"] < 1 ? INTERFACE_GOOD : INTERFACE_BAD
dat += "[SET_CLASS("  Approx. Brain Damage:", INTERFACE_PINK)] [SET_CLASS("[occ["brainloss"]]%", s_class)]
"
- dat += "[SET_CLASS("Knocked Out Summary:", "#40628a")] [occ["knocked_out"]]% (approximately [round(occ["knocked_out"] * GLOBAL_STATUS_MULTIPLIER / (1 SECONDS))] seconds left!)
"
+ dat += "[SET_CLASS("Knocked Out Summary:", "#40628a")] [occ["knocked_out"]]% (approximately [floor(occ["knocked_out"] * GLOBAL_STATUS_MULTIPLIER / (1 SECONDS))] seconds left!)
"
dat += "[SET_CLASS("Body Temperature:", "#40628a")] [occ["bodytemp"]-T0C]°C ([occ["bodytemp"]*1.8-459.67]°F)
"
s_class = occ["blood_amount"] > 448 ? INTERFACE_OKAY : INTERFACE_BAD
diff --git a/code/game/machinery/medical_pod/sleeper.dm b/code/game/machinery/medical_pod/sleeper.dm
index 5868df901c6a..dbc6d8133de3 100644
--- a/code/game/machinery/medical_pod/sleeper.dm
+++ b/code/game/machinery/medical_pod/sleeper.dm
@@ -152,7 +152,7 @@
if(!(NO_BLOOD in human_occupant.species.flags))
occupantData["pulse"] = human_occupant.get_pulse(GETPULSE_TOOL)
occupantData["hasBlood"] = 1
- occupantData["bloodLevel"] = round(occupant.blood_volume)
+ occupantData["bloodLevel"] = floor(occupant.blood_volume)
occupantData["bloodMax"] = occupant.max_blood
occupantData["bloodPercent"] = round(100*(occupant.blood_volume/occupant.max_blood), 0.01)
diff --git a/code/game/machinery/nuclearbomb.dm b/code/game/machinery/nuclearbomb.dm
index 2194fe2e7e7c..bb83261ae948 100644
--- a/code/game/machinery/nuclearbomb.dm
+++ b/code/game/machinery/nuclearbomb.dm
@@ -329,10 +329,10 @@ GLOBAL_VAR_INIT(bomb_set, FALSE)
humans_other -= current_mob
if(timer_warning) //we check for timer warnings first
- announcement_helper("WARNING.\n\nDETONATION IN [round(timeleft/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
- announcement_helper("WARNING.\n\nDETONATION IN [round(timeleft/10)] SECONDS.", "HQ Intel Division", humans_other, 'sound/misc/notice1.ogg')
+ announcement_helper("WARNING.\n\nDETONATION IN [floor(timeleft/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
+ announcement_helper("WARNING.\n\nDETONATION IN [floor(timeleft/10)] SECONDS.", "HQ Intel Division", humans_other, 'sound/misc/notice1.ogg')
//preds part
- var/t_left = duration2text_sec(round(rand(timeleft - timeleft / 10, timeleft + timeleft / 10)))
+ var/t_left = duration2text_sec(floor(rand(timeleft - timeleft / 10, timeleft + timeleft / 10)))
yautja_announcement(SPAN_YAUTJABOLDBIG("WARNING!\n\nYou have approximately [t_left] seconds to abandon the hunting grounds before activation of the human purification device."))
//xenos part
var/warning
@@ -352,9 +352,9 @@ GLOBAL_VAR_INIT(bomb_set, FALSE)
var/datum/hive_status/hive
if(timing)
- announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE ACTIVATED.\n\nDETONATION IN [round(timeleft/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
- announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE ACTIVATED.\n\nDETONATION IN [round(timeleft/10)] SECONDS.", "HQ Nuclear Tracker", humans_other, 'sound/misc/notice1.ogg')
- var/t_left = duration2text_sec(round(rand(timeleft - timeleft / 10, timeleft + timeleft / 10)))
+ announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE ACTIVATED.\n\nDETONATION IN [floor(timeleft/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
+ announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE ACTIVATED.\n\nDETONATION IN [floor(timeleft/10)] SECONDS.", "HQ Nuclear Tracker", humans_other, 'sound/misc/notice1.ogg')
+ var/t_left = duration2text_sec(floor(rand(timeleft - timeleft / 10, timeleft + timeleft / 10)))
yautja_announcement(SPAN_YAUTJABOLDBIG("WARNING!
A human purification device has been detected. You have approximately [t_left] to abandon the hunting grounds before it activates."))
for(var/hivenumber in GLOB.hive_datum)
hive = GLOB.hive_datum[hivenumber]
@@ -579,11 +579,11 @@ GLOBAL_VAR_INIT(bomb_set, FALSE)
xeno_announcement(SPAN_XENOANNOUNCE("We get a sense of impending doom... the hive killer is ready to be activated."), hive.hivenumber, XENO_GENERAL_ANNOUNCE)
return
- announcement_helper("DECRYPTION IN [round(decryption_time/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
- announcement_helper("DECRYPTION IN [round(decryption_time/10)] SECONDS.", "HQ Intel Division", humans_other, 'sound/misc/notice1.ogg')
+ announcement_helper("DECRYPTION IN [floor(decryption_time/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
+ announcement_helper("DECRYPTION IN [floor(decryption_time/10)] SECONDS.", "HQ Intel Division", humans_other, 'sound/misc/notice1.ogg')
//preds part
- var/time_left = duration2text_sec(round(rand(decryption_time - decryption_time / 10, decryption_time + decryption_time / 10)))
+ var/time_left = duration2text_sec(floor(rand(decryption_time - decryption_time / 10, decryption_time + decryption_time / 10)))
yautja_announcement(SPAN_YAUTJABOLDBIG("WARNING!\n\nYou have approximately [time_left] seconds to abandon the hunting grounds before the human purification device is able to be activated."))
//xenos part
@@ -601,9 +601,9 @@ GLOBAL_VAR_INIT(bomb_set, FALSE)
var/datum/hive_status/hive
if(decrypting)
- announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE DECRYPTION STARTED.\n\nDECRYPTION IN [round(decryption_time/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
- announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE DECRYPTION STARTED.\n\nDECRYPTION IN [round(decryption_time/10)] SECONDS.", "HQ Nuclear Tracker", humans_other, 'sound/misc/notice1.ogg')
- var/time_left = duration2text_sec(round(rand(decryption_time - decryption_time / 10, decryption_time + decryption_time / 10)))
+ announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE DECRYPTION STARTED.\n\nDECRYPTION IN [floor(decryption_time/10)] SECONDS.", "[MAIN_AI_SYSTEM] Nuclear Tracker", humans_uscm, 'sound/misc/notice1.ogg')
+ announcement_helper("ALERT.\n\nNUCLEAR EXPLOSIVE ORDNANCE DECRYPTION STARTED.\n\nDECRYPTION IN [floor(decryption_time/10)] SECONDS.", "HQ Nuclear Tracker", humans_other, 'sound/misc/notice1.ogg')
+ var/time_left = duration2text_sec(floor(rand(decryption_time - decryption_time / 10, decryption_time + decryption_time / 10)))
yautja_announcement(SPAN_YAUTJABOLDBIG("WARNING!
A human purification device has been detected. You have approximately [time_left] before it finishes its initial phase."))
for(var/hivenumber in GLOB.hive_datum)
hive = GLOB.hive_datum[hivenumber]
diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm
index d86a5c0e30d0..4b5e02dc8b8b 100644
--- a/code/game/machinery/rechargestation.dm
+++ b/code/game/machinery/rechargestation.dm
@@ -106,7 +106,7 @@
/obj/structure/machinery/recharge_station/get_examine_text(mob/user)
. = ..()
- . += "The charge meter reads: [round(chargepercentage())]%"
+ . += "The charge meter reads: [floor(chargepercentage())]%"
/obj/structure/machinery/recharge_station/proc/chargepercentage()
return ((current_internal_charge / max_internal_charge) * 100)
@@ -135,7 +135,7 @@
else
icon_state = "borgcharger0"
overlays.Cut()
- switch(round(chargepercentage()))
+ switch(floor(chargepercentage()))
if(1 to 20)
overlays += image('icons/obj/objects.dmi', "statn_c0")
if(21 to 40)
diff --git a/code/game/machinery/scoreboard.dm b/code/game/machinery/scoreboard.dm
index 8740bed6dcfb..8fd5dd984e6f 100644
--- a/code/game/machinery/scoreboard.dm
+++ b/code/game/machinery/scoreboard.dm
@@ -19,11 +19,11 @@
if(overlays.len)
overlays.Cut()
- var/score_state = "s[( round(scoreleft/10) > scoreleft/10 ? round(scoreleft/10)-1 : round(scoreleft/10) )]a"
+ var/score_state = "s[( floor(scoreleft/10) > scoreleft/10 ? floor(scoreleft/10)-1 : floor(scoreleft/10) )]a"
overlays += image('icons/obj/structures/machinery/scoreboard.dmi', icon_state=score_state)
score_state = "s[scoreleft%10]b"
overlays += image('icons/obj/structures/machinery/scoreboard.dmi', icon_state=score_state)
- score_state = "s[( round(scoreright/10) > scoreright/10 ? round(scoreright/10)-1 : round(scoreright/10) )]c"
+ score_state = "s[( floor(scoreright/10) > scoreright/10 ? floor(scoreright/10)-1 : floor(scoreright/10) )]c"
overlays += image('icons/obj/structures/machinery/scoreboard.dmi', icon_state=score_state)
score_state = "s[scoreright%10]d"
overlays += image('icons/obj/structures/machinery/scoreboard.dmi', icon_state=score_state)
diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm
index 69b21964a4f4..b4d5b7dece20 100644
--- a/code/game/machinery/spaceheater.dm
+++ b/code/game/machinery/spaceheater.dm
@@ -162,7 +162,7 @@
if(isturf(loc) && cell && cell.charge)
for(var/mob/living/carbon/human/H in range(2, src))
if(H.bodytemperature < T20C)
- H.bodytemperature += min(round(T20C - H.bodytemperature)*0.7, 25)
+ H.bodytemperature += min(floor(T20C - H.bodytemperature)*0.7, 25)
H.recalculate_move_delay = TRUE
diff --git a/code/game/machinery/telecomms/presets.dm b/code/game/machinery/telecomms/presets.dm
index 2e792bdff09a..3997484f39e7 100644
--- a/code/game/machinery/telecomms/presets.dm
+++ b/code/game/machinery/telecomms/presets.dm
@@ -81,7 +81,7 @@
else if(P.ammo.flags_ammo_behavior & AMMO_ANTISTRUCT)
update_health(P.damage*ANTISTRUCT_DMG_MULT_BARRICADES)
- update_health(round(P.damage/2))
+ update_health(floor(P.damage/2))
return TRUE
/obj/structure/machinery/telecomms/relay/preset/tower/update_health(damage = 0)
diff --git a/code/game/machinery/vending/cm_vending.dm b/code/game/machinery/vending/cm_vending.dm
index c7443130b247..ff218dac89c0 100644
--- a/code/game/machinery/vending/cm_vending.dm
+++ b/code/game/machinery/vending/cm_vending.dm
@@ -195,7 +195,7 @@ GLOBAL_LIST_EMPTY(vending_products)
for(var/list/product in topic_listed_products)
if(product[3] == item_box_pairing.box)
//We recalculate the amount of boxes we ought to have based on how many magazines we have
- product[2] = round(base_ammo_item[2] / item_box_pairing.items_in_box)
+ product[2] = floor(base_ammo_item[2] / item_box_pairing.items_in_box)
break
/obj/structure/machinery/cm_vending/proc/update_derived_from_boxes(obj/item/box_being_added_or_removed, add_box = FALSE)
@@ -965,7 +965,7 @@ GLOBAL_LIST_EMPTY(vending_products)
if(!IMBP)
continue
for(var/datum/item_box_pairing/IBP as anything in IMBP.item_box_pairings)
- tmp_list += list(list(initial(IBP.box.name), round(L[2] / IBP.items_in_box), IBP.box, VENDOR_ITEM_REGULAR))
+ tmp_list += list(list(initial(IBP.box.name), floor(L[2] / IBP.items_in_box), IBP.box, VENDOR_ITEM_REGULAR))
//Putting Ammo and other boxes on the bottom of the list as per player preferences
if(tmp_list.len > 0)
diff --git a/code/game/machinery/vending/vendor_types/engineering.dm b/code/game/machinery/vending/vendor_types/engineering.dm
index 826f4431235b..6da719e883ba 100644
--- a/code/game/machinery/vending/vendor_types/engineering.dm
+++ b/code/game/machinery/vending/vendor_types/engineering.dm
@@ -19,28 +19,28 @@
/obj/structure/machinery/cm_vending/sorted/tech/tool_storage/populate_product_list(scale)
listed_products = list(
list("EQUIPMENT", -1, null, null),
- list("Combat Flashlight", round(scale * 2), /obj/item/device/flashlight/combat, VENDOR_ITEM_REGULAR),
- list("Hardhat", round(scale * 2), /obj/item/clothing/head/hardhat, VENDOR_ITEM_REGULAR),
- list("Insulated Gloves", round(scale * 2), /obj/item/clothing/gloves/yellow, VENDOR_ITEM_REGULAR),
- list("Utility Tool Belt", round(scale * 2), /obj/item/storage/belt/utility, VENDOR_ITEM_REGULAR),
- list("Welding Goggles", round(scale * 2), /obj/item/clothing/glasses/welding, VENDOR_ITEM_REGULAR),
- list("Welding Helmet", round(scale * 2), /obj/item/clothing/head/welding, VENDOR_ITEM_REGULAR),
- list("Engineer Kit", round(scale * 2), /obj/item/storage/toolkit/empty, VENDOR_ITEM_REGULAR),
+ list("Combat Flashlight", floor(scale * 2), /obj/item/device/flashlight/combat, VENDOR_ITEM_REGULAR),
+ list("Hardhat", floor(scale * 2), /obj/item/clothing/head/hardhat, VENDOR_ITEM_REGULAR),
+ list("Insulated Gloves", floor(scale * 2), /obj/item/clothing/gloves/yellow, VENDOR_ITEM_REGULAR),
+ list("Utility Tool Belt", floor(scale * 2), /obj/item/storage/belt/utility, VENDOR_ITEM_REGULAR),
+ list("Welding Goggles", floor(scale * 2), /obj/item/clothing/glasses/welding, VENDOR_ITEM_REGULAR),
+ list("Welding Helmet", floor(scale * 2), /obj/item/clothing/head/welding, VENDOR_ITEM_REGULAR),
+ list("Engineer Kit", floor(scale * 2), /obj/item/storage/toolkit/empty, VENDOR_ITEM_REGULAR),
list("SCANNERS", -1, null, null),
- list("Atmos Scanner", round(scale * 2), /obj/item/device/analyzer, VENDOR_ITEM_REGULAR),
- list("Demolitions Scanner", round(scale * 1), /obj/item/device/demo_scanner, VENDOR_ITEM_REGULAR),
- list("Meson Scanner", round(scale * 2), /obj/item/clothing/glasses/meson, VENDOR_ITEM_REGULAR),
- list("Reagent Scanner", round(scale * 2), /obj/item/device/reagent_scanner, VENDOR_ITEM_REGULAR),
- list("T-Ray Scanner", round(scale * 2), /obj/item/device/t_scanner, VENDOR_ITEM_REGULAR),
+ list("Atmos Scanner", floor(scale * 2), /obj/item/device/analyzer, VENDOR_ITEM_REGULAR),
+ list("Demolitions Scanner", floor(scale * 1), /obj/item/device/demo_scanner, VENDOR_ITEM_REGULAR),
+ list("Meson Scanner", floor(scale * 2), /obj/item/clothing/glasses/meson, VENDOR_ITEM_REGULAR),
+ list("Reagent Scanner", floor(scale * 2), /obj/item/device/reagent_scanner, VENDOR_ITEM_REGULAR),
+ list("T-Ray Scanner", floor(scale * 2), /obj/item/device/t_scanner, VENDOR_ITEM_REGULAR),
list("TOOLS", -1, null, null),
- list("Blowtorch", round(scale * 4), /obj/item/tool/weldingtool, VENDOR_ITEM_REGULAR),
- list("Crowbar", round(scale * 4), /obj/item/tool/crowbar, VENDOR_ITEM_REGULAR),
- list("ME3 Hand Welder", round(scale * 2), /obj/item/tool/weldingtool/simple, VENDOR_ITEM_REGULAR),
- list("Screwdriver", round(scale * 4), /obj/item/tool/screwdriver, VENDOR_ITEM_REGULAR),
- list("Wirecutters", round(scale * 4), /obj/item/tool/wirecutters, VENDOR_ITEM_REGULAR),
- list("Wrench", round(scale * 4), /obj/item/tool/wrench, VENDOR_ITEM_REGULAR)
+ list("Blowtorch", floor(scale * 4), /obj/item/tool/weldingtool, VENDOR_ITEM_REGULAR),
+ list("Crowbar", floor(scale * 4), /obj/item/tool/crowbar, VENDOR_ITEM_REGULAR),
+ list("ME3 Hand Welder", floor(scale * 2), /obj/item/tool/weldingtool/simple, VENDOR_ITEM_REGULAR),
+ list("Screwdriver", floor(scale * 4), /obj/item/tool/screwdriver, VENDOR_ITEM_REGULAR),
+ list("Wirecutters", floor(scale * 4), /obj/item/tool/wirecutters, VENDOR_ITEM_REGULAR),
+ list("Wrench", floor(scale * 4), /obj/item/tool/wrench, VENDOR_ITEM_REGULAR)
)
/obj/structure/machinery/cm_vending/sorted/tech/comtech_tools
@@ -52,19 +52,19 @@
/obj/structure/machinery/cm_vending/sorted/tech/comtech_tools/populate_product_list(scale)
listed_products = list(
list("EQUIPMENT", -1, null, null),
- list("Utility Tool Belt", round(scale * 4), /obj/item/storage/belt/utility, VENDOR_ITEM_REGULAR),
- list("Cable Coil", round(scale * 4), /obj/item/stack/cable_coil/random, VENDOR_ITEM_REGULAR),
- list("Welding Goggles", round(scale * 2), /obj/item/clothing/glasses/welding, VENDOR_ITEM_REGULAR),
- list("Engineer Kit", round(scale * 2), /obj/item/storage/toolkit/empty, VENDOR_ITEM_REGULAR),
+ list("Utility Tool Belt", floor(scale * 4), /obj/item/storage/belt/utility, VENDOR_ITEM_REGULAR),
+ list("Cable Coil", floor(scale * 4), /obj/item/stack/cable_coil/random, VENDOR_ITEM_REGULAR),
+ list("Welding Goggles", floor(scale * 2), /obj/item/clothing/glasses/welding, VENDOR_ITEM_REGULAR),
+ list("Engineer Kit", floor(scale * 2), /obj/item/storage/toolkit/empty, VENDOR_ITEM_REGULAR),
list("TOOLS", -1, null, null),
- list("Blowtorch", round(scale * 4), /obj/item/tool/weldingtool, VENDOR_ITEM_REGULAR),
- list("Crowbar", round(scale * 4), /obj/item/tool/crowbar, VENDOR_ITEM_REGULAR),
- list("Screwdriver", round(scale * 4), /obj/item/tool/screwdriver, VENDOR_ITEM_REGULAR),
- list("Wirecutters", round(scale * 4), /obj/item/tool/wirecutters, VENDOR_ITEM_REGULAR),
- list("Wrench", round(scale * 4), /obj/item/tool/wrench, VENDOR_ITEM_REGULAR),
- list("Multitool", round(scale * 4), /obj/item/device/multitool, VENDOR_ITEM_REGULAR),
- list("ME3 Hand Welder", round(scale * 2), /obj/item/tool/weldingtool/simple, VENDOR_ITEM_REGULAR),
+ list("Blowtorch", floor(scale * 4), /obj/item/tool/weldingtool, VENDOR_ITEM_REGULAR),
+ list("Crowbar", floor(scale * 4), /obj/item/tool/crowbar, VENDOR_ITEM_REGULAR),
+ list("Screwdriver", floor(scale * 4), /obj/item/tool/screwdriver, VENDOR_ITEM_REGULAR),
+ list("Wirecutters", floor(scale * 4), /obj/item/tool/wirecutters, VENDOR_ITEM_REGULAR),
+ list("Wrench", floor(scale * 4), /obj/item/tool/wrench, VENDOR_ITEM_REGULAR),
+ list("Multitool", floor(scale * 4), /obj/item/device/multitool, VENDOR_ITEM_REGULAR),
+ list("ME3 Hand Welder", floor(scale * 2), /obj/item/tool/weldingtool/simple, VENDOR_ITEM_REGULAR),
list("UTILITY", -1, null, null),
list("Sentry Gun Network Laptop", 4, /obj/item/device/sentry_computer, VENDOR_ITEM_REGULAR),
@@ -110,16 +110,16 @@
/obj/structure/machinery/cm_vending/sorted/tech/electronics_storage/populate_product_list(scale)
listed_products = list(
list("TOOLS", -1, null, null),
- list("Cable Coil", round(scale * 3), /obj/item/stack/cable_coil/random, VENDOR_ITEM_REGULAR),
- list("Multitool", round(scale * 2), /obj/item/device/multitool, VENDOR_ITEM_REGULAR),
+ list("Cable Coil", floor(scale * 3), /obj/item/stack/cable_coil/random, VENDOR_ITEM_REGULAR),
+ list("Multitool", floor(scale * 2), /obj/item/device/multitool, VENDOR_ITEM_REGULAR),
list("CIRCUITBOARDS", -1, null, null),
- list("Airlock Circuit Board", round(scale * 4), /obj/item/circuitboard/airlock, VENDOR_ITEM_REGULAR),
- list("APC Circuit Board", round(scale * 4), /obj/item/circuitboard/apc, VENDOR_ITEM_REGULAR),
+ list("Airlock Circuit Board", floor(scale * 4), /obj/item/circuitboard/airlock, VENDOR_ITEM_REGULAR),
+ list("APC Circuit Board", floor(scale * 4), /obj/item/circuitboard/apc, VENDOR_ITEM_REGULAR),
list("BATTERIES", -1, null, null),
- list("High-Capacity Power Cell", round(scale * 3), /obj/item/cell/high, VENDOR_ITEM_REGULAR),
- list("Low-Capacity Power Cell", round(scale * 7), /obj/item/cell, VENDOR_ITEM_REGULAR),
+ list("High-Capacity Power Cell", floor(scale * 3), /obj/item/cell/high, VENDOR_ITEM_REGULAR),
+ list("Low-Capacity Power Cell", floor(scale * 7), /obj/item/cell, VENDOR_ITEM_REGULAR),
)
/obj/structure/machinery/cm_vending/sorted/tech/electronics_storage/antag
@@ -134,22 +134,22 @@
/obj/structure/machinery/cm_vending/sorted/tech/comp_storage/populate_product_list(scale)
listed_products = list(
list("ASSEMBLY COMPONENTS", -1, null, null),
- list("Igniter", round(scale * 8), /obj/item/device/assembly/igniter, VENDOR_ITEM_REGULAR),
- list("Timer", round(scale * 4), /obj/item/device/assembly/timer, VENDOR_ITEM_REGULAR),
- list("Proximity Sensor", round(scale * 4), /obj/item/device/assembly/prox_sensor, VENDOR_ITEM_REGULAR),
- list("Signaller", round(scale * 4), /obj/item/device/assembly/signaller, VENDOR_ITEM_REGULAR),
+ list("Igniter", floor(scale * 8), /obj/item/device/assembly/igniter, VENDOR_ITEM_REGULAR),
+ list("Timer", floor(scale * 4), /obj/item/device/assembly/timer, VENDOR_ITEM_REGULAR),
+ list("Proximity Sensor", floor(scale * 4), /obj/item/device/assembly/prox_sensor, VENDOR_ITEM_REGULAR),
+ list("Signaller", floor(scale * 4), /obj/item/device/assembly/signaller, VENDOR_ITEM_REGULAR),
list("CONTAINERS", -1, null, null),
- list("Bucket", round(scale * 6), /obj/item/reagent_container/glass/bucket, VENDOR_ITEM_REGULAR),
- list("Mop Bucket", round(scale * 2), /obj/item/reagent_container/glass/bucket/mopbucket, VENDOR_ITEM_REGULAR),
+ list("Bucket", floor(scale * 6), /obj/item/reagent_container/glass/bucket, VENDOR_ITEM_REGULAR),
+ list("Mop Bucket", floor(scale * 2), /obj/item/reagent_container/glass/bucket/mopbucket, VENDOR_ITEM_REGULAR),
list("STOCK PARTS", -1, null, null),
- list("Console Screen", round(scale * 4), /obj/item/stock_parts/console_screen, VENDOR_ITEM_REGULAR),
- list("Matter Bin", round(scale * 4), /obj/item/stock_parts/matter_bin, VENDOR_ITEM_REGULAR),
- list("Micro Laser", round(scale * 4), /obj/item/stock_parts/micro_laser , VENDOR_ITEM_REGULAR),
- list("Micro Manipulator", round(scale * 4), /obj/item/stock_parts/manipulator, VENDOR_ITEM_REGULAR),
- list("Scanning Module", round(scale * 4), /obj/item/stock_parts/scanning_module, VENDOR_ITEM_REGULAR),
- list("Capacitor", round(scale * 3), /obj/item/stock_parts/capacitor, VENDOR_ITEM_REGULAR)
+ list("Console Screen", floor(scale * 4), /obj/item/stock_parts/console_screen, VENDOR_ITEM_REGULAR),
+ list("Matter Bin", floor(scale * 4), /obj/item/stock_parts/matter_bin, VENDOR_ITEM_REGULAR),
+ list("Micro Laser", floor(scale * 4), /obj/item/stock_parts/micro_laser , VENDOR_ITEM_REGULAR),
+ list("Micro Manipulator", floor(scale * 4), /obj/item/stock_parts/manipulator, VENDOR_ITEM_REGULAR),
+ list("Scanning Module", floor(scale * 4), /obj/item/stock_parts/scanning_module, VENDOR_ITEM_REGULAR),
+ list("Capacitor", floor(scale * 3), /obj/item/stock_parts/capacitor, VENDOR_ITEM_REGULAR)
)
/obj/structure/machinery/cm_vending/sorted/tech/comp_storage/antag
@@ -172,11 +172,11 @@
list("Scientist's Jumpsuit", 2, /obj/item/clothing/under/rank/scientist, VENDOR_ITEM_REGULAR),
list("ASSEMBLY COMPONENTS", -1, null, null),
- list("Igniter", round(scale * 8), /obj/item/device/assembly/igniter, VENDOR_ITEM_REGULAR),
- list("Proximity Sensor", round(scale * 4), /obj/item/device/assembly/prox_sensor, VENDOR_ITEM_REGULAR),
- list("Signaller", round(scale * 4), /obj/item/device/assembly/signaller, VENDOR_ITEM_REGULAR),
- list("Tank Transfer Valve", round(scale * 4), /obj/item/device/transfer_valve, VENDOR_ITEM_REGULAR),
- list("Timer", round(scale * 4), /obj/item/device/assembly/timer, VENDOR_ITEM_REGULAR),
+ list("Igniter", floor(scale * 8), /obj/item/device/assembly/igniter, VENDOR_ITEM_REGULAR),
+ list("Proximity Sensor", floor(scale * 4), /obj/item/device/assembly/prox_sensor, VENDOR_ITEM_REGULAR),
+ list("Signaller", floor(scale * 4), /obj/item/device/assembly/signaller, VENDOR_ITEM_REGULAR),
+ list("Tank Transfer Valve", floor(scale * 4), /obj/item/device/transfer_valve, VENDOR_ITEM_REGULAR),
+ list("Timer", floor(scale * 4), /obj/item/device/assembly/timer, VENDOR_ITEM_REGULAR),
)
/obj/structure/machinery/cm_vending/sorted/tech/robotics
diff --git a/code/game/machinery/vending/vendor_types/medical.dm b/code/game/machinery/vending/vendor_types/medical.dm
index a867c9b61f29..84528b44fa18 100644
--- a/code/game/machinery/vending/vendor_types/medical.dm
+++ b/code/game/machinery/vending/vendor_types/medical.dm
@@ -225,51 +225,51 @@
/obj/structure/machinery/cm_vending/sorted/medical/populate_product_list(scale)
listed_products = list(
list("FIELD SUPPLIES", -1, null, null),
- list("Burn Kit", round(scale * 6), /obj/item/stack/medical/advanced/ointment, VENDOR_ITEM_REGULAR),
- list("Trauma Kit", round(scale * 6), /obj/item/stack/medical/advanced/bruise_pack, VENDOR_ITEM_REGULAR),
- list("Ointment", round(scale * 6), /obj/item/stack/medical/ointment, VENDOR_ITEM_REGULAR),
- list("Roll of Gauze", round(scale * 6), /obj/item/stack/medical/bruise_pack, VENDOR_ITEM_REGULAR),
- list("Splints", round(scale * 6), /obj/item/stack/medical/splint, VENDOR_ITEM_REGULAR),
+ list("Burn Kit", floor(scale * 6), /obj/item/stack/medical/advanced/ointment, VENDOR_ITEM_REGULAR),
+ list("Trauma Kit", floor(scale * 6), /obj/item/stack/medical/advanced/bruise_pack, VENDOR_ITEM_REGULAR),
+ list("Ointment", floor(scale * 6), /obj/item/stack/medical/ointment, VENDOR_ITEM_REGULAR),
+ list("Roll of Gauze", floor(scale * 6), /obj/item/stack/medical/bruise_pack, VENDOR_ITEM_REGULAR),
+ list("Splints", floor(scale * 6), /obj/item/stack/medical/splint, VENDOR_ITEM_REGULAR),
list("AUTOINJECTORS", -1, null, null),
- list("Autoinjector (Bicaridine)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/bicaridine, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Dexalin+)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/dexalinp, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Epinephrine)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/adrenaline, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Inaprovaline)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/inaprovaline, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Kelotane)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/kelotane, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Oxycodone)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/oxycodone, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Tramadol)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tramadol, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Tricord)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tricord, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Bicaridine)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/bicaridine, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Dexalin+)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/dexalinp, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Epinephrine)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/adrenaline, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Inaprovaline)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/inaprovaline, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Kelotane)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/kelotane, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Oxycodone)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/oxycodone, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Tramadol)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tramadol, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Tricord)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tricord, VENDOR_ITEM_REGULAR),
list("LIQUID BOTTLES", -1, null, null),
- list("Bottle (Bicaridine)", round(scale * 4), /obj/item/reagent_container/glass/bottle/bicaridine, VENDOR_ITEM_REGULAR),
- list("Bottle (Dylovene)", round(scale * 4), /obj/item/reagent_container/glass/bottle/antitoxin, VENDOR_ITEM_REGULAR),
- list("Bottle (Dexalin)", round(scale * 4), /obj/item/reagent_container/glass/bottle/dexalin, VENDOR_ITEM_REGULAR),
- list("Bottle (Inaprovaline)", round(scale * 4), /obj/item/reagent_container/glass/bottle/inaprovaline, VENDOR_ITEM_REGULAR),
- list("Bottle (Kelotane)", round(scale * 4), /obj/item/reagent_container/glass/bottle/kelotane, VENDOR_ITEM_REGULAR),
- list("Bottle (Oxycodone)", round(scale * 4), /obj/item/reagent_container/glass/bottle/oxycodone, VENDOR_ITEM_REGULAR),
- list("Bottle (Peridaxon)", round(scale * 4), /obj/item/reagent_container/glass/bottle/peridaxon, VENDOR_ITEM_REGULAR),
- list("Bottle (Tramadol)", round(scale * 4), /obj/item/reagent_container/glass/bottle/tramadol, VENDOR_ITEM_REGULAR),
+ list("Bottle (Bicaridine)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/bicaridine, VENDOR_ITEM_REGULAR),
+ list("Bottle (Dylovene)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/antitoxin, VENDOR_ITEM_REGULAR),
+ list("Bottle (Dexalin)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/dexalin, VENDOR_ITEM_REGULAR),
+ list("Bottle (Inaprovaline)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/inaprovaline, VENDOR_ITEM_REGULAR),
+ list("Bottle (Kelotane)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/kelotane, VENDOR_ITEM_REGULAR),
+ list("Bottle (Oxycodone)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/oxycodone, VENDOR_ITEM_REGULAR),
+ list("Bottle (Peridaxon)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/peridaxon, VENDOR_ITEM_REGULAR),
+ list("Bottle (Tramadol)", floor(scale * 4), /obj/item/reagent_container/glass/bottle/tramadol, VENDOR_ITEM_REGULAR),
list("PILL BOTTLES", -1, null, null),
- list("Pill Bottle (Bicaridine)", round(scale * 2), /obj/item/storage/pill_bottle/bicaridine, VENDOR_ITEM_REGULAR),
- list("Pill Bottle (Dexalin)", round(scale * 2), /obj/item/storage/pill_bottle/dexalin, VENDOR_ITEM_REGULAR),
- list("Pill Bottle (Dylovene)", round(scale * 2), /obj/item/storage/pill_bottle/antitox, VENDOR_ITEM_REGULAR),
- list("Pill Bottle (Inaprovaline)", round(scale * 2), /obj/item/storage/pill_bottle/inaprovaline, VENDOR_ITEM_REGULAR),
- list("Pill Bottle (Kelotane)", round(scale * 2), /obj/item/storage/pill_bottle/kelotane, VENDOR_ITEM_REGULAR),
- list("Pill Bottle (Peridaxon)", round(scale * 1), /obj/item/storage/pill_bottle/peridaxon, VENDOR_ITEM_REGULAR),
- list("Pill Bottle (Tramadol)", round(scale * 2), /obj/item/storage/pill_bottle/tramadol, VENDOR_ITEM_REGULAR),
+ list("Pill Bottle (Bicaridine)", floor(scale * 2), /obj/item/storage/pill_bottle/bicaridine, VENDOR_ITEM_REGULAR),
+ list("Pill Bottle (Dexalin)", floor(scale * 2), /obj/item/storage/pill_bottle/dexalin, VENDOR_ITEM_REGULAR),
+ list("Pill Bottle (Dylovene)", floor(scale * 2), /obj/item/storage/pill_bottle/antitox, VENDOR_ITEM_REGULAR),
+ list("Pill Bottle (Inaprovaline)", floor(scale * 2), /obj/item/storage/pill_bottle/inaprovaline, VENDOR_ITEM_REGULAR),
+ list("Pill Bottle (Kelotane)", floor(scale * 2), /obj/item/storage/pill_bottle/kelotane, VENDOR_ITEM_REGULAR),
+ list("Pill Bottle (Peridaxon)", floor(scale * 1), /obj/item/storage/pill_bottle/peridaxon, VENDOR_ITEM_REGULAR),
+ list("Pill Bottle (Tramadol)", floor(scale * 2), /obj/item/storage/pill_bottle/tramadol, VENDOR_ITEM_REGULAR),
list("MEDICAL UTILITIES", -1, null, null),
- list("Emergency Defibrillator", round(scale * 3), /obj/item/device/defibrillator, VENDOR_ITEM_REGULAR),
- list("Surgical Line", round(scale * 2), /obj/item/tool/surgery/surgical_line, VENDOR_ITEM_REGULAR),
- list("Synth-Graft", round(scale * 2), /obj/item/tool/surgery/synthgraft, VENDOR_ITEM_REGULAR),
- list("Hypospray", round(scale * 2), /obj/item/reagent_container/hypospray/tricordrazine, VENDOR_ITEM_REGULAR),
- list("Health Analyzer", round(scale * 5), /obj/item/device/healthanalyzer, VENDOR_ITEM_REGULAR),
- list("M276 Pattern Medical Storage Rig", round(scale * 2), /obj/item/storage/belt/medical, VENDOR_ITEM_REGULAR),
- list("Medical HUD Glasses", round(scale * 3), /obj/item/clothing/glasses/hud/health, VENDOR_ITEM_REGULAR),
- list("Stasis Bag", round(scale * 2), /obj/item/bodybag/cryobag, VENDOR_ITEM_REGULAR),
- list("Syringe", round(scale * 7), /obj/item/reagent_container/syringe, VENDOR_ITEM_REGULAR)
+ list("Emergency Defibrillator", floor(scale * 3), /obj/item/device/defibrillator, VENDOR_ITEM_REGULAR),
+ list("Surgical Line", floor(scale * 2), /obj/item/tool/surgery/surgical_line, VENDOR_ITEM_REGULAR),
+ list("Synth-Graft", floor(scale * 2), /obj/item/tool/surgery/synthgraft, VENDOR_ITEM_REGULAR),
+ list("Hypospray", floor(scale * 2), /obj/item/reagent_container/hypospray/tricordrazine, VENDOR_ITEM_REGULAR),
+ list("Health Analyzer", floor(scale * 5), /obj/item/device/healthanalyzer, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern Medical Storage Rig", floor(scale * 2), /obj/item/storage/belt/medical, VENDOR_ITEM_REGULAR),
+ list("Medical HUD Glasses", floor(scale * 3), /obj/item/clothing/glasses/hud/health, VENDOR_ITEM_REGULAR),
+ list("Stasis Bag", floor(scale * 2), /obj/item/bodybag/cryobag, VENDOR_ITEM_REGULAR),
+ list("Syringe", floor(scale * 7), /obj/item/reagent_container/syringe, VENDOR_ITEM_REGULAR)
)
/obj/structure/machinery/cm_vending/sorted/medical/chemistry
@@ -294,21 +294,21 @@
/obj/structure/machinery/cm_vending/sorted/medical/chemistry/populate_product_list(scale)
listed_products = list(
list("LIQUID BOTTLES", -1, null, null),
- list("Bicaridine Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/bicaridine, VENDOR_ITEM_REGULAR),
- list("Dylovene Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/antitoxin, VENDOR_ITEM_REGULAR),
- list("Dexalin Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/dexalin, VENDOR_ITEM_REGULAR),
- list("Inaprovaline Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/inaprovaline, VENDOR_ITEM_REGULAR),
- list("Kelotane Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/kelotane, VENDOR_ITEM_REGULAR),
- list("Oxycodone Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/oxycodone, VENDOR_ITEM_REGULAR),
- list("Peridaxon Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/peridaxon, VENDOR_ITEM_REGULAR),
- list("Tramadol Bottle", round(scale * 5), /obj/item/reagent_container/glass/bottle/tramadol, VENDOR_ITEM_REGULAR),
+ list("Bicaridine Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/bicaridine, VENDOR_ITEM_REGULAR),
+ list("Dylovene Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/antitoxin, VENDOR_ITEM_REGULAR),
+ list("Dexalin Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/dexalin, VENDOR_ITEM_REGULAR),
+ list("Inaprovaline Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/inaprovaline, VENDOR_ITEM_REGULAR),
+ list("Kelotane Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/kelotane, VENDOR_ITEM_REGULAR),
+ list("Oxycodone Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/oxycodone, VENDOR_ITEM_REGULAR),
+ list("Peridaxon Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/peridaxon, VENDOR_ITEM_REGULAR),
+ list("Tramadol Bottle", floor(scale * 5), /obj/item/reagent_container/glass/bottle/tramadol, VENDOR_ITEM_REGULAR),
list("MISCELLANEOUS", -1, null, null),
- list("Beaker (60 Units)", round(scale * 3), /obj/item/reagent_container/glass/beaker, VENDOR_ITEM_REGULAR),
- list("Beaker, Large (120 Units)", round(scale * 3), /obj/item/reagent_container/glass/beaker/large, VENDOR_ITEM_REGULAR),
- list("Box of Pill Bottles", round(scale * 2), /obj/item/storage/box/pillbottles, VENDOR_ITEM_REGULAR),
- list("Dropper", round(scale * 3), /obj/item/reagent_container/dropper, VENDOR_ITEM_REGULAR),
- list("Syringe", round(scale * 7), /obj/item/reagent_container/syringe, VENDOR_ITEM_REGULAR)
+ list("Beaker (60 Units)", floor(scale * 3), /obj/item/reagent_container/glass/beaker, VENDOR_ITEM_REGULAR),
+ list("Beaker, Large (120 Units)", floor(scale * 3), /obj/item/reagent_container/glass/beaker/large, VENDOR_ITEM_REGULAR),
+ list("Box of Pill Bottles", floor(scale * 2), /obj/item/storage/box/pillbottles, VENDOR_ITEM_REGULAR),
+ list("Dropper", floor(scale * 3), /obj/item/reagent_container/dropper, VENDOR_ITEM_REGULAR),
+ list("Syringe", floor(scale * 7), /obj/item/reagent_container/syringe, VENDOR_ITEM_REGULAR)
)
/obj/structure/machinery/cm_vending/sorted/medical/no_access
@@ -349,17 +349,17 @@
/obj/structure/machinery/cm_vending/sorted/medical/marinemed/populate_product_list(scale)
listed_products = list(
list("AUTOINJECTORS", -1, null, null),
- list("First-Aid Autoinjector", round(scale * 5), /obj/item/reagent_container/hypospray/autoinjector/skillless, VENDOR_ITEM_REGULAR),
- list("Pain-Stop Autoinjector", round(scale * 5), /obj/item/reagent_container/hypospray/autoinjector/skillless/tramadol, VENDOR_ITEM_REGULAR),
+ list("First-Aid Autoinjector", floor(scale * 5), /obj/item/reagent_container/hypospray/autoinjector/skillless, VENDOR_ITEM_REGULAR),
+ list("Pain-Stop Autoinjector", floor(scale * 5), /obj/item/reagent_container/hypospray/autoinjector/skillless/tramadol, VENDOR_ITEM_REGULAR),
list("DEVICES", -1, null, null),
- list("Health Analyzer", round(scale * 3), /obj/item/device/healthanalyzer, VENDOR_ITEM_REGULAR),
+ list("Health Analyzer", floor(scale * 3), /obj/item/device/healthanalyzer, VENDOR_ITEM_REGULAR),
list("FIELD SUPPLIES", -1, null, null),
list("Fire Extinguisher (portable)", 5, /obj/item/tool/extinguisher/mini, VENDOR_ITEM_REGULAR),
- list("Ointment", round(scale * 7), /obj/item/stack/medical/ointment, VENDOR_ITEM_REGULAR),
- list("Roll of Gauze", round(scale * 7), /obj/item/stack/medical/bruise_pack, VENDOR_ITEM_REGULAR),
- list("Splints", round(scale * 7), /obj/item/stack/medical/splint, VENDOR_ITEM_REGULAR)
+ list("Ointment", floor(scale * 7), /obj/item/stack/medical/ointment, VENDOR_ITEM_REGULAR),
+ list("Roll of Gauze", floor(scale * 7), /obj/item/stack/medical/bruise_pack, VENDOR_ITEM_REGULAR),
+ list("Splints", floor(scale * 7), /obj/item/stack/medical/splint, VENDOR_ITEM_REGULAR)
)
/obj/structure/machinery/cm_vending/sorted/medical/marinemed/antag
diff --git a/code/game/machinery/vending/vendor_types/requisitions.dm b/code/game/machinery/vending/vendor_types/requisitions.dm
index 29199ed741fb..f76b86228c61 100644
--- a/code/game/machinery/vending/vendor_types/requisitions.dm
+++ b/code/game/machinery/vending/vendor_types/requisitions.dm
@@ -19,126 +19,126 @@
/obj/structure/machinery/cm_vending/sorted/cargo_guns/populate_product_list(scale)
listed_products = list(
list("PRIMARY FIREARMS", -1, null, null),
- list("M37A2 Pump Shotgun", round(scale * 30), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
- list("M39 Submachinegun", round(scale * 60), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
- list("M41A Pulse Rifle MK2", round(scale * 60), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_REGULAR),
- list("M4RA Battle Rifle", round(scale * 20), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M37A2 Pump Shotgun", floor(scale * 30), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
+ list("M39 Submachinegun", floor(scale * 60), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M41A Pulse Rifle MK2", floor(scale * 60), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_REGULAR),
+ list("M4RA Battle Rifle", floor(scale * 20), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
list("SIDEARMS", -1, null, null),
- list("88 Mod 4 Combat Pistol", round(scale * 50), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M44 Combat Revolver", round(scale * 50), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
- list("M4A3 Service Pistol", round(scale * 50), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
- list("M82F Flare Gun", round(scale * 20), /obj/item/weapon/gun/flare, VENDOR_ITEM_REGULAR),
+ list("88 Mod 4 Combat Pistol", floor(scale * 50), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M44 Combat Revolver", floor(scale * 50), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
+ list("M4A3 Service Pistol", floor(scale * 50), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
+ list("M82F Flare Gun", floor(scale * 20), /obj/item/weapon/gun/flare, VENDOR_ITEM_REGULAR),
list("RESTRICTED FIREARMS", -1, null, null),
- list("VP78 Pistol", round(scale * 4), /obj/item/storage/box/guncase/vp78, VENDOR_ITEM_REGULAR),
- list("SU-6 Smart Pistol", round(scale * 3), /obj/item/storage/box/guncase/smartpistol, VENDOR_ITEM_REGULAR),
- list("MOU-53 Shotgun", round(scale * 2), /obj/item/storage/box/guncase/mou53, VENDOR_ITEM_REGULAR),
- list("XM88 Heavy Rifle", round(scale * 3), /obj/item/storage/box/guncase/xm88, VENDOR_ITEM_REGULAR),
+ list("VP78 Pistol", floor(scale * 4), /obj/item/storage/box/guncase/vp78, VENDOR_ITEM_REGULAR),
+ list("SU-6 Smart Pistol", floor(scale * 3), /obj/item/storage/box/guncase/smartpistol, VENDOR_ITEM_REGULAR),
+ list("MOU-53 Shotgun", floor(scale * 2), /obj/item/storage/box/guncase/mou53, VENDOR_ITEM_REGULAR),
+ list("XM88 Heavy Rifle", floor(scale * 3), /obj/item/storage/box/guncase/xm88, VENDOR_ITEM_REGULAR),
list("M41AE2 Heavy Pulse Rifle", 2.5, /obj/item/storage/box/guncase/lmg, VENDOR_ITEM_REGULAR),
- list("M41A Pulse Rifle MK1", round(scale * 3), /obj/item/storage/box/guncase/m41aMK1, VENDOR_ITEM_REGULAR),
- list("M56D Heavy Machine Gun", round(scale * 2), /obj/item/storage/box/guncase/m56d, VENDOR_ITEM_REGULAR),
- list("M2C Heavy Machine Gun", round(scale * 2), /obj/item/storage/box/guncase/m2c, VENDOR_ITEM_REGULAR),
- list("M240 Incinerator Unit", round(scale * 2), /obj/item/storage/box/guncase/flamer, VENDOR_ITEM_REGULAR),
- list("M79 Grenade Launcher", round(scale * 3), /obj/item/storage/box/guncase/m79, VENDOR_ITEM_REGULAR),
- list("XM51 Breaching Scattergun", round(scale * 3), /obj/item/storage/box/guncase/xm51, VENDOR_ITEM_REGULAR),
+ list("M41A Pulse Rifle MK1", floor(scale * 3), /obj/item/storage/box/guncase/m41aMK1, VENDOR_ITEM_REGULAR),
+ list("M56D Heavy Machine Gun", floor(scale * 2), /obj/item/storage/box/guncase/m56d, VENDOR_ITEM_REGULAR),
+ list("M2C Heavy Machine Gun", floor(scale * 2), /obj/item/storage/box/guncase/m2c, VENDOR_ITEM_REGULAR),
+ list("M240 Incinerator Unit", floor(scale * 2), /obj/item/storage/box/guncase/flamer, VENDOR_ITEM_REGULAR),
+ list("M79 Grenade Launcher", floor(scale * 3), /obj/item/storage/box/guncase/m79, VENDOR_ITEM_REGULAR),
+ list("XM51 Breaching Scattergun", floor(scale * 3), /obj/item/storage/box/guncase/xm51, VENDOR_ITEM_REGULAR),
list("EXPLOSIVES", -1, null, null),
- list("M15 Fragmentation Grenade", round(scale * 2), /obj/item/explosive/grenade/high_explosive/m15, VENDOR_ITEM_REGULAR),
- list("M20 Claymore Anti-Personnel Mine", round(scale * 4), /obj/item/explosive/mine, VENDOR_ITEM_REGULAR),
- list("M40 HEDP Grenade", round(scale * 25), /obj/item/explosive/grenade/high_explosive, VENDOR_ITEM_REGULAR),
- list("M40 HIDP Incendiary Grenade", round(scale * 4), /obj/item/explosive/grenade/incendiary, VENDOR_ITEM_REGULAR),
- list("M40 HPDP White Phosphorus Smoke Grenade", round(scale * 4), /obj/item/explosive/grenade/phosphorus, VENDOR_ITEM_REGULAR),
- list("M40 HSDP Smoke Grenade", round(scale * 5), /obj/item/explosive/grenade/smokebomb, VENDOR_ITEM_REGULAR),
- list("M74 AGM-Frag Airburst Grenade", round(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst, VENDOR_ITEM_REGULAR),
- list("M74 AGM-Incendiary Airburst Grenade", round(scale * 4), /obj/item/explosive/grenade/incendiary/airburst, VENDOR_ITEM_REGULAR),
- list("M74 AGM-Smoke Airburst Grenade", round(scale * 4), /obj/item/explosive/grenade/smokebomb/airburst, VENDOR_ITEM_REGULAR),
- list("M74 AGM-Star Shell", round(scale * 2), /obj/item/explosive/grenade/high_explosive/airburst/starshell, VENDOR_ITEM_REGULAR),
- list("M74 AGM-Hornet Shell", round(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst/hornet_shell, VENDOR_ITEM_REGULAR),
- list("M40 HIRR Baton Slug", round(scale * 8), /obj/item/explosive/grenade/slug/baton, VENDOR_ITEM_REGULAR),
- list("M40 MFHS Metal Foam Grenade", round(scale * 6), /obj/item/explosive/grenade/metal_foam, VENDOR_ITEM_REGULAR),
- list("Plastic Explosives", round(scale * 3), /obj/item/explosive/plastic, VENDOR_ITEM_REGULAR),
- list("Breaching Charge", round(scale * 2), /obj/item/explosive/plastic/breaching_charge, VENDOR_ITEM_REGULAR),
+ list("M15 Fragmentation Grenade", floor(scale * 2), /obj/item/explosive/grenade/high_explosive/m15, VENDOR_ITEM_REGULAR),
+ list("M20 Claymore Anti-Personnel Mine", floor(scale * 4), /obj/item/explosive/mine, VENDOR_ITEM_REGULAR),
+ list("M40 HEDP Grenade", floor(scale * 25), /obj/item/explosive/grenade/high_explosive, VENDOR_ITEM_REGULAR),
+ list("M40 HIDP Incendiary Grenade", floor(scale * 4), /obj/item/explosive/grenade/incendiary, VENDOR_ITEM_REGULAR),
+ list("M40 HPDP White Phosphorus Smoke Grenade", floor(scale * 4), /obj/item/explosive/grenade/phosphorus, VENDOR_ITEM_REGULAR),
+ list("M40 HSDP Smoke Grenade", floor(scale * 5), /obj/item/explosive/grenade/smokebomb, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-Frag Airburst Grenade", floor(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-Incendiary Airburst Grenade", floor(scale * 4), /obj/item/explosive/grenade/incendiary/airburst, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-Smoke Airburst Grenade", floor(scale * 4), /obj/item/explosive/grenade/smokebomb/airburst, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-Star Shell", floor(scale * 2), /obj/item/explosive/grenade/high_explosive/airburst/starshell, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-Hornet Shell", floor(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst/hornet_shell, VENDOR_ITEM_REGULAR),
+ list("M40 HIRR Baton Slug", floor(scale * 8), /obj/item/explosive/grenade/slug/baton, VENDOR_ITEM_REGULAR),
+ list("M40 MFHS Metal Foam Grenade", floor(scale * 6), /obj/item/explosive/grenade/metal_foam, VENDOR_ITEM_REGULAR),
+ list("Plastic Explosives", floor(scale * 3), /obj/item/explosive/plastic, VENDOR_ITEM_REGULAR),
+ list("Breaching Charge", floor(scale * 2), /obj/item/explosive/plastic/breaching_charge, VENDOR_ITEM_REGULAR),
list("WEBBINGS", -1, null, null),
- list("Black Webbing Vest", round(scale * 2), /obj/item/clothing/accessory/storage/black_vest, VENDOR_ITEM_REGULAR),
- list("Brown Webbing Vest", round(scale * 2), /obj/item/clothing/accessory/storage/black_vest/brown_vest, VENDOR_ITEM_REGULAR),
- list("Shoulder Holster", round(scale * 1.5), /obj/item/clothing/accessory/storage/holster, VENDOR_ITEM_REGULAR),
- list("Webbing", round(scale * 5), /obj/item/clothing/accessory/storage/webbing, VENDOR_ITEM_REGULAR),
- list("Knife Webbing", round(scale * 1), /obj/item/clothing/accessory/storage/knifeharness, VENDOR_ITEM_REGULAR),
- list("Drop Pouch", round(scale * 2), /obj/item/clothing/accessory/storage/droppouch, VENDOR_ITEM_REGULAR),
+ list("Black Webbing Vest", floor(scale * 2), /obj/item/clothing/accessory/storage/black_vest, VENDOR_ITEM_REGULAR),
+ list("Brown Webbing Vest", floor(scale * 2), /obj/item/clothing/accessory/storage/black_vest/brown_vest, VENDOR_ITEM_REGULAR),
+ list("Shoulder Holster", floor(scale * 1.5), /obj/item/clothing/accessory/storage/holster, VENDOR_ITEM_REGULAR),
+ list("Webbing", floor(scale * 5), /obj/item/clothing/accessory/storage/webbing, VENDOR_ITEM_REGULAR),
+ list("Knife Webbing", floor(scale * 1), /obj/item/clothing/accessory/storage/knifeharness, VENDOR_ITEM_REGULAR),
+ list("Drop Pouch", floor(scale * 2), /obj/item/clothing/accessory/storage/droppouch, VENDOR_ITEM_REGULAR),
list("BACKPACKS", -1, null, null),
- list("Lightweight IMP Backpack", round(scale * 15), /obj/item/storage/backpack/marine, VENDOR_ITEM_REGULAR),
- list("Shotgun Scabbard", round(scale * 10), /obj/item/storage/large_holster/m37, VENDOR_ITEM_REGULAR),
- list("Pyrotechnician G4-1 Fueltank", round(scale * 2), /obj/item/storage/backpack/marine/engineerpack/flamethrower/kit, VENDOR_ITEM_REGULAR),
- list("Technician Welderpack", round(scale * 2), /obj/item/storage/backpack/marine/engineerpack, VENDOR_ITEM_REGULAR),
- list("Mortar Shell Backpack", round(scale * 1), /obj/item/storage/backpack/marine/mortarpack, VENDOR_ITEM_REGULAR),
- list("Technician Welder-Satchel", round(scale * 5), /obj/item/storage/backpack/marine/engineerpack/satchel, VENDOR_ITEM_REGULAR),
- list("IMP Ammo Rack", round(scale * 2), /obj/item/storage/backpack/marine/ammo_rack, VENDOR_ITEM_REGULAR),
- list("Radio Telephone Pack", round(scale * 2), /obj/item/storage/backpack/marine/satchel/rto, VENDOR_ITEM_REGULAR),
- list("Parachute", round(scale * 20), /obj/item/parachute, VENDOR_ITEM_REGULAR),
+ list("Lightweight IMP Backpack", floor(scale * 15), /obj/item/storage/backpack/marine, VENDOR_ITEM_REGULAR),
+ list("Shotgun Scabbard", floor(scale * 10), /obj/item/storage/large_holster/m37, VENDOR_ITEM_REGULAR),
+ list("Pyrotechnician G4-1 Fueltank", floor(scale * 2), /obj/item/storage/backpack/marine/engineerpack/flamethrower/kit, VENDOR_ITEM_REGULAR),
+ list("Technician Welderpack", floor(scale * 2), /obj/item/storage/backpack/marine/engineerpack, VENDOR_ITEM_REGULAR),
+ list("Mortar Shell Backpack", floor(scale * 1), /obj/item/storage/backpack/marine/mortarpack, VENDOR_ITEM_REGULAR),
+ list("Technician Welder-Satchel", floor(scale * 5), /obj/item/storage/backpack/marine/engineerpack/satchel, VENDOR_ITEM_REGULAR),
+ list("IMP Ammo Rack", floor(scale * 2), /obj/item/storage/backpack/marine/ammo_rack, VENDOR_ITEM_REGULAR),
+ list("Radio Telephone Pack", floor(scale * 2), /obj/item/storage/backpack/marine/satchel/rto, VENDOR_ITEM_REGULAR),
+ list("Parachute", floor(scale * 20), /obj/item/parachute, VENDOR_ITEM_REGULAR),
list("BELTS", -1, null, null),
- list("G8-A General Utility Pouch", round(scale * 2), /obj/item/storage/backpack/general_belt, VENDOR_ITEM_REGULAR),
- list("M276 Ammo Load Rig", round(scale * 15), /obj/item/storage/belt/marine, VENDOR_ITEM_REGULAR),
- list("M276 General Pistol Holster Rig", round(scale * 10), /obj/item/storage/belt/gun/m4a3, VENDOR_ITEM_REGULAR),
- list("M276 Knife Rig", round(scale * 5), /obj/item/storage/belt/knifepouch, VENDOR_ITEM_REGULAR),
- list("M276 M39 Holster Rig", round(scale * 5), /obj/item/storage/belt/gun/m39, VENDOR_ITEM_REGULAR),
- list("M276 M40 Grenade Rig", round(scale * 2), /obj/item/storage/belt/grenade, VENDOR_ITEM_REGULAR),
- list("M276 M44 Holster Rig", round(scale * 5), /obj/item/storage/belt/gun/m44, VENDOR_ITEM_REGULAR),
- list("M276 M82F Holster Rig", round(scale * 2), /obj/item/storage/belt/gun/flaregun, VENDOR_ITEM_REGULAR),
- list("M276 Shotgun Shell Loading Rig", round(scale * 10), /obj/item/storage/belt/shotgun, VENDOR_ITEM_REGULAR),
- list("M276 Mortar Operator Belt", round(scale * 2), /obj/item/storage/belt/gun/mortarbelt, VENDOR_ITEM_REGULAR),
+ list("G8-A General Utility Pouch", floor(scale * 2), /obj/item/storage/backpack/general_belt, VENDOR_ITEM_REGULAR),
+ list("M276 Ammo Load Rig", floor(scale * 15), /obj/item/storage/belt/marine, VENDOR_ITEM_REGULAR),
+ list("M276 General Pistol Holster Rig", floor(scale * 10), /obj/item/storage/belt/gun/m4a3, VENDOR_ITEM_REGULAR),
+ list("M276 Knife Rig", floor(scale * 5), /obj/item/storage/belt/knifepouch, VENDOR_ITEM_REGULAR),
+ list("M276 M39 Holster Rig", floor(scale * 5), /obj/item/storage/belt/gun/m39, VENDOR_ITEM_REGULAR),
+ list("M276 M40 Grenade Rig", floor(scale * 2), /obj/item/storage/belt/grenade, VENDOR_ITEM_REGULAR),
+ list("M276 M44 Holster Rig", floor(scale * 5), /obj/item/storage/belt/gun/m44, VENDOR_ITEM_REGULAR),
+ list("M276 M82F Holster Rig", floor(scale * 2), /obj/item/storage/belt/gun/flaregun, VENDOR_ITEM_REGULAR),
+ list("M276 Shotgun Shell Loading Rig", floor(scale * 10), /obj/item/storage/belt/shotgun, VENDOR_ITEM_REGULAR),
+ list("M276 Mortar Operator Belt", floor(scale * 2), /obj/item/storage/belt/gun/mortarbelt, VENDOR_ITEM_REGULAR),
list("POUCHES", -1, null, null),
- list("Autoinjector Pouch", round(scale * 1), /obj/item/storage/pouch/autoinjector, VENDOR_ITEM_REGULAR),
- list("Medical Kit Pouch", round(scale * 2), /obj/item/storage/pouch/medkit, VENDOR_ITEM_REGULAR),
- list("First-Aid Pouch (Full)", round(scale * 5), /obj/item/storage/pouch/firstaid/full, VENDOR_ITEM_REGULAR),
- list("First Responder Pouch", round(scale * 2), /obj/item/storage/pouch/first_responder, VENDOR_ITEM_REGULAR),
- list("Syringe Pouch", round(scale * 2), /obj/item/storage/pouch/syringe, VENDOR_ITEM_REGULAR),
- list("Tools Pouch (Full)", round(scale * 2), /obj/item/storage/pouch/tools/full, VENDOR_ITEM_REGULAR),
- list("Construction Pouch", round(scale * 2), /obj/item/storage/pouch/construction, VENDOR_ITEM_REGULAR),
- list("Electronics Pouch", round(scale * 2), /obj/item/storage/pouch/electronics, VENDOR_ITEM_REGULAR),
- list("Explosive Pouch", round(scale * 2), /obj/item/storage/pouch/explosive, VENDOR_ITEM_REGULAR),
- list("Flare Pouch (Full)", round(scale * 5), /obj/item/storage/pouch/flare/full, VENDOR_ITEM_REGULAR),
- list("Document Pouch", round(scale * 2), /obj/item/storage/pouch/document/small, VENDOR_ITEM_REGULAR),
- list("Sling Pouch", round(scale * 2), /obj/item/storage/pouch/sling, VENDOR_ITEM_REGULAR),
+ list("Autoinjector Pouch", floor(scale * 1), /obj/item/storage/pouch/autoinjector, VENDOR_ITEM_REGULAR),
+ list("Medical Kit Pouch", floor(scale * 2), /obj/item/storage/pouch/medkit, VENDOR_ITEM_REGULAR),
+ list("First-Aid Pouch (Full)", floor(scale * 5), /obj/item/storage/pouch/firstaid/full, VENDOR_ITEM_REGULAR),
+ list("First Responder Pouch", floor(scale * 2), /obj/item/storage/pouch/first_responder, VENDOR_ITEM_REGULAR),
+ list("Syringe Pouch", floor(scale * 2), /obj/item/storage/pouch/syringe, VENDOR_ITEM_REGULAR),
+ list("Tools Pouch (Full)", floor(scale * 2), /obj/item/storage/pouch/tools/full, VENDOR_ITEM_REGULAR),
+ list("Construction Pouch", floor(scale * 2), /obj/item/storage/pouch/construction, VENDOR_ITEM_REGULAR),
+ list("Electronics Pouch", floor(scale * 2), /obj/item/storage/pouch/electronics, VENDOR_ITEM_REGULAR),
+ list("Explosive Pouch", floor(scale * 2), /obj/item/storage/pouch/explosive, VENDOR_ITEM_REGULAR),
+ list("Flare Pouch (Full)", floor(scale * 5), /obj/item/storage/pouch/flare/full, VENDOR_ITEM_REGULAR),
+ list("Document Pouch", floor(scale * 2), /obj/item/storage/pouch/document/small, VENDOR_ITEM_REGULAR),
+ list("Sling Pouch", floor(scale * 2), /obj/item/storage/pouch/sling, VENDOR_ITEM_REGULAR),
list("Machete Pouch (Full)", 1, /obj/item/storage/pouch/machete/full, VENDOR_ITEM_REGULAR),
- list("Bayonet Pouch", round(scale * 2), /obj/item/storage/pouch/bayonet, VENDOR_ITEM_REGULAR),
- list("Medium General Pouch", round(scale * 2), /obj/item/storage/pouch/general/medium, VENDOR_ITEM_REGULAR),
- list("Magazine Pouch", round(scale * 5), /obj/item/storage/pouch/magazine, VENDOR_ITEM_REGULAR),
- list("Shotgun Shell Pouch", round(scale * 5), /obj/item/storage/pouch/shotgun, VENDOR_ITEM_REGULAR),
- list("Sidearm Pouch", round(scale * 5), /obj/item/storage/pouch/pistol, VENDOR_ITEM_REGULAR),
- list("Large Pistol Magazine Pouch", round(scale * 5), /obj/item/storage/pouch/magazine/pistol/large, VENDOR_ITEM_REGULAR),
- list("Fuel Tank Strap Pouch", round(scale * 4), /obj/item/storage/pouch/flamertank, VENDOR_ITEM_REGULAR),
- list("Large General Pouch", round(scale * 1), /obj/item/storage/pouch/general/large, VENDOR_ITEM_REGULAR),
- list("Large Magazine Pouch", round(scale * 1), /obj/item/storage/pouch/magazine/large, VENDOR_ITEM_REGULAR),
- list("Large Shotgun Shell Pouch", round(scale * 1), /obj/item/storage/pouch/shotgun/large, VENDOR_ITEM_REGULAR),
+ list("Bayonet Pouch", floor(scale * 2), /obj/item/storage/pouch/bayonet, VENDOR_ITEM_REGULAR),
+ list("Medium General Pouch", floor(scale * 2), /obj/item/storage/pouch/general/medium, VENDOR_ITEM_REGULAR),
+ list("Magazine Pouch", floor(scale * 5), /obj/item/storage/pouch/magazine, VENDOR_ITEM_REGULAR),
+ list("Shotgun Shell Pouch", floor(scale * 5), /obj/item/storage/pouch/shotgun, VENDOR_ITEM_REGULAR),
+ list("Sidearm Pouch", floor(scale * 5), /obj/item/storage/pouch/pistol, VENDOR_ITEM_REGULAR),
+ list("Large Pistol Magazine Pouch", floor(scale * 5), /obj/item/storage/pouch/magazine/pistol/large, VENDOR_ITEM_REGULAR),
+ list("Fuel Tank Strap Pouch", floor(scale * 4), /obj/item/storage/pouch/flamertank, VENDOR_ITEM_REGULAR),
+ list("Large General Pouch", floor(scale * 1), /obj/item/storage/pouch/general/large, VENDOR_ITEM_REGULAR),
+ list("Large Magazine Pouch", floor(scale * 1), /obj/item/storage/pouch/magazine/large, VENDOR_ITEM_REGULAR),
+ list("Large Shotgun Shell Pouch", floor(scale * 1), /obj/item/storage/pouch/shotgun/large, VENDOR_ITEM_REGULAR),
list("MISCELLANEOUS", -1, null, null),
- list("Combat Flashlight", round(scale * 5), /obj/item/device/flashlight/combat, VENDOR_ITEM_REGULAR),
- list("Entrenching Tool", round(scale * 4), /obj/item/tool/shovel/etool/folded, VENDOR_ITEM_REGULAR),
- list("Gas Mask", round(scale * 10), /obj/item/clothing/mask/gas, VENDOR_ITEM_REGULAR),
- list("M89-S Signal Flare Pack", round(scale * 2), /obj/item/storage/box/m94/signal, VENDOR_ITEM_REGULAR),
- list("M94 Marking Flare Pack", round(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR),
- list("Machete Scabbard (Full)", round(scale * 6), /obj/item/storage/large_holster/machete/full, VENDOR_ITEM_REGULAR),
- list("MB-6 Folding Barricades (x3)", round(scale * 3), /obj/item/stack/folding_barricade/three, VENDOR_ITEM_REGULAR),
- list("Motion Detector", round(scale * 4), /obj/item/device/motiondetector, VENDOR_ITEM_REGULAR),
- list("Data Detector", round(scale * 4), /obj/item/device/motiondetector/intel, VENDOR_ITEM_REGULAR),
- list("Binoculars", round(scale * 2), /obj/item/device/binoculars, VENDOR_ITEM_REGULAR),
- list("Rangefinder", round(scale * 1), /obj/item/device/binoculars/range, VENDOR_ITEM_REGULAR),
- list("Laser Designator", round(scale * 1), /obj/item/device/binoculars/range/designator, VENDOR_ITEM_REGULAR),
- list("Welding Goggles", round(scale * 3), /obj/item/clothing/glasses/welding, VENDOR_ITEM_REGULAR),
- list("Fire Extinguisher (Portable)", round(scale * 3), /obj/item/tool/extinguisher/mini, VENDOR_ITEM_REGULAR),
- list("High-Capacity Power Cell", round(scale * 1), /obj/item/cell/high, VENDOR_ITEM_REGULAR),
- list("Fulton Device Stack", round(scale * 1), /obj/item/stack/fulton, VENDOR_ITEM_REGULAR),
+ list("Combat Flashlight", floor(scale * 5), /obj/item/device/flashlight/combat, VENDOR_ITEM_REGULAR),
+ list("Entrenching Tool", floor(scale * 4), /obj/item/tool/shovel/etool/folded, VENDOR_ITEM_REGULAR),
+ list("Gas Mask", floor(scale * 10), /obj/item/clothing/mask/gas, VENDOR_ITEM_REGULAR),
+ list("M89-S Signal Flare Pack", floor(scale * 2), /obj/item/storage/box/m94/signal, VENDOR_ITEM_REGULAR),
+ list("M94 Marking Flare Pack", floor(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR),
+ list("Machete Scabbard (Full)", floor(scale * 6), /obj/item/storage/large_holster/machete/full, VENDOR_ITEM_REGULAR),
+ list("MB-6 Folding Barricades (x3)", floor(scale * 3), /obj/item/stack/folding_barricade/three, VENDOR_ITEM_REGULAR),
+ list("Motion Detector", floor(scale * 4), /obj/item/device/motiondetector, VENDOR_ITEM_REGULAR),
+ list("Data Detector", floor(scale * 4), /obj/item/device/motiondetector/intel, VENDOR_ITEM_REGULAR),
+ list("Binoculars", floor(scale * 2), /obj/item/device/binoculars, VENDOR_ITEM_REGULAR),
+ list("Rangefinder", floor(scale * 1), /obj/item/device/binoculars/range, VENDOR_ITEM_REGULAR),
+ list("Laser Designator", floor(scale * 1), /obj/item/device/binoculars/range/designator, VENDOR_ITEM_REGULAR),
+ list("Welding Goggles", floor(scale * 3), /obj/item/clothing/glasses/welding, VENDOR_ITEM_REGULAR),
+ list("Fire Extinguisher (Portable)", floor(scale * 3), /obj/item/tool/extinguisher/mini, VENDOR_ITEM_REGULAR),
+ list("High-Capacity Power Cell", floor(scale * 1), /obj/item/cell/high, VENDOR_ITEM_REGULAR),
+ list("Fulton Device Stack", floor(scale * 1), /obj/item/stack/fulton, VENDOR_ITEM_REGULAR),
list("Sentry Gun Network Laptop", 4, /obj/item/device/sentry_computer, VENDOR_ITEM_REGULAR),
- list("JTAC Pamphlet", round(scale * 1), /obj/item/pamphlet/skill/jtac, VENDOR_ITEM_REGULAR),
- list("Engineering Pamphlet", round(scale * 1), /obj/item/pamphlet/skill/engineer, VENDOR_ITEM_REGULAR),
+ list("JTAC Pamphlet", floor(scale * 1), /obj/item/pamphlet/skill/jtac, VENDOR_ITEM_REGULAR),
+ list("Engineering Pamphlet", floor(scale * 1), /obj/item/pamphlet/skill/engineer, VENDOR_ITEM_REGULAR),
list("Powerloader Certification", 0.75, /obj/item/pamphlet/skill/powerloader, VENDOR_ITEM_REGULAR),
- list("Spare PDT/L Battle Buddy Kit", round(scale * 4), /obj/item/storage/box/pdt_kit, VENDOR_ITEM_REGULAR),
- list("W-Y brand rechargeable mini-battery", round(scale * 3), /obj/item/cell/crap, VENDOR_ITEM_REGULAR)
+ list("Spare PDT/L Battle Buddy Kit", floor(scale * 4), /obj/item/storage/box/pdt_kit, VENDOR_ITEM_REGULAR),
+ list("W-Y brand rechargeable mini-battery", floor(scale * 3), /obj/item/cell/crap, VENDOR_ITEM_REGULAR)
)
/obj/structure/machinery/cm_vending/sorted/cargo_guns/stock(obj/item/item_to_stock, mob/user)
@@ -208,49 +208,49 @@
/obj/structure/machinery/cm_vending/sorted/cargo_ammo/populate_product_list(scale)
listed_products = list(
list("REGULAR AMMUNITION", -1, null, null),
- list("Box Of Buckshot Shells", round(scale * 40), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
- list("Box Of Flechette Shells", round(scale * 40), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
- list("Box Of Shotgun Slugs", round(scale * 40), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
- list("M4RA Magazine (10x24mm)", round(scale * 60), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
- list("M41A MK2 Magazine (10x24mm)", round(scale * 100), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
- list("M39 HV Magazine (10x20mm)", round(scale * 100), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
- list("M44 Speed Loader (.44)", round(scale * 80), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
- list("M4A3 Magazine (9mm)", round(scale * 100), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
+ list("Box Of Buckshot Shells", floor(scale * 40), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
+ list("Box Of Flechette Shells", floor(scale * 40), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
+ list("Box Of Shotgun Slugs", floor(scale * 40), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
+ list("M4RA Magazine (10x24mm)", floor(scale * 60), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M41A MK2 Magazine (10x24mm)", floor(scale * 100), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
+ list("M39 HV Magazine (10x20mm)", floor(scale * 100), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M44 Speed Loader (.44)", floor(scale * 80), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
+ list("M4A3 Magazine (9mm)", floor(scale * 100), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
list("ARMOR-PIERCING AMMUNITION", -1, null, null),
- list("88 Mod 4 AP Magazine (9mm)", round(scale * 50), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M4RA AP Magazine (10x24mm)", round(scale * 16), /obj/item/ammo_magazine/rifle/m4ra/ap, VENDOR_ITEM_REGULAR),
- list("M39 AP Magazine (10x20mm)", round(scale * 12), /obj/item/ammo_magazine/smg/m39/ap, VENDOR_ITEM_REGULAR),
- list("M41A MK2 AP Magazine (10x24mm)", round(scale * 10), /obj/item/ammo_magazine/rifle/ap, VENDOR_ITEM_REGULAR),
- list("M4A3 AP Magazine (9mm)", round(scale * 2), /obj/item/ammo_magazine/pistol/ap, VENDOR_ITEM_REGULAR),
+ list("88 Mod 4 AP Magazine (9mm)", floor(scale * 50), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M4RA AP Magazine (10x24mm)", floor(scale * 16), /obj/item/ammo_magazine/rifle/m4ra/ap, VENDOR_ITEM_REGULAR),
+ list("M39 AP Magazine (10x20mm)", floor(scale * 12), /obj/item/ammo_magazine/smg/m39/ap, VENDOR_ITEM_REGULAR),
+ list("M41A MK2 AP Magazine (10x24mm)", floor(scale * 10), /obj/item/ammo_magazine/rifle/ap, VENDOR_ITEM_REGULAR),
+ list("M4A3 AP Magazine (9mm)", floor(scale * 2), /obj/item/ammo_magazine/pistol/ap, VENDOR_ITEM_REGULAR),
list("EXTENDED AMMUNITION", -1, null, null),
- list("M39 Extended Magazine (10x20mm)", round(scale * 10), /obj/item/ammo_magazine/smg/m39/extended, VENDOR_ITEM_REGULAR),
- list("M41A MK2 Extended Magazine (10x24mm)", round(scale * 8), /obj/item/ammo_magazine/rifle/extended, VENDOR_ITEM_REGULAR),
+ list("M39 Extended Magazine (10x20mm)", floor(scale * 10), /obj/item/ammo_magazine/smg/m39/extended, VENDOR_ITEM_REGULAR),
+ list("M41A MK2 Extended Magazine (10x24mm)", floor(scale * 8), /obj/item/ammo_magazine/rifle/extended, VENDOR_ITEM_REGULAR),
list("SPECIAL AMMUNITION", -1, null, null),
list("M56 DV9 Battery", 4, /obj/item/smartgun_battery, VENDOR_ITEM_REGULAR),
list("M56 Smartgun Drum", 4, /obj/item/ammo_magazine/smartgun, VENDOR_ITEM_REGULAR),
list("M44 Heavy Speed Loader (.44)", 10, /obj/item/ammo_magazine/revolver/heavy, VENDOR_ITEM_REGULAR),
list("M44 Marksman Speed Loader (.44)", 6, /obj/item/ammo_magazine/revolver/marksman, VENDOR_ITEM_REGULAR),
- list("M4A3 HP Magazine (9mm)", round(scale * 2), /obj/item/ammo_magazine/pistol/hp, VENDOR_ITEM_REGULAR),
- list("M41AE2 Holo Target Rounds (10x24mm)", round(scale * 2), /obj/item/ammo_magazine/rifle/lmg/holo_target, VENDOR_ITEM_REGULAR),
+ list("M4A3 HP Magazine (9mm)", floor(scale * 2), /obj/item/ammo_magazine/pistol/hp, VENDOR_ITEM_REGULAR),
+ list("M41AE2 Holo Target Rounds (10x24mm)", floor(scale * 2), /obj/item/ammo_magazine/rifle/lmg/holo_target, VENDOR_ITEM_REGULAR),
list("RESTRICTED FIREARM AMMUNITION", -1, null, null),
list("VP78 Magazine", 11, /obj/item/ammo_magazine/pistol/vp78, VENDOR_ITEM_REGULAR),
list("SU-6 Smartpistol Magazine (.45)", 13, /obj/item/ammo_magazine/pistol/smart, VENDOR_ITEM_REGULAR),
- list("M240 Incinerator Tank", round(scale * 3), /obj/item/ammo_magazine/flamer_tank, VENDOR_ITEM_REGULAR),
- list("M41AE2 Box Magazine (10x24mm)", round(scale * 3), /obj/item/ammo_magazine/rifle/lmg, VENDOR_ITEM_REGULAR),
+ list("M240 Incinerator Tank", floor(scale * 3), /obj/item/ammo_magazine/flamer_tank, VENDOR_ITEM_REGULAR),
+ list("M41AE2 Box Magazine (10x24mm)", floor(scale * 3), /obj/item/ammo_magazine/rifle/lmg, VENDOR_ITEM_REGULAR),
list("M41A MK1 Magazine (10x24mm)", 4.5, /obj/item/ammo_magazine/rifle/m41aMK1, VENDOR_ITEM_REGULAR),
- list("M41A MK1 AP Magazine (10x24mm)", round(scale * 2), /obj/item/ammo_magazine/rifle/m41aMK1/ap, VENDOR_ITEM_REGULAR),
- list("M56D Drum Magazine", round(scale * 2), /obj/item/ammo_magazine/m56d, VENDOR_ITEM_REGULAR),
- list("M2C Box Magazine", round(scale * 2), /obj/item/ammo_magazine/m2c, VENDOR_ITEM_REGULAR),
- list("XM51 Magazine (16g)", round(scale * 3), /obj/item/ammo_magazine/rifle/xm51, VENDOR_ITEM_REGULAR),
+ list("M41A MK1 AP Magazine (10x24mm)", floor(scale * 2), /obj/item/ammo_magazine/rifle/m41aMK1/ap, VENDOR_ITEM_REGULAR),
+ list("M56D Drum Magazine", floor(scale * 2), /obj/item/ammo_magazine/m56d, VENDOR_ITEM_REGULAR),
+ list("M2C Box Magazine", floor(scale * 2), /obj/item/ammo_magazine/m2c, VENDOR_ITEM_REGULAR),
+ list("XM51 Magazine (16g)", floor(scale * 3), /obj/item/ammo_magazine/rifle/xm51, VENDOR_ITEM_REGULAR),
list("SHOTGUN SHELL BOXES", -1, null, null),
- list("Shotgun Shell Box (Buckshot x 100)", round(scale * 4), /obj/item/ammo_box/magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
- list("Shotgun Shell Box (Flechette x 100)", round(scale * 4), /obj/item/ammo_box/magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
- list("Shotgun Shell Box (Slugs x 100)", round(scale * 4), /obj/item/ammo_box/magazine/shotgun, VENDOR_ITEM_REGULAR),
+ list("Shotgun Shell Box (Buckshot x 100)", floor(scale * 4), /obj/item/ammo_box/magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
+ list("Shotgun Shell Box (Flechette x 100)", floor(scale * 4), /obj/item/ammo_box/magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
+ list("Shotgun Shell Box (Slugs x 100)", floor(scale * 4), /obj/item/ammo_box/magazine/shotgun, VENDOR_ITEM_REGULAR),
list("Shotgun Shell Box (16g) (Breaching x 120)", 1, /obj/item/ammo_box/magazine/shotgun/light/breaching, VENDOR_ITEM_REGULAR),
)
@@ -475,33 +475,33 @@
/obj/structure/machinery/cm_vending/sorted/cargo_guns/squad_prep/training/populate_product_list(scale)
listed_products = list(
list("PRIMARY FIREARMS", -1, null, null),
- list("M4RA Battle Rifle", round(scale * 10), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
- list("M37A2 Pump Shotgun", round(scale * 15), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
- list("M39 Submachine Gun", round(scale * 30), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
- list("M41A Pulse Rifle MK2", round(scale * 30), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_RECOMMENDED),
+ list("M4RA Battle Rifle", floor(scale * 10), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M37A2 Pump Shotgun", floor(scale * 15), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
+ list("M39 Submachine Gun", floor(scale * 30), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M41A Pulse Rifle MK2", floor(scale * 30), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_RECOMMENDED),
list("PRIMARY NONLETHAL AMMUNITION", -1, null, null),
- list("Box of Beanbag Shells (12g)", round(scale * 15), /obj/item/ammo_magazine/shotgun/beanbag, VENDOR_ITEM_REGULAR),
- list("M4RA Rubber Magazine (10x24mm)", round(scale * 15), /obj/item/ammo_magazine/rifle/m4ra/rubber, VENDOR_ITEM_REGULAR),
- list("M39 Rubber Magazine (10x20mm)", round(scale * 25), /obj/item/ammo_magazine/smg/m39/rubber, VENDOR_ITEM_REGULAR),
- list("M41A Rubber Magazine (10x24mm)", round(scale * 25), /obj/item/ammo_magazine/rifle/rubber, VENDOR_ITEM_REGULAR),
+ list("Box of Beanbag Shells (12g)", floor(scale * 15), /obj/item/ammo_magazine/shotgun/beanbag, VENDOR_ITEM_REGULAR),
+ list("M4RA Rubber Magazine (10x24mm)", floor(scale * 15), /obj/item/ammo_magazine/rifle/m4ra/rubber, VENDOR_ITEM_REGULAR),
+ list("M39 Rubber Magazine (10x20mm)", floor(scale * 25), /obj/item/ammo_magazine/smg/m39/rubber, VENDOR_ITEM_REGULAR),
+ list("M41A Rubber Magazine (10x24mm)", floor(scale * 25), /obj/item/ammo_magazine/rifle/rubber, VENDOR_ITEM_REGULAR),
list("SIDEARMS", -1, null, null),
- list("88 Mod 4 Combat Pistol", round(scale * 25), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M4A3 Service Pistol", round(scale * 25), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
+ list("88 Mod 4 Combat Pistol", floor(scale * 25), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M4A3 Service Pistol", floor(scale * 25), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
list("SIDEARM NONLETHAL AMMUNITION", -1, null, null),
- list("88M4 Rubber Magazine (9mm)", round(scale * 25), /obj/item/ammo_magazine/pistol/mod88/rubber, VENDOR_ITEM_REGULAR),
- list("M4A3 Rubber Magazine (9mm)", round(scale * 25), /obj/item/ammo_magazine/pistol/rubber, VENDOR_ITEM_REGULAR),
+ list("88M4 Rubber Magazine (9mm)", floor(scale * 25), /obj/item/ammo_magazine/pistol/mod88/rubber, VENDOR_ITEM_REGULAR),
+ list("M4A3 Rubber Magazine (9mm)", floor(scale * 25), /obj/item/ammo_magazine/pistol/rubber, VENDOR_ITEM_REGULAR),
list("ATTACHMENTS", -1, null, null),
- list("Rail Flashlight", round(scale * 25), /obj/item/attachable/flashlight, VENDOR_ITEM_RECOMMENDED),
- list("Underbarrel Flashlight Grip", round(scale * 10), /obj/item/attachable/flashlight/grip, VENDOR_ITEM_RECOMMENDED),
- list("Underslung Grenade Launcher", round(scale * 25), /obj/item/attachable/attached_gun/grenade, VENDOR_ITEM_REGULAR), //They already get these as on-spawns, might as well formalize some spares.
+ list("Rail Flashlight", floor(scale * 25), /obj/item/attachable/flashlight, VENDOR_ITEM_RECOMMENDED),
+ list("Underbarrel Flashlight Grip", floor(scale * 10), /obj/item/attachable/flashlight/grip, VENDOR_ITEM_RECOMMENDED),
+ list("Underslung Grenade Launcher", floor(scale * 25), /obj/item/attachable/attached_gun/grenade, VENDOR_ITEM_REGULAR), //They already get these as on-spawns, might as well formalize some spares.
list("UTILITIES", -1, null, null),
- list("M07 Training Grenade", round(scale * 15), /obj/item/explosive/grenade/high_explosive/training, VENDOR_ITEM_REGULAR),
- list("M15 Rubber Pellet Grenade", round(scale * 10), /obj/item/explosive/grenade/high_explosive/m15/rubber, VENDOR_ITEM_REGULAR),
- list("M5 Bayonet", round(scale * 25), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
- list("M94 Marking Flare Pack", round(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_RECOMMENDED)
+ list("M07 Training Grenade", floor(scale * 15), /obj/item/explosive/grenade/high_explosive/training, VENDOR_ITEM_REGULAR),
+ list("M15 Rubber Pellet Grenade", floor(scale * 10), /obj/item/explosive/grenade/high_explosive/m15/rubber, VENDOR_ITEM_REGULAR),
+ list("M5 Bayonet", floor(scale * 25), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
+ list("M94 Marking Flare Pack", floor(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_RECOMMENDED)
)
diff --git a/code/game/machinery/vending/vendor_types/squad_prep/squad_prep.dm b/code/game/machinery/vending/vendor_types/squad_prep/squad_prep.dm
index d3662c785890..5ba8904069c3 100644
--- a/code/game/machinery/vending/vendor_types/squad_prep/squad_prep.dm
+++ b/code/game/machinery/vending/vendor_types/squad_prep/squad_prep.dm
@@ -17,40 +17,40 @@
/obj/structure/machinery/cm_vending/sorted/cargo_guns/squad_prep/populate_product_list(scale)
listed_products = list(
list("PRIMARY FIREARMS", -1, null, null),
- list("M4RA Battle Rifle", round(scale * 10), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
- list("M37A2 Pump Shotgun", round(scale * 15), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
- list("M39 Submachine Gun", round(scale * 30), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
- list("M41A Pulse Rifle MK2", round(scale * 30), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_RECOMMENDED),
+ list("M4RA Battle Rifle", floor(scale * 10), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M37A2 Pump Shotgun", floor(scale * 15), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
+ list("M39 Submachine Gun", floor(scale * 30), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M41A Pulse Rifle MK2", floor(scale * 30), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_RECOMMENDED),
list("PRIMARY AMMUNITION", -1, null, null),
- list("Box of Flechette Shells (12g)", round(scale * 4), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
- list("Box of Buckshot Shells (12g)", round(scale * 10), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
- list("Box of Shotgun Slugs (12g)", round(scale * 10), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
- list("M4RA Magazine (10x24mm)", round(scale * 15), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
- list("M39 HV Magazine (10x20mm)", round(scale * 25), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
- list("M41A Magazine (10x24mm)", round(scale * 25), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
+ list("Box of Flechette Shells (12g)", floor(scale * 4), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
+ list("Box of Buckshot Shells (12g)", floor(scale * 10), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
+ list("Box of Shotgun Slugs (12g)", floor(scale * 10), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
+ list("M4RA Magazine (10x24mm)", floor(scale * 15), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M39 HV Magazine (10x20mm)", floor(scale * 25), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M41A Magazine (10x24mm)", floor(scale * 25), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
list("SIDEARMS", -1, null, null),
- list("88 Mod 4 Combat Pistol", round(scale * 25), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M44 Combat Revolver", round(scale * 25), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
- list("M4A3 Service Pistol", round(scale * 25), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
- list("M82F Flare Gun", round(scale * 10), /obj/item/weapon/gun/flare, VENDOR_ITEM_REGULAR),
+ list("88 Mod 4 Combat Pistol", floor(scale * 25), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M44 Combat Revolver", floor(scale * 25), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
+ list("M4A3 Service Pistol", floor(scale * 25), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
+ list("M82F Flare Gun", floor(scale * 10), /obj/item/weapon/gun/flare, VENDOR_ITEM_REGULAR),
list("SIDEARM AMMUNITION", -1, null, null),
- list("88M4 AP Magazine (9mm)", round(scale * 25), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M44 Speedloader (.44)", round(scale * 20), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
- list("M4A3 Magazine (9mm)", round(scale * 25), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
+ list("88M4 AP Magazine (9mm)", floor(scale * 25), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M44 Speedloader (.44)", floor(scale * 20), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
+ list("M4A3 Magazine (9mm)", floor(scale * 25), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
list("ATTACHMENTS", -1, null, null),
- list("M39 Folding Stock", round(scale * 10), /obj/item/attachable/stock/smg/collapsible, VENDOR_ITEM_REGULAR),
- list("M41A Folding Stock", round(scale * 10), /obj/item/attachable/stock/rifle/collapsible, VENDOR_ITEM_REGULAR),
- list("Rail Flashlight", round(scale * 25), /obj/item/attachable/flashlight, VENDOR_ITEM_RECOMMENDED),
- list("Underbarrel Flashlight Grip", round(scale * 10), /obj/item/attachable/flashlight/grip, VENDOR_ITEM_RECOMMENDED),
- list("Underslung Grenade Launcher", round(scale * 25), /obj/item/attachable/attached_gun/grenade, VENDOR_ITEM_REGULAR), //They already get these as on-spawns, might as well formalize some spares.
+ list("M39 Folding Stock", floor(scale * 10), /obj/item/attachable/stock/smg/collapsible, VENDOR_ITEM_REGULAR),
+ list("M41A Folding Stock", floor(scale * 10), /obj/item/attachable/stock/rifle/collapsible, VENDOR_ITEM_REGULAR),
+ list("Rail Flashlight", floor(scale * 25), /obj/item/attachable/flashlight, VENDOR_ITEM_RECOMMENDED),
+ list("Underbarrel Flashlight Grip", floor(scale * 10), /obj/item/attachable/flashlight/grip, VENDOR_ITEM_RECOMMENDED),
+ list("Underslung Grenade Launcher", floor(scale * 25), /obj/item/attachable/attached_gun/grenade, VENDOR_ITEM_REGULAR), //They already get these as on-spawns, might as well formalize some spares.
list("UTILITIES", -1, null, null),
- list("M5 Bayonet", round(scale * 25), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
- list("M94 Marking Flare Pack", round(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_RECOMMENDED)
+ list("M5 Bayonet", floor(scale * 25), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
+ list("M94 Marking Flare Pack", floor(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_RECOMMENDED)
)
/obj/structure/machinery/cm_vending/sorted/cargo_guns/squad_prep/tutorial
@@ -99,102 +99,102 @@
/obj/structure/machinery/cm_vending/sorted/uniform_supply/squad_prep/populate_product_list(scale)
listed_products = list(
list("STANDARD EQUIPMENT", -1, null, null, null),
- list("Marine Combat Boots", round(scale * 15), /obj/item/clothing/shoes/marine, VENDOR_ITEM_REGULAR),
- list("Marine Brown Combat Boots", round(scale * 15), /obj/item/clothing/shoes/marine/brown, VENDOR_ITEM_REGULAR),
- list("USCM Uniform", round(scale * 15), /obj/item/clothing/under/marine, VENDOR_ITEM_REGULAR),
- list("Marine Combat Gloves", round(scale * 15), /obj/item/clothing/gloves/marine, VENDOR_ITEM_REGULAR),
- list("Marine Brown Combat Gloves", round(scale * 15), /obj/item/clothing/gloves/marine/brown, VENDOR_ITEM_REGULAR),
- list("Marine Black Combat Gloves", round(scale * 15), /obj/item/clothing/gloves/marine/black, VENDOR_ITEM_REGULAR),
- list("Marine Radio Headset", round(scale * 15), /obj/item/device/radio/headset/almayer, VENDOR_ITEM_REGULAR),
- list("M10 Pattern Marine Helmet", round(scale * 15), /obj/item/clothing/head/helmet/marine, VENDOR_ITEM_REGULAR),
+ list("Marine Combat Boots", floor(scale * 15), /obj/item/clothing/shoes/marine, VENDOR_ITEM_REGULAR),
+ list("Marine Brown Combat Boots", floor(scale * 15), /obj/item/clothing/shoes/marine/brown, VENDOR_ITEM_REGULAR),
+ list("USCM Uniform", floor(scale * 15), /obj/item/clothing/under/marine, VENDOR_ITEM_REGULAR),
+ list("Marine Combat Gloves", floor(scale * 15), /obj/item/clothing/gloves/marine, VENDOR_ITEM_REGULAR),
+ list("Marine Brown Combat Gloves", floor(scale * 15), /obj/item/clothing/gloves/marine/brown, VENDOR_ITEM_REGULAR),
+ list("Marine Black Combat Gloves", floor(scale * 15), /obj/item/clothing/gloves/marine/black, VENDOR_ITEM_REGULAR),
+ list("Marine Radio Headset", floor(scale * 15), /obj/item/device/radio/headset/almayer, VENDOR_ITEM_REGULAR),
+ list("M10 Pattern Marine Helmet", floor(scale * 15), /obj/item/clothing/head/helmet/marine, VENDOR_ITEM_REGULAR),
list("WEBBINGS", -1, null, null),
list("Brown Webbing Vest", 1, /obj/item/clothing/accessory/storage/black_vest/brown_vest, VENDOR_ITEM_REGULAR),
list("Black Webbing Vest", 1, /obj/item/clothing/accessory/storage/black_vest, VENDOR_ITEM_REGULAR),
- list("Webbing", round(scale * 2), /obj/item/clothing/accessory/storage/webbing, VENDOR_ITEM_REGULAR),
+ list("Webbing", floor(scale * 2), /obj/item/clothing/accessory/storage/webbing, VENDOR_ITEM_REGULAR),
list("Drop Pouch", 0.75, /obj/item/clothing/accessory/storage/droppouch, VENDOR_ITEM_REGULAR),
list("Shoulder Holster", 0.75, /obj/item/clothing/accessory/storage/holster, VENDOR_ITEM_REGULAR),
list("ARMOR", -1, null, null),
- list("M3 Pattern Carrier Marine Armor", round(scale * 15), /obj/item/clothing/suit/storage/marine/medium/carrier, VENDOR_ITEM_REGULAR),
- list("M3 Pattern Padded Marine Armor", round(scale * 15), /obj/item/clothing/suit/storage/marine/medium/padded, VENDOR_ITEM_REGULAR),
- list("M3 Pattern Padless Marine Armor", round(scale * 15), /obj/item/clothing/suit/storage/marine/medium/padless, VENDOR_ITEM_REGULAR),
- list("M3 Pattern Ridged Marine Armor", round(scale * 15), /obj/item/clothing/suit/storage/marine/medium/padless_lines, VENDOR_ITEM_REGULAR),
- list("M3 Pattern Skull Marine Armor", round(scale * 15), /obj/item/clothing/suit/storage/marine/medium/skull, VENDOR_ITEM_REGULAR),
- list("M3 Pattern Smooth Marine Armor", round(scale * 15), /obj/item/clothing/suit/storage/marine/medium/smooth, VENDOR_ITEM_REGULAR),
- list("M3-EOD Pattern Heavy Armor", round(scale * 10), /obj/item/clothing/suit/storage/marine/heavy, VENDOR_ITEM_REGULAR),
- list("M3-L Pattern Light Armor", round(scale * 10), /obj/item/clothing/suit/storage/marine/light, VENDOR_ITEM_REGULAR),
+ list("M3 Pattern Carrier Marine Armor", floor(scale * 15), /obj/item/clothing/suit/storage/marine/medium/carrier, VENDOR_ITEM_REGULAR),
+ list("M3 Pattern Padded Marine Armor", floor(scale * 15), /obj/item/clothing/suit/storage/marine/medium/padded, VENDOR_ITEM_REGULAR),
+ list("M3 Pattern Padless Marine Armor", floor(scale * 15), /obj/item/clothing/suit/storage/marine/medium/padless, VENDOR_ITEM_REGULAR),
+ list("M3 Pattern Ridged Marine Armor", floor(scale * 15), /obj/item/clothing/suit/storage/marine/medium/padless_lines, VENDOR_ITEM_REGULAR),
+ list("M3 Pattern Skull Marine Armor", floor(scale * 15), /obj/item/clothing/suit/storage/marine/medium/skull, VENDOR_ITEM_REGULAR),
+ list("M3 Pattern Smooth Marine Armor", floor(scale * 15), /obj/item/clothing/suit/storage/marine/medium/smooth, VENDOR_ITEM_REGULAR),
+ list("M3-EOD Pattern Heavy Armor", floor(scale * 10), /obj/item/clothing/suit/storage/marine/heavy, VENDOR_ITEM_REGULAR),
+ list("M3-L Pattern Light Armor", floor(scale * 10), /obj/item/clothing/suit/storage/marine/light, VENDOR_ITEM_REGULAR),
list("BACKPACK", -1, null, null, null),
- list("Lightweight IMP Backpack", round(scale * 15), /obj/item/storage/backpack/marine, VENDOR_ITEM_REGULAR),
- list("Technician Backpack", round(scale * 15), /obj/item/storage/backpack/marine/tech, VENDOR_ITEM_REGULAR),
- list("Medical Backpack", round(scale * 15), /obj/item/storage/backpack/marine/medic, VENDOR_ITEM_REGULAR),
- list("USCM Satchel", round(scale * 15), /obj/item/storage/backpack/marine/satchel, VENDOR_ITEM_REGULAR),
- list("USCM Chestrig", round(scale * 15), /obj/item/storage/backpack/marine/satchel/chestrig, VENDOR_ITEM_REGULAR),
- list("USCM Technical Satchel", round(scale * 15), /obj/item/storage/backpack/marine/satchel/tech, VENDOR_ITEM_REGULAR),
- list("USCM Technical Chestrig", round(scale * 15), /obj/item/storage/backpack/marine/engineerpack/welder_chestrig, VENDOR_ITEM_REGULAR),
- list("Medical Satchel", round(scale * 15), /obj/item/storage/backpack/marine/satchel/medic, VENDOR_ITEM_REGULAR),
- list("Shotgun Scabbard", round(scale * 5), /obj/item/storage/large_holster/m37, VENDOR_ITEM_REGULAR),
+ list("Lightweight IMP Backpack", floor(scale * 15), /obj/item/storage/backpack/marine, VENDOR_ITEM_REGULAR),
+ list("Technician Backpack", floor(scale * 15), /obj/item/storage/backpack/marine/tech, VENDOR_ITEM_REGULAR),
+ list("Medical Backpack", floor(scale * 15), /obj/item/storage/backpack/marine/medic, VENDOR_ITEM_REGULAR),
+ list("USCM Satchel", floor(scale * 15), /obj/item/storage/backpack/marine/satchel, VENDOR_ITEM_REGULAR),
+ list("USCM Chestrig", floor(scale * 15), /obj/item/storage/backpack/marine/satchel/chestrig, VENDOR_ITEM_REGULAR),
+ list("USCM Technical Satchel", floor(scale * 15), /obj/item/storage/backpack/marine/satchel/tech, VENDOR_ITEM_REGULAR),
+ list("USCM Technical Chestrig", floor(scale * 15), /obj/item/storage/backpack/marine/engineerpack/welder_chestrig, VENDOR_ITEM_REGULAR),
+ list("Medical Satchel", floor(scale * 15), /obj/item/storage/backpack/marine/satchel/medic, VENDOR_ITEM_REGULAR),
+ list("Shotgun Scabbard", floor(scale * 5), /obj/item/storage/large_holster/m37, VENDOR_ITEM_REGULAR),
list("RESTRICTED BACKPACKS", -1, null, null),
list("USCM Technician Welderpack", 1.25, /obj/item/storage/backpack/marine/engineerpack, VENDOR_ITEM_REGULAR),
- list("Technician Welder-Satchel", round(scale * 2), /obj/item/storage/backpack/marine/engineerpack/satchel, VENDOR_ITEM_REGULAR),
+ list("Technician Welder-Satchel", floor(scale * 2), /obj/item/storage/backpack/marine/engineerpack/satchel, VENDOR_ITEM_REGULAR),
list("Radio Telephone Backpack", 0.75, /obj/item/storage/backpack/marine/satchel/rto, VENDOR_ITEM_REGULAR),
list("BELTS", -1, null, null),
- list("M276 Pattern Ammo Load Rig", round(scale * 15), /obj/item/storage/belt/marine, VENDOR_ITEM_REGULAR),
- list("M276 Pattern M40 Grenade Rig", round(scale * 10), /obj/item/storage/belt/grenade, VENDOR_ITEM_REGULAR),
- list("M276 Pattern Shotgun Shell Loading Rig", round(scale * 15), /obj/item/storage/belt/shotgun, VENDOR_ITEM_REGULAR),
- list("M276 Pattern General Pistol Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m4a3, VENDOR_ITEM_REGULAR),
- list("M276 Pattern M39 Holster Rig", round(scale * 15), /obj/item/storage/large_holster/m39, VENDOR_ITEM_REGULAR),
- list("M276 Pattern M39 Holster Rig And Pouch", round(scale * 10), /obj/item/storage/belt/gun/m39, VENDOR_ITEM_REGULAR),
- list("M276 Pattern M44 Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m44, VENDOR_ITEM_REGULAR),
- list("M276 Pattern M82F Holster Rig", round(scale * 5), /obj/item/storage/belt/gun/flaregun, VENDOR_ITEM_REGULAR),
- list("M276 Knife Rig (Full)", round(scale * 15), /obj/item/storage/belt/knifepouch, VENDOR_ITEM_REGULAR),
- list("M276 G8-A General Utility Pouch", round(scale * 15), /obj/item/storage/backpack/general_belt, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern Ammo Load Rig", floor(scale * 15), /obj/item/storage/belt/marine, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern M40 Grenade Rig", floor(scale * 10), /obj/item/storage/belt/grenade, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern Shotgun Shell Loading Rig", floor(scale * 15), /obj/item/storage/belt/shotgun, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern General Pistol Holster Rig", floor(scale * 15), /obj/item/storage/belt/gun/m4a3, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern M39 Holster Rig", floor(scale * 15), /obj/item/storage/large_holster/m39, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern M39 Holster Rig And Pouch", floor(scale * 10), /obj/item/storage/belt/gun/m39, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern M44 Holster Rig", floor(scale * 15), /obj/item/storage/belt/gun/m44, VENDOR_ITEM_REGULAR),
+ list("M276 Pattern M82F Holster Rig", floor(scale * 5), /obj/item/storage/belt/gun/flaregun, VENDOR_ITEM_REGULAR),
+ list("M276 Knife Rig (Full)", floor(scale * 15), /obj/item/storage/belt/knifepouch, VENDOR_ITEM_REGULAR),
+ list("M276 G8-A General Utility Pouch", floor(scale * 15), /obj/item/storage/backpack/general_belt, VENDOR_ITEM_REGULAR),
list("POUCHES", -1, null, null, null),
- list("Bayonet Sheath (Full)",round(scale * 15), /obj/item/storage/pouch/bayonet, VENDOR_ITEM_REGULAR),
- list("First-Aid Pouch (Splints, Gauze, Ointment)", round(scale * 15), /obj/item/storage/pouch/firstaid/full/alternate, VENDOR_ITEM_REGULAR),
- list("First-Aid Pouch (Pill Packets)", round(scale * 15), /obj/item/storage/pouch/firstaid/full/pills, VENDOR_ITEM_REGULAR),
- list("Flare Pouch (Full)", round(scale * 15), /obj/item/storage/pouch/flare/full, VENDOR_ITEM_REGULAR),
- list("Small Document Pouch", round(scale * 15), /obj/item/storage/pouch/document/small, VENDOR_ITEM_REGULAR),
- list("Magazine Pouch", round(scale * 15), /obj/item/storage/pouch/magazine, VENDOR_ITEM_REGULAR),
- list("Shotgun Shell Pouch", round(scale * 15), /obj/item/storage/pouch/shotgun, VENDOR_ITEM_REGULAR),
- list("Medium General Pouch", round(scale * 15), /obj/item/storage/pouch/general/medium, VENDOR_ITEM_REGULAR),
- list("Pistol Magazine Pouch", round(scale * 15), /obj/item/storage/pouch/magazine/pistol, VENDOR_ITEM_REGULAR),
- list("Pistol Pouch", round(scale * 15), /obj/item/storage/pouch/pistol, VENDOR_ITEM_REGULAR),
+ list("Bayonet Sheath (Full)",floor(scale * 15), /obj/item/storage/pouch/bayonet, VENDOR_ITEM_REGULAR),
+ list("First-Aid Pouch (Splints, Gauze, Ointment)", floor(scale * 15), /obj/item/storage/pouch/firstaid/full/alternate, VENDOR_ITEM_REGULAR),
+ list("First-Aid Pouch (Pill Packets)", floor(scale * 15), /obj/item/storage/pouch/firstaid/full/pills, VENDOR_ITEM_REGULAR),
+ list("Flare Pouch (Full)", floor(scale * 15), /obj/item/storage/pouch/flare/full, VENDOR_ITEM_REGULAR),
+ list("Small Document Pouch", floor(scale * 15), /obj/item/storage/pouch/document/small, VENDOR_ITEM_REGULAR),
+ list("Magazine Pouch", floor(scale * 15), /obj/item/storage/pouch/magazine, VENDOR_ITEM_REGULAR),
+ list("Shotgun Shell Pouch", floor(scale * 15), /obj/item/storage/pouch/shotgun, VENDOR_ITEM_REGULAR),
+ list("Medium General Pouch", floor(scale * 15), /obj/item/storage/pouch/general/medium, VENDOR_ITEM_REGULAR),
+ list("Pistol Magazine Pouch", floor(scale * 15), /obj/item/storage/pouch/magazine/pistol, VENDOR_ITEM_REGULAR),
+ list("Pistol Pouch", floor(scale * 15), /obj/item/storage/pouch/pistol, VENDOR_ITEM_REGULAR),
list("RESTRICTED POUCHES", -1, null, null, null),
list("Construction Pouch", 1.25, /obj/item/storage/pouch/construction, VENDOR_ITEM_REGULAR),
list("Explosive Pouch", 1.25, /obj/item/storage/pouch/explosive, VENDOR_ITEM_REGULAR),
list("First Responder Pouch (Empty)", 2.5, /obj/item/storage/pouch/first_responder, VENDOR_ITEM_REGULAR),
- list("Large Pistol Magazine Pouch", round(scale * 2), /obj/item/storage/pouch/magazine/pistol/large, VENDOR_ITEM_REGULAR),
+ list("Large Pistol Magazine Pouch", floor(scale * 2), /obj/item/storage/pouch/magazine/pistol/large, VENDOR_ITEM_REGULAR),
list("Tools Pouch", 1.25, /obj/item/storage/pouch/tools, VENDOR_ITEM_REGULAR),
list("Sling Pouch", 1.25, /obj/item/storage/pouch/sling, VENDOR_ITEM_REGULAR),
list("MASK", -1, null, null, null),
- list("Gas Mask", round(scale * 15), /obj/item/clothing/mask/gas, VENDOR_ITEM_REGULAR),
- list("Heat Absorbent Coif", round(scale * 10), /obj/item/clothing/mask/rebreather/scarf, VENDOR_ITEM_REGULAR),
- list("Rebreather", round(scale * 10), /obj/item/clothing/mask/rebreather, MARINE_CAN_BUY_MASK, VENDOR_ITEM_REGULAR),
+ list("Gas Mask", floor(scale * 15), /obj/item/clothing/mask/gas, VENDOR_ITEM_REGULAR),
+ list("Heat Absorbent Coif", floor(scale * 10), /obj/item/clothing/mask/rebreather/scarf, VENDOR_ITEM_REGULAR),
+ list("Rebreather", floor(scale * 10), /obj/item/clothing/mask/rebreather, MARINE_CAN_BUY_MASK, VENDOR_ITEM_REGULAR),
list("MISCELLANEOUS", -1, null, null, null),
- list("Ballistic goggles", round(scale * 10), /obj/item/clothing/glasses/mgoggles, VENDOR_ITEM_REGULAR),
- list("M1A1 Ballistic goggles", round(scale * 10), /obj/item/clothing/glasses/mgoggles/v2, VENDOR_ITEM_REGULAR),
- list("Prescription ballistic goggles", round(scale * 10), /obj/item/clothing/glasses/mgoggles/prescription, VENDOR_ITEM_REGULAR),
- list("Marine RPG glasses", round(scale * 10), /obj/item/clothing/glasses/regular, VENDOR_ITEM_REGULAR),
- list("M5 Integrated Gas Mask", round(scale * 10), /obj/item/prop/helmetgarb/helmet_gasmask, VENDOR_ITEM_REGULAR),
- list("M10 Helmet Netting", round(scale * 10), /obj/item/prop/helmetgarb/netting, VENDOR_ITEM_REGULAR),
- list("M10 Helmet Rain Cover", round(scale * 10), /obj/item/prop/helmetgarb/raincover, VENDOR_ITEM_REGULAR),
- list("Firearm Lubricant", round(scale * 15), /obj/item/prop/helmetgarb/gunoil, VENDOR_ITEM_REGULAR),
- list("USCM Flair", round(scale * 15), /obj/item/prop/helmetgarb/flair_uscm, VENDOR_ITEM_REGULAR),
- list("Falling Falcons Shoulder Patch", round(scale * 15), /obj/item/clothing/accessory/patch/falcon, VENDOR_ITEM_REGULAR),
- list("USCM Shoulder Patch", round(scale * 15), /obj/item/clothing/accessory/patch, VENDOR_ITEM_REGULAR),
- list("Bedroll", round(scale * 20), /obj/item/roller/bedroll, VENDOR_ITEM_REGULAR),
+ list("Ballistic goggles", floor(scale * 10), /obj/item/clothing/glasses/mgoggles, VENDOR_ITEM_REGULAR),
+ list("M1A1 Ballistic goggles", floor(scale * 10), /obj/item/clothing/glasses/mgoggles/v2, VENDOR_ITEM_REGULAR),
+ list("Prescription ballistic goggles", floor(scale * 10), /obj/item/clothing/glasses/mgoggles/prescription, VENDOR_ITEM_REGULAR),
+ list("Marine RPG glasses", floor(scale * 10), /obj/item/clothing/glasses/regular, VENDOR_ITEM_REGULAR),
+ list("M5 Integrated Gas Mask", floor(scale * 10), /obj/item/prop/helmetgarb/helmet_gasmask, VENDOR_ITEM_REGULAR),
+ list("M10 Helmet Netting", floor(scale * 10), /obj/item/prop/helmetgarb/netting, VENDOR_ITEM_REGULAR),
+ list("M10 Helmet Rain Cover", floor(scale * 10), /obj/item/prop/helmetgarb/raincover, VENDOR_ITEM_REGULAR),
+ list("Firearm Lubricant", floor(scale * 15), /obj/item/prop/helmetgarb/gunoil, VENDOR_ITEM_REGULAR),
+ list("USCM Flair", floor(scale * 15), /obj/item/prop/helmetgarb/flair_uscm, VENDOR_ITEM_REGULAR),
+ list("Falling Falcons Shoulder Patch", floor(scale * 15), /obj/item/clothing/accessory/patch/falcon, VENDOR_ITEM_REGULAR),
+ list("USCM Shoulder Patch", floor(scale * 15), /obj/item/clothing/accessory/patch, VENDOR_ITEM_REGULAR),
+ list("Bedroll", floor(scale * 20), /obj/item/roller/bedroll, VENDOR_ITEM_REGULAR),
list("OPTICS", -1, null, null, null),
- list("Advanced Medical Optic (CORPSMAN ONLY)", round(scale * 4), /obj/item/device/helmet_visor/medical/advanced, VENDOR_ITEM_REGULAR),
- list("Squad Optic", round(scale * 15), /obj/item/device/helmet_visor, VENDOR_ITEM_REGULAR),
+ list("Advanced Medical Optic (CORPSMAN ONLY)", floor(scale * 4), /obj/item/device/helmet_visor/medical/advanced, VENDOR_ITEM_REGULAR),
+ list("Squad Optic", floor(scale * 15), /obj/item/device/helmet_visor, VENDOR_ITEM_REGULAR),
)
@@ -262,8 +262,8 @@
listed_products = list(
list("ARMOR-PIERCING AMMUNITION", -1, null, null),
list("M4RA AP Magazine (10x24mm)", 3.5, /obj/item/ammo_magazine/rifle/m4ra/ap, VENDOR_ITEM_REGULAR),
- list("M39 AP Magazine (10x20mm)", round(scale * 3), /obj/item/ammo_magazine/smg/m39/ap, VENDOR_ITEM_REGULAR),
- list("M41A AP Magazine (10x24mm)", round(scale * 3), /obj/item/ammo_magazine/rifle/ap, VENDOR_ITEM_REGULAR),
+ list("M39 AP Magazine (10x20mm)", floor(scale * 3), /obj/item/ammo_magazine/smg/m39/ap, VENDOR_ITEM_REGULAR),
+ list("M41A AP Magazine (10x24mm)", floor(scale * 3), /obj/item/ammo_magazine/rifle/ap, VENDOR_ITEM_REGULAR),
list("EXTENDED AMMUNITION", -1, null, null),
list("M39 Extended Magazine (10x20mm)", 1.8, /obj/item/ammo_magazine/smg/m39/extended, VENDOR_ITEM_REGULAR),
@@ -271,19 +271,19 @@
list("SPECIAL AMMUNITION", -1, null, null),
list("M56 Smartgun Drum", 1, /obj/item/ammo_magazine/smartgun, VENDOR_ITEM_REGULAR),
- list("M44 Heavy Speed Loader (.44)", round(scale * 2), /obj/item/ammo_magazine/revolver/heavy, VENDOR_ITEM_REGULAR),
- list("M44 Marksman Speed Loader (.44)", round(scale * 2), /obj/item/ammo_magazine/revolver/marksman, VENDOR_ITEM_REGULAR),
+ list("M44 Heavy Speed Loader (.44)", floor(scale * 2), /obj/item/ammo_magazine/revolver/heavy, VENDOR_ITEM_REGULAR),
+ list("M44 Marksman Speed Loader (.44)", floor(scale * 2), /obj/item/ammo_magazine/revolver/marksman, VENDOR_ITEM_REGULAR),
list("RESTRICTED FIREARM AMMUNITION", -1, null, null),
- list("VP78 Magazine", round(scale * 5), /obj/item/ammo_magazine/pistol/vp78, VENDOR_ITEM_REGULAR),
- list("SU-6 Smartpistol Magazine (.45)", round(scale * 5), /obj/item/ammo_magazine/pistol/smart, VENDOR_ITEM_REGULAR),
- list("M240 Incinerator Tank", round(scale * 3), /obj/item/ammo_magazine/flamer_tank, VENDOR_ITEM_REGULAR),
- list("M56D Drum Magazine", round(scale * 2), /obj/item/ammo_magazine/m56d, VENDOR_ITEM_REGULAR),
- list("M2C Box Magazine", round(scale * 2), /obj/item/ammo_magazine/m2c, VENDOR_ITEM_REGULAR),
- list("Box of Breaching Shells (16g)", round(scale * 2), /obj/item/ammo_magazine/shotgun/light/breaching, VENDOR_ITEM_REGULAR),
- list("HIRR Baton Slugs", round(scale * 6), /obj/item/explosive/grenade/slug/baton, VENDOR_ITEM_REGULAR),
- list("M74 AGM-S Star Shell", round(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst/starshell, VENDOR_ITEM_REGULAR),
- list("M74 AGM-S Hornet Shell", round(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst/hornet_shell, VENDOR_ITEM_REGULAR),
+ list("VP78 Magazine", floor(scale * 5), /obj/item/ammo_magazine/pistol/vp78, VENDOR_ITEM_REGULAR),
+ list("SU-6 Smartpistol Magazine (.45)", floor(scale * 5), /obj/item/ammo_magazine/pistol/smart, VENDOR_ITEM_REGULAR),
+ list("M240 Incinerator Tank", floor(scale * 3), /obj/item/ammo_magazine/flamer_tank, VENDOR_ITEM_REGULAR),
+ list("M56D Drum Magazine", floor(scale * 2), /obj/item/ammo_magazine/m56d, VENDOR_ITEM_REGULAR),
+ list("M2C Box Magazine", floor(scale * 2), /obj/item/ammo_magazine/m2c, VENDOR_ITEM_REGULAR),
+ list("Box of Breaching Shells (16g)", floor(scale * 2), /obj/item/ammo_magazine/shotgun/light/breaching, VENDOR_ITEM_REGULAR),
+ list("HIRR Baton Slugs", floor(scale * 6), /obj/item/explosive/grenade/slug/baton, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-S Star Shell", floor(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst/starshell, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-S Hornet Shell", floor(scale * 4), /obj/item/explosive/grenade/high_explosive/airburst/hornet_shell, VENDOR_ITEM_REGULAR),
)
//--------------SQUAD ARMAMENTS VENDOR--------------
@@ -305,36 +305,36 @@
/obj/structure/machinery/cm_vending/sorted/cargo_guns/squad/populate_product_list(scale)
listed_products = list(
list("FOOD", -1, null, null),
- list("MRE", round(scale * 5), /obj/item/storage/box/MRE, VENDOR_ITEM_REGULAR),
- list("MRE Box", round(scale * 1), /obj/item/ammo_box/magazine/misc/mre, VENDOR_ITEM_REGULAR),
+ list("MRE", floor(scale * 5), /obj/item/storage/box/MRE, VENDOR_ITEM_REGULAR),
+ list("MRE Box", floor(scale * 1), /obj/item/ammo_box/magazine/misc/mre, VENDOR_ITEM_REGULAR),
list("TOOLS", -1, null, null),
- list("Entrenching Tool (ET)", round(scale * 2), /obj/item/tool/shovel/etool/folded, VENDOR_ITEM_REGULAR),
- list("Screwdriver", round(scale * 5), /obj/item/tool/screwdriver, VENDOR_ITEM_REGULAR),
- list("Wirecutters", round(scale * 5), /obj/item/tool/wirecutters, VENDOR_ITEM_REGULAR),
- list("Crowbar", round(scale * 5), /obj/item/tool/crowbar, VENDOR_ITEM_REGULAR),
- list("Wrench", round(scale * 5), /obj/item/tool/wrench, VENDOR_ITEM_REGULAR),
- list("Multitool", round(scale * 1), /obj/item/device/multitool, VENDOR_ITEM_REGULAR),
- list("ME3 hand welder", round(scale * 1), /obj/item/tool/weldingtool/simple, VENDOR_ITEM_REGULAR),
+ list("Entrenching Tool (ET)", floor(scale * 2), /obj/item/tool/shovel/etool/folded, VENDOR_ITEM_REGULAR),
+ list("Screwdriver", floor(scale * 5), /obj/item/tool/screwdriver, VENDOR_ITEM_REGULAR),
+ list("Wirecutters", floor(scale * 5), /obj/item/tool/wirecutters, VENDOR_ITEM_REGULAR),
+ list("Crowbar", floor(scale * 5), /obj/item/tool/crowbar, VENDOR_ITEM_REGULAR),
+ list("Wrench", floor(scale * 5), /obj/item/tool/wrench, VENDOR_ITEM_REGULAR),
+ list("Multitool", floor(scale * 1), /obj/item/device/multitool, VENDOR_ITEM_REGULAR),
+ list("ME3 hand welder", floor(scale * 1), /obj/item/tool/weldingtool/simple, VENDOR_ITEM_REGULAR),
list("FLARE AND LIGHT", -1, null, null),
- list("Combat Flashlight", round(scale * 5), /obj/item/device/flashlight/combat, VENDOR_ITEM_REGULAR),
- list("Box of Flashlight", round(scale * 1), /obj/item/ammo_box/magazine/misc/flashlight, VENDOR_ITEM_REGULAR),
- list("Box of Flares", round(scale * 1), /obj/item/ammo_box/magazine/misc/flares, VENDOR_ITEM_REGULAR),
- list("M94 Marking Flare Pack", round(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR),
- list("M89-S Signal Flare Pack", round(scale * 1), /obj/item/storage/box/m94/signal, VENDOR_ITEM_REGULAR),
+ list("Combat Flashlight", floor(scale * 5), /obj/item/device/flashlight/combat, VENDOR_ITEM_REGULAR),
+ list("Box of Flashlight", floor(scale * 1), /obj/item/ammo_box/magazine/misc/flashlight, VENDOR_ITEM_REGULAR),
+ list("Box of Flares", floor(scale * 1), /obj/item/ammo_box/magazine/misc/flares, VENDOR_ITEM_REGULAR),
+ list("M94 Marking Flare Pack", floor(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR),
+ list("M89-S Signal Flare Pack", floor(scale * 1), /obj/item/storage/box/m94/signal, VENDOR_ITEM_REGULAR),
list("MISCELLANEOUS", -1, null, null),
- list("Engineer Kit", round(scale * 1), /obj/item/storage/toolkit/empty, VENDOR_ITEM_REGULAR),
- list("Map", round(scale * 5), /obj/item/map/current_map, VENDOR_ITEM_REGULAR),
- list("Extinguisher", round(scale * 5), /obj/item/tool/extinguisher, VENDOR_ITEM_REGULAR),
- list("Fire Extinguisher (Portable)", round(scale * 1), /obj/item/tool/extinguisher/mini, VENDOR_ITEM_REGULAR),
- list("Roller Bed", round(scale * 1), /obj/item/roller, VENDOR_ITEM_REGULAR),
- list("Machete Scabbard (Full)", round(scale * 5), /obj/item/storage/large_holster/machete/full, VENDOR_ITEM_REGULAR),
- list("Binoculars", round(scale * 1), /obj/item/device/binoculars, VENDOR_ITEM_REGULAR),
- list("MB-6 Folding Barricades (x3)", round(scale * 2), /obj/item/stack/folding_barricade/three, VENDOR_ITEM_REGULAR),
- list("Spare PDT/L Battle Buddy Kit", round(scale * 3), /obj/item/storage/box/pdt_kit, VENDOR_ITEM_REGULAR),
- list("W-Y brand rechargeable mini-battery", round(scale * 2.5), /obj/item/cell/crap, VENDOR_ITEM_REGULAR)
+ list("Engineer Kit", floor(scale * 1), /obj/item/storage/toolkit/empty, VENDOR_ITEM_REGULAR),
+ list("Map", floor(scale * 5), /obj/item/map/current_map, VENDOR_ITEM_REGULAR),
+ list("Extinguisher", floor(scale * 5), /obj/item/tool/extinguisher, VENDOR_ITEM_REGULAR),
+ list("Fire Extinguisher (Portable)", floor(scale * 1), /obj/item/tool/extinguisher/mini, VENDOR_ITEM_REGULAR),
+ list("Roller Bed", floor(scale * 1), /obj/item/roller, VENDOR_ITEM_REGULAR),
+ list("Machete Scabbard (Full)", floor(scale * 5), /obj/item/storage/large_holster/machete/full, VENDOR_ITEM_REGULAR),
+ list("Binoculars", floor(scale * 1), /obj/item/device/binoculars, VENDOR_ITEM_REGULAR),
+ list("MB-6 Folding Barricades (x3)", floor(scale * 2), /obj/item/stack/folding_barricade/three, VENDOR_ITEM_REGULAR),
+ list("Spare PDT/L Battle Buddy Kit", floor(scale * 3), /obj/item/storage/box/pdt_kit, VENDOR_ITEM_REGULAR),
+ list("W-Y brand rechargeable mini-battery", floor(scale * 2.5), /obj/item/cell/crap, VENDOR_ITEM_REGULAR)
)
//--------------SQUAD ATTACHMENTS VENDOR--------------
diff --git a/code/game/machinery/vending/vendor_types/wo_vendors.dm b/code/game/machinery/vending/vendor_types/wo_vendors.dm
index 160e808a4a50..4cb6c689ef35 100644
--- a/code/game/machinery/vending/vendor_types/wo_vendors.dm
+++ b/code/game/machinery/vending/vendor_types/wo_vendors.dm
@@ -22,19 +22,19 @@
list("Technician Welder-Satchel", 10, /obj/item/storage/backpack/marine/engineerpack/satchel, VENDOR_ITEM_REGULAR),
list("POUCHES", -1, null, null),
- list("Construction Pouch", round(scale * 2), /obj/item/storage/pouch/construction, VENDOR_ITEM_REGULAR),
- list("Explosive Pouch", round(scale * 2), /obj/item/storage/pouch/explosive, VENDOR_ITEM_REGULAR),
- list("First-Aid Pouch (Full)", round(scale * 5), /obj/item/storage/pouch/firstaid/full, VENDOR_ITEM_REGULAR),
- list("First Responder Pouch", round(scale * 2), /obj/item/storage/pouch/first_responder, VENDOR_ITEM_REGULAR),
- list("Flare Pouch", round(scale * 5), /obj/item/storage/pouch/flare/full, VENDOR_ITEM_REGULAR),
- list("Large Pistol Magazine Pouch", round(scale * 3), /obj/item/storage/pouch/magazine/pistol/large, VENDOR_ITEM_REGULAR),
- list("Magazine Pouch", round(scale * 5), /obj/item/storage/pouch/magazine, VENDOR_ITEM_REGULAR),
- list("Medical Pouch", round(scale * 2), /obj/item/storage/pouch/medical, VENDOR_ITEM_REGULAR),
- list("Medium General Pouch", round(scale * 2), /obj/item/storage/pouch/general/medium, VENDOR_ITEM_REGULAR),
- list("Medkit Pouch", round(scale * 2), /obj/item/storage/pouch/medkit, VENDOR_ITEM_REGULAR),
- list("Sidearm Pouch", round(scale * 15), /obj/item/storage/pouch/pistol, VENDOR_ITEM_REGULAR),
- list("Syringe Pouch", round(scale * 2), /obj/item/storage/pouch/syringe, VENDOR_ITEM_REGULAR),
- list("Tools Pouch", round(scale * 2), /obj/item/storage/pouch/tools, VENDOR_ITEM_REGULAR),
+ list("Construction Pouch", floor(scale * 2), /obj/item/storage/pouch/construction, VENDOR_ITEM_REGULAR),
+ list("Explosive Pouch", floor(scale * 2), /obj/item/storage/pouch/explosive, VENDOR_ITEM_REGULAR),
+ list("First-Aid Pouch (Full)", floor(scale * 5), /obj/item/storage/pouch/firstaid/full, VENDOR_ITEM_REGULAR),
+ list("First Responder Pouch", floor(scale * 2), /obj/item/storage/pouch/first_responder, VENDOR_ITEM_REGULAR),
+ list("Flare Pouch", floor(scale * 5), /obj/item/storage/pouch/flare/full, VENDOR_ITEM_REGULAR),
+ list("Large Pistol Magazine Pouch", floor(scale * 3), /obj/item/storage/pouch/magazine/pistol/large, VENDOR_ITEM_REGULAR),
+ list("Magazine Pouch", floor(scale * 5), /obj/item/storage/pouch/magazine, VENDOR_ITEM_REGULAR),
+ list("Medical Pouch", floor(scale * 2), /obj/item/storage/pouch/medical, VENDOR_ITEM_REGULAR),
+ list("Medium General Pouch", floor(scale * 2), /obj/item/storage/pouch/general/medium, VENDOR_ITEM_REGULAR),
+ list("Medkit Pouch", floor(scale * 2), /obj/item/storage/pouch/medkit, VENDOR_ITEM_REGULAR),
+ list("Sidearm Pouch", floor(scale * 15), /obj/item/storage/pouch/pistol, VENDOR_ITEM_REGULAR),
+ list("Syringe Pouch", floor(scale * 2), /obj/item/storage/pouch/syringe, VENDOR_ITEM_REGULAR),
+ list("Tools Pouch", floor(scale * 2), /obj/item/storage/pouch/tools, VENDOR_ITEM_REGULAR),
list("RADIO HEADSETS", -1, null, null),
list("Marine Alpha Radio Headset", 10, /obj/item/device/radio/headset/almayer/marine/alpha, VENDOR_ITEM_REGULAR),
@@ -71,42 +71,42 @@
/obj/structure/machinery/cm_vending/sorted/cargo_guns/squad_prep/wo/populate_product_list(scale)
listed_products = list(
list("PRIMARY FIREARMS", -1, null, null),
- list("M4RA Battle Rifle", round(scale * 10), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
- list("M37A2 Pump Shotgun", round(scale * 15), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
- list("M39 Submachine Gun", round(scale * 30), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
- list("M41A Pulse Rifle MK1", round(scale * 30), /obj/item/weapon/gun/rifle/m41aMK1, VENDOR_ITEM_REGULAR),
- list("M41A Pulse Rifle MK2", round(scale * 30), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_REGULAR),
+ list("M4RA Battle Rifle", floor(scale * 10), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M37A2 Pump Shotgun", floor(scale * 15), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
+ list("M39 Submachine Gun", floor(scale * 30), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M41A Pulse Rifle MK1", floor(scale * 30), /obj/item/weapon/gun/rifle/m41aMK1, VENDOR_ITEM_REGULAR),
+ list("M41A Pulse Rifle MK2", floor(scale * 30), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_REGULAR),
list("PRIMARY AMMUNITION", -1, null, null),
- list("Box of Buckshot Shells (12g)", round(scale * 10), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
- list("Box of Flechette Shells (12g)", round(scale * 4), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
- list("Box of Shotgun Slugs (12g)", round(scale * 10), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
- list("M4RA Magazine (10x24mm)", round(scale * 15), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
- list("M39 HV Magazine (10x20mm)", round(scale * 25), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
- list("M41A MK1 Magazine (10x24mm)", round(scale * 25), /obj/item/ammo_magazine/rifle/m41aMK1, VENDOR_ITEM_REGULAR),
- list("M41A MK2 Magazine (10x24mm)", round(scale * 25), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
+ list("Box of Buckshot Shells (12g)", floor(scale * 10), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
+ list("Box of Flechette Shells (12g)", floor(scale * 4), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
+ list("Box of Shotgun Slugs (12g)", floor(scale * 10), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
+ list("M4RA Magazine (10x24mm)", floor(scale * 15), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M39 HV Magazine (10x20mm)", floor(scale * 25), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M41A MK1 Magazine (10x24mm)", floor(scale * 25), /obj/item/ammo_magazine/rifle/m41aMK1, VENDOR_ITEM_REGULAR),
+ list("M41A MK2 Magazine (10x24mm)", floor(scale * 25), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
list("SIDEARMS", -1, null, null),
- list("88 Mod 4 Combat Pistol", round(scale * 25), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M44 Combat Revolver", round(scale * 25), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
- list("M4A3 Service Pistol", round(scale * 25), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
- list("M82F Flare Gun", round(scale * 5), /obj/item/weapon/gun/flare, VENDOR_ITEM_REGULAR),
+ list("88 Mod 4 Combat Pistol", floor(scale * 25), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M44 Combat Revolver", floor(scale * 25), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
+ list("M4A3 Service Pistol", floor(scale * 25), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
+ list("M82F Flare Gun", floor(scale * 5), /obj/item/weapon/gun/flare, VENDOR_ITEM_REGULAR),
list("SIDEARM AMMUNITION", -1, null, null),
- list("88M4 AP Magazine (9mm)", round(scale * 25), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M44 Speedloader (.44)", round(scale * 20), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
- list("M4A3 Magazine (9mm)", round(scale * 25), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
+ list("88M4 AP Magazine (9mm)", floor(scale * 25), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M44 Speedloader (.44)", floor(scale * 20), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
+ list("M4A3 Magazine (9mm)", floor(scale * 25), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
list("ATTACHMENTS", -1, null, null),
- list("M39 Folding Stock", round(scale * 10), /obj/item/attachable/stock/smg/collapsible, VENDOR_ITEM_REGULAR),
- list("Rail Flashlight", round(scale * 25), /obj/item/attachable/flashlight, VENDOR_ITEM_REGULAR),
- list("Underbarrel Flashlight Grip", round(scale * 10), /obj/item/attachable/flashlight/grip, VENDOR_ITEM_REGULAR),
- list("Underslung Grenade Launcher", round(scale * 25), /obj/item/attachable/attached_gun/grenade, VENDOR_ITEM_REGULAR), //They already get these as on-spawns, might as well formalize some spares.
+ list("M39 Folding Stock", floor(scale * 10), /obj/item/attachable/stock/smg/collapsible, VENDOR_ITEM_REGULAR),
+ list("Rail Flashlight", floor(scale * 25), /obj/item/attachable/flashlight, VENDOR_ITEM_REGULAR),
+ list("Underbarrel Flashlight Grip", floor(scale * 10), /obj/item/attachable/flashlight/grip, VENDOR_ITEM_REGULAR),
+ list("Underslung Grenade Launcher", floor(scale * 25), /obj/item/attachable/attached_gun/grenade, VENDOR_ITEM_REGULAR), //They already get these as on-spawns, might as well formalize some spares.
list("UTILITIES", -1, null, null),
- list("M5 Bayonet", round(scale * 25), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
- list("M11 Throwing Knife", round(scale * 10), /obj/item/weapon/throwing_knife, VENDOR_ITEM_REGULAR),
- list("M94 Marking Flare Pack", round(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR)
+ list("M5 Bayonet", floor(scale * 25), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
+ list("M11 Throwing Knife", floor(scale * 10), /obj/item/weapon/throwing_knife, VENDOR_ITEM_REGULAR),
+ list("M94 Marking Flare Pack", floor(scale * 10), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR)
)
//------------REQ AMMUNITION VENDOR---------------
@@ -118,30 +118,30 @@
..()
listed_products += list(
list("EXTRA SCOUT AMMUNITION", -1, null, null, null),
- list("A19 High Velocity Impact Magazine (10x24mm)", round(scale * 1), /obj/item/ammo_magazine/rifle/m4ra/custom/impact, VENDOR_ITEM_REGULAR),
- list("A19 High Velocity Incendiary Magazine (10x24mm)", round(scale * 1), /obj/item/ammo_magazine/rifle/m4ra/custom/incendiary, VENDOR_ITEM_REGULAR),
- list("A19 High Velocity Magazine (10x24mm)", round(scale * 1.5), /obj/item/ammo_magazine/rifle/m4ra/custom, VENDOR_ITEM_REGULAR),
+ list("A19 High Velocity Impact Magazine (10x24mm)", floor(scale * 1), /obj/item/ammo_magazine/rifle/m4ra/custom/impact, VENDOR_ITEM_REGULAR),
+ list("A19 High Velocity Incendiary Magazine (10x24mm)", floor(scale * 1), /obj/item/ammo_magazine/rifle/m4ra/custom/incendiary, VENDOR_ITEM_REGULAR),
+ list("A19 High Velocity Magazine (10x24mm)", floor(scale * 1.5), /obj/item/ammo_magazine/rifle/m4ra/custom, VENDOR_ITEM_REGULAR),
list("EXTRA SNIPER AMMUNITION", -1, null, null, null),
- list("M42A Flak Magazine (10x28mm)", round(scale * 1), /obj/item/ammo_magazine/sniper/flak, VENDOR_ITEM_REGULAR),
- list("M42A Incendiary Magazine (10x28mm)", round(scale * 1), /obj/item/ammo_magazine/sniper/incendiary, VENDOR_ITEM_REGULAR),
- list("M42A Marksman Magazine (10x28mm Caseless)", round(scale * 1.5), /obj/item/ammo_magazine/sniper, VENDOR_ITEM_REGULAR),
+ list("M42A Flak Magazine (10x28mm)", floor(scale * 1), /obj/item/ammo_magazine/sniper/flak, VENDOR_ITEM_REGULAR),
+ list("M42A Incendiary Magazine (10x28mm)", floor(scale * 1), /obj/item/ammo_magazine/sniper/incendiary, VENDOR_ITEM_REGULAR),
+ list("M42A Marksman Magazine (10x28mm Caseless)", floor(scale * 1.5), /obj/item/ammo_magazine/sniper, VENDOR_ITEM_REGULAR),
list("EXTRA DEMOLITIONIST AMMUNITION", -1, null, null, null),
- list("84mm Anti-Armor Rocket", round(scale * 1), /obj/item/ammo_magazine/rocket/ap, VENDOR_ITEM_REGULAR),
- list("84mm High-Explosive Rocket", round(scale * 1), /obj/item/ammo_magazine/rocket, VENDOR_ITEM_REGULAR),
- list("84mm White-Phosphorus Rocket", round(scale * 1), /obj/item/ammo_magazine/rocket/wp, VENDOR_ITEM_REGULAR),
+ list("84mm Anti-Armor Rocket", floor(scale * 1), /obj/item/ammo_magazine/rocket/ap, VENDOR_ITEM_REGULAR),
+ list("84mm High-Explosive Rocket", floor(scale * 1), /obj/item/ammo_magazine/rocket, VENDOR_ITEM_REGULAR),
+ list("84mm White-Phosphorus Rocket", floor(scale * 1), /obj/item/ammo_magazine/rocket/wp, VENDOR_ITEM_REGULAR),
list("EXTRA GRENADES", -1, null, null, null),
- list("M40 HEDP Grenade Pack (x6)", round(scale * 1.5), /obj/effect/essentials_set/hedp_6_pack, VENDOR_ITEM_REGULAR),
- list("M40 HIDP Grenade Pack (x6)", round(scale * 1.5), /obj/effect/essentials_set/hidp_6_pack, VENDOR_ITEM_REGULAR),
- list("M74 AGM-F Grenade Pack (x6)", round(scale * 1.5), /obj/effect/essentials_set/agmf_6_pack, VENDOR_ITEM_REGULAR),
- list("M74 AGM-I Grenade Pack (x6)", round(scale * 1.5), /obj/effect/essentials_set/agmi_6_pack, VENDOR_ITEM_REGULAR),
+ list("M40 HEDP Grenade Pack (x6)", floor(scale * 1.5), /obj/effect/essentials_set/hedp_6_pack, VENDOR_ITEM_REGULAR),
+ list("M40 HIDP Grenade Pack (x6)", floor(scale * 1.5), /obj/effect/essentials_set/hidp_6_pack, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-F Grenade Pack (x6)", floor(scale * 1.5), /obj/effect/essentials_set/agmf_6_pack, VENDOR_ITEM_REGULAR),
+ list("M74 AGM-I Grenade Pack (x6)", floor(scale * 1.5), /obj/effect/essentials_set/agmi_6_pack, VENDOR_ITEM_REGULAR),
list("EXTRA FLAMETHROWER TANKS", -1, null, null, null),
- list("Large Incinerator Tank", round(scale * 1), /obj/item/ammo_magazine/flamer_tank/large, VENDOR_ITEM_REGULAR),
- list("Large Incinerator Tank (B) (Green Flame)", round(scale * 1), /obj/item/ammo_magazine/flamer_tank/large/B, VENDOR_ITEM_REGULAR),
- list("Large Incinerator Tank (X) (Blue Flame)", round(scale * 1), /obj/item/ammo_magazine/flamer_tank/large/X, VENDOR_ITEM_REGULAR),
+ list("Large Incinerator Tank", floor(scale * 1), /obj/item/ammo_magazine/flamer_tank/large, VENDOR_ITEM_REGULAR),
+ list("Large Incinerator Tank (B) (Green Flame)", floor(scale * 1), /obj/item/ammo_magazine/flamer_tank/large/B, VENDOR_ITEM_REGULAR),
+ list("Large Incinerator Tank (X) (Blue Flame)", floor(scale * 1), /obj/item/ammo_magazine/flamer_tank/large/X, VENDOR_ITEM_REGULAR),
)
//------------ARMAMENTS VENDOR---------------
diff --git a/code/game/objects/effects/decals/cleanable/misc.dm b/code/game/objects/effects/decals/cleanable/misc.dm
index a88b4ea5c5ea..5969914eb743 100644
--- a/code/game/objects/effects/decals/cleanable/misc.dm
+++ b/code/game/objects/effects/decals/cleanable/misc.dm
@@ -99,7 +99,7 @@
appearance_flags = RESET_ALPHA | TILE_BOUND | PIXEL_SCALE
garbage = FALSE
/obj/effect/decal/cleanable/cobweb2/dynamic/Initialize(mapload, targetdir, webscale = 1.0)
- alpha += round(webscale * 120)
+ alpha += floor(webscale * 120)
var/angle = dir2angle(targetdir)
var/matrix/TM = new
TM *= webscale
diff --git a/code/game/objects/effects/effect_system/chemsmoke.dm b/code/game/objects/effects/effect_system/chemsmoke.dm
index 55c38215415c..ad86e66d5f0f 100644
--- a/code/game/objects/effects/effect_system/chemsmoke.dm
+++ b/code/game/objects/effects/effect_system/chemsmoke.dm
@@ -166,7 +166,7 @@
continue
var/offset = 0
- var/points = round((radius * 2 * PI) / arcLength)
+ var/points = floor((radius * 2 * PI) / arcLength)
var/angle = round(ToDegrees(arcLength / radius), 1)
if(!IsInteger(radius))
diff --git a/code/game/objects/effects/effect_system/explosions.dm b/code/game/objects/effects/effect_system/explosions.dm
index 1164b8341750..709331e1c76a 100644
--- a/code/game/objects/effects/effect_system/explosions.dm
+++ b/code/game/objects/effects/effect_system/explosions.dm
@@ -50,11 +50,11 @@
if(holder)
var/dmglevel = 4
- if (round(amount/8) > 0)
+ if (floor(amount/8) > 0)
dmglevel = 1
- else if (round(amount/4) > 0)
+ else if (floor(amount/4) > 0)
dmglevel = 2
- else if (round(amount/2) > 0)
+ else if (floor(amount/2) > 0)
dmglevel = 3
if(dmglevel<4) holder.ex_act(dmglevel)
diff --git a/code/game/objects/effects/effect_system/foam.dm b/code/game/objects/effects/effect_system/foam.dm
index 7a06fa50619c..e7b8ba310bdd 100644
--- a/code/game/objects/effects/effect_system/foam.dm
+++ b/code/game/objects/effects/effect_system/foam.dm
@@ -212,7 +212,7 @@
return FALSE
/obj/structure/foamed_metal/attack_alien(mob/living/carbon/xenomorph/X, dam_bonus)
- var/damage = ((round((X.melee_damage_lower+X.melee_damage_upper)/2)) + dam_bonus)
+ var/damage = ((floor((X.melee_damage_lower+X.melee_damage_upper)/2)) + dam_bonus)
//Frenzy bonus
if(X.frenzy_aura > 0)
diff --git a/code/game/objects/effects/effect_system/smoke.dm b/code/game/objects/effects/effect_system/smoke.dm
index 6e3869f563a4..ac0d36ead1e3 100644
--- a/code/game/objects/effects/effect_system/smoke.dm
+++ b/code/game/objects/effects/effect_system/smoke.dm
@@ -292,7 +292,7 @@
if(human_creature && (human_creature.head && (human_creature.head.flags_inventory & BLOCKGASEFFECT)))
return FALSE
- var/effect_amt = round(6 + amount*6)
+ var/effect_amt = floor(6 + amount*6)
if(xeno_creature)
if(xeno_creature.interference < 4)
@@ -301,10 +301,10 @@
xeno_creature.blinded = TRUE
else
creature.apply_damage(12, OXY)
- creature.SetEarDeafness(max(creature.ear_deaf, round(effect_amt*1.5))) //Paralysis of hearing system, aka deafness
+ creature.SetEarDeafness(max(creature.ear_deaf, floor(effect_amt*1.5))) //Paralysis of hearing system, aka deafness
if(!xeno_creature && !creature.eye_blind) //Eye exposure damage
to_chat(creature, SPAN_DANGER("Your eyes sting. You can't see!"))
- creature.SetEyeBlind(round(effect_amt/3))
+ creature.SetEyeBlind(floor(effect_amt/3))
if(!xeno_creature && creature.coughedtime != 1 && !creature.stat) //Coughing/gasping
creature.coughedtime = 1
if(prob(50))
@@ -323,7 +323,7 @@
to_chat(xeno_creature, SPAN_XENODANGER("You are struggling to move, it's as if you're paralyzed!"))
else
to_chat(creature, SPAN_DANGER("Your body is going numb, almost as if paralyzed!"))
- if(prob(60 + round(amount*15))) //Highly likely to drop items due to arms/hands seizing up
+ if(prob(60 + floor(amount*15))) //Highly likely to drop items due to arms/hands seizing up
creature.drop_held_item()
if(human_creature)
human_creature.temporary_slowdown = max(human_creature.temporary_slowdown, 4) //One tick every two second
@@ -465,7 +465,7 @@
var/mob/living/carbon/human/H = moob
if(H.chem_effect_flags & CHEM_EFFECT_RESIST_NEURO)
return
- var/effect_amt = round(6 + amount*6)
+ var/effect_amt = floor(6 + amount*6)
moob.eye_blurry = max(moob.eye_blurry, effect_amt)
moob.apply_effect(max(moob.eye_blurry, effect_amt), EYE_BLUR)
moob.apply_damage(5, OXY) // Base "I can't breath oxyloss" Slightly more longer lasting then stamina damage
@@ -516,13 +516,13 @@
if(HAS_TRAIT(moob, TRAIT_NESTED) && moob.status_flags & XENO_HOST)
return
- var/effect_amt = round(6 + amount*6)
+ var/effect_amt = floor(6 + amount*6)
moob.apply_damage(9, OXY) // MUCH harsher
- moob.SetEarDeafness(max(moob.ear_deaf, round(effect_amt*1.5))) //Paralysis of hearing system, aka deafness
+ moob.SetEarDeafness(max(moob.ear_deaf, floor(effect_amt*1.5))) //Paralysis of hearing system, aka deafness
if(!moob.eye_blind) //Eye exposure damage
to_chat(moob, SPAN_DANGER("Your eyes sting. You can't see!"))
- moob.SetEyeBlind(round(effect_amt/3))
+ moob.SetEyeBlind(floor(effect_amt/3))
if(moob.coughedtime != 1 && !moob.stat) //Coughing/gasping
moob.coughedtime = 1
if(prob(50))
@@ -535,7 +535,7 @@
//Topical damage (neurotoxin on exposed skin)
to_chat(moob, SPAN_DANGER("Your body is going numb, almost as if paralyzed!"))
- if(prob(40 + round(amount*15))) //Highly likely to drop items due to arms/hands seizing up
+ if(prob(40 + floor(amount*15))) //Highly likely to drop items due to arms/hands seizing up
moob.drop_held_item()
if(ishuman(moob))
var/mob/living/carbon/human/Human = moob
diff --git a/code/game/objects/effects/glowshroom.dm b/code/game/objects/effects/glowshroom.dm
index aa5e2ec400e2..58e3b868f7e0 100644
--- a/code/game/objects/effects/glowshroom.dm
+++ b/code/game/objects/effects/glowshroom.dm
@@ -39,7 +39,7 @@
else //if on the floor, glowshroom on-floor sprite
icon_state = "glowshroomf"
- set_light(round(potency/15))
+ set_light(floor(potency/15))
lastTick = world.timeofday
/obj/effect/glowshroom/proc/CalcDir(turf/location = loc)
diff --git a/code/game/objects/items/backpack_sprayers.dm b/code/game/objects/items/backpack_sprayers.dm
index 427a1dd597c7..c6e747ea9759 100644
--- a/code/game/objects/items/backpack_sprayers.dm
+++ b/code/game/objects/items/backpack_sprayers.dm
@@ -333,7 +333,7 @@
return
//actually firing the launcher
if(tank.launcher_cooldown > world.time)
- to_chat(user, SPAN_WARNING("\The [tank] cannot fire another foam ball just yet. Wait [round(tank.launcher_cooldown/10)] seconds."))
+ to_chat(user, SPAN_WARNING("\The [tank] cannot fire another foam ball just yet. Wait [floor(tank.launcher_cooldown/10)] seconds."))
return
if(tank.reagents.has_reagent("water", launcher_cost))
tank.reagents.remove_reagent("water", launcher_cost)
diff --git a/code/game/objects/items/devices/binoculars.dm b/code/game/objects/items/devices/binoculars.dm
index b39526e231b5..5da4704e0e78 100644
--- a/code/game/objects/items/devices/binoculars.dm
+++ b/code/game/objects/items/devices/binoculars.dm
@@ -448,7 +448,7 @@
human.face_atom(target)
///Add a decisecond to the default 1.5 seconds for each two tiles to hit.
- var/distance = round(get_dist(target, human) * 0.5)
+ var/distance = floor(get_dist(target, human) * 0.5)
var/f_spotting_time = designator.spotting_time + distance
designator.is_spotting = TRUE
diff --git a/code/game/objects/items/devices/defibrillator.dm b/code/game/objects/items/devices/defibrillator.dm
index bbeb2046aff0..4a5ad7cc13ed 100644
--- a/code/game/objects/items/devices/defibrillator.dm
+++ b/code/game/objects/items/devices/defibrillator.dm
@@ -50,7 +50,7 @@
icon_state += "_out"
if(dcell && dcell.charge)
- switch(round(dcell.charge * 100 / dcell.maxcharge))
+ switch(floor(dcell.charge * 100 / dcell.maxcharge))
if(67 to INFINITY)
overlays += "+full"
if(34 to 66)
@@ -66,8 +66,8 @@
. = ..()
var/maxuses = 0
var/currentuses = 0
- maxuses = round(dcell.maxcharge / charge_cost)
- currentuses = round(dcell.charge / charge_cost)
+ maxuses = floor(dcell.maxcharge / charge_cost)
+ currentuses = floor(dcell.charge / charge_cost)
. += SPAN_INFO("It has [currentuses] out of [maxuses] uses left in its internal battery.")
if(MODE_HAS_TOGGLEABLE_FLAG(MODE_STRONG_DEFIBS) || !blocked_by_suit)
. += SPAN_NOTICE("This defibrillator will ignore worn armor.")
diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm
index 56d363774a62..0845b670c6fd 100644
--- a/code/game/objects/items/devices/flash.dm
+++ b/code/game/objects/items/devices/flash.dm
@@ -35,7 +35,7 @@
flashes_stored++
if(flashes_stored <= max_flashes_stored)
visible_message(SPAN_NOTICE("[icon2html(src, viewers(src))] \The [src] pings as it recharges!"), SPAN_NOTICE("You hear a ping"), 3)
- flashes_stored = min(max_flashes_stored, round(flashes_stored)) //sanity
+ flashes_stored = min(max_flashes_stored, floor(flashes_stored)) //sanity
/obj/item/device/flash/proc/check_if_can_use_flash(mob/user) //checks for using the flash
if(!ishuman(user))
diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm
index 2af343c8de26..8d5e3cc752ff 100644
--- a/code/game/objects/items/devices/flashlight.dm
+++ b/code/game/objects/items/devices/flashlight.dm
@@ -421,7 +421,7 @@
/obj/item/device/flashlight/flare/on/illumination/chemical/Initialize(mapload, amount)
. = ..()
- light_range = round(amount * 0.04)
+ light_range = floor(amount * 0.04)
if(!light_range)
return INITIALIZE_HINT_QDEL
set_light(light_range)
diff --git a/code/game/objects/items/devices/helmet_visors.dm b/code/game/objects/items/devices/helmet_visors.dm
index 7b61df3291ef..0b5c5d296c39 100644
--- a/code/game/objects/items/devices/helmet_visors.dm
+++ b/code/game/objects/items/devices/helmet_visors.dm
@@ -225,7 +225,7 @@
/obj/item/device/helmet_visor/night_vision/get_examine_text(mob/user)
. = ..()
- . += SPAN_NOTICE("It is currently at [round((power_cell.charge / power_cell.maxcharge) * 100)]% charge.")
+ . += SPAN_NOTICE("It is currently at [floor((power_cell.charge / power_cell.maxcharge) * 100)]% charge.")
/obj/item/device/helmet_visor/night_vision/activate_visor(obj/item/clothing/head/helmet/marine/attached_helmet, mob/living/carbon/human/user)
RegisterSignal(user, COMSIG_HUMAN_POST_UPDATE_SIGHT, PROC_REF(on_update_sight))
@@ -286,7 +286,7 @@
/obj/item/device/helmet_visor/night_vision/get_helmet_examine_text()
. = ..()
- . += SPAN_NOTICE(" It is currently at [round((power_cell.charge / power_cell.maxcharge) * 100)]% charge.")
+ . += SPAN_NOTICE(" It is currently at [floor((power_cell.charge / power_cell.maxcharge) * 100)]% charge.")
/obj/item/device/helmet_visor/night_vision/proc/on_update_sight(mob/user)
SIGNAL_HANDLER
diff --git a/code/game/objects/items/devices/motion_detector.dm b/code/game/objects/items/devices/motion_detector.dm
index d76d2e73af33..3551e3a02bef 100644
--- a/code/game/objects/items/devices/motion_detector.dm
+++ b/code/game/objects/items/devices/motion_detector.dm
@@ -269,9 +269,9 @@
var/view_x_offset = 0
var/view_y_offset = 0
if(c_view > 7)
- if(user.client.pixel_x >= 0) view_x_offset = round(user.client.pixel_x/32)
+ if(user.client.pixel_x >= 0) view_x_offset = floor(user.client.pixel_x/32)
else view_x_offset = ceil(user.client.pixel_x/32)
- if(user.client.pixel_y >= 0) view_y_offset = round(user.client.pixel_y/32)
+ if(user.client.pixel_y >= 0) view_y_offset = floor(user.client.pixel_y/32)
else view_y_offset = ceil(user.client.pixel_y/32)
var/diff_dir_x = 0
diff --git a/code/game/objects/items/devices/portable_vendor.dm b/code/game/objects/items/devices/portable_vendor.dm
index 8e7c8df1d9a7..f45eeadee5b7 100644
--- a/code/game/objects/items/devices/portable_vendor.dm
+++ b/code/game/objects/items/devices/portable_vendor.dm
@@ -117,7 +117,7 @@
.["vendor_name"] = name
.["show_points"] = use_points
- .["current_points"] = round(points)
+ .["current_points"] = floor(points)
.["max_points"] = max_points
.["displayed_records"] = available_items
@@ -178,7 +178,7 @@
if(special_prod_time_lock && (product[3] in special_prods))
if(ROUND_TIME < special_prod_time_lock)
- to_chat(usr, SPAN_WARNING("[src] is still fabricating [product[1]]. Please wait another [round((SSticker.mode.round_time_lobby + special_prod_time_lock-world.time)/600)] minutes before trying again."))
+ to_chat(usr, SPAN_WARNING("[src] is still fabricating [product[1]]. Please wait another [floor((SSticker.mode.round_time_lobby + special_prod_time_lock-world.time)/600)] minutes before trying again."))
return
if(use_points)
diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm
index a9edd5d71795..871b266cfd49 100644
--- a/code/game/objects/items/devices/radio/electropack.dm
+++ b/code/game/objects/items/devices/radio/electropack.dm
@@ -35,7 +35,7 @@
else
if(href_list["code"])
code += text2num(href_list["code"])
- code = round(code)
+ code = floor(code)
code = min(100, code)
code = max(1, code)
else
diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm
index 512ca8baad9b..778082fc46a4 100644
--- a/code/game/objects/items/devices/scanners.dm
+++ b/code/game/objects/items/devices/scanners.dm
@@ -191,7 +191,7 @@ FORENSIC SCANNER
user.show_message(SPAN_DANGER("Pressure: [round(env_pressure,0.1)] kPa"), 1)
if(env_pressure > 0)
user.show_message(SPAN_NOTICE("Gas Type: [env_gas]"), 1)
- user.show_message(SPAN_NOTICE("Temperature: [round(env_temp-T0C)]°C"), 1)
+ user.show_message(SPAN_NOTICE("Temperature: [floor(env_temp-T0C)]°C"), 1)
src.add_fingerprint(user)
return
diff --git a/code/game/objects/items/devices/suit_cooling.dm b/code/game/objects/items/devices/suit_cooling.dm
index e0f65a4b31ec..564b3e41f591 100644
--- a/code/game/objects/items/devices/suit_cooling.dm
+++ b/code/game/objects/items/devices/suit_cooling.dm
@@ -174,6 +174,6 @@
. += "The panel is open."
if (cell)
- . += "The charge meter reads [round(cell.percent())]%."
+ . += "The charge meter reads [floor(cell.percent())]%."
else
. += "It doesn't have a power cell installed."
diff --git a/code/game/objects/items/devices/taperecorder.dm b/code/game/objects/items/devices/taperecorder.dm
index 9a5e1e1b0ef5..8410c72ee831 100644
--- a/code/game/objects/items/devices/taperecorder.dm
+++ b/code/game/objects/items/devices/taperecorder.dm
@@ -49,7 +49,7 @@
return SPAN_NOTICE("PLAYING")
else
var/time = mytape.used_capacity / 10 //deciseconds / 10 = seconds
- var/mins = round(time / 60)
+ var/mins = floor(time / 60)
var/secs = time - mins * 60
return SPAN_NOTICE("[mins]m [secs]s")
return SPAN_NOTICE("NO TAPE INSERTED")
@@ -382,7 +382,7 @@
if(unspooled)
. += SPAN_WARNING("It's had all its magnetic tape pulled out! Maybe you can wind it back in with a screwdriver.")
else
- var/used_tape_percent = round((used_capacity / max_capacity)*100)
+ var/used_tape_percent = floor((used_capacity / max_capacity)*100)
switch(used_tape_percent)
if(0 to 5)
. += SPAN_NOTICE("It's unused.")
diff --git a/code/game/objects/items/reagent_containers/autoinjectors.dm b/code/game/objects/items/reagent_containers/autoinjectors.dm
index 04a3a15585ab..ff830318fda0 100644
--- a/code/game/objects/items/reagent_containers/autoinjectors.dm
+++ b/code/game/objects/items/reagent_containers/autoinjectors.dm
@@ -33,7 +33,7 @@
/obj/item/reagent_container/hypospray/autoinjector/proc/update_uses_left()
var/UL = reagents.total_volume / amount_per_transfer_from_this
- UL = round(UL) == UL ? UL : round(UL) + 1
+ UL = floor(UL) == UL ? UL : floor(UL) + 1
uses_left = UL
/obj/item/reagent_container/hypospray/autoinjector/attack(mob/M, mob/user)
diff --git a/code/game/objects/items/reagent_containers/blood_pack.dm b/code/game/objects/items/reagent_containers/blood_pack.dm
index 92c68e81c9d2..5dafafe6a47f 100644
--- a/code/game/objects/items/reagent_containers/blood_pack.dm
+++ b/code/game/objects/items/reagent_containers/blood_pack.dm
@@ -28,7 +28,7 @@
update_icon()
/obj/item/reagent_container/blood/update_icon()
- var/percent = round((reagents.total_volume / volume) * 100)
+ var/percent = floor((reagents.total_volume / volume) * 100)
overlays = null
underlays = null
diff --git a/code/game/objects/items/reagent_containers/food/drinks.dm b/code/game/objects/items/reagent_containers/food/drinks.dm
index 0ec02b240e29..0a350aa851e2 100644
--- a/code/game/objects/items/reagent_containers/food/drinks.dm
+++ b/code/game/objects/items/reagent_containers/food/drinks.dm
@@ -13,7 +13,7 @@
/obj/item/reagent_container/food/drinks/on_reagent_change()
if (gulp_size < 5) gulp_size = 5
- else gulp_size = max(round(reagents.total_volume / 5), 5)
+ else gulp_size = max(floor(reagents.total_volume / 5), 5)
/obj/item/reagent_container/food/drinks/attack(mob/M, mob/user)
var/datum/reagents/R = src.reagents
diff --git a/code/game/objects/items/reagent_containers/food/snacks.dm b/code/game/objects/items/reagent_containers/food/snacks.dm
index 293a71ca7c5d..09b4379e7bb7 100644
--- a/code/game/objects/items/reagent_containers/food/snacks.dm
+++ b/code/game/objects/items/reagent_containers/food/snacks.dm
@@ -212,7 +212,7 @@
SPAN_NOTICE("[user] crudely slices \the [src] with [W]!"), \
SPAN_NOTICE("You crudely slice \the [src] with your [W]!") \
)
- slices_lost = rand(1,max(1,round(slices_num/2)))
+ slices_lost = rand(1,max(1,floor(slices_num/2)))
var/reagents_per_slice = reagents.total_volume/slices_num
for(var/i=1 to (slices_num-slices_lost))
var/obj/slice = new slice_path (src.loc)
diff --git a/code/game/objects/items/reagent_containers/food/snacks/grown.dm b/code/game/objects/items/reagent_containers/food/snacks/grown.dm
index 4c988f18ac7c..68b617d6a476 100644
--- a/code/game/objects/items/reagent_containers/food/snacks/grown.dm
+++ b/code/game/objects/items/reagent_containers/food/snacks/grown.dm
@@ -42,7 +42,7 @@
var/list/reagent_data = S.chems[rid]
var/rtotal = reagent_data[1]
if(length(reagent_data) > 1 && potency > 0)
- rtotal += round(potency/reagent_data[2])
+ rtotal += floor(potency/reagent_data[2])
if(reagents)
reagents.add_reagent(rid, max(1, rtotal))
diff --git a/code/game/objects/items/reagent_containers/glass.dm b/code/game/objects/items/reagent_containers/glass.dm
index e0f432bd5b09..a8b0ac1d6202 100644
--- a/code/game/objects/items/reagent_containers/glass.dm
+++ b/code/game/objects/items/reagent_containers/glass.dm
@@ -219,7 +219,7 @@
if(reagents && reagents.total_volume)
var/image/filling = image('icons/obj/items/reagentfillings.dmi', src, "[icon_state]-20")
- var/percent = round((reagents.total_volume / volume) * 100)
+ var/percent = floor((reagents.total_volume / volume) * 100)
switch(percent)
if(0) filling.icon_state = null
if(1 to 20) filling.icon_state = "[icon_state]-20"
@@ -307,7 +307,7 @@
overlays.Cut()
if(reagents && reagents.total_volume)
var/image/filling = image('icons/obj/items/reagentfillings.dmi', src, "[icon_state]10")
- var/percent = round((reagents.total_volume / volume) * 100)
+ var/percent = floor((reagents.total_volume / volume) * 100)
var/round_percent = 0
if(percent > 24) round_percent = round(percent, 25)
else round_percent = 10
@@ -619,7 +619,7 @@
if(reagents && reagents.total_volume)
var/image/filling = image('icons/obj/items/reagentfillings.dmi', src, "[icon_state]-00-65")
- var/percent = round((reagents.total_volume / volume) * 100)
+ var/percent = floor((reagents.total_volume / volume) * 100)
switch(percent)
if(0 to 33) filling.icon_state = "[icon_state]-00-33"
if(34 to 65) filling.icon_state = "[icon_state]-34-65"
diff --git a/code/game/objects/items/reagent_containers/glass/bottle.dm b/code/game/objects/items/reagent_containers/glass/bottle.dm
index 61cdee01c8f8..f1eab588fd20 100644
--- a/code/game/objects/items/reagent_containers/glass/bottle.dm
+++ b/code/game/objects/items/reagent_containers/glass/bottle.dm
@@ -39,7 +39,7 @@
if(reagents.total_volume)
var/image/filling = image('icons/obj/items/reagentfillings.dmi', src, "[icon_state]10")
- var/percent = round((reagents.total_volume / volume) * 100)
+ var/percent = floor((reagents.total_volume / volume) * 100)
switch(percent)
if(0) filling.icon_state = null
if(1 to 20) filling.icon_state = "[icon_state]-20"
diff --git a/code/game/objects/items/reagent_containers/spray.dm b/code/game/objects/items/reagent_containers/spray.dm
index aff905039d0e..d3dc7ea5880a 100644
--- a/code/game/objects/items/reagent_containers/spray.dm
+++ b/code/game/objects/items/reagent_containers/spray.dm
@@ -87,7 +87,7 @@
/obj/item/reagent_container/spray/get_examine_text(mob/user)
. = ..()
- . += "[round(reagents.total_volume)] units left."
+ . += "[floor(reagents.total_volume)] units left."
/obj/item/reagent_container/spray/verb/empty()
diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm
index f8a6af3cf24f..4138cb4311ac 100644
--- a/code/game/objects/items/stacks/stack.dm
+++ b/code/game/objects/items/stacks/stack.dm
@@ -107,7 +107,7 @@ Also change the icon to reflect the amount of sheets, if possible.*/
if(istype(E, /datum/stack_recipe))
var/datum/stack_recipe/R = E
- var/max_multiplier = round(src.amount / R.req_amount)
+ var/max_multiplier = floor(src.amount / R.req_amount)
var/title
var/can_build = 1
can_build = can_build && (max_multiplier > 0)
@@ -122,7 +122,7 @@ Also change the icon to reflect the amount of sheets, if possible.*/
t1 += text("[]", title)
continue
if(R.max_res_amount>1 && max_multiplier > 1)
- max_multiplier = min(max_multiplier, round(R.max_res_amount/R.res_amount))
+ max_multiplier = min(max_multiplier, floor(R.max_res_amount/R.res_amount))
t1 += " |"
var/list/multipliers = list(5, 10, 25)
for (var/n in multipliers)
@@ -160,7 +160,7 @@ Also change the icon to reflect the amount of sheets, if possible.*/
if(!isnum(multiplier)) // this used to block nan...
message_admins("[key_name_admin(usr)] has attempted to multiply [src] with !isnum")
return
- multiplier = round(multiplier)
+ multiplier = floor(multiplier)
if(multiplier < 1)
return //href exploit protection
if(R.skill_lvl)
diff --git a/code/game/objects/items/storage/bags.dm b/code/game/objects/items/storage/bags.dm
index 542b947134e8..19e012ff1c14 100644
--- a/code/game/objects/items/storage/bags.dm
+++ b/code/game/objects/items/storage/bags.dm
@@ -46,9 +46,9 @@
if(!sum_storage_cost)
icon_state = "trashbag0"
- else if(sum_storage_cost < round(max_storage_space * 0.35))
+ else if(sum_storage_cost < floor(max_storage_space * 0.35))
icon_state = "trashbag1"
- else if(sum_storage_cost < round(max_storage_space * 0.7))
+ else if(sum_storage_cost < floor(max_storage_space * 0.7))
icon_state = "trashbag2"
else
icon_state = "trashbag3"
@@ -203,7 +203,7 @@
var/row_num = 0
var/col_count = min(7,storage_slots) -1
if (adjusted_contents > 7)
- row_num = round((adjusted_contents-1) / 7) // 7 is the maximum allowed width.
+ row_num = floor((adjusted_contents-1) / 7) // 7 is the maximum allowed width.
slot_orient_objs(row_num, col_count, numbered_contents)
return
diff --git a/code/game/objects/items/storage/firstaid.dm b/code/game/objects/items/storage/firstaid.dm
index 201e34654624..314628bab9a3 100644
--- a/code/game/objects/items/storage/firstaid.dm
+++ b/code/game/objects/items/storage/firstaid.dm
@@ -385,7 +385,7 @@
. = ..()
var/pills_amount = contents.len
if(pills_amount)
- var/percentage_filled = round(pills_amount/max_storage_space * 100)
+ var/percentage_filled = floor(pills_amount/max_storage_space * 100)
switch(percentage_filled)
if(80 to 101)
. += SPAN_INFO("The [name] seems fairly full.")
diff --git a/code/game/objects/items/storage/large_holster.dm b/code/game/objects/items/storage/large_holster.dm
index 09885db34fc9..220bf4e86d1e 100644
--- a/code/game/objects/items/storage/large_holster.dm
+++ b/code/game/objects/items/storage/large_holster.dm
@@ -321,7 +321,7 @@
fuel.forceMove(get_turf(user))
fuel = new_fuel
visible_message("[user] swaps out the fuel tank in [src].","You swap out the fuel tank in [src] and drop the old one.")
- to_chat(user, "The newly inserted [new_fuel.caliber] contains: [round(new_fuel.get_ammo_percent())]% fuel.")
+ to_chat(user, "The newly inserted [new_fuel.caliber] contains: [floor(new_fuel.get_ammo_percent())]% fuel.")
user.temp_drop_inv_item(new_fuel)
new_fuel.moveToNullspace() //necessary to not confuse the storage system
playsound(src, 'sound/machines/click.ogg', 25, TRUE)
@@ -336,11 +336,11 @@
. += "It is storing a M240-T incinerator unit."
if (get_dist(user, src) <= 1)
if(fuel)
- . += "The [fuel.caliber] currently contains: [round(fuel.get_ammo_percent())]% fuel."
+ . += "The [fuel.caliber] currently contains: [floor(fuel.get_ammo_percent())]% fuel."
if(fuelB)
- . += "The [fuelB.caliber] currently contains: [round(fuelB.get_ammo_percent())]% fuel."
+ . += "The [fuelB.caliber] currently contains: [floor(fuelB.get_ammo_percent())]% fuel."
if(fuelX)
- . += "The [fuelX.caliber] currently contains: [round(fuelX.get_ammo_percent())]% fuel."
+ . += "The [fuelX.caliber] currently contains: [floor(fuelX.get_ammo_percent())]% fuel."
/datum/action/item_action/specialist/toggle_fuel
ability_primacy = SPEC_PRIMARY_ACTION_1
diff --git a/code/game/objects/items/storage/pouch.dm b/code/game/objects/items/storage/pouch.dm
index 1b75a1a7d89d..caf1f25676b3 100644
--- a/code/game/objects/items/storage/pouch.dm
+++ b/code/game/objects/items/storage/pouch.dm
@@ -938,7 +938,7 @@
/obj/item/storage/pouch/pressurized_reagent_canister/proc/fill_autoinjector(obj/item/reagent_container/hypospray/autoinjector/autoinjector)
var/max_uses = autoinjector.volume / autoinjector.amount_per_transfer_from_this
- max_uses = round(max_uses) == max_uses ? max_uses : round(max_uses) + 1
+ max_uses = floor(max_uses) == max_uses ? max_uses : floor(max_uses) + 1
if(inner && inner.reagents.total_volume > 0 && (autoinjector.uses_left < max_uses))
inner.reagents.trans_to(autoinjector, autoinjector.volume)
autoinjector.update_uses_left()
diff --git a/code/game/objects/items/storage/storage.dm b/code/game/objects/items/storage/storage.dm
index 51a73d2f0444..7b616b275793 100644
--- a/code/game/objects/items/storage/storage.dm
+++ b/code/game/objects/items/storage/storage.dm
@@ -259,7 +259,7 @@ GLOBAL_LIST_EMPTY_TYPED(item_storage_box_cache, /datum/item_storage_box)
if(!opened) //initialize background box
storage_start.screen_loc = "4:16,2:16"
- storage_continue.screen_loc = "4:[round(storage_cap_width+(storage_width-storage_cap_width*2)/2+2)],2:16"
+ storage_continue.screen_loc = "4:[floor(storage_cap_width+(storage_width-storage_cap_width*2)/2+2)],2:16"
storage_end.screen_loc = "4:[19+storage_width-storage_cap_width],2:16"
var/startpoint = 0
@@ -294,7 +294,7 @@ GLOBAL_LIST_EMPTY_TYPED(item_storage_box_cache, /datum/item_storage_box)
storage_start.overlays += ISB.continued
storage_start.overlays += ISB.end
- O.screen_loc = "4:[round((startpoint+endpoint)/2)+(2+O.hud_offset)],2:16"
+ O.screen_loc = "4:[floor((startpoint+endpoint)/2)+(2+O.hud_offset)],2:16"
O.layer = ABOVE_HUD_LAYER
O.plane = ABOVE_HUD_PLANE
@@ -390,7 +390,7 @@ GLOBAL_LIST_EMPTY_TYPED(item_storage_box_cache, /datum/item_storage_box)
var/row_num = 0
var/col_count = min(7,storage_slots) -1
if (adjusted_contents > 7)
- row_num = round((adjusted_contents-1) / 7) // 7 is the maximum allowed width.
+ row_num = floor((adjusted_contents-1) / 7) // 7 is the maximum allowed width.
slot_orient_objs(row_num, col_count, numbered_contents)
return
diff --git a/code/game/objects/items/tanks/tanks.dm b/code/game/objects/items/tanks/tanks.dm
index 5a929a171fc6..7d6da672b721 100644
--- a/code/game/objects/items/tanks/tanks.dm
+++ b/code/game/objects/items/tanks/tanks.dm
@@ -61,7 +61,7 @@
if(pressure>0)
to_chat(user, SPAN_NOTICE("Pressure: [round(pressure,0.1)] kPa"))
to_chat(user, SPAN_NOTICE("[gas_type]: 100%"))
- to_chat(user, SPAN_NOTICE("Temperature: [round(temperature-T0C)]°C"))
+ to_chat(user, SPAN_NOTICE("Temperature: [floor(temperature-T0C)]°C"))
else
to_chat(user, SPAN_NOTICE("Tank is empty!"))
src.add_fingerprint(user)
@@ -84,12 +84,12 @@
/obj/item/tank/ui_data(mob/user)
var/list/data = list()
- data["tankPressure"] = round(pressure)
- data["tankMaxPressure"] = round(pressure_full)
- data["ReleasePressure"] = round(distribute_pressure)
- data["defaultReleasePressure"] = round(TANK_DEFAULT_RELEASE_PRESSURE)
- data["maxReleasePressure"] = round(TANK_MAX_RELEASE_PRESSURE)
- data["minReleasePressure"] = round(TANK_MIN_RELEASE_PRESSURE)
+ data["tankPressure"] = floor(pressure)
+ data["tankMaxPressure"] = floor(pressure_full)
+ data["ReleasePressure"] = floor(distribute_pressure)
+ data["defaultReleasePressure"] = floor(TANK_DEFAULT_RELEASE_PRESSURE)
+ data["maxReleasePressure"] = floor(TANK_MAX_RELEASE_PRESSURE)
+ data["minReleasePressure"] = floor(TANK_MIN_RELEASE_PRESSURE)
var/mask_connected = FALSE
var/using_internal = FALSE
@@ -122,7 +122,7 @@
src.distribute_pressure = TANK_MIN_RELEASE_PRESSURE
else if(text2num(tgui_pressure) != null)
pressure = text2num(tgui_pressure)
- src.distribute_pressure = min(max(round(src.distribute_pressure), 0), TANK_MAX_RELEASE_PRESSURE)
+ src.distribute_pressure = min(max(floor(src.distribute_pressure), 0), TANK_MAX_RELEASE_PRESSURE)
. = TRUE
if("valve")
diff --git a/code/game/objects/items/tools/experimental_tools.dm b/code/game/objects/items/tools/experimental_tools.dm
index dad06367b43d..fc58f95909c9 100644
--- a/code/game/objects/items/tools/experimental_tools.dm
+++ b/code/game/objects/items/tools/experimental_tools.dm
@@ -107,7 +107,7 @@
icon_state = "autocomp"
if(pdcell && pdcell.charge)
overlays.Cut()
- switch(round(pdcell.charge * 100 / pdcell.maxcharge))
+ switch(floor(pdcell.charge * 100 / pdcell.maxcharge))
if(1 to 32)
overlays += "cpr_batt_lo"
if(33 to 65)
@@ -118,7 +118,7 @@
/obj/item/clothing/suit/auto_cpr/get_examine_text(mob/user)
. = ..()
- . += SPAN_NOTICE("It has [round(pdcell.charge * 100 / pdcell.maxcharge)]% charge remaining.")
+ . += SPAN_NOTICE("It has [floor(pdcell.charge * 100 / pdcell.maxcharge)]% charge remaining.")
@@ -230,7 +230,7 @@
overlays += "+filtering"
if(pdcell && pdcell.charge)
- switch(round(pdcell.charge * 100 / pdcell.maxcharge))
+ switch(floor(pdcell.charge * 100 / pdcell.maxcharge))
if(85 to INFINITY)
overlays += "dialysis_battery_100"
if(60 to 84)
@@ -249,7 +249,7 @@
/obj/item/tool/portadialysis/get_examine_text(mob/user)
. = ..()
var/currentpercent = 0
- currentpercent = round(pdcell.charge * 100 / pdcell.maxcharge)
+ currentpercent = floor(pdcell.charge * 100 / pdcell.maxcharge)
. += SPAN_INFO("It has [currentpercent]% charge left in its internal battery.")
/obj/item/tool/portadialysis/proc/painful_detach()
diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm
index 2362a70e6e1e..9c1f065bcf7e 100644
--- a/code/game/objects/items/weapons/stunbaton.dm
+++ b/code/game/objects/items/weapons/stunbaton.dm
@@ -54,7 +54,7 @@
/obj/item/weapon/baton/get_examine_text(mob/user)
. = ..()
if(bcell)
- . += SPAN_NOTICE("The baton is [round(bcell.percent())]% charged.")
+ . += SPAN_NOTICE("The baton is [floor(bcell.percent())]% charged.")
else
. += SPAN_WARNING("The baton does not have a power source installed.")
diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm
index f3c76bcff638..a1ae814b8f2f 100644
--- a/code/game/objects/items/weapons/weaponry.dm
+++ b/code/game/objects/items/weapons/weaponry.dm
@@ -219,7 +219,7 @@
var/power = force
if(user.skills)
- power = round(power * (1 + 0.3*user.skills.get_skill_level(SKILL_MELEE_WEAPONS))) //30% bonus per melee level
+ power = floor(power * (1 + 0.3*user.skills.get_skill_level(SKILL_MELEE_WEAPONS))) //30% bonus per melee level
//if the target also has a katana (and we aren't attacking ourselves), we add some suspense
diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm
index 70dc5ff1786d..4c8f701feaff 100644
--- a/code/game/objects/objs.dm
+++ b/code/game/objects/objs.dm
@@ -374,7 +374,7 @@
return 0
bullet_ping(P)
if(P.ammo.damage)
- update_health(round(P.ammo.damage / 2))
+ update_health(floor(P.ammo.damage / 2))
return 1
/obj/item/proc/get_mob_overlay(mob/user_mob, slot)
diff --git a/code/game/objects/structures/barricade/barricade.dm b/code/game/objects/structures/barricade/barricade.dm
index edb13ac16e5a..28036f92d018 100644
--- a/code/game/objects/structures/barricade/barricade.dm
+++ b/code/game/objects/structures/barricade/barricade.dm
@@ -264,7 +264,7 @@
bullet.damage = bullet.damage * brute_projectile_multiplier
if(istype(bullet.ammo, /datum/ammo/xeno/boiler_gas))
- take_damage(round(50 * burn_multiplier))
+ take_damage(floor(50 * burn_multiplier))
else if(bullet.ammo.flags_ammo_behavior & AMMO_ANTISTRUCT)
take_damage(bullet.damage * ANTISTRUCT_DMG_MULT_BARRICADES)
@@ -279,9 +279,9 @@
new /obj/item/stack/barbed_wire(loc)
if(stack_type)
var/stack_amt
- stack_amt = round(stack_amount * (health/starting_maxhealth)) //Get an amount of sheets back equivalent to remaining health. Obviously, fully destroyed means 0
+ stack_amt = floor(stack_amount * (health/starting_maxhealth)) //Get an amount of sheets back equivalent to remaining health. Obviously, fully destroyed means 0
if(upgraded)
- stack_amt += round(2 * (health/starting_maxhealth))
+ stack_amt += floor(2 * (health/starting_maxhealth))
if(stack_amt)
new stack_type(loc, stack_amt)
else
@@ -304,7 +304,7 @@
deconstruct(FALSE)
create_shrapnel(location, rand(2,5), direction, , /datum/ammo/bullet/shrapnel/light, cause_data)
else
- update_health(round(severity * explosive_multiplier))
+ update_health(floor(severity * explosive_multiplier))
/obj/structure/barricade/get_explosion_resistance(direction)
if(!density || direction == turn(dir, 90) || direction == turn(dir, -90))
@@ -359,7 +359,7 @@
update_icon()
/obj/structure/barricade/proc/update_damage_state()
- var/health_percent = round(health/maxhealth * 100)
+ var/health_percent = floor(health/maxhealth * 100)
switch(health_percent)
if(0 to 25) damage_state = BARRICADE_DMG_HEAVY
if(25 to 50) damage_state = BARRICADE_DMG_MODERATE
diff --git a/code/game/objects/structures/barricade/deployable.dm b/code/game/objects/structures/barricade/deployable.dm
index ca35f82bdde5..e53c917dc2bb 100644
--- a/code/game/objects/structures/barricade/deployable.dm
+++ b/code/game/objects/structures/barricade/deployable.dm
@@ -269,7 +269,7 @@
/obj/item/stack/folding_barricade/get_examine_text(mob/user)
. = ..()
- if(round(min(stack_health)/maxhealth * 100) <= 75)
+ if(floor(min(stack_health)/maxhealth * 100) <= 75)
. += SPAN_WARNING("It appears to be damaged.")
/obj/item/stack/folding_barricade/three
diff --git a/code/game/objects/structures/fence.dm b/code/game/objects/structures/fence.dm
index 9476f6385ae3..7c602c34380f 100644
--- a/code/game/objects/structures/fence.dm
+++ b/code/game/objects/structures/fence.dm
@@ -231,6 +231,6 @@
/obj/structure/fence/fire_act(exposed_temperature, exposed_volume)
if(exposed_temperature > T0C + 800)
- health -= round(exposed_volume / 100)
+ health -= floor(exposed_volume / 100)
healthcheck(0) //Don't make hit sounds, it's dumb with fire/heat
..()
diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm
index 6cd6a5cd0300..01e0e1b717cc 100644
--- a/code/game/objects/structures/girders.dm
+++ b/code/game/objects/structures/girders.dm
@@ -332,7 +332,7 @@
if(P.ammo.damage_type == BURN)
dmg = P.damage
else
- dmg = round(P.damage * 0.5)
+ dmg = floor(P.damage * 0.5)
if(dmg)
health -= dmg
take_damage(dmg)
diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm
index 063f6a337290..31d7ee5c9b44 100644
--- a/code/game/objects/structures/grille.dm
+++ b/code/game/objects/structures/grille.dm
@@ -112,7 +112,7 @@
if(Proj.ammo.damage_type == HALLOSS)
return 0
- src.health -= round(Proj.damage*0.3)
+ src.health -= floor(Proj.damage*0.3)
healthcheck()
return 1
diff --git a/code/game/objects/structures/props.dm b/code/game/objects/structures/props.dm
index 8c03a4dbd66c..745dd7ed40fc 100644
--- a/code/game/objects/structures/props.dm
+++ b/code/game/objects/structures/props.dm
@@ -574,7 +574,7 @@
for(var/mob/living/carbon/human/mob in range(heating_range, src))
if(mob.bodytemperature < T20C)
- mob.bodytemperature += min(round(T20C - mob.bodytemperature)*0.7, 25)
+ mob.bodytemperature += min(floor(T20C - mob.bodytemperature)*0.7, 25)
mob.recalculate_move_delay = TRUE
if(quiet)
diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
index e523906f4cfe..4cdcb1a970ca 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
@@ -150,7 +150,7 @@
stacked_size--
update_overlays()
- var/list/candidate_target_turfs = range(round(stacked_size/2), starting_turf)
+ var/list/candidate_target_turfs = range(floor(stacked_size/2), starting_turf)
candidate_target_turfs -= starting_turf
var/turf/target_turf = candidate_target_turfs[rand(1, length(candidate_target_turfs))]
diff --git a/code/game/objects/structures/surface.dm b/code/game/objects/structures/surface.dm
index ac8cf51a407e..0d86f131ebbd 100644
--- a/code/game/objects/structures/surface.dm
+++ b/code/game/objects/structures/surface.dm
@@ -27,8 +27,8 @@
var/mouse_x = text2num(click_data["icon-x"])-1 // Ranging from 0 to 31
var/mouse_y = text2num(click_data["icon-y"])-1
- var/cell_x = clamp(round(mouse_x/CELLSIZE), 0, CELLS-1) // Ranging from 0 to CELLS-1
- var/cell_y = clamp(round(mouse_y/CELLSIZE), 0, CELLS-1)
+ var/cell_x = clamp(floor(mouse_x/CELLSIZE), 0, CELLS-1) // Ranging from 0 to CELLS-1
+ var/cell_y = clamp(floor(mouse_y/CELLSIZE), 0, CELLS-1)
var/list/center = cached_key_number_decode(new_item.center_of_mass)
diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm
index 1014e8ab7a96..be46d416ffdc 100644
--- a/code/game/objects/structures/watercloset.dm
+++ b/code/game/objects/structures/watercloset.dm
@@ -22,7 +22,7 @@
/obj/structure/toilet/Initialize()
. = ..()
- open = round(rand(0, 1))
+ open = floor(rand(0, 1))
cistern_overlay = new()
cistern_overlay.icon = icon
cistern_overlay.layer = ABOVE_MOB_LAYER
diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm
index 341fcb657080..154cc43d4af2 100644
--- a/code/game/objects/structures/window.dm
+++ b/code/game/objects/structures/window.dm
@@ -360,7 +360,7 @@
/obj/structure/window/fire_act(exposed_temperature, exposed_volume)
if(exposed_temperature > T0C + 800)
if(!not_damageable)
- health -= round(exposed_volume / 100)
+ health -= floor(exposed_volume / 100)
healthcheck(0) //Don't make hit sounds, it's dumb with fire/heat
..()
@@ -373,7 +373,7 @@
/obj/structure/window/phoronbasic/fire_act(exposed_temperature, exposed_volume)
if(exposed_temperature > T0C + 32000)
- health -= round(exposed_volume / 1000)
+ health -= floor(exposed_volume / 1000)
healthcheck(0) //Don't make hit sounds, it's dumb with fire/heat
..()
diff --git a/code/game/sound.dm b/code/game/sound.dm
index f2b71d9a64c7..29c471f06e9d 100644
--- a/code/game/sound.dm
+++ b/code/game/sound.dm
@@ -63,7 +63,7 @@
S.frequency = GET_RANDOM_FREQ // Same frequency for everybody
if(!sound_range)
- sound_range = round(0.25*vol) //if no specific range, the max range is equal to a quarter of the volume.
+ sound_range = floor(0.25*vol) //if no specific range, the max range is equal to a quarter of the volume.
S.range = sound_range
var/turf/turf_source = get_turf(source)
diff --git a/code/game/supplyshuttle.dm b/code/game/supplyshuttle.dm
index 03c554af3426..58db10080fbd 100644
--- a/code/game/supplyshuttle.dm
+++ b/code/game/supplyshuttle.dm
@@ -489,13 +489,13 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
if(crate_iteration <= 5 && crate_amount < 4)
crate_amount = 4
- var/unit_crate_amount = round(crate_amount)
+ var/unit_crate_amount = floor(crate_amount)
var/carry = crate_amount - unit_crate_amount
random_crates_carry[pool] += carry
var/total_carry = random_crates_carry[pool]
if(total_carry >= 1)
- var/additional_crates = round(total_carry)
+ var/additional_crates = floor(total_carry)
random_crates_carry[pool] -= additional_crates
unit_crate_amount += additional_crates
@@ -511,7 +511,7 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
if(!GLOB.supply_packs_datums[supply_info.reference_package])
return
- supply_info.cost = round(supply_info.cost * ASRS_COST_MULTIPLIER) //We still do this to raise the weight
+ supply_info.cost = floor(supply_info.cost * ASRS_COST_MULTIPLIER) //We still do this to raise the weight
//We have to create a supply order to make the system spawn it. Here we transform a crate into an order.
var/datum/supply_order/supply_order = new /datum/supply_order()
supply_order.ordernum = ordernum++
@@ -525,7 +525,7 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
/datum/controller/supply/proc/pick_weighted_crate(list/datum/supply_packs_asrs/cratelist)
var/list/datum/supply_packs_asrs/weighted_crate_list = list()
for(var/datum/supply_packs_asrs/crate in cratelist)
- var/weight = (round(10000/crate.cost))
+ var/weight = (floor(10000/crate.cost))
weighted_crate_list[crate] = weight
return pickweight(weighted_crate_list)
@@ -777,7 +777,7 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
var/datum/supply_packs/supply_pack = GLOB.supply_packs_datums[supply_type]
if(supply_pack.contraband || supply_pack.group != last_viewed_group || !supply_pack.buyable)
continue //Have to send the type instead of a reference to
- temp += "[supply_pack.name] Cost: $[round(supply_pack.cost) * SUPPLY_TO_MONEY_MUPLTIPLIER]
" //the obj because it would get caught by the garbage
+ temp += "[supply_pack.name] Cost: $[floor(supply_pack.cost) * SUPPLY_TO_MONEY_MUPLTIPLIER]
" //the obj because it would get caught by the garbage
else if (href_list["doorder"])
if(world.time < reqtime)
@@ -976,7 +976,7 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
var/datum/supply_packs/supply_pack = GLOB.supply_packs_datums[supply_type]
if(!is_buyable(supply_pack))
continue
- temp += "[supply_pack.name] Cost: $[round(supply_pack.cost) * SUPPLY_TO_MONEY_MUPLTIPLIER]
" //the obj because it would get caught by the garbage
+ temp += "[supply_pack.name] Cost: $[floor(supply_pack.cost) * SUPPLY_TO_MONEY_MUPLTIPLIER]
" //the obj because it would get caught by the garbage
else if (href_list["doorder"])
if(world.time < reqtime)
@@ -1054,10 +1054,10 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
if(SO.ordernum == ordernum)
supply_order = SO
supply_pack = supply_order.object
- if(GLOB.supply_controller.points >= round(supply_pack.cost) && GLOB.supply_controller.black_market_points >= supply_pack.dollar_cost)
+ if(GLOB.supply_controller.points >= floor(supply_pack.cost) && GLOB.supply_controller.black_market_points >= supply_pack.dollar_cost)
GLOB.supply_controller.requestlist.Cut(i,i+1)
- GLOB.supply_controller.points -= round(supply_pack.cost)
- GLOB.supply_controller.black_market_points -= round(supply_pack.dollar_cost)
+ GLOB.supply_controller.points -= floor(supply_pack.cost)
+ GLOB.supply_controller.black_market_points -= floor(supply_pack.dollar_cost)
if(GLOB.supply_controller.black_market_heat != -1) //-1 Heat means heat is disabled
GLOB.supply_controller.black_market_heat = clamp(GLOB.supply_controller.black_market_heat + supply_pack.crate_heat + (supply_pack.crate_heat * rand(rand(-0.25,0),0.25)), 0, 100) // black market heat added is crate heat +- up to 25% of crate heat
GLOB.supply_controller.shoppinglist += supply_order
@@ -1156,7 +1156,7 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
var/datum/supply_packs/supply_pack = GLOB.supply_packs_datums[supply_type]
if(!is_buyable(supply_pack))
continue
- temp += "[supply_pack.name] Cost: $[round(supply_pack.dollar_cost)]
"
+ temp += "[supply_pack.name] Cost: $[floor(supply_pack.dollar_cost)]
"
/obj/structure/machinery/computer/supplycomp/proc/handle_mendoza_dialogue()
diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm
index 9b0f457cf074..3bc1262b748f 100644
--- a/code/game/turfs/turf.dm
+++ b/code/game/turfs/turf.dm
@@ -516,7 +516,7 @@
return
var/amount = size
- var/spread = round(sqrt(size)*1.5)
+ var/spread = floor(sqrt(size)*1.5)
var/list/turfs = list()
for(var/turf/open/floor/F in range(src,spread))
diff --git a/code/game/turfs/walls/r_wall.dm b/code/game/turfs/walls/r_wall.dm
index 9d256b257090..f9e7fa764e71 100644
--- a/code/game/turfs/walls/r_wall.dm
+++ b/code/game/turfs/walls/r_wall.dm
@@ -127,7 +127,7 @@
user.visible_message(SPAN_NOTICE("[user] starts repairing the damage to [src]."),
SPAN_NOTICE("You start repairing the damage to [src]."))
playsound(src, 'sound/items/Welder.ogg', 25, 1)
- if(do_after(user, max(5, round(damage / 5) * user.get_skill_duration_multiplier(SKILL_CONSTRUCTION)), INTERRUPT_ALL, BUSY_ICON_FRIENDLY) && istype(src, /turf/closed/wall/r_wall))
+ if(do_after(user, max(5, floor(damage / 5) * user.get_skill_duration_multiplier(SKILL_CONSTRUCTION)), INTERRUPT_ALL, BUSY_ICON_FRIENDLY) && istype(src, /turf/closed/wall/r_wall))
user.visible_message(SPAN_NOTICE("[user] finishes repairing the damage to [src]."),
SPAN_NOTICE("You finish repairing the damage to [src]."))
take_damage(-damage)
diff --git a/code/game/turfs/walls/wall_icon.dm b/code/game/turfs/walls/wall_icon.dm
index 218d59305bdc..600878ac5963 100644
--- a/code/game/turfs/walls/wall_icon.dm
+++ b/code/game/turfs/walls/wall_icon.dm
@@ -1,6 +1,6 @@
#define BULLETHOLE_STATES 10 //How many variations of bullethole patterns there are
//Formulas. These don't need to be defines, but helpful green. Should likely reuse these for a base 8 icon system.
-#define cur_increment(v) round((v-1)/8)+1
+#define cur_increment(v) floor((v-1)/8)+1
/turf/closed/wall/update_icon()
..()
@@ -31,7 +31,7 @@
overlays += I
if(damage)
- var/current_dmg_overlay = round(damage / damage_cap * damage_overlays.len) + 1
+ var/current_dmg_overlay = floor(damage / damage_cap * damage_overlays.len) + 1
if(current_dmg_overlay > damage_overlays.len)
current_dmg_overlay = damage_overlays.len
diff --git a/code/game/turfs/walls/walls.dm b/code/game/turfs/walls/walls.dm
index 1781739176b7..bb1694359b98 100644
--- a/code/game/turfs/walls/walls.dm
+++ b/code/game/turfs/walls/walls.dm
@@ -298,7 +298,7 @@
break
if(thermite > (damage_cap - damage)/100) // Thermite gains a speed buff when the amount is overkill
- var/timereduction = round((thermite - (damage_cap - damage)/100)/5) // Every 5 units over the required amount reduces the sleep by 0.1s
+ var/timereduction = floor((thermite - (damage_cap - damage)/100)/5) // Every 5 units over the required amount reduces the sleep by 0.1s
sleep(max(2, 20 - timereduction))
else
sleep(20)
@@ -490,7 +490,7 @@
user.visible_message(SPAN_NOTICE("[user] starts repairing the damage to [src]."),
SPAN_NOTICE("You start repairing the damage to [src]."))
playsound(src, 'sound/items/Welder.ogg', 25, 1)
- if(do_after(user, max(5, round(damage / 5) * user.get_skill_duration_multiplier(SKILL_CONSTRUCTION)), INTERRUPT_ALL, BUSY_ICON_FRIENDLY) && istype(src, /turf/closed/wall) && WT && WT.isOn())
+ if(do_after(user, max(5, floor(damage / 5) * user.get_skill_duration_multiplier(SKILL_CONSTRUCTION)), INTERRUPT_ALL, BUSY_ICON_FRIENDLY) && istype(src, /turf/closed/wall) && WT && WT.isOn())
user.visible_message(SPAN_NOTICE("[user] finishes repairing the damage to [src]."),
SPAN_NOTICE("You finish repairing the damage to [src]."))
take_damage(-damage)
diff --git a/code/game/verbs/ooc.dm b/code/game/verbs/ooc.dm
index 2fe22ef3d4da..d8d3c379862a 100644
--- a/code/game/verbs/ooc.dm
+++ b/code/game/verbs/ooc.dm
@@ -217,7 +217,7 @@
if(!desired_width)
// Calculate desired pixel width using window size and aspect ratio
var/height = text2num(map_size[2])
- desired_width = round(height * aspect_ratio)
+ desired_width = floor(height * aspect_ratio)
var/split_size = splittext(sizes["mainwindow.split.size"], "x")
var/split_width = text2num(split_size[1])
diff --git a/code/modules/admin/player_panel/player_panel.dm b/code/modules/admin/player_panel/player_panel.dm
index 86922c525e32..424ed1f74232 100644
--- a/code/modules/admin/player_panel/player_panel.dm
+++ b/code/modules/admin/player_panel/player_panel.dm
@@ -323,7 +323,7 @@
var/dat = "Antagonists
"
dat += "Current Game Mode: [SSticker.mode.name]
"
- dat += "Round Duration: [round(world.time / 36000)]:[add_zero(world.time / 600 % 60, 2)]:[world.time / 100 % 6][world.time / 100 % 10]
"
+ dat += "Round Duration: [floor(world.time / 36000)]:[add_zero(world.time / 600 % 60, 2)]:[world.time / 100 % 6][world.time / 100 % 10]
"
if(length(GLOB.other_factions_human_list))
dat += "
Other human factions | | |
"
@@ -381,7 +381,7 @@
if (SSticker.current_state >= GAME_STATE_PLAYING)
var/dat = "Round Status
"
dat += "Current Game Mode: [SSticker.mode.name]
"
- dat += "Round Duration: [round(world.time / 36000)]:[add_zero(world.time / 600 % 60, 2)]:[world.time / 100 % 6][world.time / 100 % 10]
"
+ dat += "Round Duration: [floor(world.time / 36000)]:[add_zero(world.time / 600 % 60, 2)]:[world.time / 100 % 6][world.time / 100 % 10]
"
if(check_rights(R_DEBUG, 0))
dat += "VV Shuttle Controller
"
diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2.dm b/code/modules/admin/verbs/SDQL2/SDQL_2.dm
index 05da6d3c8672..b7e6ede9535e 100644
--- a/code/modules/admin/verbs/SDQL2/SDQL_2.dm
+++ b/code/modules/admin/verbs/SDQL2/SDQL_2.dm
@@ -1092,7 +1092,7 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/sdql2_vv_all, new(null
else if(expression[start + 1] == "\[" && islist(v))
var/list/L = v
var/index = query.SDQL_expression(source, expression[start + 2])
- if(isnum(index) && ((round(index) != index) || L.len < index))
+ if(isnum(index) && ((floor(index) != index) || L.len < index))
to_chat(usr, SPAN_DANGER("Invalid list index: [index]"), confidential = TRUE)
return null
return L[index]
diff --git a/code/modules/admin/verbs/load_event_level.dm b/code/modules/admin/verbs/load_event_level.dm
index 72d004e03261..28aab2ef783d 100644
--- a/code/modules/admin/verbs/load_event_level.dm
+++ b/code/modules/admin/verbs/load_event_level.dm
@@ -38,8 +38,8 @@
to_chat(C, "Failed to load the template to a Z-Level! Sorry!")
return
- var/center_x = round(loaded.bounds[MAP_MAXX] / 2) // Technically off by 0.5 due to above +1. Whatever
- var/center_y = round(loaded.bounds[MAP_MAXY] / 2)
+ var/center_x = floor(loaded.bounds[MAP_MAXX] / 2) // Technically off by 0.5 due to above +1. Whatever
+ var/center_y = floor(loaded.bounds[MAP_MAXY] / 2)
// Now notify the staff of the load - this goes in addition to the generic template load game log
message_admins("Successfully loaded template as new Z-Level by ckey: [logckey], template name: [template.name]", center_x, center_y, loaded.z_value)
diff --git a/code/modules/animations/animation_library.dm b/code/modules/animations/animation_library.dm
index f153338487cd..fabd7508b856 100644
--- a/code/modules/animations/animation_library.dm
+++ b/code/modules/animations/animation_library.dm
@@ -181,7 +181,7 @@ Can look good elsewhere as well.*/
var/pixel_x_diff = 0
var/pixel_y_diff = 0
var/direction = get_dir(src, A)
- pixel_offset = round(pixel_offset) // Just to be safe
+ pixel_offset = floor(pixel_offset) // Just to be safe
switch(direction)
if(NORTH)
pixel_y_diff = pixel_offset
diff --git a/code/modules/assembly/signaller.dm b/code/modules/assembly/signaller.dm
index 4ac25854e8ea..3e01c357c113 100644
--- a/code/modules/assembly/signaller.dm
+++ b/code/modules/assembly/signaller.dm
@@ -74,7 +74,7 @@
switch(action)
if("set_freq")
- set_frequency(clamp(round(text2num(params["value"])), SIGNALLER_FREQ_MIN, SIGNALLER_FREQ_MAX))
+ set_frequency(clamp(floor(text2num(params["value"])), SIGNALLER_FREQ_MIN, SIGNALLER_FREQ_MAX))
. = TRUE
if("set_signal")
diff --git a/code/modules/assembly/timer.dm b/code/modules/assembly/timer.dm
index 0dd55dc532a0..3d6307640faa 100644
--- a/code/modules/assembly/timer.dm
+++ b/code/modules/assembly/timer.dm
@@ -19,7 +19,7 @@
/obj/item/device/assembly/timer/activate()
if(!..()) return 0//Cooldown check
- time = clamp(round(time), TIMER_MINIMUM_TIME, TIMER_MAXIMUM_TIME)
+ time = clamp(floor(time), TIMER_MINIMUM_TIME, TIMER_MAXIMUM_TIME)
timing = !timing
if(timing)
START_PROCESSING(SSobj, src)
@@ -103,7 +103,7 @@
ui.set_autoupdate(timing)
if(!timing)
- time = clamp(round(time), TIMER_MINIMUM_TIME, TIMER_MAXIMUM_TIME)
+ time = clamp(floor(time), TIMER_MINIMUM_TIME, TIMER_MAXIMUM_TIME)
STOP_PROCESSING(SSobj, src)
else
START_PROCESSING(SSobj, src)
@@ -112,7 +112,7 @@
. = TRUE
if("set_time")
- time = clamp(round(text2num(params["time"])) SECONDS, TIMER_MINIMUM_TIME, TIMER_MAXIMUM_TIME)
+ time = clamp(floor(text2num(params["time"])) SECONDS, TIMER_MINIMUM_TIME, TIMER_MAXIMUM_TIME)
. = TRUE
/obj/item/device/assembly/timer/ui_data(mob/user)
diff --git a/code/modules/asset_cache/asset_cache_client.dm b/code/modules/asset_cache/asset_cache_client.dm
index f462fe386bba..cb204c6781a1 100644
--- a/code/modules/asset_cache/asset_cache_client.dm
+++ b/code/modules/asset_cache/asset_cache_client.dm
@@ -1,7 +1,7 @@
/// Process asset cache client topic calls for "asset_cache_confirm_arrival=[INT]"
/client/proc/asset_cache_confirm_arrival(job_id)
- var/asset_cache_job = round(text2num(job_id))
+ var/asset_cache_job = floor(text2num(job_id))
//because we skip the limiter, we have to make sure this is a valid arrival and not somebody tricking us into letting them append to a list without limit.
if (asset_cache_job > 0 && asset_cache_job <= last_asset_job && !(completed_asset_jobs["[asset_cache_job]"]))
completed_asset_jobs["[asset_cache_job]"] = TRUE
diff --git a/code/modules/asset_cache/asset_list.dm b/code/modules/asset_cache/asset_list.dm
index 1d88df0b6a6b..cb3bed635940 100644
--- a/code/modules/asset_cache/asset_list.dm
+++ b/code/modules/asset_cache/asset_list.dm
@@ -168,7 +168,7 @@ GLOBAL_LIST_EMPTY(asset_datums)
var/icon/big = size[SPRSZ_STRIPPED]
var/per_line = big.Width() / tiny.Width()
var/x = (idx % per_line) * tiny.Width()
- var/y = round(idx / per_line) * tiny.Height()
+ var/y = floor(idx / per_line) * tiny.Height()
out += ".[name][size_id].[sprite_id]{background-position:-[x]px -[y]px;}"
diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm
index 6afbfa695db2..aa3efe6bc396 100644
--- a/code/modules/client/client_procs.dm
+++ b/code/modules/client/client_procs.dm
@@ -265,7 +265,7 @@ GLOBAL_LIST_INIT(whitelisted_client_procs, list(
//Helps prevent multiple files being uploaded at once. Or right after eachother.
var/time_to_wait = fileaccess_timer - world.time
if(time_to_wait > 0)
- to_chat(src, "Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds.")
+ to_chat(src, "Error: AllowUpload(): Spam prevention. Please wait [floor(time_to_wait/10)] seconds.")
return 0
fileaccess_timer = world.time + FTPDELAY */
return 1
diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm
index 4b669934d1c1..5a049f72b2b5 100644
--- a/code/modules/client/preferences.dm
+++ b/code/modules/client/preferences.dm
@@ -1262,7 +1262,7 @@ GLOBAL_LIST_INIT(bgstate_options, list(
if("pred_age")
var/new_predator_age = tgui_input_number(user, "Choose your Predator's age(175 to 3000):", "Character Preference", 1234, 3000, 175)
if(new_predator_age)
- predator_age = max(min( round(text2num(new_predator_age)), 3000),175)
+ predator_age = max(min( floor(text2num(new_predator_age)), 3000),175)
if("pred_use_legacy")
var/legacy_choice = tgui_input_list(user, "What legacy set do you wish to use?", "Legacy Set", PRED_LEGACIES)
if(!legacy_choice)
@@ -1275,13 +1275,13 @@ GLOBAL_LIST_INIT(bgstate_options, list(
predator_translator_type = new_translator_type
if("pred_mask_type")
var/new_predator_mask_type = tgui_input_number(user, "Choose your mask type:\n(1-12)", "Mask Selection", 1, 12, 1)
- if(new_predator_mask_type) predator_mask_type = round(text2num(new_predator_mask_type))
+ if(new_predator_mask_type) predator_mask_type = floor(text2num(new_predator_mask_type))
if("pred_armor_type")
var/new_predator_armor_type = tgui_input_number(user, "Choose your armor type:\n(1-7)", "Armor Selection", 1, 7, 1)
- if(new_predator_armor_type) predator_armor_type = round(text2num(new_predator_armor_type))
+ if(new_predator_armor_type) predator_armor_type = floor(text2num(new_predator_armor_type))
if("pred_boot_type")
var/new_predator_boot_type = tgui_input_number(user, "Choose your greaves type:\n(1-4)", "Greave Selection", 1, 4, 1)
- if(new_predator_boot_type) predator_boot_type = round(text2num(new_predator_boot_type))
+ if(new_predator_boot_type) predator_boot_type = floor(text2num(new_predator_boot_type))
if("pred_mask_mat")
var/new_pred_mask_mat = tgui_input_list(user, "Choose your mask material:", "Mask Material", PRED_MATERIALS)
if(!new_pred_mask_mat)
@@ -1496,7 +1496,7 @@ GLOBAL_LIST_INIT(bgstate_options, list(
if("age")
var/new_age = tgui_input_number(user, "Choose your character's age:\n([AGE_MIN]-[AGE_MAX])", "Character Preference", 19, AGE_MAX, AGE_MIN)
if(new_age)
- age = max(min( round(text2num(new_age)), AGE_MAX),AGE_MIN)
+ age = max(min( floor(text2num(new_age)), AGE_MAX),AGE_MIN)
if("metadata")
var/new_metadata = input(user, "Enter any information you'd like others to see, such as Roleplay-preferences:", "Game Preference" , metadata) as message|null
@@ -1952,7 +1952,7 @@ GLOBAL_LIST_INIT(bgstate_options, list(
if("save")
if(save_cooldown > world.time)
- to_chat(user, SPAN_WARNING("You need to wait [round((save_cooldown-world.time)/10)] seconds before you can do that again."))
+ to_chat(user, SPAN_WARNING("You need to wait [floor((save_cooldown-world.time)/10)] seconds before you can do that again."))
return
var/datum/origin/character_origin = GLOB.origins[origin]
var/name_error = character_origin.validate_name(real_name)
@@ -1968,7 +1968,7 @@ GLOBAL_LIST_INIT(bgstate_options, list(
if("reload")
if(reload_cooldown > world.time)
- to_chat(user, SPAN_WARNING("You need to wait [round((reload_cooldown-world.time)/10)] seconds before you can do that again."))
+ to_chat(user, SPAN_WARNING("You need to wait [floor((reload_cooldown-world.time)/10)] seconds before you can do that again."))
return
load_preferences()
load_character()
diff --git a/code/modules/cm_aliens/structures/special/pylon_core.dm b/code/modules/cm_aliens/structures/special/pylon_core.dm
index 7f0124fa5033..b0270848950b 100644
--- a/code/modules/cm_aliens/structures/special/pylon_core.dm
+++ b/code/modules/cm_aliens/structures/special/pylon_core.dm
@@ -32,7 +32,7 @@
. = ..()
node = place_node()
- for(var/turf/A in range(round(cover_range*PYLON_COVERAGE_MULT), loc))
+ for(var/turf/A in range(floor(cover_range*PYLON_COVERAGE_MULT), loc))
LAZYADD(A.linked_pylons, src)
linked_turfs += A
diff --git a/code/modules/cm_marines/dropship_ammo.dm b/code/modules/cm_marines/dropship_ammo.dm
index 0926f2bcefff..7a07891faa94 100644
--- a/code/modules/cm_marines/dropship_ammo.dm
+++ b/code/modules/cm_marines/dropship_ammo.dm
@@ -231,12 +231,12 @@
/obj/structure/ship_ammo/laser_battery/get_examine_text(mob/user)
. = ..()
- . += "It's at [round(100*ammo_count/max_ammo_count)]% charge."
+ . += "It's at [floor(100*ammo_count/max_ammo_count)]% charge."
/obj/structure/ship_ammo/laser_battery/show_loaded_desc(mob/user)
if(ammo_count)
- return "It's loaded with \a [src] at [round(100*ammo_count/max_ammo_count)]% charge."
+ return "It's loaded with \a [src] at [floor(100*ammo_count/max_ammo_count)]% charge."
else
return "It's loaded with an empty [name]."
diff --git a/code/modules/cm_marines/dropship_equipment.dm b/code/modules/cm_marines/dropship_equipment.dm
index 1ddee8e85d20..f5865c05bbd4 100644
--- a/code/modules/cm_marines/dropship_equipment.dm
+++ b/code/modules/cm_marines/dropship_equipment.dm
@@ -685,7 +685,7 @@
msg_admin_niche("[key_name(user)] is direct-firing [SA] onto [selected_target] at ([target_turf.x],[target_turf.y],[target_turf.z]) [ADMIN_JMP(target_turf)]")
if(ammo_travelling_time)
- var/total_seconds = max(round(ammo_travelling_time/10),1)
+ var/total_seconds = max(floor(ammo_travelling_time/10),1)
for(var/i = 0 to total_seconds)
sleep(10)
if(!selected_target || !selected_target.loc)//if laser disappeared before we reached the target,
diff --git a/code/modules/cm_marines/equipment/mortar/mortars.dm b/code/modules/cm_marines/equipment/mortar/mortars.dm
index 51d1509297a3..018bd7b9e11c 100644
--- a/code/modules/cm_marines/equipment/mortar/mortars.dm
+++ b/code/modules/cm_marines/equipment/mortar/mortars.dm
@@ -173,8 +173,8 @@
SPAN_NOTICE("You finish adjusting [src]'s firing angle and distance to match the new coordinates."))
targ_x = deobfuscate_x(temp_targ_x)
targ_y = deobfuscate_y(temp_targ_y)
- var/offset_x_max = round(abs((targ_x) - x)/offset_per_turfs) //Offset of mortar shot, grows by 1 every 20 tiles travelled
- var/offset_y_max = round(abs((targ_y) - y)/offset_per_turfs)
+ var/offset_x_max = floor(abs((targ_x) - x)/offset_per_turfs) //Offset of mortar shot, grows by 1 every 20 tiles travelled
+ var/offset_y_max = floor(abs((targ_y) - y)/offset_per_turfs)
offset_x = rand(-offset_x_max, offset_x_max)
offset_y = rand(-offset_y_max, offset_y_max)
diff --git a/code/modules/cm_marines/m2c.dm b/code/modules/cm_marines/m2c.dm
index 23a9d243b134..9afca5ae1fa8 100644
--- a/code/modules/cm_marines/m2c.dm
+++ b/code/modules/cm_marines/m2c.dm
@@ -369,7 +369,7 @@
return
user.visible_message(SPAN_NOTICE("[user] repairs some of the damage on [src]."), \
SPAN_NOTICE("You repair [src]."))
- update_health(-round(health_max*0.2))
+ update_health(-floor(health_max*0.2))
playsound(src.loc, 'sound/items/Welder2.ogg', 25, 1)
else
to_chat(user, SPAN_WARNING("You need more fuel in [WT] to repair damage to [src]."))
@@ -422,7 +422,7 @@
/obj/structure/machinery/m56d_hmg/auto/proc/force_cooldown(mob/user)
user = operator
- overheat_value = round((rand(M2C_LOW_COOLDOWN_ROLL, M2C_HIGH_COOLDOWN_ROLL) * overheat_threshold))
+ overheat_value = floor((rand(M2C_LOW_COOLDOWN_ROLL, M2C_HIGH_COOLDOWN_ROLL) * overheat_threshold))
playsound(src.loc, 'sound/weapons/hmg_cooling.ogg', 75, 1)
to_chat(user, SPAN_NOTICE("[src]'s barrel has cooled down enough to restart firing."))
emergency_cooling = FALSE
@@ -479,7 +479,7 @@
var/obj/item/device/m2c_gun/HMG = new(loc)
transfer_label_component(HMG)
HMG.rounds = rounds
- HMG.overheat_value = round(0.5 * overheat_value)
+ HMG.overheat_value = floor(0.5 * overheat_value)
if (HMG.overheat_value <= 10)
HMG.overheat_value = 0
HMG.update_icon()
diff --git a/code/modules/cm_marines/radar.dm b/code/modules/cm_marines/radar.dm
index d088b68919b0..80b3bb7bcb0c 100644
--- a/code/modules/cm_marines/radar.dm
+++ b/code/modules/cm_marines/radar.dm
@@ -95,7 +95,7 @@
if(get_dist_euclidian(here_turf, target_turf) > 24)
userot = TRUE
- rot = round(Get_Angle(here_turf, target_turf))
+ rot = floor(Get_Angle(here_turf, target_turf))
else
if(target_turf.z > here_turf.z)
pointer="caret-up"
diff --git a/code/modules/cm_marines/smartgun_mount.dm b/code/modules/cm_marines/smartgun_mount.dm
index b3035511cab7..ce1a25b98c73 100644
--- a/code/modules/cm_marines/smartgun_mount.dm
+++ b/code/modules/cm_marines/smartgun_mount.dm
@@ -645,7 +645,7 @@
if(do_after(user, 5 SECONDS * user.get_skill_duration_multiplier(SKILL_ENGINEER), INTERRUPT_ALL, BUSY_ICON_FRIENDLY, src))
user.visible_message(SPAN_NOTICE("[user] repairs some damage on [src]."), \
SPAN_NOTICE("You repair [src]."))
- update_health(-round(health_max*0.2))
+ update_health(-floor(health_max*0.2))
playsound(src.loc, 'sound/items/Welder2.ogg', 25, 1)
else
to_chat(user, SPAN_WARNING("You need more fuel in [WT] to repair damage to [src]."))
@@ -679,7 +679,7 @@
operator.unset_interaction()
/obj/structure/machinery/m56d_hmg/proc/update_damage_state()
- var/health_percent = round(health/health_max * 100)
+ var/health_percent = floor(health/health_max * 100)
switch(health_percent)
if(0 to 25) damage_state = M56D_DMG_HEAVY
if(25 to 50) damage_state = M56D_DMG_MODERATE
@@ -689,7 +689,7 @@
/obj/structure/machinery/m56d_hmg/bullet_act(obj/projectile/P) //Nope.
bullet_ping(P)
visible_message(SPAN_WARNING("[src] is hit by the [P.name]!"))
- update_health(round(P.damage / 10)) //Universal low damage to what amounts to a post with a gun.
+ update_health(floor(P.damage / 10)) //Universal low damage to what amounts to a post with a gun.
return 1
/obj/structure/machinery/m56d_hmg/attack_alien(mob/living/carbon/xenomorph/xeno) // Those Ayy lmaos.
diff --git a/code/modules/cm_marines/vehicle_part_fabricator.dm b/code/modules/cm_marines/vehicle_part_fabricator.dm
index fd9b0faafa61..fc71763d96b3 100644
--- a/code/modules/cm_marines/vehicle_part_fabricator.dm
+++ b/code/modules/cm_marines/vehicle_part_fabricator.dm
@@ -233,9 +233,9 @@
qdel(thing)
qdel(powerloader_clamp_used.loaded)
powerloader_clamp_used.loaded = null
- to_chat(user, SPAN_NOTICE("You recycle \the [thing_to_recycle] into [src], and get back [round(recycle_points * 0.8)] points."))
- msg_admin_niche("[key_name(user)] recycled a [thing_to_recycle] into \the [src] for [round(recycle_points * 0.8)] points.")
- add_to_point_store(round(recycle_points * 0.8))
+ to_chat(user, SPAN_NOTICE("You recycle \the [thing_to_recycle] into [src], and get back [floor(recycle_points * 0.8)] points."))
+ msg_admin_niche("[key_name(user)] recycled a [thing_to_recycle] into \the [src] for [floor(recycle_points * 0.8)] points.")
+ add_to_point_store(floor(recycle_points * 0.8))
playsound(loc, 'sound/machines/fax.ogg', 40, 1)
powerloader_clamp_used.update_icon()
diff --git a/code/modules/cm_preds/yaut_bracers.dm b/code/modules/cm_preds/yaut_bracers.dm
index 1994d0507884..5577691d64c2 100644
--- a/code/modules/cm_preds/yaut_bracers.dm
+++ b/code/modules/cm_preds/yaut_bracers.dm
@@ -569,7 +569,7 @@
if(HAS_TRAIT(caller, TRAIT_CLOAKED)) //Turn it off.
if(cloak_timer > world.time)
- to_chat(M, SPAN_WARNING("Your cloaking device is busy! Time left: [max(round((cloak_timer - world.time) / 10), 1)] seconds."))
+ to_chat(M, SPAN_WARNING("Your cloaking device is busy! Time left: [max(floor((cloak_timer - world.time) / 10), 1)] seconds."))
return FALSE
decloak(caller)
else //Turn it on!
@@ -582,7 +582,7 @@
return FALSE
if(cloak_timer > world.time)
- to_chat(M, SPAN_WARNING("Your cloaking device is still recharging! Time left: [max(round((cloak_timer - world.time) / 10), 1)] seconds."))
+ to_chat(M, SPAN_WARNING("Your cloaking device is still recharging! Time left: [max(floor((cloak_timer - world.time) / 10), 1)] seconds."))
return FALSE
if(!drain_power(M, 50))
diff --git a/code/modules/cm_tech/implements/armor.dm b/code/modules/cm_tech/implements/armor.dm
index c08bf6d3c128..bbc9c3bd8984 100644
--- a/code/modules/cm_tech/implements/armor.dm
+++ b/code/modules/cm_tech/implements/armor.dm
@@ -33,7 +33,7 @@
return
/obj/item/clothing/accessory/health/proc/get_damage_status()
- var/percentage = round(armor_health / armor_maxhealth * 100)
+ var/percentage = floor(armor_health / armor_maxhealth * 100)
switch(percentage)
if(0)
. = "It is broken."
diff --git a/code/modules/defenses/defenses.dm b/code/modules/defenses/defenses.dm
index febe4901ae8a..b5e5cdf55766 100644
--- a/code/modules/defenses/defenses.dm
+++ b/code/modules/defenses/defenses.dm
@@ -456,9 +456,9 @@
visible_message(SPAN_WARNING("[src] is hit by [P]!"))
var/ammo_flags = P.ammo.flags_ammo_behavior | P.projectile_override_flags
if(ammo_flags & AMMO_ACIDIC) //Fix for xenomorph spit doing baby damage.
- update_health(round(P.damage/3))
+ update_health(floor(P.damage/3))
else
- update_health(round(P.damage/10))
+ update_health(floor(P.damage/10))
return TRUE
// DAMAGE HANDLING OVER
diff --git a/code/modules/economy/ATM.dm b/code/modules/economy/ATM.dm
index 1345164fcf34..f4aaf7c06560 100644
--- a/code/modules/economy/ATM.dm
+++ b/code/modules/economy/ATM.dm
@@ -63,7 +63,7 @@ log transactions
var/obj/item/spacecash/spacecash = I
//consume the money
if(spacecash.counterfeit)
- authenticated_account.money += round(spacecash.worth * 0.25)
+ authenticated_account.money += floor(spacecash.worth * 0.25)
visible_message(SPAN_DANGER("[src] starts sparking and making error noises as you load [I] into it!"))
spark_system.start()
else
@@ -284,7 +284,7 @@ log transactions
previous_account_number = tried_account_num
if("e_withdrawal")
if(withdrawal_timer > world.time)
- alert("Please wait [round((withdrawal_timer-world.time)/10)] seconds before attempting to make another withdrawal.")
+ alert("Please wait [floor((withdrawal_timer-world.time)/10)] seconds before attempting to make another withdrawal.")
return
var/amount = max(text2num(href_list["funds_amount"]),0)
amount = round(amount, 0.01)
@@ -316,7 +316,7 @@ log transactions
withdrawal_timer = world.time + 20
if("withdrawal")
if(withdrawal_timer > world.time)
- alert("Please wait [round((withdrawal_timer-world.time)/10)] seconds before attempting to make another withdrawal.")
+ alert("Please wait [floor((withdrawal_timer-world.time)/10)] seconds before attempting to make another withdrawal.")
return
var/amount = max(text2num(href_list["funds_amount"]),0)
amount = round(amount, 0.01)
diff --git a/code/modules/economy/cash.dm b/code/modules/economy/cash.dm
index 6ab8164c248d..b5489f192287 100644
--- a/code/modules/economy/cash.dm
+++ b/code/modules/economy/cash.dm
@@ -88,7 +88,7 @@
..()
var/oldloc = loc
var/amount = tgui_input_number(user, "How many dollars do you want to take? (0 to [src.worth])", "Take Money", 0, src.worth, 0)
- amount = round(clamp(amount, 0, src.worth))
+ amount = floor(clamp(amount, 0, src.worth))
if(amount == 0)
return
if(QDELETED(src) || loc != oldloc)
diff --git a/code/modules/hydroponics/grown_inedible.dm b/code/modules/hydroponics/grown_inedible.dm
index e47ad43acaf1..66478536b77b 100644
--- a/code/modules/hydroponics/grown_inedible.dm
+++ b/code/modules/hydroponics/grown_inedible.dm
@@ -25,7 +25,7 @@
var/list/reagent_data = S.chems[rid]
var/rtotal = reagent_data[1]
if(reagent_data.len > 1 && potency > 0)
- rtotal += round(potency/reagent_data[2])
+ rtotal += floor(potency/reagent_data[2])
reagents.add_reagent(rid,max(1,rtotal))
/obj/item/grown/log
diff --git a/code/modules/hydroponics/hydro_tray.dm b/code/modules/hydroponics/hydro_tray.dm
index 75bfaa5c31a8..a3b75d0b21aa 100644
--- a/code/modules/hydroponics/hydro_tray.dm
+++ b/code/modules/hydroponics/hydro_tray.dm
@@ -207,7 +207,7 @@
if(seed.nutrient_consumption > 0 && nutrilevel > 0 && prob(25))
nutrilevel -= max(0,seed.nutrient_consumption * HYDRO_SPEED_MULTIPLIER)
if(seed.water_consumption > 0 && waterlevel > 0 && prob(25))
- waterlevel -= round(max(0,(seed.water_consumption * HYDRO_WATER_CONSUMPTION_MULTIPLIER) * HYDRO_SPEED_MULTIPLIER))
+ waterlevel -= floor(max(0,(seed.water_consumption * HYDRO_WATER_CONSUMPTION_MULTIPLIER) * HYDRO_SPEED_MULTIPLIER))
// Make sure the plant is not starving or thirsty. Adequate
// water and nutrients will cause a plant to become healthier.
@@ -226,7 +226,7 @@
// Toxin levels beyond the plant's tolerance cause damage, but
// toxins are sucked up each tick and slowly reduce over time.
if(toxins > 0)
- var/toxin_uptake = max(1,round(toxins/10))
+ var/toxin_uptake = max(1,floor(toxins/10))
if(toxins > seed.toxins_tolerance)
plant_health -= toxin_uptake
toxins -= toxin_uptake
@@ -319,7 +319,7 @@
// Water dilutes toxin level.
if(water_added > 0)
- toxins -= round(water_added/4)
+ toxins -= floor(water_added/4)
temp_chem_holder.reagents.clear_reagents()
check_level_sanity()
@@ -390,7 +390,7 @@
overlays += "[seed.plant_icon]-harvest"
else if(age < seed.maturation)
- var/t_growthstate = round(age/seed.maturation * seed.growth_stages)
+ var/t_growthstate = floor(age/seed.maturation * seed.growth_stages)
overlays += "[seed.plant_icon]-grow[t_growthstate]"
lastproduce = age
else
@@ -414,7 +414,7 @@
// Update bioluminescence.
if(seed)
if(seed.biolum)
- set_light(round(seed.potency/10))
+ set_light(floor(seed.potency/10))
return
set_light(0)
@@ -577,7 +577,7 @@
dead = 0
age = 1
//Snowflakey, maybe move this to the seed datum
- plant_health = (istype(S, /obj/item/seeds/cutting) ? round(seed.endurance/rand(2,5)) : seed.endurance)
+ plant_health = (istype(S, /obj/item/seeds/cutting) ? floor(seed.endurance/rand(2,5)) : seed.endurance)
lastcycle = world.time
diff --git a/code/modules/hydroponics/seed_datums.dm b/code/modules/hydroponics/seed_datums.dm
index c8c46bc77759..7723052d2b3b 100644
--- a/code/modules/hydroponics/seed_datums.dm
+++ b/code/modules/hydroponics/seed_datums.dm
@@ -402,9 +402,9 @@ GLOBAL_LIST_EMPTY(gene_tag_masks) // Gene obfuscation for delicious trial and
if(gene.values.len < 6) return
- if(yield > 0) yield = max(1,round(yield*0.85))
- if(endurance > 0) endurance = max(1,round(endurance*0.85))
- if(lifespan > 0) lifespan = max(1,round(lifespan*0.85))
+ if(yield > 0) yield = max(1,floor(yield*0.85))
+ if(endurance > 0) endurance = max(1,floor(endurance*0.85))
+ if(lifespan > 0) lifespan = max(1,floor(lifespan*0.85))
if(!products) products = list()
products |= gene.values[1]
@@ -425,7 +425,7 @@ GLOBAL_LIST_EMPTY(gene_tag_masks) // Gene obfuscation for delicious trial and
if(isnull(gene_chem[i])) gene_chem[i] = 0
if(chems[rid][i])
- chems[rid][i] = max(1,round((gene_chem[i] + chems[rid][i])/2))
+ chems[rid][i] = max(1,floor((gene_chem[i] + chems[rid][i])/2))
else
chems[rid][i] = gene_chem[i]
@@ -434,7 +434,7 @@ GLOBAL_LIST_EMPTY(gene_tag_masks) // Gene obfuscation for delicious trial and
if(!exude_gasses) exude_gasses = list()
exude_gasses |= new_gasses
for(var/gas in exude_gasses)
- exude_gasses[gas] = max(1,round(exude_gasses[gas]*0.8))
+ exude_gasses[gas] = max(1,floor(exude_gasses[gas]*0.8))
alter_temp = gene.values[4]
potency = gene.values[5]
diff --git a/code/modules/hydroponics/vines.dm b/code/modules/hydroponics/vines.dm
index c2a4afaed138..55c4908050e5 100644
--- a/code/modules/hydroponics/vines.dm
+++ b/code/modules/hydroponics/vines.dm
@@ -138,7 +138,7 @@
if(seed.carnivorous == 2)
to_chat(buckled_mob, SPAN_DANGER("\The [src] pierces your flesh greedily!"))
- var/damage = rand(round(seed.potency/2),seed.potency)
+ var/damage = rand(floor(seed.potency/2),seed.potency)
if(!istype(H))
H.apply_damage(damage, BRUTE)
return
@@ -167,7 +167,7 @@
// Update bioluminescence.
if(seed.biolum)
- set_light(1+round(seed.potency/10))
+ set_light(1+floor(seed.potency/10))
return
else
set_light(0)
diff --git a/code/modules/mapping/map_template.dm b/code/modules/mapping/map_template.dm
index 0fe22535201e..ff72ea2e1d1b 100644
--- a/code/modules/mapping/map_template.dm
+++ b/code/modules/mapping/map_template.dm
@@ -78,8 +78,8 @@
unlit.static_lighting_build_overlay()
/datum/map_template/proc/load_new_z(secret = FALSE)
- var/x = round((world.maxx - width) * 0.5) + 1
- var/y = round((world.maxy - height) * 0.5) + 1
+ var/x = floor((world.maxx - width) * 0.5) + 1
+ var/y = floor((world.maxy - height) * 0.5) + 1
var/datum/space_level/level = SSmapping.add_new_zlevel(name, list(), contain_turfs = FALSE)
var/datum/parsed_map/parsed = load_map(
@@ -104,7 +104,7 @@
/datum/map_template/proc/load(turf/T, centered = FALSE, delete = FALSE)
if(centered)
- T = locate(T.x - round(width/2) , T.y - round(height/2) , T.z)
+ T = locate(T.x - floor(width/2) , T.y - floor(height/2) , T.z)
if(!T)
return
if((T.x+width) - 1 > world.maxx)
diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm
index d13d5aa94053..218b254e7fb1 100644
--- a/code/modules/mob/dead/observer/observer.dm
+++ b/code/modules/mob/dead/observer/observer.dm
@@ -1191,7 +1191,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!SSticker.HasRoundStarted())
var/time_remaining = SSticker.GetTimeLeft()
if(time_remaining > 0)
- . += "Time To Start: [round(time_remaining)]s[SSticker.delay_start ? " (DELAYED)" : ""]"
+ . += "Time To Start: [floor(time_remaining)]s[SSticker.delay_start ? " (DELAYED)" : ""]"
else if(time_remaining == -10)
. += "Time To Start: DELAYED"
else
diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm
index 2a197dadc2b1..1462594a0b46 100644
--- a/code/modules/mob/living/carbon/carbon.dm
+++ b/code/modules/mob/living/carbon/carbon.dm
@@ -48,7 +48,7 @@
M.show_message(SPAN_DANGER("You hear something rumbling inside [src]'s stomach..."), SHOW_MESSAGE_AUDIBLE)
var/obj/item/I = user.get_active_hand()
if(I && I.force)
- var/d = rand(round(I.force / 4), I.force)
+ var/d = rand(floor(I.force / 4), I.force)
if(istype(src, /mob/living/carbon/human))
var/mob/living/carbon/human/H = src
var/organ = H.get_limb("chest")
diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm
index bc7d11c25e1f..d03b154feb6b 100644
--- a/code/modules/mob/living/carbon/human/human.dm
+++ b/code/modules/mob/living/carbon/human/human.dm
@@ -171,12 +171,12 @@
var/knockdown_minus_armor = min(knockdown_value * bomb_armor_mult, 1 SECONDS)
var/obj/item/item1 = get_active_hand()
var/obj/item/item2 = get_inactive_hand()
- apply_effect(round(knockdown_minus_armor), WEAKEN)
- apply_effect(round(knockdown_minus_armor), STUN) // Remove this to let people crawl after an explosion. Funny but perhaps not desirable.
+ apply_effect(floor(knockdown_minus_armor), WEAKEN)
+ apply_effect(floor(knockdown_minus_armor), STUN) // Remove this to let people crawl after an explosion. Funny but perhaps not desirable.
var/knockout_value = damage * 0.1
var/knockout_minus_armor = min(knockout_value * bomb_armor_mult * 0.5, 0.5 SECONDS) // the KO time is halved from the knockdown timer. basically same stun time, you just spend less time KO'd.
- apply_effect(round(knockout_minus_armor), PARALYZE)
- apply_effect(round(knockout_minus_armor) * 2, DAZE)
+ apply_effect(floor(knockout_minus_armor), PARALYZE)
+ apply_effect(floor(knockout_minus_armor) * 2, DAZE)
explosion_throw(severity, direction)
if(item1 && isturf(item1.loc))
@@ -1577,7 +1577,7 @@
QDEL_NULL(legcuffed)
handcuff_update()
else
- var/displaytime = max(1, round(breakouttime / 600)) //Minutes
+ var/displaytime = max(1, floor(breakouttime / 600)) //Minutes
to_chat(src, SPAN_WARNING("You attempt to remove [restraint]. (This will take around [displaytime] minute(s) and you need to stand still)"))
for(var/mob/O in viewers(src))
O.show_message(SPAN_DANGER("[usr] attempts to remove [restraint]!"), 1)
diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm
index 2a03b4f0abff..49e490a33507 100644
--- a/code/modules/mob/living/carbon/human/human_damage.dm
+++ b/code/modules/mob/living/carbon/human/human_damage.dm
@@ -409,7 +409,7 @@ This function restores all limbs.
permanent_kill = FALSE, mob/firer = null, force = FALSE
)
if(protection_aura && damage > 0)
- damage = round(damage * ((ORDER_HOLD_CALC_LEVEL - protection_aura) / ORDER_HOLD_CALC_LEVEL))
+ damage = floor(damage * ((ORDER_HOLD_CALC_LEVEL - protection_aura) / ORDER_HOLD_CALC_LEVEL))
//Handle other types of damage
if(damage < 0 || (damagetype != BRUTE) && (damagetype != BURN))
diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm
index 21af882376eb..930e31a7770f 100644
--- a/code/modules/mob/living/carbon/human/human_defense.dm
+++ b/code/modules/mob/living/carbon/human/human_defense.dm
@@ -115,7 +115,7 @@ Contains most of the procs that are called when a mob is attacked by something
// We cannot return FALSE on fail here, because we haven't checked r_hand yet. Dual-wielding shields perhaps!
var/obj/item/weapon/I = l_hand
- if(I.IsShield() && !istype(I, /obj/item/weapon/shield) && (prob(50 - round(damage / 3)))) // 'other' shields, like predweapons. Make sure that item/weapon/shield does not apply here, no double-rolls.
+ if(I.IsShield() && !istype(I, /obj/item/weapon/shield) && (prob(50 - floor(damage / 3)))) // 'other' shields, like predweapons. Make sure that item/weapon/shield does not apply here, no double-rolls.
visible_message(SPAN_DANGER("[src] blocks [attack_text] with the [l_hand.name]!"), null, null, 5)
return TRUE
@@ -139,7 +139,7 @@ Contains most of the procs that are called when a mob is attacked by something
return TRUE
var/obj/item/weapon/I = r_hand
- if(I.IsShield() && !istype(I, /obj/item/weapon/shield) && (prob(50 - round(damage / 3)))) // other shields. Don't doublecheck activable here.
+ if(I.IsShield() && !istype(I, /obj/item/weapon/shield) && (prob(50 - floor(damage / 3)))) // other shields. Don't doublecheck activable here.
visible_message(SPAN_DANGER("[src] blocks [attack_text] with the [r_hand.name]!"), null, null, 5)
return TRUE
diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm
index 1803e289114e..7183d6c802b9 100644
--- a/code/modules/mob/living/carbon/human/human_movement.dm
+++ b/code/modules/mob/living/carbon/human/human_movement.dm
@@ -138,7 +138,7 @@
if (!r_hand) prob_slip -= 2
else if(r_hand.w_class <= SIZE_SMALL) prob_slip--
- prob_slip = round(prob_slip)
+ prob_slip = floor(prob_slip)
return(prob_slip)
/// Updates [TRAIT_FLOORED] based on whether the mob has appropriate limbs to stand or not
diff --git a/code/modules/mob/living/carbon/human/life/handle_pulse.dm b/code/modules/mob/living/carbon/human/life/handle_pulse.dm
index 38a02a048b5c..11c07e253fdd 100644
--- a/code/modules/mob/living/carbon/human/life/handle_pulse.dm
+++ b/code/modules/mob/living/carbon/human/life/handle_pulse.dm
@@ -8,7 +8,7 @@
if(stat == DEAD || status_flags & FAKEDEATH)
return PULSE_NONE //That's it, you're dead, nothing can influence your pulse
- if(round(blood_volume) <= BLOOD_VOLUME_BAD) //How much blood do we have
+ if(floor(blood_volume) <= BLOOD_VOLUME_BAD) //How much blood do we have
return PULSE_THREADY //not enough :(
return PULSE_NORM
diff --git a/code/modules/mob/living/carbon/human/say.dm b/code/modules/mob/living/carbon/human/say.dm
index e8702e56c05f..230e178378ae 100644
--- a/code/modules/mob/living/carbon/human/say.dm
+++ b/code/modules/mob/living/carbon/human/say.dm
@@ -26,7 +26,7 @@
else
headset.last_multi_broadcast = world.time
if(multibroadcast_cooldown)
- .["fail_with"] = "You've used the multi-broadcast system too recently, wait [round(multibroadcast_cooldown / 10)] more seconds."
+ .["fail_with"] = "You've used the multi-broadcast system too recently, wait [floor(multibroadcast_cooldown / 10)] more seconds."
return
if(length(message) >= 2 && (message[1] == "." || message[1] == ":" || message[1] == "#"))
diff --git a/code/modules/mob/living/carbon/human/species/human.dm b/code/modules/mob/living/carbon/human/species/human.dm
index 684bfa672b19..d02a2c3be5bb 100644
--- a/code/modules/mob/living/carbon/human/species/human.dm
+++ b/code/modules/mob/living/carbon/human/species/human.dm
@@ -39,7 +39,7 @@
/// The limit of the oxyloss gained, ignoring oxyloss from the switch statement
var/maximum_oxyloss = clamp((100 - blood_percentage) / 2, oxyloss, 100)
if(oxyloss < maximum_oxyloss)
- oxyloss += round(max(additional_oxyloss, 0))
+ oxyloss += floor(max(additional_oxyloss, 0))
switch(b_volume)
if(BLOOD_VOLUME_OKAY to BLOOD_VOLUME_SAFE)
diff --git a/code/modules/mob/living/carbon/xenomorph/Evolution.dm b/code/modules/mob/living/carbon/xenomorph/Evolution.dm
index b6576b764b51..cd402e2d6fbb 100644
--- a/code/modules/mob/living/carbon/xenomorph/Evolution.dm
+++ b/code/modules/mob/living/carbon/xenomorph/Evolution.dm
@@ -40,7 +40,7 @@
var/datum/caste_datum/caste_datum = GLOB.xeno_datum_list[castepick]
if(caste_datum && caste_datum.minimum_evolve_time > ROUND_TIME)
- to_chat(src, SPAN_WARNING("The Hive cannot support this caste yet! ([round((caste_datum.minimum_evolve_time - ROUND_TIME) / 10)] seconds remaining)"))
+ to_chat(src, SPAN_WARNING("The Hive cannot support this caste yet! ([floor((caste_datum.minimum_evolve_time - ROUND_TIME) / 10)] seconds remaining)"))
return
if(!evolve_checks())
@@ -391,7 +391,7 @@
used_tier_3_slots -= min(slots_used, slots_free)
var/burrowed_factor = min(hive.stored_larva, sqrt(4*hive.stored_larva))
- var/totalXenos = round(burrowed_factor)
+ var/totalXenos = floor(burrowed_factor)
for(var/mob/living/carbon/xenomorph/xeno as anything in hive.totalXenos)
if(xeno.counts_for_slots)
totalXenos++
diff --git a/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm b/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm
index a09380db7664..31f49887b5b3 100644
--- a/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm
+++ b/code/modules/mob/living/carbon/xenomorph/XenoProcs.dm
@@ -45,10 +45,10 @@
. += ""
- . += "Health: [round(health)]/[round(maxHealth)]"
- . += "Armor: [round(0.01*armor_integrity*armor_deflection)+(armor_deflection_buff-armor_deflection_debuff)]/[round(armor_deflection)]"
- . += "Plasma: [round(plasma_stored)]/[round(plasma_max)]"
- . += "Slash Damage: [round((melee_damage_lower+melee_damage_upper)/2)]"
+ . += "Health: [floor(health)]/[floor(maxHealth)]"
+ . += "Armor: [floor(0.01*armor_integrity*armor_deflection)+(armor_deflection_buff-armor_deflection_debuff)]/[floor(armor_deflection)]"
+ . += "Plasma: [floor(plasma_stored)]/[floor(plasma_max)]"
+ . += "Slash Damage: [floor((melee_damage_lower+melee_damage_upper)/2)]"
var/shieldtotal = 0
for (var/datum/xeno_shield/XS in xeno_shields)
@@ -67,7 +67,7 @@
. += ""
- var/stored_evolution = round(evolution_stored)
+ var/stored_evolution = floor(evolution_stored)
var/evolve_progress
if(caste && caste.evolution_allowed)
diff --git a/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm b/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
index 16cfeca8f87e..adfb65169c88 100644
--- a/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
+++ b/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
@@ -857,7 +857,7 @@
if(health < maxHealth)
currentHealthRatio = health / maxHealth
maxHealth = new_max_health
- health = round(maxHealth * currentHealthRatio + 0.5)//Restore our health ratio, so if we're full, we continue to be full, etc. Rounding up (hence the +0.5)
+ health = floor(maxHealth * currentHealthRatio + 0.5)//Restore our health ratio, so if we're full, we continue to be full, etc. Rounding up (hence the +0.5)
if(health > maxHealth)
health = maxHealth
@@ -871,7 +871,7 @@
return
var/plasma_ratio = plasma_stored / plasma_max
plasma_max = new_plasma_max
- plasma_stored = round(plasma_max * plasma_ratio + 0.5) //Restore our plasma ratio, so if we're full, we continue to be full, etc. Rounding up (hence the +0.5)
+ plasma_stored = floor(plasma_max * plasma_ratio + 0.5) //Restore our plasma ratio, so if we're full, we continue to be full, etc. Rounding up (hence the +0.5)
if(plasma_stored > plasma_max)
plasma_stored = plasma_max
@@ -884,7 +884,7 @@
/mob/living/carbon/xenomorph/proc/recalculate_armor()
//We are calculating it in a roundabout way not to give anyone 100% armor deflection, so we're dividing the differences
- armor_deflection = armor_modifier + round(100 - (100 - caste.armor_deflection))
+ armor_deflection = armor_modifier + floor(100 - (100 - caste.armor_deflection))
armor_explosive_buff = explosivearmor_modifier
/mob/living/carbon/xenomorph/proc/recalculate_damage()
@@ -991,7 +991,7 @@
next_move = world.time + 10 SECONDS
last_special = world.time + 1 SECONDS
- var/displaytime = max(1, round(breakouttime / 600)) //Minutes
+ var/displaytime = max(1, floor(breakouttime / 600)) //Minutes
visible_message(SPAN_DANGER("[src] attempts to remove [legcuffed]!"),
SPAN_WARNING("We attempt to remove [legcuffed]. (This will take around [displaytime] minute\s and we must stand still)"))
if(!do_after(src, breakouttime, INTERRUPT_NO_NEEDHAND ^ INTERRUPT_RESIST, BUSY_ICON_HOSTILE))
diff --git a/code/modules/mob/living/carbon/xenomorph/abilities/queen/queen_powers.dm b/code/modules/mob/living/carbon/xenomorph/abilities/queen/queen_powers.dm
index cb9d4c4f5e65..836854d6f956 100644
--- a/code/modules/mob/living/carbon/xenomorph/abilities/queen/queen_powers.dm
+++ b/code/modules/mob/living/carbon/xenomorph/abilities/queen/queen_powers.dm
@@ -305,7 +305,7 @@
return
if(world.time < SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK)
- to_chat(usr, SPAN_XENOWARNING("You must give some time for larva to spawn before sacrificing them. Please wait another [round((SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK - world.time) / 600)] minutes."))
+ to_chat(usr, SPAN_XENOWARNING("You must give some time for larva to spawn before sacrificing them. Please wait another [floor((SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK - world.time) / 600)] minutes."))
return
var/choice = tgui_input_list(user_xeno, "Choose a xenomorph to give evolution points for a burrowed larva:", "Give Evolution Points", user_xeno.hive.totalXenos, theme="hive_status")
diff --git a/code/modules/mob/living/carbon/xenomorph/attack_alien.dm b/code/modules/mob/living/carbon/xenomorph/attack_alien.dm
index 45f5ccb5dec1..2576d0bc599b 100644
--- a/code/modules/mob/living/carbon/xenomorph/attack_alien.dm
+++ b/code/modules/mob/living/carbon/xenomorph/attack_alien.dm
@@ -107,7 +107,7 @@
knock_chance += 2 * attacking_xeno.frenzy_aura
if(attacking_xeno.caste && attacking_xeno.caste.is_intelligent)
knock_chance += 2
- knock_chance += min(round(damage * 0.25), 10) //Maximum of 15% chance.
+ knock_chance += min(floor(damage * 0.25), 10) //Maximum of 15% chance.
if(prob(knock_chance))
playsound(loc, "alien_claw_metal", 25, 1)
attacking_xeno.visible_message(SPAN_DANGER("[attacking_xeno] smashes off [src]'s [wear_mask.name]!"), \
@@ -925,7 +925,7 @@
to_chat(M, SPAN_WARNING("Our claws aren't sharp enough to damage [src]."))
return XENO_NO_DELAY_ACTION
M.animation_attack_on(src)
- health -= round(rand(M.melee_damage_lower, M.melee_damage_upper) * 0.5)
+ health -= floor(rand(M.melee_damage_lower, M.melee_damage_upper) * 0.5)
if(health <= 0)
M.visible_message(SPAN_DANGER("[M] smashes [src] apart!"), \
SPAN_DANGER("We slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm b/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm
index d290b917e945..3b45abfc60d9 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm
@@ -108,7 +108,7 @@
hugger_image_index.Cut()
return
- update_clinger_maths(round(( huggers_cur / huggers_max ) * 3.999) + 1)
+ update_clinger_maths(floor(( huggers_cur / huggers_max ) * 3.999) + 1)
for(var/i in hugger_image_index)
if(stat == DEAD)
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Sentinel.dm b/code/modules/mob/living/carbon/xenomorph/castes/Sentinel.dm
index 2e53f97e297b..d1ef02586b68 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/Sentinel.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/Sentinel.dm
@@ -89,7 +89,7 @@
if (next_slash_buffed)
to_chat(bound_xeno, SPAN_XENOHIGHDANGER("We add neurotoxin into our attack, [carbon_target] is about to fall over paralyzed!"))
to_chat(carbon_target, SPAN_XENOHIGHDANGER("You feel like you're about to fall over, as [bound_xeno] slashes you with its neurotoxin coated claws!"))
- carbon_target.sway_jitter(times = 3, steps = round(NEURO_TOUCH_DELAY/3))
+ carbon_target.sway_jitter(times = 3, steps = floor(NEURO_TOUCH_DELAY/3))
carbon_target.apply_effect(4, DAZE)
addtimer(CALLBACK(src, PROC_REF(paralyzing_slash), carbon_target), NEURO_TOUCH_DELAY)
next_slash_buffed = FALSE
diff --git a/code/modules/mob/living/carbon/xenomorph/damage_procs.dm b/code/modules/mob/living/carbon/xenomorph/damage_procs.dm
index f399dbcb59cd..c6eb8be5715e 100644
--- a/code/modules/mob/living/carbon/xenomorph/damage_procs.dm
+++ b/code/modules/mob/living/carbon/xenomorph/damage_procs.dm
@@ -228,7 +228,7 @@
if(!caste) return
sleep(XENO_ARMOR_BREAK_PASS_TIME)
if(warding_aura && armor_break_to_apply > 0) //Damage to armor reduction
- armor_break_to_apply = round(armor_break_to_apply * ((100 - (warding_aura * 15)) / 100))
+ armor_break_to_apply = floor(armor_break_to_apply * ((100 - (warding_aura * 15)) / 100))
if(caste)
armor_integrity -= armor_break_to_apply
if(armor_integrity < 0)
diff --git a/code/modules/mob/living/carbon/xenomorph/death.dm b/code/modules/mob/living/carbon/xenomorph/death.dm
index d6a9dd01f3cc..82b9291dc555 100644
--- a/code/modules/mob/living/carbon/xenomorph/death.dm
+++ b/code/modules/mob/living/carbon/xenomorph/death.dm
@@ -36,7 +36,7 @@
XQ.dismount_ovipositor(TRUE)
if(GLOB.hive_datum[hivenumber].stored_larva)
- GLOB.hive_datum[hivenumber].stored_larva = round(GLOB.hive_datum[hivenumber].stored_larva * 0.5) //Lose half on dead queen
+ GLOB.hive_datum[hivenumber].stored_larva = floor(GLOB.hive_datum[hivenumber].stored_larva * 0.5) //Lose half on dead queen
var/list/players_with_xeno_pref = get_alien_candidates(GLOB.hive_datum[hivenumber])
if(players_with_xeno_pref && istype(GLOB.hive_datum[hivenumber].hive_location, /obj/effect/alien/resin/special/pylon/core))
diff --git a/code/modules/mob/living/carbon/xenomorph/hive_status.dm b/code/modules/mob/living/carbon/xenomorph/hive_status.dm
index 5b932550edc8..e7e1fab0dd45 100644
--- a/code/modules/mob/living/carbon/xenomorph/hive_status.dm
+++ b/code/modules/mob/living/carbon/xenomorph/hive_status.dm
@@ -595,7 +595,7 @@
slots[TIER_3][GUARANTEED_SLOTS][initial(current_caste.caste_type)] = slots_free - slots_used
var/burrowed_factor = min(stored_larva, sqrt(4*stored_larva))
- var/effective_total = round(burrowed_factor)
+ var/effective_total = floor(burrowed_factor)
for(var/mob/living/carbon/xenomorph/xeno as anything in totalXenos)
if(xeno.counts_for_slots)
effective_total++
@@ -844,7 +844,7 @@
to_chat(user, SPAN_WARNING("The hive cannot support facehuggers yet..."))
return FALSE
if(world.time - user.timeofdeath < JOIN_AS_FACEHUGGER_DELAY)
- var/time_left = round((user.timeofdeath + JOIN_AS_FACEHUGGER_DELAY - world.time) / 10)
+ var/time_left = floor((user.timeofdeath + JOIN_AS_FACEHUGGER_DELAY - world.time) / 10)
to_chat(user, SPAN_WARNING("You ghosted too recently. You cannot become a facehugger until 3 minutes have passed ([time_left] seconds remaining)."))
return FALSE
if(totalXenos.len <= 0)
@@ -899,7 +899,7 @@
return FALSE
if(world.time - user.timeofdeath < JOIN_AS_LESSER_DRONE_DELAY)
- var/time_left = round((user.timeofdeath + JOIN_AS_LESSER_DRONE_DELAY - world.time) / 10)
+ var/time_left = floor((user.timeofdeath + JOIN_AS_LESSER_DRONE_DELAY - world.time) / 10)
to_chat(user, SPAN_WARNING("You ghosted too recently. You cannot become a lesser drone until 30 seconds have passed ([time_left] seconds remaining)."))
return FALSE
diff --git a/code/modules/mob/living/carbon/xenomorph/life.dm b/code/modules/mob/living/carbon/xenomorph/life.dm
index a231ab817d9e..be7c8ead9f6a 100644
--- a/code/modules/mob/living/carbon/xenomorph/life.dm
+++ b/code/modules/mob/living/carbon/xenomorph/life.dm
@@ -121,7 +121,7 @@
if(use_current_aura || use_leader_aura)
for(var/mob/living/carbon/xenomorph/Z as anything in GLOB.living_xeno_list)
- if(Z.ignores_pheromones || Z.ignore_aura == current_aura || Z.ignore_aura == leader_current_aura || Z.z != z || get_dist(aura_center, Z) > round(6 + aura_strength * 2) || !HIVE_ALLIED_TO_HIVE(Z.hivenumber, hivenumber))
+ if(Z.ignores_pheromones || Z.ignore_aura == current_aura || Z.ignore_aura == leader_current_aura || Z.z != z || get_dist(aura_center, Z) > floor(6 + aura_strength * 2) || !HIVE_ALLIED_TO_HIVE(Z.hivenumber, hivenumber))
continue
if(use_leader_aura)
Z.affected_by_pheromones(leader_current_aura, leader_aura_strength)
@@ -341,7 +341,7 @@ Make sure their actual health updates immediately.*/
if(!hive) return // can't heal if you have no hive, sorry bud
plasma_stored += plasma_gain * plasma_max / 100
if(recovery_aura)
- plasma_stored += round(plasma_gain * plasma_max / 100 * recovery_aura/4) //Divided by four because it gets massive fast. 1 is equivalent to weed regen! Only the strongest pheromones should bypass weeds
+ plasma_stored += floor(plasma_gain * plasma_max / 100 * recovery_aura/4) //Divided by four because it gets massive fast. 1 is equivalent to weed regen! Only the strongest pheromones should bypass weeds
if(health < maxHealth && !hardcore && is_hive_living(hive) && last_hit_time + caste.heal_delay_time <= world.time)
if(body_position == LYING_DOWN || resting)
if(health < 0) //Unconscious
@@ -493,7 +493,7 @@ Make sure their actual health updates immediately.*/
if(hardcore)
async_gib(last_damage_data)
else if(world.time > next_grace_time && stat == CONSCIOUS)
- var/grace_time = crit_grace_time > 0 ? crit_grace_time + (1 SECONDS * max(round(warding_aura - 1), 0)) : 0
+ var/grace_time = crit_grace_time > 0 ? crit_grace_time + (1 SECONDS * max(floor(warding_aura - 1), 0)) : 0
if(grace_time)
addtimer(CALLBACK(src, PROC_REF(handle_crit)), grace_time)
else
diff --git a/code/modules/mob/living/carbon/xenomorph/strains/castes/runner/acid.dm b/code/modules/mob/living/carbon/xenomorph/strains/castes/runner/acid.dm
index f98263871707..6983942fb562 100644
--- a/code/modules/mob/living/carbon/xenomorph/strains/castes/runner/acid.dm
+++ b/code/modules/mob/living/carbon/xenomorph/strains/castes/runner/acid.dm
@@ -140,7 +140,7 @@
dist = (0.934*dx) + (0.427*dy)
else
dist = (0.427*dx) + (0.934*dy)
- var/damage = round((burn_range - dist) * max_burn_damage / burn_range)
+ var/damage = floor((burn_range - dist) * max_burn_damage / burn_range)
if(isxeno(target_living))
damage *= XVX_ACID_DAMAGEMULT
diff --git a/code/modules/mob/living/carbon/xenomorph/xeno_helpers.dm b/code/modules/mob/living/carbon/xenomorph/xeno_helpers.dm
index 2e4b968d5a59..8b3487b7a878 100644
--- a/code/modules/mob/living/carbon/xenomorph/xeno_helpers.dm
+++ b/code/modules/mob/living/carbon/xenomorph/xeno_helpers.dm
@@ -27,12 +27,12 @@
/mob/living/carbon/xenomorph/proc/get_plasma_percentage()
if(plasma_max<=0)
return 100
- return round(plasma_stored * 100 / plasma_max)
+ return floor(plasma_stored * 100 / plasma_max)
/mob/living/carbon/xenomorph/proc/get_armor_integrity_percentage()
if(armor_deflection<=0)
return 100
- return round(armor_integrity * 100 / armor_integrity_max)
+ return floor(armor_integrity * 100 / armor_integrity_max)
/**
* Returns the name of the xeno's strain, if it has one.
diff --git a/code/modules/mob/living/living_healthscan.dm b/code/modules/mob/living/living_healthscan.dm
index 30358dea20c1..b26be6c0d585 100644
--- a/code/modules/mob/living/living_healthscan.dm
+++ b/code/modules/mob/living/living_healthscan.dm
@@ -77,7 +77,7 @@ GLOBAL_LIST_INIT(known_implants, subtypesof(/obj/item/implant))
var/total_mob_damage = target_mob.getBruteLoss() + target_mob.getFireLoss() + target_mob.getToxLoss() + target_mob.getCloneLoss()
// Fake death will make the scanner think they died of oxygen damage, thus it returns enough damage to kill minus already received damage.
- return round(POSITIVE(200 - total_mob_damage))
+ return floor(POSITIVE(200 - total_mob_damage))
/datum/health_scan/proc/get_holo_card_color(mob/living/target_mob)
if(!ishuman(target_mob))
@@ -96,11 +96,11 @@ GLOBAL_LIST_INIT(known_implants, subtypesof(/obj/item/implant))
"patient" = target_mob.name,
"dead" = get_death_value(target_mob),
"health" = get_health_value(target_mob),
- "total_brute" = round(target_mob.getBruteLoss()),
- "total_burn" = round(target_mob.getFireLoss()),
- "toxin" = round(target_mob.getToxLoss()),
+ "total_brute" = floor(target_mob.getBruteLoss()),
+ "total_burn" = floor(target_mob.getFireLoss()),
+ "toxin" = floor(target_mob.getToxLoss()),
"oxy" = get_oxy_value(target_mob),
- "clone" = round(target_mob.getCloneLoss()),
+ "clone" = floor(target_mob.getCloneLoss()),
"blood_type" = target_mob.blood_type,
"blood_amount" = target_mob.blood_volume,
"holocard" = get_holo_card_color(target_mob),
@@ -189,8 +189,8 @@ GLOBAL_LIST_INIT(known_implants, subtypesof(/obj/item/implant))
var/list/core_body_parts = list("head", "chest", "groin")
var/list/current_list = list(
"name" = limb.display_name,
- "brute" = round(limb.brute_dam),
- "burn" = round(limb.burn_dam),
+ "brute" = floor(limb.brute_dam),
+ "burn" = floor(limb.burn_dam),
"bandaged" = limb.is_bandaged(),
"salved" = limb.is_salved(),
"missing" = (limb.status & LIMB_DESTROYED),
@@ -574,9 +574,9 @@ GLOBAL_LIST_INIT(known_implants, subtypesof(/obj/item/implant))
else if(org.status & LIMB_SYNTHSKIN)
org_name += " (Synthskin)"
- var/burn_info = org.burn_dam > 0 ? " [round(org.burn_dam)]" : "0"
+ var/burn_info = org.burn_dam > 0 ? " [floor(org.burn_dam)]" : "0"
burn_info += "[burn_treated ? "" : "{B}"]"
- var/brute_info = org.brute_dam > 0 ? " [round(org.brute_dam)]" : "0"
+ var/brute_info = org.brute_dam > 0 ? " [floor(org.brute_dam)]" : "0"
brute_info += "[brute_treated ? "" : "{T}"]"
var/fracture_info = ""
if(org.status & LIMB_BROKEN)
@@ -680,7 +680,7 @@ GLOBAL_LIST_INIT(known_implants, subtypesof(/obj/item/implant))
// Show blood level
var/blood_volume = BLOOD_VOLUME_NORMAL
if(!(H.species && H.species.flags & NO_BLOOD))
- blood_volume = round(H.blood_volume)
+ blood_volume = floor(H.blood_volume)
var/blood_percent = blood_volume / 560
var/blood_type = H.blood_type
diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm
index 02c1baa48c28..eb3fe5cd47e7 100644
--- a/code/modules/mob/living/silicon/silicon.dm
+++ b/code/modules/mob/living/silicon/silicon.dm
@@ -64,7 +64,7 @@
// this function shows health in the Status panel
/mob/living/silicon/proc/show_system_integrity()
if(!stat)
- stat(null, text("System integrity: [round((health/maxHealth)*100)]%"))
+ stat(null, text("System integrity: [floor((health/maxHealth)*100)]%"))
else
stat(null, text("Systems nonfunctional"))
diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm
index 9d108d36b461..ab5aa898a848 100644
--- a/code/modules/mob/mob_movement.dm
+++ b/code/modules/mob/mob_movement.dm
@@ -301,5 +301,5 @@
if(stat)
prob_slip = 0 // Changing this to zero to make it line up with the comment.
- prob_slip = round(prob_slip)
+ prob_slip = floor(prob_slip)
return(prob_slip)
diff --git a/code/modules/mob/mob_verbs.dm b/code/modules/mob/mob_verbs.dm
index f12d00cc0988..180882a00528 100644
--- a/code/modules/mob/mob_verbs.dm
+++ b/code/modules/mob/mob_verbs.dm
@@ -121,7 +121,7 @@
return
else
var/deathtime = world.time - src.timeofdeath
- var/deathtimeminutes = round(deathtime / 600)
+ var/deathtimeminutes = floor(deathtime / 600)
var/pluralcheck = "minute"
if(deathtimeminutes == 0)
pluralcheck = ""
diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm
index f436863b2f2f..1883b0ed9292 100644
--- a/code/modules/mob/new_player/new_player.dm
+++ b/code/modules/mob/new_player/new_player.dm
@@ -299,7 +299,7 @@
var/hours = mills / 36000
var/dat = ""
- dat += "Round Duration: [round(hours)]h [round(mins)]m
"
+ dat += "Round Duration: [floor(hours)]h [floor(mins)]m
"
if(SShijack)
switch(SShijack.evac_status)
@@ -451,7 +451,7 @@
var/time_remaining = SSticker.GetTimeLeft()
if(time_remaining > 0)
- . += "Time To Start: [round(time_remaining)]s[SSticker.delay_start ? " (DELAYED)" : ""]"
+ . += "Time To Start: [floor(time_remaining)]s[SSticker.delay_start ? " (DELAYED)" : ""]"
else if(time_remaining == -10)
. += "Time To Start: DELAYED"
else
diff --git a/code/modules/power/batteryrack.dm b/code/modules/power/batteryrack.dm
index 6956079a6cb0..5630f13a048d 100644
--- a/code/modules/power/batteryrack.dm
+++ b/code/modules/power/batteryrack.dm
@@ -94,7 +94,7 @@
/obj/structure/machinery/power/smes/batteryrack/chargedisplay()
- return round(4 * charge/(capacity ? capacity : 5e6))
+ return floor(4 * charge/(capacity ? capacity : 5e6))
/obj/structure/machinery/power/smes/batteryrack/attackby(obj/item/W as obj, mob/user as mob) //these can only be moved by being reconstructed, solves having to remake the powernet.
@@ -246,7 +246,7 @@
if(charge < 0.0001)
outputting = 0 // stop output if charge falls to zero
- overcharge_percent = round((charge / capacity) * 100)
+ overcharge_percent = floor((charge / capacity) * 100)
if (overcharge_percent > 115) //115% is the minimum overcharge for anything to happen
overcharge_consequences()
diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm
index 31a096a3a2ee..6d67f207cf12 100644
--- a/code/modules/power/cell.dm
+++ b/code/modules/power/cell.dm
@@ -63,9 +63,9 @@
/obj/item/cell/get_examine_text(mob/user)
. = ..()
if(maxcharge <= 2500)
- . += SPAN_NOTICE("The manufacturer's label states this cell has a power rating of [maxcharge], and that you should not swallow it.\nThe charge meter reads [round(src.percent() )]%.")
+ . += SPAN_NOTICE("The manufacturer's label states this cell has a power rating of [maxcharge], and that you should not swallow it.\nThe charge meter reads [floor(src.percent() )]%.")
else
- . += SPAN_NOTICE("This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!\nThe charge meter reads [round(src.percent() )]%.")
+ . += SPAN_NOTICE("This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!\nThe charge meter reads [floor(src.percent() )]%.")
if(crit_fail)
. += SPAN_DANGER("This power cell seems to be faulty.")
diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm
index 6a20e9cfe78e..bb158ae30b5e 100644
--- a/code/modules/power/port_gen.dm
+++ b/code/modules/power/port_gen.dm
@@ -33,7 +33,7 @@ tank [un]loading stuff
turn on/off
/obj/structure/machinery/power/port_gen/get_examine_text(mob/user)
-display round(lastgen) and phorontank amount
+display floor(lastgen) and phorontank amount
*/
@@ -168,8 +168,8 @@ display round(lastgen) and phorontank amount
temp_rating += SP.rating
for(var/obj/item/CP in component_parts)
temp_reliability += CP.reliability
- reliability = min(round(temp_reliability / 4), 100)
- power_gen = round(initial(power_gen) * (max(2, temp_rating) / 2))
+ reliability = min(floor(temp_reliability / 4), 100)
+ power_gen = floor(initial(power_gen) * (max(2, temp_rating) / 2))
/obj/structure/machinery/power/port_gen/pacman/get_examine_text(mob/user)
. = ..()
@@ -196,8 +196,8 @@ display round(lastgen) and phorontank amount
var/temp = min(needed_sheets, sheet_left)
needed_sheets -= temp
sheet_left -= temp
- sheets -= round(needed_sheets)
- needed_sheets -= round(needed_sheets)
+ sheets -= floor(needed_sheets)
+ needed_sheets -= floor(needed_sheets)
if (sheet_left <= 0 && sheets > 0)
sheet_left = 1 - needed_sheets
sheets--
diff --git a/code/modules/power/power_monitor.dm b/code/modules/power/power_monitor.dm
index d39e3cbb8c0a..9a95047db6cc 100644
--- a/code/modules/power/power_monitor.dm
+++ b/code/modules/power/power_monitor.dm
@@ -67,7 +67,7 @@
for(var/obj/structure/machinery/power/apc/A in L)
t += copytext(add_tspace("\The [A.area]", 30), 1, 30)
- t += " [S[A.equipment+1]] [S[A.lighting+1]] [S[A.environ+1]] [add_lspace(A.lastused_total, 6)] [A.cell ? "[add_lspace(round(A.cell.percent()), 3)]% [chg[A.charging+1]]" : " N/C"]
"
+ t += " [S[A.equipment+1]] [S[A.lighting+1]] [S[A.environ+1]] [add_lspace(A.lastused_total, 6)] [A.cell ? "[add_lspace(floor(A.cell.percent()), 3)]% [chg[A.charging+1]]" : " N/C"]
"
total_demand += A.lastused_total
t += "
Total demand: [total_demand] W"
diff --git a/code/modules/power/powernet.dm b/code/modules/power/powernet.dm
index b48acda29df1..0fe62154966b 100644
--- a/code/modules/power/powernet.dm
+++ b/code/modules/power/powernet.dm
@@ -22,7 +22,7 @@
viewload = 0.8*viewload + 0.2*load
- viewload = round(viewload)
+ viewload = floor(viewload)
var/numapc = 0
diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm
index 46d9374cb832..d05b34e62b2c 100644
--- a/code/modules/power/smes.dm
+++ b/code/modules/power/smes.dm
@@ -94,7 +94,7 @@
/obj/structure/machinery/power/smes/proc/chargedisplay()
- return round(5.5*charge/(capacity ? capacity : 5e6))
+ return floor(5.5*charge/(capacity ? capacity : 5e6))
#define SMESRATE 0.05 // rate of internal charge to external power
diff --git a/code/modules/power/smes_construction.dm b/code/modules/power/smes_construction.dm
index d6fb7bb66841..fdfc18390dbe 100644
--- a/code/modules/power/smes_construction.dm
+++ b/code/modules/power/smes_construction.dm
@@ -199,7 +199,7 @@
return
// Probability of failure if safety circuit is disabled (in %)
- var/failure_probability = round((charge / capacity) * 100)
+ var/failure_probability = floor((charge / capacity) * 100)
// If failure probability is below 5% it's usually safe to do modifications
if (failure_probability < 5)
diff --git a/code/modules/projectiles/ammo_boxes/ammo_boxes.dm b/code/modules/projectiles/ammo_boxes/ammo_boxes.dm
index df8a7d7bdd76..7f6919b94f3a 100644
--- a/code/modules/projectiles/ammo_boxes/ammo_boxes.dm
+++ b/code/modules/projectiles/ammo_boxes/ammo_boxes.dm
@@ -206,11 +206,11 @@
if(handfuls)
var/obj/item/ammo_magazine/AM = locate(/obj/item/ammo_magazine) in contents
if(AM)
- severity = round(AM.current_rounds / 40)
+ severity = floor(AM.current_rounds / 40)
else
for(var/obj/item/ammo_magazine/AM in contents)
severity += AM.current_rounds
- severity = round(severity / 150)
+ severity = floor(severity / 150)
return severity
/obj/item/ammo_box/magazine/process_burning(datum/cause_data/flame_cause_data)
@@ -401,7 +401,7 @@
return
/obj/item/ammo_box/rounds/get_severity()
- return round(bullet_amount / 200) //we need a lot of bullets to produce an explosion.
+ return floor(bullet_amount / 200) //we need a lot of bullets to produce an explosion.
/obj/item/ammo_box/rounds/process_burning(datum/cause_data/flame_cause_data)
if(can_explode)
diff --git a/code/modules/projectiles/ammo_boxes/box_structures.dm b/code/modules/projectiles/ammo_boxes/box_structures.dm
index b34c0543bb2c..8ae178edf586 100644
--- a/code/modules/projectiles/ammo_boxes/box_structures.dm
+++ b/code/modules/projectiles/ammo_boxes/box_structures.dm
@@ -101,7 +101,7 @@
if(item_box.handfuls)
var/obj/item/ammo_magazine/AM = locate(/obj/item/ammo_magazine) in item_box.contents
if(AM)
- . += SPAN_INFO("It has roughly [round(AM.current_rounds/5)] handfuls remaining.")
+ . += SPAN_INFO("It has roughly [floor(AM.current_rounds/5)] handfuls remaining.")
else
. += SPAN_INFO("It has [item_box.contents.len] magazines out of [item_box.num_of_magazines].")
if(burning)
diff --git a/code/modules/projectiles/ammo_boxes/misc_boxes.dm b/code/modules/projectiles/ammo_boxes/misc_boxes.dm
index 7b19555f4de5..434239fe25cd 100644
--- a/code/modules/projectiles/ammo_boxes/misc_boxes.dm
+++ b/code/modules/projectiles/ammo_boxes/misc_boxes.dm
@@ -97,7 +97,7 @@
var/flare_amount = 0
for(var/obj/item/storage/box/m94/flare_box in contents)
flare_amount += flare_box.contents.len
- flare_amount = round(flare_amount / 8) //10 packs, 8 flares each, maximum total of 10 flares we can throw out
+ flare_amount = floor(flare_amount / 8) //10 packs, 8 flares each, maximum total of 10 flares we can throw out
return flare_amount
/obj/item/ammo_box/magazine/misc/flares/process_burning(datum/cause_data/flame_cause_data)
diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm
index a3ba517c0cae..0e0fccf027db 100644
--- a/code/modules/projectiles/ammunition.dm
+++ b/code/modules/projectiles/ammunition.dm
@@ -196,7 +196,7 @@ They're all essentially identical when it comes to getting the job done.
if(current_rounds < 1)
return
else
- var/severity = round(current_rounds / 50)
+ var/severity = floor(current_rounds / 50)
//the more ammo inside, the faster and harder it cooks off
if(severity > 0)
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(explosion), loc, -1, ((severity > 4) ? 0 : -1), clamp(severity, 0, 1), clamp(severity, 0, 2), 1, 0, 0, flame_cause_data), max(5 - severity, 2))
@@ -335,14 +335,14 @@ Turn() or Shift() as there is virtually no overhead. ~N
/obj/item/ammo_casing/update_icon()
if(max_casings >= current_casings)
if(current_casings == 2) name += "s" //In case there is more than one.
- if(round((current_casings-1)/8) > current_icon)
+ if(floor((current_casings-1)/8) > current_icon)
current_icon++
icon_state += "_[current_icon]"
var/I = current_casings*8 // For the metal.
matter = list("metal" = I)
var/base_direction = current_casings - (current_icon * 8)
- setDir(base_direction + round(base_direction)/3)
+ setDir(base_direction + floor(base_direction)/3)
switch(current_casings)
if(3 to 5) w_class = SIZE_SMALL //Slightly heavier.
if(9 to 10) w_class = SIZE_MEDIUM //Can't put it in your pockets and stuff.
diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm
index a678ceda165c..894c69d0eaf4 100644
--- a/code/modules/projectiles/gun.dm
+++ b/code/modules/projectiles/gun.dm
@@ -650,11 +650,11 @@ As sniper rifles have both and weapon mods can change them as well. ..() deals w
for(var/i = 0; i<=CODEX_ARMOR_MAX; i+=CODEX_ARMOR_STEP)
damage_armor_profile_headers.Add(i)
- damage_armor_profile_marine.Add(round(armor_damage_reduction(GLOB.marine_ranged_stats, damage, i, penetration)))
- damage_armor_profile_xeno.Add(round(armor_damage_reduction(GLOB.xeno_ranged_stats, damage, i, penetration)))
+ damage_armor_profile_marine.Add(floor(armor_damage_reduction(GLOB.marine_ranged_stats, damage, i, penetration)))
+ damage_armor_profile_xeno.Add(floor(armor_damage_reduction(GLOB.xeno_ranged_stats, damage, i, penetration)))
if(!GLOB.xeno_general.armor_ignore_integrity)
if(i != 0)
- damage_armor_profile_armorbreak.Add("[round(armor_break_calculation(GLOB.xeno_ranged_stats, damage, i, penetration, in_ammo.pen_armor_punch, armor_punch)/i)]%")
+ damage_armor_profile_armorbreak.Add("[floor(armor_break_calculation(GLOB.xeno_ranged_stats, damage, i, penetration, in_ammo.pen_armor_punch, armor_punch)/i)]%")
else
damage_armor_profile_armorbreak.Add("N/A")
@@ -669,8 +669,8 @@ As sniper rifles have both and weapon mods can change them as well. ..() deals w
data["two_handed_only"] = (flags_gun_features & GUN_WIELDED_FIRING_ONLY)
data["recoil"] = max(gun_recoil, 0.1)
data["unwielded_recoil"] = max(recoil_unwielded, 0.1)
- data["firerate"] = round(1 MINUTES / rpm) // 3 minutes so that the values look greater than they actually are
- data["burst_firerate"] = round(1 MINUTES / burst_rpm)
+ data["firerate"] = floor(1 MINUTES / rpm) // 3 minutes so that the values look greater than they actually are
+ data["burst_firerate"] = floor(1 MINUTES / burst_rpm)
data["firerate_second"] = round(1 SECONDS / rpm, 0.01)
data["burst_firerate_second"] = round(1 SECONDS / burst_rpm, 0.01)
data["scatter"] = max(0.1, scatter + src.scatter)
@@ -1222,7 +1222,7 @@ and you're good to go.
return TRUE
//>>POST PROCESSING AND CLEANUP BEGIN HERE.<<
- var/angle = round(Get_Angle(user,target)) //Let's do a muzzle flash.
+ var/angle = floor(Get_Angle(user,target)) //Let's do a muzzle flash.
muzzle_flash(angle,user)
//This is where we load the next bullet in the chamber. We check for attachments too, since we don't want to load anything if an attachment is active.
@@ -1417,7 +1417,7 @@ and you're good to go.
for(var/i in 1 to projectile_to_fire.ammo.bonus_projectiles_amount)
BP = new /obj/projectile(attacked_mob.loc, create_cause_data(initial(name), user))
BP.generate_bullet(GLOB.ammo_list[projectile_to_fire.ammo.bonus_projectiles_type], 0, NO_FLAGS)
- BP.accuracy = round(BP.accuracy * projectile_to_fire.accuracy/initial(projectile_to_fire.accuracy)) //Modifies accuracy of pellets per fire_bonus_projectiles.
+ BP.accuracy = floor(BP.accuracy * projectile_to_fire.accuracy/initial(projectile_to_fire.accuracy)) //Modifies accuracy of pellets per fire_bonus_projectiles.
BP.damage *= damage_buff
BP.bonus_projectile_check = 2
@@ -1644,7 +1644,7 @@ not all weapons use normal magazines etc. load_into_chamber() itself is designed
if(skill_accuracy)
gun_accuracy_mult += skill_accuracy * HIT_ACCURACY_MULT_TIER_3 // Accuracy mult increase/decrease per level is equal to attaching/removing a red dot sight
- projectile_to_fire.accuracy = round(projectile_to_fire.accuracy * gun_accuracy_mult) // Apply gun accuracy multiplier to projectile accuracy
+ projectile_to_fire.accuracy = floor(projectile_to_fire.accuracy * gun_accuracy_mult) // Apply gun accuracy multiplier to projectile accuracy
projectile_to_fire.scatter += gun_scatter
if(wield_delay > 0 && (world.time < wield_time || world.time < pull_time))
@@ -1658,7 +1658,7 @@ not all weapons use normal magazines etc. load_into_chamber() itself is designed
var/scatter_debuff = 1 + (SETTLE_SCATTER_MULTIPLIER - 1) * pct_settled
projectile_to_fire.scatter *= scatter_debuff
- projectile_to_fire.damage = round(projectile_to_fire.damage * damage_mult) // Apply gun damage multiplier to projectile damage
+ projectile_to_fire.damage = floor(projectile_to_fire.damage * damage_mult) // Apply gun damage multiplier to projectile damage
// Apply effective range and falloffs/buildups
projectile_to_fire.damage_falloff = damage_falloff_mult * projectile_to_fire.ammo.damage_falloff
diff --git a/code/modules/projectiles/gun_attachables.dm b/code/modules/projectiles/gun_attachables.dm
index 711b53f0fc77..d1aff8a33969 100644
--- a/code/modules/projectiles/gun_attachables.dm
+++ b/code/modules/projectiles/gun_attachables.dm
@@ -3241,7 +3241,7 @@ Defined in conflicts.dm of the #defines folder.
var/turf/user_turf = get_turf(user)
playsound(user_turf, pick(fire_sounds), 50, TRUE)
- to_chat(user, SPAN_WARNING("The gauge reads: [round(gun.current_mag.get_ammo_percent())]% fuel remaining!"))
+ to_chat(user, SPAN_WARNING("The gauge reads: [floor(gun.current_mag.get_ammo_percent())]% fuel remaining!"))
/obj/item/attachable/verticalgrip
name = "vertical grip"
diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm
index ee122d8f8edd..b2ec3dea63ce 100644
--- a/code/modules/projectiles/guns/energy.dm
+++ b/code/modules/projectiles/guns/energy.dm
@@ -67,7 +67,7 @@
/obj/item/weapon/gun/energy/emp_act(severity)
. = ..()
- cell.use(round(cell.maxcharge / severity))
+ cell.use(floor(cell.maxcharge / severity))
update_icon()
/obj/item/weapon/gun/energy/load_into_chamber()
diff --git a/code/modules/projectiles/guns/flamer/flamer.dm b/code/modules/projectiles/guns/flamer/flamer.dm
index 0388f5be7aef..b15856af1637 100644
--- a/code/modules/projectiles/guns/flamer/flamer.dm
+++ b/code/modules/projectiles/guns/flamer/flamer.dm
@@ -64,7 +64,7 @@
/obj/item/weapon/gun/flamer/get_examine_text(mob/user)
. = ..()
if(current_mag)
- . += "The fuel gauge shows the current tank is [round(current_mag.get_ammo_percent())]% full!"
+ . += "The fuel gauge shows the current tank is [floor(current_mag.get_ammo_percent())]% full!"
else
. += "There's no tank in [src]!"
@@ -255,7 +255,7 @@
for(var/turf/turf in turfs)
if(chemical.volume < ammount_required)
- smoke_range = round(chemical.volume / use_multiplier)
+ smoke_range = floor(chemical.volume / use_multiplier)
if(distance >= smoke_range)
break
@@ -309,7 +309,7 @@
for(var/turf/turf in turfs)
if(chemical.volume < ammount_required)
- foam_range = round(chemical.volume / use_multiplier)
+ foam_range = floor(chemical.volume / use_multiplier)
if(distance >= foam_range)
break
@@ -347,7 +347,7 @@
/obj/item/weapon/gun/flamer/proc/show_percentage(mob/living/user)
if(current_mag)
- to_chat(user, SPAN_WARNING("The gauge reads: [round(current_mag.get_ammo_percent())]% fuel remains!"))
+ to_chat(user, SPAN_WARNING("The gauge reads: [floor(current_mag.get_ammo_percent())]% fuel remains!"))
/obj/item/weapon/gun/flamer/underextinguisher
starting_attachment_types = list(/obj/item/attachable/attached_gun/extinguisher)
@@ -647,7 +647,7 @@
if(!(sig_result & COMPONENT_NO_IGNITE))
switch(fire_variant)
if(FIRE_VARIANT_TYPE_B) //Armor Shredding Greenfire, super easy to pat out. 50 duration -> 10 stacks (1 pat/resist)
- ignited_morb.TryIgniteMob(round(tied_reagent.durationfire / 5), tied_reagent)
+ ignited_morb.TryIgniteMob(floor(tied_reagent.durationfire / 5), tied_reagent)
else
ignited_morb.TryIgniteMob(tied_reagent.durationfire, tied_reagent)
@@ -705,7 +705,7 @@
return
var/sig_result = SEND_SIGNAL(M, COMSIG_LIVING_FLAMER_CROSSED, tied_reagent)
- var/burn_damage = round(burnlevel * 0.5)
+ var/burn_damage = floor(burnlevel * 0.5)
switch(fire_variant)
if(FIRE_VARIANT_TYPE_B) //Armor Shredding Greenfire, 2x tile damage (Equiavlent to UT)
burn_damage = burnlevel
@@ -724,7 +724,7 @@
if(!(sig_result & COMPONENT_NO_IGNITE) && burn_damage)
switch(fire_variant)
if(FIRE_VARIANT_TYPE_B) //Armor Shredding Greenfire, super easy to pat out. 50 duration -> 10 stacks (1 pat/resist)
- M.TryIgniteMob(round(tied_reagent.durationfire / 5), tied_reagent)
+ M.TryIgniteMob(floor(tied_reagent.durationfire / 5), tied_reagent)
else
M.TryIgniteMob(tied_reagent.durationfire, tied_reagent)
diff --git a/code/modules/projectiles/guns/specialist/launcher/grenade_launcher.dm b/code/modules/projectiles/guns/specialist/launcher/grenade_launcher.dm
index f1d951324930..e2643c580a16 100644
--- a/code/modules/projectiles/guns/specialist/launcher/grenade_launcher.dm
+++ b/code/modules/projectiles/guns/specialist/launcher/grenade_launcher.dm
@@ -175,7 +175,7 @@
SPAN_WARNING("[to_firer]"), message_flags = CHAT_TYPE_WEAPON_USE)
playsound(user.loc, fire_sound, 50, 1)
- var/angle = round(Get_Angle(user,target))
+ var/angle = floor(Get_Angle(user,target))
muzzle_flash(angle,user)
simulate_recoil(0, user)
diff --git a/code/modules/projectiles/guns/specialist/sniper.dm b/code/modules/projectiles/guns/specialist/sniper.dm
index 5b4a81fde273..4c5a4fb129cd 100644
--- a/code/modules/projectiles/guns/specialist/sniper.dm
+++ b/code/modules/projectiles/guns/specialist/sniper.dm
@@ -104,7 +104,7 @@
human.face_atom(target)
///Add a decisecond to the default 1.5 seconds for each two tiles to hit.
- var/distance = round(get_dist(target, human) * 0.5)
+ var/distance = floor(get_dist(target, human) * 0.5)
var/f_aiming_time = sniper_rifle.aiming_time + distance
var/aim_multiplier = 1
diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm
index cd69c1940aba..9026a3e849e6 100644
--- a/code/modules/projectiles/projectile.dm
+++ b/code/modules/projectiles/projectile.dm
@@ -181,9 +181,9 @@
last_damage_mult = 1
if(effective_range_min && distance_travelled < effective_range_min)
- return max(0, damage - round((effective_range_min - distance_travelled) * damage_buildup))
+ return max(0, damage - floor((effective_range_min - distance_travelled) * damage_buildup))
else if(distance_travelled > effective_range_max)
- return max(0, damage - round((distance_travelled - effective_range_max) * damage_falloff))
+ return max(0, damage - floor((distance_travelled - effective_range_max) * damage_falloff))
return damage
// Target, firer, shot from (i.e. the gun), projectile range, projectile speed, original target (who was aimed at, not where projectile is going towards)
@@ -372,7 +372,7 @@
return TRUE
// Process on move effects
- if(distance_travelled == round(ammo.max_range / 2))
+ if(distance_travelled == floor(ammo.max_range / 2))
ammo.do_at_half_range(src)
if(distance_travelled >= ammo.max_range)
ammo.do_at_max_range(src)
@@ -1029,7 +1029,7 @@
. = TRUE
apply_damage(damage_result, P.ammo.damage_type, P.def_zone, firer = P.firer)
- if(P.ammo.shrapnel_chance > 0 && prob(P.ammo.shrapnel_chance + round(damage / 10)))
+ if(P.ammo.shrapnel_chance > 0 && prob(P.ammo.shrapnel_chance + floor(damage / 10)))
if(ammo_flags & AMMO_SPECIAL_EMBED)
P.ammo.on_embed(src, organ)
@@ -1128,7 +1128,7 @@
P.play_shielded_hit_effect(src)
else
P.play_hit_effect(src)
- if(!stat && prob(5 + round(damage_result / 4)))
+ if(!stat && prob(5 + floor(damage_result / 4)))
var/pain_emote = prob(70) ? "hiss" : "roar"
emote(pain_emote)
updatehealth()
@@ -1171,12 +1171,12 @@
switch(P.ammo.damage_type)
if(BRUTE) //Rockets do extra damage to walls.
if(ammo_flags & AMMO_ROCKET)
- damage = round(damage * 10)
+ damage = floor(damage * 10)
if(BURN)
if(ammo_flags & AMMO_ENERGY)
- damage = round(damage * 7)
+ damage = floor(damage * 7)
else if(ammo_flags & AMMO_ANTISTRUCT) // Railgun does extra damage to turfs
- damage = round(damage * ANTISTRUCT_DMG_MULT_WALL)
+ damage = floor(damage * ANTISTRUCT_DMG_MULT_WALL)
if(ammo_flags & AMMO_BALLISTIC)
current_bulletholes++
take_damage(damage, P.firer)
@@ -1205,7 +1205,7 @@
/obj/structure/surface/table/bullet_act(obj/projectile/P)
bullet_ping(P)
- health -= round(P.damage/2)
+ health -= floor(P.damage/2)
if(health < 0)
visible_message(SPAN_WARNING("[src] breaks down!"))
deconstruct()
diff --git a/code/modules/reagents/Chemistry-Colours.dm b/code/modules/reagents/Chemistry-Colours.dm
index 70705160f462..f600a7479070 100644
--- a/code/modules/reagents/Chemistry-Colours.dm
+++ b/code/modules/reagents/Chemistry-Colours.dm
@@ -55,7 +55,7 @@
var/mixedcolor = 0
for(i=1; i<=contents; i++)
mixedcolor += weight[i]*color[i]
- mixedcolor = round(mixedcolor)
+ mixedcolor = floor(mixedcolor)
//until someone writes a formal proof for this algorithm, let's keep this in
// if(mixedcolor<0x00 || mixedcolor>0xFF)
diff --git a/code/modules/reagents/Chemistry-Generator.dm b/code/modules/reagents/Chemistry-Generator.dm
index b2e6402d4b06..0b03b621e388 100644
--- a/code/modules/reagents/Chemistry-Generator.dm
+++ b/code/modules/reagents/Chemistry-Generator.dm
@@ -307,7 +307,7 @@
if(isNegativeProperty(P))
new_value = -1 * level
else if(isNeutralProperty(P))
- new_value = round(-1 * level / 2)
+ new_value = floor(-1 * level / 2)
else
new_value = level
diff --git a/code/modules/reagents/Chemistry-Holder.dm b/code/modules/reagents/Chemistry-Holder.dm
index 36e8f9e179ff..710cca821385 100644
--- a/code/modules/reagents/Chemistry-Holder.dm
+++ b/code/modules/reagents/Chemistry-Holder.dm
@@ -266,7 +266,7 @@
if(!has_reagent(B, C.required_reagents[B]))
break
total_matching_reagents++
- multipliers += round(get_reagent_amount(B) / C.required_reagents[B])
+ multipliers += floor(get_reagent_amount(B) / C.required_reagents[B])
for(var/B in C.required_catalysts)
if(B == "silver" && istype(my_atom, /obj/item/reagent_container/glass/beaker/silver))
total_matching_catalysts++
@@ -594,9 +594,9 @@
dir = E.dir
//only integers please
- radius = round(radius)
- intensity = round(intensity)
- duration = round(duration)
+ radius = floor(radius)
+ intensity = floor(intensity)
+ duration = floor(duration)
if(ex_power > 0)
explode(sourceturf, ex_power, ex_falloff, ex_falloff_shape, dir, angle)
if(intensity > 0)
@@ -630,7 +630,7 @@
if(my_atom) //It exists outside of null space.
for(var/datum/reagent/R in reagent_list) // if you want to do extra stuff when other chems are present, do it here
if(R.id == "iron")
- shards += round(R.volume)
+ shards += floor(R.volume)
else if(R.id == "phoron" && R.volume >= EXPLOSION_PHORON_THRESHOLD)
shard_type = /datum/ammo/bullet/shrapnel/incendiary
diff --git a/code/modules/reagents/chemistry_machinery/acid_harness.dm b/code/modules/reagents/chemistry_machinery/acid_harness.dm
index b349b3224d1a..4fa087efc54f 100644
--- a/code/modules/reagents/chemistry_machinery/acid_harness.dm
+++ b/code/modules/reagents/chemistry_machinery/acid_harness.dm
@@ -162,13 +162,13 @@
switch(action)
if("set_inject_amount")
- var/inject = round(text2num(params["value"]))
+ var/inject = floor(text2num(params["value"]))
if(inject < 1)
inject = 1
acid_core.inject_amount = inject
. = TRUE
if("set_inject_damage_threshold")
- acid_core.inject_damage_threshold = round(text2num(params["value"]))
+ acid_core.inject_damage_threshold = floor(text2num(params["value"]))
. = TRUE
if("inject_logic")
if(acid_core.inject_logic == ACID_LOGIC_OR)
diff --git a/code/modules/reagents/chemistry_machinery/centrifuge.dm b/code/modules/reagents/chemistry_machinery/centrifuge.dm
index 6143313377a0..706f33e38096 100644
--- a/code/modules/reagents/chemistry_machinery/centrifuge.dm
+++ b/code/modules/reagents/chemistry_machinery/centrifuge.dm
@@ -208,7 +208,7 @@
else
A.name = "autoinjector (" + A.reagents.reagent_list[1].name + ")"
var/numberOfUses = A.reagents.total_volume / A.amount_per_transfer_from_this
- A.uses_left = round(numberOfUses) == numberOfUses ? numberOfUses : round(numberOfUses) + 1
+ A.uses_left = floor(numberOfUses) == numberOfUses ? numberOfUses : floor(numberOfUses) + 1
A.update_icon()
else
if(autolabel)
diff --git a/code/modules/reagents/chemistry_machinery/chem_dispenser.dm b/code/modules/reagents/chemistry_machinery/chem_dispenser.dm
index 62b095ababbe..e897d106528e 100644
--- a/code/modules/reagents/chemistry_machinery/chem_dispenser.dm
+++ b/code/modules/reagents/chemistry_machinery/chem_dispenser.dm
@@ -134,8 +134,8 @@
/obj/structure/machinery/chem_dispenser/ui_data(mob/user)
. = list()
.["amount"] = amount
- .["energy"] = round(chem_storage.energy)
- .["maxEnergy"] = round(chem_storage.max_energy)
+ .["energy"] = floor(chem_storage.energy)
+ .["maxEnergy"] = floor(chem_storage.max_energy)
.["isBeakerLoaded"] = beaker ? 1 : 0
var/list/beakerContents = list()
diff --git a/code/modules/reagents/chemistry_machinery/chem_storage.dm b/code/modules/reagents/chemistry_machinery/chem_storage.dm
index 3df417741d82..fa4f2f5c6c5a 100644
--- a/code/modules/reagents/chemistry_machinery/chem_storage.dm
+++ b/code/modules/reagents/chemistry_machinery/chem_storage.dm
@@ -41,7 +41,7 @@
/obj/structure/machinery/chem_storage/get_examine_text(mob/user)
. = ..()
if(in_range(user, src) || istype(user, /mob/dead/observer))
- var/charge = round((energy / max_energy) * 100)
+ var/charge = floor((energy / max_energy) * 100)
. += SPAN_NOTICE("The charge meter reads [charge]%")
/obj/structure/machinery/chem_storage/process()
diff --git a/code/modules/reagents/chemistry_machinery/reagent_grinder.dm b/code/modules/reagents/chemistry_machinery/reagent_grinder.dm
index 3c596b6a79a2..69e6567393b9 100644
--- a/code/modules/reagents/chemistry_machinery/reagent_grinder.dm
+++ b/code/modules/reagents/chemistry_machinery/reagent_grinder.dm
@@ -270,7 +270,7 @@
else if(O.potency == -1)
return 5
else
- return round(O.potency)
+ return floor(O.potency)
/obj/structure/machinery/reagentgrinder/proc/get_juice_amount(obj/item/reagent_container/food/snacks/grown/O)
if(!istype(O))
@@ -278,7 +278,7 @@
else if(O.potency == -1)
return 5
else
- return round(5*sqrt(O.potency))
+ return floor(5*sqrt(O.potency))
/obj/structure/machinery/reagentgrinder/proc/remove_object(obj/item/O)
holdingitems -= O
@@ -348,7 +348,7 @@
O.reagents.remove_reagent("nutriment", min(O.reagents.get_reagent_amount("nutriment"), space))
else
if(O.reagents != null && O.reagents.has_reagent("nutriment"))
- beaker.reagents.add_reagent(r_id, min(round(O.reagents.get_reagent_amount("nutriment")*abs(amount)), space))
+ beaker.reagents.add_reagent(r_id, min(floor(O.reagents.get_reagent_amount("nutriment")*abs(amount)), space))
O.reagents.remove_reagent("nutriment", min(O.reagents.get_reagent_amount("nutriment"), space))
else
diff --git a/code/modules/reagents/chemistry_properties/prop_neutral.dm b/code/modules/reagents/chemistry_properties/prop_neutral.dm
index e1e59b8b886c..67120f4e2627 100644
--- a/code/modules/reagents/chemistry_properties/prop_neutral.dm
+++ b/code/modules/reagents/chemistry_properties/prop_neutral.dm
@@ -25,7 +25,7 @@
value = 1
/datum/chem_property/neutral/thanatometabolizing/pre_process(mob/living/M)
- if(M.stat != DEAD && M.oxyloss < 50 && round(M.blood_volume) > BLOOD_VOLUME_OKAY)
+ if(M.stat != DEAD && M.oxyloss < 50 && floor(M.blood_volume) > BLOOD_VOLUME_OKAY)
return list(REAGENT_CANCEL = TRUE)
var/effectiveness = 1
if(M.stat != DEAD)
diff --git a/code/modules/reagents/chemistry_reactions/other.dm b/code/modules/reagents/chemistry_reactions/other.dm
index 28250aa38803..08402e82ed7f 100644
--- a/code/modules/reagents/chemistry_reactions/other.dm
+++ b/code/modules/reagents/chemistry_reactions/other.dm
@@ -38,7 +38,7 @@
var/location = get_turf(holder.my_atom)
// 100 created volume = 4 heavy range & 7 light range. A few tiles smaller than traitor EMP grandes.
// 200 created volume = 8 heavy range & 14 light range. 4 tiles larger than traitor EMP grenades.
- empulse(location, round(created_volume / 24), round(created_volume / 14), 1)
+ empulse(location, floor(created_volume / 24), floor(created_volume / 14), 1)
holder.clear_reagents()
diff --git a/code/modules/recycling/recycler.dm b/code/modules/recycling/recycler.dm
index abbf010bf4cc..b61854d2e788 100644
--- a/code/modules/recycling/recycler.dm
+++ b/code/modules/recycling/recycler.dm
@@ -90,7 +90,7 @@
/obj/structure/machinery/recycler/proc/output_materials()
for(var/material in stored_matter)
if(stored_matter[material] >= sheets_per_batch * 3750)
- var/sheets = round(stored_matter[material] / 3750)
+ var/sheets = floor(stored_matter[material] / 3750)
stored_matter[material] -= sheets * 3750
var/obj/item/stack/sheet/sheet_stack
switch(material)
diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm
index ec1c8c245f2b..fb43d85e079d 100644
--- a/code/modules/recycling/sortingmachinery.dm
+++ b/code/modules/recycling/sortingmachinery.dm
@@ -245,7 +245,7 @@
P.wrapped = O
O.forceMove(P)
P.w_class = O.w_class
- var/i = round(P.w_class)
+ var/i = floor(P.w_class)
if(i in list(1,2,3,4,5))
P.icon_state = "deliverycrate[i]"
switch(i)
diff --git a/code/modules/shuttle/computers/dropship_computer.dm b/code/modules/shuttle/computers/dropship_computer.dm
index 92196cb07e2e..08a35b83071d 100644
--- a/code/modules/shuttle/computers/dropship_computer.dm
+++ b/code/modules/shuttle/computers/dropship_computer.dm
@@ -84,8 +84,8 @@
recharge_duration = recharge_duration * SHUTTLE_COOLING_FACTOR_RECHARGE
- dropship.callTime = round(flight_duration)
- dropship.rechargeTime = round(recharge_duration)
+ dropship.callTime = floor(flight_duration)
+ dropship.rechargeTime = floor(recharge_duration)
/obj/structure/machinery/computer/shuttle/dropship/flight/tgui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
@@ -101,7 +101,7 @@
if(disabled)
return UI_UPDATE
if(!skip_time_lock && world.time < SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK)
- to_chat(user, SPAN_WARNING("The shuttle is still undergoing pre-flight fueling and cannot depart yet. Please wait another [round((SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK-world.time)/600)] minutes before trying again."))
+ to_chat(user, SPAN_WARNING("The shuttle is still undergoing pre-flight fueling and cannot depart yet. Please wait another [floor((SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK-world.time)/600)] minutes before trying again."))
return UI_CLOSE
if(dropship_control_lost)
var/remaining_time = timeleft(door_control_cooldown) / 10
diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm
index 9ae7b77d6533..5f6ac9207923 100644
--- a/code/modules/shuttle/shuttle.dm
+++ b/code/modules/shuttle/shuttle.dm
@@ -121,8 +121,8 @@
if(EAST)
cos = 0
sin = -1
- var/_x = L[1] + (round(width/2))*cos - (round(height/2))*sin
- var/_y = L[2] + (round(width/2))*sin + (round(height/2))*cos
+ var/_x = L[1] + (floor(width/2))*cos - (floor(height/2))*sin
+ var/_y = L[2] + (floor(width/2))*sin + (floor(height/2))*cos
return locate(_x, _y, z)
//returns turfs within our projected rectangle in a specific order.
diff --git a/code/modules/shuttles/marine_ferry.dm b/code/modules/shuttles/marine_ferry.dm
index 82c5b8e4403d..14787fccb388 100644
--- a/code/modules/shuttles/marine_ferry.dm
+++ b/code/modules/shuttles/marine_ferry.dm
@@ -147,12 +147,12 @@
moving_status = SHUTTLE_WARMUP
if(transit_optimized)
- recharging = round(recharge_time * SHUTTLE_OPTIMIZE_FACTOR_RECHARGE) //Optimized flight plan means less recharge time
+ recharging = floor(recharge_time * SHUTTLE_OPTIMIZE_FACTOR_RECHARGE) //Optimized flight plan means less recharge time
else
recharging = recharge_time //Prevent the shuttle from moving again until it finishes recharging
for(var/obj/structure/dropship_equipment/fuel/cooling_system/CS in equipments)
- recharging = round(recharging * SHUTTLE_COOLING_FACTOR_RECHARGE) //cooling system reduces recharge time
+ recharging = floor(recharging * SHUTTLE_COOLING_FACTOR_RECHARGE) //cooling system reduces recharge time
break
//START: Heavy lifting backend
@@ -194,7 +194,7 @@
for(var/X in equipments)
var/obj/structure/dropship_equipment/E = X
if(istype(E, /obj/structure/dropship_equipment/fuel/fuel_enhancer))
- travel_time = round(travel_time / SHUTTLE_FUEL_ENHANCE_FACTOR_TRAVEL) //fuel enhancer increases travel time
+ travel_time = floor(travel_time / SHUTTLE_FUEL_ENHANCE_FACTOR_TRAVEL) //fuel enhancer increases travel time
break
else
if(transit_optimized)
@@ -205,7 +205,7 @@
for(var/X in equipments)
var/obj/structure/dropship_equipment/E = X
if(istype(E, /obj/structure/dropship_equipment/fuel/fuel_enhancer))
- travel_time = round(travel_time * SHUTTLE_FUEL_ENHANCE_FACTOR_TRAVEL) //fuel enhancer reduces travel time
+ travel_time = floor(travel_time * SHUTTLE_FUEL_ENHANCE_FACTOR_TRAVEL) //fuel enhancer reduces travel time
break
//START: Heavy lifting backend
@@ -324,7 +324,7 @@
if(moving_status != SHUTTLE_IDLE) return
moving_status = SHUTTLE_WARMUP
if(transit_optimized)
- recharging = round(recharge_time * SHUTTLE_OPTIMIZE_FACTOR_RECHARGE) //Optimized flight plan means less recharge time
+ recharging = floor(recharge_time * SHUTTLE_OPTIMIZE_FACTOR_RECHARGE) //Optimized flight plan means less recharge time
else
recharging = recharge_time //Prevent the shuttle from moving again until it finishes recharging
diff --git a/code/modules/shuttles/shuttle.dm b/code/modules/shuttles/shuttle.dm
index a7dbe35a9776..1ded77a0e053 100644
--- a/code/modules/shuttles/shuttle.dm
+++ b/code/modules/shuttles/shuttle.dm
@@ -51,7 +51,7 @@
moving_status = SHUTTLE_WARMUP
if(transit_optimized)
- recharging = round(recharge_time * SHUTTLE_OPTIMIZE_FACTOR_RECHARGE) //Optimized flight plan means less recharge time
+ recharging = floor(recharge_time * SHUTTLE_OPTIMIZE_FACTOR_RECHARGE) //Optimized flight plan means less recharge time
else
recharging = recharge_time //Prevent the shuttle from moving again until it finishes recharging
spawn(warmup_time)
diff --git a/code/modules/shuttles/shuttle_console.dm b/code/modules/shuttles/shuttle_console.dm
index e83666ca2386..0e9303d13583 100644
--- a/code/modules/shuttles/shuttle_console.dm
+++ b/code/modules/shuttles/shuttle_console.dm
@@ -188,8 +188,8 @@ GLOBAL_LIST_EMPTY(shuttle_controls)
"gun_mission_allowed" = shuttle.can_do_gun_mission,
"shuttle_status_message" = shuttle_status_message,
"recharging" = shuttle.recharging,
- "recharging_seconds" = round(shuttle.recharging/10),
- "flight_seconds" = round(shuttle.in_transit_time_left/10),
+ "recharging_seconds" = floor(shuttle.recharging/10),
+ "flight_seconds" = floor(shuttle.in_transit_time_left/10),
"can_return_home" = shuttle.transit_gun_mission && shuttle.moving_status == SHUTTLE_INTRANSIT && shuttle.in_transit_time_left>abort_timer,
"recharge_time" = effective_recharge_time,
"recharge_status" = recharge_status,
@@ -231,7 +231,7 @@ GLOBAL_LIST_EMPTY(shuttle_controls)
return
//Comment to test
if(!skip_time_lock && world.time < SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK && istype(shuttle, /datum/shuttle/ferry/marine))
- to_chat(usr, SPAN_WARNING("The shuttle is still undergoing pre-flight fueling and cannot depart yet. Please wait another [round((SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK-world.time)/600)] minutes before trying again."))
+ to_chat(usr, SPAN_WARNING("The shuttle is still undergoing pre-flight fueling and cannot depart yet. Please wait another [floor((SSticker.mode.round_time_lobby + SHUTTLE_TIME_LOCK-world.time)/600)] minutes before trying again."))
return
if(SSticker.mode.active_lz != src && !onboard && isqueen(usr))
to_chat(usr, SPAN_WARNING("The shuttle isn't responding to prompts, it looks like this isn't the primary shuttle."))
diff --git a/code/modules/tgs/v5/chunking.dm b/code/modules/tgs/v5/chunking.dm
index cd5944d34fb4..688dd8f8daf5 100644
--- a/code/modules/tgs/v5/chunking.dm
+++ b/code/modules/tgs/v5/chunking.dm
@@ -7,7 +7,7 @@
var/chunk_count
var/list/chunk_requests
for(chunk_count = 2; !chunk_requests; ++chunk_count)
- var/max_chunk_size = -round(-(data_length / chunk_count))
+ var/max_chunk_size = -floor(-(data_length / chunk_count))
if(max_chunk_size > limit)
continue
diff --git a/code/modules/tgui/tgui_number_input.dm b/code/modules/tgui/tgui_number_input.dm
index 356448853db3..35aaffa26e09 100644
--- a/code/modules/tgui/tgui_number_input.dm
+++ b/code/modules/tgui/tgui_number_input.dm
@@ -165,7 +165,7 @@
if(choice != choice) //isnan
CRASH("A NaN was input into tgui input number by [usr]")
if(integer_only)
- choice = round(choice)
+ choice = floor(choice)
if(choice > max_value)
CRASH("A number greater than the max value was input into tgui input number by [usr]")
if(choice < min_value)
diff --git a/code/modules/vehicles/hardpoints/hardpoint.dm b/code/modules/vehicles/hardpoints/hardpoint.dm
index a402df12441e..485b03573414 100644
--- a/code/modules/vehicles/hardpoints/hardpoint.dm
+++ b/code/modules/vehicles/hardpoints/hardpoint.dm
@@ -301,7 +301,7 @@
if(health <= 0)
data["health"] = null
else
- data["health"] = round(get_integrity_percent())
+ data["health"] = floor(get_integrity_percent())
if(ammo)
data["uses_ammo"] = TRUE
@@ -500,13 +500,13 @@
health += initial(health)/100 * (amount_fixed / amount_fixed_adjustment)
if(health >= initial(health))
health = initial(health)
- user.visible_message(SPAN_NOTICE("[user] finishes repairing \the [name]."), SPAN_NOTICE("You finish repairing \the [name]. The integrity of the module is at [SPAN_HELPFUL(round(get_integrity_percent()))]%."))
+ user.visible_message(SPAN_NOTICE("[user] finishes repairing \the [name]."), SPAN_NOTICE("You finish repairing \the [name]. The integrity of the module is at [SPAN_HELPFUL(floor(get_integrity_percent()))]%."))
being_repaired = FALSE
return
- to_chat(user, SPAN_NOTICE("The integrity of \the [src] is now at [SPAN_HELPFUL(round(get_integrity_percent()))]%."))
+ to_chat(user, SPAN_NOTICE("The integrity of \the [src] is now at [SPAN_HELPFUL(floor(get_integrity_percent()))]%."))
being_repaired = FALSE
- user.visible_message(SPAN_NOTICE("[user] stops repairing \the [name]."), SPAN_NOTICE("You stop repairing \the [name]. The integrity of the module is at [SPAN_HELPFUL(round(get_integrity_percent()))]%."))
+ user.visible_message(SPAN_NOTICE("[user] stops repairing \the [name]."), SPAN_NOTICE("You stop repairing \the [name]. The integrity of the module is at [SPAN_HELPFUL(floor(get_integrity_percent()))]%."))
return
/// Setter proc for the automatic firing flag.
@@ -724,7 +724,7 @@
/obj/item/hardpoint/proc/get_icon_image(x_offset, y_offset, new_dir)
var/is_broken = health <= 0
var/image/I = image(icon = disp_icon, icon_state = "[disp_icon_state]_[is_broken ? "1" : "0"]", pixel_x = x_offset, pixel_y = y_offset, dir = new_dir)
- switch(round((health / initial(health)) * 100))
+ switch(floor((health / initial(health)) * 100))
if(0)
I.color = "#888888"
if(1 to 20)
diff --git a/code/modules/vehicles/hardpoints/holder/tank_turret.dm b/code/modules/vehicles/hardpoints/holder/tank_turret.dm
index 896628e609bb..403c5871f36b 100644
--- a/code/modules/vehicles/hardpoints/holder/tank_turret.dm
+++ b/code/modules/vehicles/hardpoints/holder/tank_turret.dm
@@ -119,7 +119,7 @@
data += list(list( // turret smokescreen data
"name" = "M34A2-A Turret Smoke Screen",
- "health" = health <= 0 ? null : round(get_integrity_percent()),
+ "health" = health <= 0 ? null : floor(get_integrity_percent()),
"uses_ammo" = TRUE,
"current_rounds" = ammo.current_rounds / 2,
"max_rounds"= ammo.max_rounds / 2,
diff --git a/code/modules/vehicles/hardpoints/support/antenna.dm b/code/modules/vehicles/hardpoints/support/antenna.dm
index 11fd50a9506e..b4980b7e3a3d 100644
--- a/code/modules/vehicles/hardpoints/support/antenna.dm
+++ b/code/modules/vehicles/hardpoints/support/antenna.dm
@@ -58,7 +58,7 @@
antenna_extended = arc_owner.antenna_deployed
var/image/antenna_img = image(icon = disp_icon, icon_state = "[disp_icon_state]_[antenna_extended ? "extended" : "cover"]_[is_broken ? "1" : "0"]", pixel_x = x_offset, pixel_y = y_offset, dir = new_dir)
- switch(round((health / initial(health)) * 100))
+ switch(floor((health / initial(health)) * 100))
if(0)
antenna_img.color = "#888888"
if(1 to 20)
diff --git a/code/modules/vehicles/hardpoints/wheels/locomotion.dm b/code/modules/vehicles/hardpoints/wheels/locomotion.dm
index dd4173c54fa8..c05ada322a8d 100644
--- a/code/modules/vehicles/hardpoints/wheels/locomotion.dm
+++ b/code/modules/vehicles/hardpoints/wheels/locomotion.dm
@@ -46,7 +46,7 @@
//of vehicle enter the spray spawn area, it deals a huge amount of damage. But simply nerfing damage will also nerf it for
//acid spraying castes like spitters and praetorians, which is not ideal.
if(acid.cause_data.cause_name == "resin acid trap")
- take_damage = round(take_damage / 3)
+ take_damage = floor(take_damage / 3)
else if(istype(A, /obj/effect/blocker/toxic_water))
//multitile vehicles are, well, multitile and will be receiving damage for each tile, so damage is low per tile.
diff --git a/code/modules/vehicles/interior/interactable/vendors.dm b/code/modules/vehicles/interior/interactable/vendors.dm
index c37eb6a5d9ef..e8b03402f5d3 100644
--- a/code/modules/vehicles/interior/interactable/vendors.dm
+++ b/code/modules/vehicles/interior/interactable/vendors.dm
@@ -68,28 +68,28 @@
/obj/structure/machinery/cm_vending/sorted/medical/vehicle/populate_product_list(scale)
listed_products = list(
list("FIELD SUPPLIES", -1, null, null),
- list("Burn Kit", round(scale * 4), /obj/item/stack/medical/advanced/ointment, VENDOR_ITEM_REGULAR),
- list("Trauma Kit", round(scale * 4), /obj/item/stack/medical/advanced/bruise_pack, VENDOR_ITEM_REGULAR),
- list("Ointment", round(scale * 5), /obj/item/stack/medical/ointment, VENDOR_ITEM_REGULAR),
- list("Roll of Gauze", round(scale * 5), /obj/item/stack/medical/bruise_pack, VENDOR_ITEM_REGULAR),
- list("Splints", round(scale * 5), /obj/item/stack/medical/splint, VENDOR_ITEM_REGULAR),
+ list("Burn Kit", floor(scale * 4), /obj/item/stack/medical/advanced/ointment, VENDOR_ITEM_REGULAR),
+ list("Trauma Kit", floor(scale * 4), /obj/item/stack/medical/advanced/bruise_pack, VENDOR_ITEM_REGULAR),
+ list("Ointment", floor(scale * 5), /obj/item/stack/medical/ointment, VENDOR_ITEM_REGULAR),
+ list("Roll of Gauze", floor(scale * 5), /obj/item/stack/medical/bruise_pack, VENDOR_ITEM_REGULAR),
+ list("Splints", floor(scale * 5), /obj/item/stack/medical/splint, VENDOR_ITEM_REGULAR),
list("AUTOINJECTORS", -1, null, null),
- list("Autoinjector (Bicaridine)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/bicaridine, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Dexalin+)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/dexalinp, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Epinephrine)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/adrenaline, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Inaprovaline)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/inaprovaline, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Kelotane)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/kelotane, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Oxycodone)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/oxycodone, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Tramadol)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tramadol, VENDOR_ITEM_REGULAR),
- list("Autoinjector (Tricord)", round(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tricord, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Bicaridine)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/bicaridine, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Dexalin+)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/dexalinp, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Epinephrine)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/adrenaline, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Inaprovaline)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/inaprovaline, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Kelotane)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/kelotane, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Oxycodone)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/oxycodone, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Tramadol)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tramadol, VENDOR_ITEM_REGULAR),
+ list("Autoinjector (Tricord)", floor(scale * 3), /obj/item/reagent_container/hypospray/autoinjector/tricord, VENDOR_ITEM_REGULAR),
list("MEDICAL UTILITIES", -1, null, null),
- list("Surgical Line", round(scale * 2), /obj/item/tool/surgery/surgical_line, VENDOR_ITEM_REGULAR),
- list("Synth-Graft", round(scale * 2), /obj/item/tool/surgery/synthgraft, VENDOR_ITEM_REGULAR),
- list("Health Analyzer", round(scale * 4), /obj/item/device/healthanalyzer, VENDOR_ITEM_REGULAR),
- list("Stasis Bag", round(scale * 6), /obj/item/bodybag/cryobag, VENDOR_ITEM_REGULAR),
- list("Syringe", round(scale * 3), /obj/item/reagent_container/syringe, VENDOR_ITEM_REGULAR)
+ list("Surgical Line", floor(scale * 2), /obj/item/tool/surgery/surgical_line, VENDOR_ITEM_REGULAR),
+ list("Synth-Graft", floor(scale * 2), /obj/item/tool/surgery/synthgraft, VENDOR_ITEM_REGULAR),
+ list("Health Analyzer", floor(scale * 4), /obj/item/device/healthanalyzer, VENDOR_ITEM_REGULAR),
+ list("Stasis Bag", floor(scale * 6), /obj/item/bodybag/cryobag, VENDOR_ITEM_REGULAR),
+ list("Syringe", floor(scale * 3), /obj/item/reagent_container/syringe, VENDOR_ITEM_REGULAR)
)
//MED APC version of Blood Dispenser
@@ -180,15 +180,15 @@
/obj/structure/machinery/cm_vending/sorted/vehicle_supply/populate_product_list(scale)
listed_products = list(
list("PRIMARY FIREARMS", -1, null, null),
- list("M37A2 Pump Shotgun", round(scale * 3), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
- list("M39 Submachinegun", round(scale * 2.5), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
- list("M41A Pulse Rifle MK2", round(scale * 4), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_REGULAR),
- list("M4RA Battle Rifle", round(scale * 2), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M37A2 Pump Shotgun", floor(scale * 3), /obj/item/weapon/gun/shotgun/pump, VENDOR_ITEM_REGULAR),
+ list("M39 Submachinegun", floor(scale * 2.5), /obj/item/weapon/gun/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M41A Pulse Rifle MK2", floor(scale * 4), /obj/item/weapon/gun/rifle/m41a, VENDOR_ITEM_REGULAR),
+ list("M4RA Battle Rifle", floor(scale * 2), /obj/item/weapon/gun/rifle/m4ra, VENDOR_ITEM_REGULAR),
list("SIDEARMS", -1, null, null),
- list("88 Mod 4 Combat Pistol", round(scale * 2), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
- list("M44 Combat Revolver", round(scale * 1.5), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
- list("M4A3 Service Pistol", round(scale * 2.5), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
+ list("88 Mod 4 Combat Pistol", floor(scale * 2), /obj/item/weapon/gun/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("M44 Combat Revolver", floor(scale * 1.5), /obj/item/weapon/gun/revolver/m44, VENDOR_ITEM_REGULAR),
+ list("M4A3 Service Pistol", floor(scale * 2.5), /obj/item/weapon/gun/pistol/m4a3, VENDOR_ITEM_REGULAR),
list("EXPLOSIVES", -1, null, null),
list("M15 Fragmentation Grenade", 0, /obj/item/explosive/grenade/high_explosive/m15, VENDOR_ITEM_REGULAR),
@@ -196,29 +196,29 @@
list("M40 HEDP Grenade", 0, /obj/item/explosive/grenade/high_explosive, VENDOR_ITEM_REGULAR),
list("M40 HIDP Incendiary Grenade", 0, /obj/item/explosive/grenade/incendiary, VENDOR_ITEM_REGULAR),
list("M40 HPDP White Phosphorus Smoke Grenade", 0, /obj/item/explosive/grenade/phosphorus, VENDOR_ITEM_REGULAR),
- list("M40 HSDP Smoke Grenade", round(scale * 1), /obj/item/explosive/grenade/smokebomb, VENDOR_ITEM_REGULAR),
+ list("M40 HSDP Smoke Grenade", floor(scale * 1), /obj/item/explosive/grenade/smokebomb, VENDOR_ITEM_REGULAR),
list("M74 AGM-Frag Airburst Grenade", 0, /obj/item/explosive/grenade/high_explosive/airburst, VENDOR_ITEM_REGULAR),
list("M74 AGM-Incendiary Airburst Grenade", 0, /obj/item/explosive/grenade/incendiary/airburst, VENDOR_ITEM_REGULAR),
list("M74 AGM-Smoke Airburst Grenade", 0, /obj/item/explosive/grenade/smokebomb/airburst, VENDOR_ITEM_REGULAR),
list("M74 AGM-Star Shell", 2, /obj/item/explosive/grenade/high_explosive/airburst/starshell, VENDOR_ITEM_REGULAR),
list("M74 AGM-Hornet Shell", 0, /obj/item/explosive/grenade/high_explosive/airburst/hornet_shell, VENDOR_ITEM_REGULAR),
- list("M40 HIRR Baton Slug", round(scale * 2), /obj/item/explosive/grenade/slug/baton, VENDOR_ITEM_REGULAR),
+ list("M40 HIRR Baton Slug", floor(scale * 2), /obj/item/explosive/grenade/slug/baton, VENDOR_ITEM_REGULAR),
list("M40 MFHS Metal Foam Grenade", 0, /obj/item/explosive/grenade/metal_foam, VENDOR_ITEM_REGULAR),
list("Breaching Charge", 0, /obj/item/explosive/plastic/breaching_charge, VENDOR_ITEM_REGULAR),
list("Plastic Explosives", 2, /obj/item/explosive/plastic, VENDOR_ITEM_REGULAR),
list("REGULAR AMMUNITION", -1, null, null),
- list("Box Of Buckshot Shells", round(scale * 3), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
- list("Box Of Flechette Shells", round(scale * 2), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
- list("Box Of Shotgun Slugs", round(scale * 4), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
- list("M4RA Magazine (10x24mm)", round(scale * 5), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
- list("M41A MK2 Magazine (10x24mm)", round(scale * 10), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
- list("M39 HV Magazine (10x20mm)", round(scale * 6), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
- list("M44 Speed Loader (.44)", round(scale * 4), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
- list("M4A3 Magazine (9mm)", round(scale * 10), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
+ list("Box Of Buckshot Shells", floor(scale * 3), /obj/item/ammo_magazine/shotgun/buckshot, VENDOR_ITEM_REGULAR),
+ list("Box Of Flechette Shells", floor(scale * 2), /obj/item/ammo_magazine/shotgun/flechette, VENDOR_ITEM_REGULAR),
+ list("Box Of Shotgun Slugs", floor(scale * 4), /obj/item/ammo_magazine/shotgun/slugs, VENDOR_ITEM_REGULAR),
+ list("M4RA Magazine (10x24mm)", floor(scale * 5), /obj/item/ammo_magazine/rifle/m4ra, VENDOR_ITEM_REGULAR),
+ list("M41A MK2 Magazine (10x24mm)", floor(scale * 10), /obj/item/ammo_magazine/rifle, VENDOR_ITEM_REGULAR),
+ list("M39 HV Magazine (10x20mm)", floor(scale * 6), /obj/item/ammo_magazine/smg/m39, VENDOR_ITEM_REGULAR),
+ list("M44 Speed Loader (.44)", floor(scale * 4), /obj/item/ammo_magazine/revolver, VENDOR_ITEM_REGULAR),
+ list("M4A3 Magazine (9mm)", floor(scale * 10), /obj/item/ammo_magazine/pistol, VENDOR_ITEM_REGULAR),
list("ARMOR-PIERCING AMMUNITION", -1, null, null),
- list("88 Mod 4 AP Magazine (9mm)", round(scale * 8), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
+ list("88 Mod 4 AP Magazine (9mm)", floor(scale * 8), /obj/item/ammo_magazine/pistol/mod88, VENDOR_ITEM_REGULAR),
list("M4RA AP Magazine (10x24mm)", 0, /obj/item/ammo_magazine/rifle/m4ra/ap, VENDOR_ITEM_REGULAR),
list("M39 AP Magazine (10x20mm)", 0, /obj/item/ammo_magazine/smg/m39/ap, VENDOR_ITEM_REGULAR),
list("M41A MK2 AP Magazine (10x24mm)", 0, /obj/item/ammo_magazine/rifle/ap, VENDOR_ITEM_REGULAR),
@@ -254,8 +254,8 @@
list("M56 Battery", 0, /obj/item/smartgun_battery, VENDOR_ITEM_REGULAR),
list("M56 Smartgun Drum", 0, /obj/item/ammo_magazine/smartgun, VENDOR_ITEM_REGULAR),
list("M56D Drum Magazine",0, /obj/item/ammo_magazine/m56d, VENDOR_ITEM_REGULAR),
- list("SU-6 Smartpistol Magazine (.45)", round(scale * 2), /obj/item/ammo_magazine/pistol/smart, VENDOR_ITEM_REGULAR),
- list("VP78 Magazine", round(scale * 1.5), /obj/item/ammo_magazine/pistol/vp78, VENDOR_ITEM_REGULAR),
+ list("SU-6 Smartpistol Magazine (.45)", floor(scale * 2), /obj/item/ammo_magazine/pistol/smart, VENDOR_ITEM_REGULAR),
+ list("VP78 Magazine", floor(scale * 1.5), /obj/item/ammo_magazine/pistol/vp78, VENDOR_ITEM_REGULAR),
list("BUILDING MATERIALS", -1, null, null),
list("Cardboard x10", 1, /obj/item/stack/sheet/cardboard/small_stack, VENDOR_ITEM_REGULAR),
@@ -275,23 +275,23 @@
list("SMG Ammunition Box (10x20mm AP)", 0, /obj/item/ammo_box/rounds/smg/ap, VENDOR_ITEM_REGULAR),
list("MISCELLANEOUS", -1, null, null),
- list("Box Of MREs", round(scale * 1.5), /obj/item/ammo_box/magazine/misc/mre, VENDOR_ITEM_REGULAR),
- list("Box Of M94 Marking Flare Packs", round(scale * 2), /obj/item/ammo_box/magazine/misc/flares, VENDOR_ITEM_REGULAR),
- list("Entrenching Tool", round(scale * 2), /obj/item/tool/shovel/etool, VENDOR_ITEM_REGULAR),
- list("M5 Bayonet", round(scale * 5), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
+ list("Box Of MREs", floor(scale * 1.5), /obj/item/ammo_box/magazine/misc/mre, VENDOR_ITEM_REGULAR),
+ list("Box Of M94 Marking Flare Packs", floor(scale * 2), /obj/item/ammo_box/magazine/misc/flares, VENDOR_ITEM_REGULAR),
+ list("Entrenching Tool", floor(scale * 2), /obj/item/tool/shovel/etool, VENDOR_ITEM_REGULAR),
+ list("M5 Bayonet", floor(scale * 5), /obj/item/attachable/bayonet, VENDOR_ITEM_REGULAR),
list("M89-S Signal Flare Pack", 0, /obj/item/storage/box/m94/signal, VENDOR_ITEM_REGULAR),
- list("M94 Marking Flare Pack", round(scale * 1), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR),
- list("Machete Scabbard (Full)", round(scale * 1), /obj/item/storage/large_holster/machete/full, VENDOR_ITEM_REGULAR),
+ list("M94 Marking Flare Pack", floor(scale * 1), /obj/item/storage/box/m94, VENDOR_ITEM_REGULAR),
+ list("Machete Scabbard (Full)", floor(scale * 1), /obj/item/storage/large_holster/machete/full, VENDOR_ITEM_REGULAR),
list("MB-6 Folding Barricades (x3)", 0, /obj/item/stack/folding_barricade/three, VENDOR_ITEM_REGULAR),
list("Motion Detector", 0, /obj/item/device/motiondetector, VENDOR_ITEM_REGULAR),
list("Roller Bed", 2, /obj/item/roller, VENDOR_ITEM_REGULAR),
list("ARMOR AND CLOTHING", -1, null, null),
list("Heat Absorbent Coif", 10, /obj/item/clothing/mask/rebreather/scarf, VENDOR_ITEM_REGULAR),
- list("M10 Pattern Marine Helmet", round(scale * 3), /obj/item/clothing/head/helmet/marine, VENDOR_ITEM_REGULAR),
- list("M3 Pattern Marine Armor", round(scale * 1), /obj/item/clothing/suit/storage/marine, VENDOR_ITEM_REGULAR),
- list("M3-EOD Pattern Heavy Armor", round(scale * 1), /obj/item/clothing/suit/storage/marine/heavy, VENDOR_ITEM_REGULAR),
- list("M3-L Pattern Light Armor", round(scale * 1), /obj/item/clothing/suit/storage/marine/light, VENDOR_ITEM_REGULAR),
+ list("M10 Pattern Marine Helmet", floor(scale * 3), /obj/item/clothing/head/helmet/marine, VENDOR_ITEM_REGULAR),
+ list("M3 Pattern Marine Armor", floor(scale * 1), /obj/item/clothing/suit/storage/marine, VENDOR_ITEM_REGULAR),
+ list("M3-EOD Pattern Heavy Armor", floor(scale * 1), /obj/item/clothing/suit/storage/marine/heavy, VENDOR_ITEM_REGULAR),
+ list("M3-L Pattern Light Armor", floor(scale * 1), /obj/item/clothing/suit/storage/marine/light, VENDOR_ITEM_REGULAR),
)
//combined from req guns and ammo vendors
diff --git a/code/modules/vehicles/multitile/multitile.dm b/code/modules/vehicles/multitile/multitile.dm
index 18dade67b834..ce118fd14c56 100644
--- a/code/modules/vehicles/multitile/multitile.dm
+++ b/code/modules/vehicles/multitile/multitile.dm
@@ -293,14 +293,14 @@
// Health check is done before the hardpoint takes damage
// This way, the frame won't take damage at the same time hardpoints break
if(H.can_take_damage())
- H.take_damage(round(damage * get_dmg_multi(type)))
+ H.take_damage(floor(damage * get_dmg_multi(type)))
all_broken = FALSE
// If all hardpoints are broken, the vehicle frame begins taking full damage
if(all_broken)
health = max(0, health - damage * get_dmg_multi(type))
else //otherwise, 1/10th of damage lands on the hull
- health = max(0, health - round(damage * get_dmg_multi(type) / 10))
+ health = max(0, health - floor(damage * get_dmg_multi(type) / 10))
if(ismob(attacker))
var/mob/M = attacker
diff --git a/code/modules/vehicles/multitile/multitile_bump.dm b/code/modules/vehicles/multitile/multitile_bump.dm
index 2682c18a4282..11005cc87ea2 100644
--- a/code/modules/vehicles/multitile/multitile_bump.dm
+++ b/code/modules/vehicles/multitile/multitile_bump.dm
@@ -384,7 +384,7 @@
var/obj/item/device/m2c_gun/HMG = new(loc)
HMG.name = name
HMG.rounds = rounds
- HMG.overheat_value = round(0.5 * overheat_value)
+ HMG.overheat_value = floor(0.5 * overheat_value)
if(HMG.overheat_value <= 10)
HMG.overheat_value = 0
HMG.update_icon()
@@ -726,7 +726,7 @@
//this adds more flexibility for trample damage
damage_percentage *= VEHICLE_TRAMPLE_DAMAGE_APC_REDUCTION
- damage_percentage -= round((armor_deflection*(armor_integrity/100)) / VEHICLE_TRAMPLE_DAMAGE_REDUCTION_ARMOR_MULT) // Ravager reduces percentage by ~50% by virtue of having very high armor.
+ damage_percentage -= floor((armor_deflection*(armor_integrity/100)) / VEHICLE_TRAMPLE_DAMAGE_REDUCTION_ARMOR_MULT) // Ravager reduces percentage by ~50% by virtue of having very high armor.
if(locate(/obj/item/hardpoint/support/overdrive_enhancer) in V)
damage_percentage += VEHICLE_TRAMPLE_DAMAGE_OVERDRIVE_BUFF
@@ -734,7 +734,7 @@
damage_percentage = max(VEHICLE_TRAMPLE_DAMAGE_OVERDRIVE_BUFF, max(0, damage_percentage))
damage_percentage = max(damage_percentage, VEHICLE_TRAMPLE_DAMAGE_MIN)
- apply_damage(round((maxHealth / 100) * damage_percentage), BRUTE)
+ apply_damage(floor((maxHealth / 100) * damage_percentage), BRUTE)
last_damage_data = create_cause_data("[initial(V.name)] roadkill", V.seats[VEHICLE_DRIVER])
var/mob/living/driver = V.get_seat_mob(VEHICLE_DRIVER)
log_attack("[key_name(src)] was rammed by [key_name(driver)] with [V].")
diff --git a/code/modules/vehicles/multitile/multitile_interaction.dm b/code/modules/vehicles/multitile/multitile_interaction.dm
index 552d9cea4561..84b1d4de0efc 100644
--- a/code/modules/vehicles/multitile/multitile_interaction.dm
+++ b/code/modules/vehicles/multitile/multitile_interaction.dm
@@ -297,7 +297,7 @@
if(ammo_flags & AMMO_ANTISTRUCT|AMMO_ANTIVEHICLE)
// Multiplier based on tank railgun relationship, so might have to reconsider multiplier for AMMO_SIEGE in general
- damage = round(damage*ANTISTRUCT_DMG_MULT_TANK)
+ damage = floor(damage*ANTISTRUCT_DMG_MULT_TANK)
if(ammo_flags & AMMO_ACIDIC)
dam_type = "acid"
diff --git a/code/modules/vehicles/multitile/multitile_verbs.dm b/code/modules/vehicles/multitile/multitile_verbs.dm
index 3801cd2e176c..52d8602c9852 100644
--- a/code/modules/vehicles/multitile/multitile_verbs.dm
+++ b/code/modules/vehicles/multitile/multitile_verbs.dm
@@ -167,7 +167,7 @@
))
data["resistance_data"] = resist_data_list
- data["integrity"] = round(100 * health / initial(health))
+ data["integrity"] = floor(100 * health / initial(health))
data["door_locked"] = door_locked
data["total_passenger_slots"] = interior.passengers_slots
data["total_taken_slots"] = interior.passengers_taken_slots