mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Apply suggestions from code review
Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -402,9 +402,8 @@
|
||||
var/atom/Uloc = user.loc
|
||||
|
||||
var/drifting = FALSE
|
||||
if(!allow_moving)
|
||||
if(!user.Process_Spacemove(0) && user.inertia_dir)
|
||||
drifting = TRUE
|
||||
if(!allow_moving && !user.Process_Spacemove(0) && user.inertia_dir)
|
||||
drifting = TRUE
|
||||
|
||||
var/holding = user.get_active_hand()
|
||||
|
||||
@@ -434,7 +433,7 @@
|
||||
if(drifting && !user.inertia_dir)
|
||||
drifting = FALSE
|
||||
Uloc = user.loc
|
||||
if((!drifting && user.loc != Uloc))
|
||||
if(!drifting && user.loc != Uloc)
|
||||
. = FALSE
|
||||
break
|
||||
|
||||
@@ -446,10 +445,9 @@
|
||||
. = FALSE
|
||||
break
|
||||
|
||||
if(must_be_held)
|
||||
if(target.loc != user)
|
||||
. = FALSE
|
||||
break
|
||||
if(must_be_held && target.loc != user)
|
||||
. = FALSE
|
||||
break
|
||||
|
||||
if(needhand)
|
||||
//This might seem like an odd check, but you can still need a hand even when it's empty
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
var/multi_sprite_step = AMMO_MULTI_SPRITE_STEP_NONE // see update_icon_state() for details
|
||||
var/caliber
|
||||
var/multiload = 1
|
||||
var/slow_loading = 0
|
||||
var/slow_loading = FALSE
|
||||
var/list/initial_mats //For calculating refund values.
|
||||
|
||||
/obj/item/ammo_box/Initialize(mapload)
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
max_ammo = 20
|
||||
multi_sprite_step = 4
|
||||
multiload = 0
|
||||
slow_loading = 1
|
||||
slow_loading = TRUE
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
///A var to check if the mag is being loaded
|
||||
var/being_loaded = FALSE
|
||||
|
||||
Reference in New Issue
Block a user