mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-27 18:42:44 +00:00
Minor refactor to reduce calls to handle_actions().
This commit is contained in:
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
//Status updates, death etc.
|
//Status updates, death etc.
|
||||||
handle_regular_status_updates()
|
handle_regular_status_updates()
|
||||||
handle_actions()
|
|
||||||
update_canmove()
|
update_canmove()
|
||||||
update_icons()
|
update_icons()
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
//Status updates, death etc.
|
//Status updates, death etc.
|
||||||
handle_regular_status_updates()
|
handle_regular_status_updates()
|
||||||
update_canmove()
|
update_canmove()
|
||||||
handle_actions()
|
|
||||||
|
|
||||||
if(client)
|
if(client)
|
||||||
handle_regular_hud_updates()
|
handle_regular_hud_updates()
|
||||||
|
|||||||
@@ -117,7 +117,6 @@
|
|||||||
|
|
||||||
//Status updates, death etc.
|
//Status updates, death etc.
|
||||||
handle_regular_status_updates() //Optimized a bit
|
handle_regular_status_updates() //Optimized a bit
|
||||||
handle_actions()
|
|
||||||
update_canmove()
|
update_canmove()
|
||||||
|
|
||||||
//Update our name based on whether our face is obscured/disfigured
|
//Update our name based on whether our face is obscured/disfigured
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
handle_environment(environment) // Handle temperature/pressure differences between body and environment
|
handle_environment(environment) // Handle temperature/pressure differences between body and environment
|
||||||
|
|
||||||
handle_regular_status_updates() // Status updates, death etc.
|
handle_regular_status_updates() // Status updates, death etc.
|
||||||
handle_actions()
|
|
||||||
|
|
||||||
/mob/living/carbon/slime/proc/handle_environment(datum/gas_mixture/environment)
|
/mob/living/carbon/slime/proc/handle_environment(datum/gas_mixture/environment)
|
||||||
if(!environment)
|
if(!environment)
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/mob/living/Life()
|
||||||
|
..()
|
||||||
|
if(stat != DEAD)
|
||||||
|
handle_actions()
|
||||||
|
|
||||||
//mob verbs are faster than object verbs. See mob/verb/examine.
|
//mob verbs are faster than object verbs. See mob/verb/examine.
|
||||||
/mob/living/verb/pulled(atom/movable/AM as mob|obj in oview(1))
|
/mob/living/verb/pulled(atom/movable/AM as mob|obj in oview(1))
|
||||||
set name = "Pull"
|
set name = "Pull"
|
||||||
@@ -609,7 +614,7 @@ default behaviour is:
|
|||||||
|
|
||||||
/mob/living/proc/escape_inventory(obj/item/weapon/holder/H)
|
/mob/living/proc/escape_inventory(obj/item/weapon/holder/H)
|
||||||
if(H != src.loc) return
|
if(H != src.loc) return
|
||||||
|
|
||||||
var/mob/M = H.loc //Get our mob holder (if any).
|
var/mob/M = H.loc //Get our mob holder (if any).
|
||||||
|
|
||||||
if(istype(M))
|
if(istype(M))
|
||||||
@@ -794,5 +799,5 @@ default behaviour is:
|
|||||||
inertia_dir = 2
|
inertia_dir = 2
|
||||||
src << "<span class='warning>Something you are carrying is preventing you from leaving.</span>"
|
src << "<span class='warning>Something you are carrying is preventing you from leaving.</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
..()
|
..()
|
||||||
|
|||||||
Reference in New Issue
Block a user