mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
VS: Refactor move code
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
touching.clear_reagents()
|
||||
..()
|
||||
|
||||
/* VOREStation Edit - Duplicated in our code
|
||||
/mob/living/carbon/Moved(atom/old_loc, direction, forced = FALSE)
|
||||
. = ..()
|
||||
if(src.nutrition && src.stat != 2)
|
||||
@@ -45,7 +46,7 @@
|
||||
// Moving around increases germ_level faster
|
||||
if(germ_level < GERM_LEVEL_MOVE_CAP && prob(8))
|
||||
germ_level++
|
||||
/* VOREStation Removal - Needless duplicate feature
|
||||
|
||||
/mob/living/carbon/relaymove(var/mob/living/user, direction)
|
||||
if((user in src.stomach_contents) && istype(user))
|
||||
if(user.last_special <= world.time)
|
||||
|
||||
@@ -58,9 +58,8 @@
|
||||
nif.life()
|
||||
|
||||
//Overriding carbon move proc that forces default hunger factor
|
||||
/mob/living/carbon/Move(NewLoc, direct)
|
||||
/mob/living/carbon/Moved(atom/old_loc, direction, forced = FALSE)
|
||||
. = ..()
|
||||
if(.)
|
||||
if(src.nutrition && src.stat != 2)
|
||||
if(ishuman(src))
|
||||
var/mob/living/carbon/human/M = src
|
||||
|
||||
@@ -109,14 +109,11 @@
|
||||
icon_state = "[module_sprites[icontype]]-wreck"
|
||||
add_overlay("wreck-overlay")
|
||||
|
||||
/mob/living/silicon/robot/Move(a, b, flag)
|
||||
/mob/living/silicon/robot/Moved(atom/old_loc, direction, forced = FALSE)
|
||||
. = ..()
|
||||
if(scrubbing)
|
||||
var/datum/matter_synth/water = water_res
|
||||
if(water && water.energy >= 1)
|
||||
if(scrubbing && isturf(loc) && water_res?.energy >= 1)
|
||||
var/turf/tile = loc
|
||||
if(isturf(tile))
|
||||
water.use_charge(1)
|
||||
water_res.use_charge(1)
|
||||
tile.clean_blood()
|
||||
if(istype(tile, /turf/simulated))
|
||||
var/turf/simulated/T = tile
|
||||
@@ -141,7 +138,6 @@
|
||||
cleaned_human.update_inv_shoes(0)
|
||||
cleaned_human.clean_blood(1)
|
||||
to_chat(cleaned_human, "<span class='warning'>[src] cleans your face!</span>")
|
||||
return
|
||||
|
||||
/mob/living/silicon/robot/proc/vr_sprite_check()
|
||||
if(wideborg == TRUE)
|
||||
|
||||
@@ -48,7 +48,7 @@ GLOBAL_LIST_EMPTY(gravity_generators)
|
||||
return "off"
|
||||
|
||||
// You aren't allowed to move.
|
||||
/obj/machinery/gravity_generator/Move()
|
||||
/obj/machinery/gravity_generator/Moved(atom/old_loc, direction, forced = FALSE)
|
||||
. = ..()
|
||||
qdel(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user