mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
kills off last_bumped, jank reduction (#21696)
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
|
||||
var/list/blood_DNA
|
||||
var/blood_color
|
||||
var/last_bumped = 0
|
||||
var/pass_flags = 0
|
||||
var/germ_level = GERM_LEVEL_AMBIENT // The higher the germ level, the more germ on the atom.
|
||||
var/simulated = TRUE //filter for actions - used by lighting overlays
|
||||
|
||||
@@ -105,9 +105,6 @@
|
||||
return
|
||||
if(isliving(AM))
|
||||
var/mob/living/M = AM
|
||||
if(world.time - M.last_bumped <= 10)
|
||||
return //Can bump-open one airlock per second. This is to prevent shock spam.
|
||||
M.last_bumped = world.time
|
||||
if(M.restrained() && !check_access(null))
|
||||
return
|
||||
if(M.mob_size > MOB_SIZE_TINY)
|
||||
@@ -117,9 +114,6 @@
|
||||
if(ismecha(AM))
|
||||
var/obj/mecha/mecha = AM
|
||||
if(density)
|
||||
if(mecha.occupant)
|
||||
if(world.time - mecha.occupant.last_bumped <= 10)
|
||||
return
|
||||
if(mecha.occupant && allowed(mecha.occupant) || check_access_list(mecha.operation_req_access))
|
||||
if(HAS_TRAIT(src, TRAIT_CMAGGED))
|
||||
cmag_switch(FALSE, mecha.occupant)
|
||||
|
||||
@@ -160,8 +160,6 @@
|
||||
return
|
||||
var/mob/living/carbon/C = user
|
||||
if(C.get_int_organ(/obj/item/organ/internal/alien/hivenode))
|
||||
if(world.time - C.last_bumped <= 60)
|
||||
return
|
||||
if(!C.handcuffed)
|
||||
operate()
|
||||
return
|
||||
|
||||
@@ -128,8 +128,6 @@
|
||||
return
|
||||
if(ismob(user))
|
||||
var/mob/M = user
|
||||
if(world.time - user.last_bumped <= 60)
|
||||
return //NOTE do we really need that?
|
||||
if(M.client)
|
||||
if(iscarbon(M))
|
||||
var/mob/living/carbon/C = M
|
||||
|
||||
Reference in New Issue
Block a user