bug fixes

This commit is contained in:
shellspeed1
2019-09-27 17:13:35 -07:00
parent eaa93d82d2
commit 50fda51057
3 changed files with 6 additions and 10 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ Class Procs:
density = TRUE
if(!target)
for(var/am in loc)
if (!(can_be_occupant(am)))
if (!(can_be_occupant(am)))
continue
var/atom/movable/AM = am
if(AM.has_buckled_mobs())
+2 -6
View File
@@ -10,8 +10,6 @@
circuit = /obj/item/circuitboard/machine/stasis
idle_power_usage = 40
active_power_usage = 340
fair_market_price = 10
payment_department = ACCOUNT_MED
var/stasis_enabled = TRUE
var/last_stasis_sound = FALSE
var/stasis_can_toggle = 0
@@ -108,7 +106,7 @@
if(!can_be_occupant(L))
return
occupant = L
if(stasis_running() && check_nap_violations())
if(stasis_running())
chill_out(L)
update_icon()
@@ -119,7 +117,7 @@
update_icon()
/obj/machinery/stasis/process()
if( !( occupant && isliving(occupant) && check_nap_violations() ) )
if( !( occupant && isliving(occupant)) )
use_power = IDLE_POWER_USE
return
var/mob/living/L_occupant = occupant
@@ -136,6 +134,4 @@
/obj/machinery/stasis/crowbar_act(mob/living/user, obj/item/I)
return default_deconstruction_crowbar(I)
/obj/machinery/stasis/nap_violation(mob/violator)
unbuckle_mob(violator, TRUE)
#undef STASIS_TOGGLE_COOLDOWN