mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Moves some list initializations to New
Fixes missing ..() calls in New()
This commit is contained in:
@@ -121,7 +121,7 @@ Sorry Giacom. Please don't be mad :(
|
||||
if(moving_diagonally)//no mob swap during diagonal moves.
|
||||
return 1
|
||||
|
||||
if(!M.buckled && !M.buckled_mobs.len)
|
||||
if(!M.buckled && !M.has_buckled_mobs())
|
||||
var/mob_swap
|
||||
//the puller can always swap with its victim if on grab intent
|
||||
if(M.pulledby == src && a_intent == "grab")
|
||||
|
||||
@@ -357,7 +357,7 @@ var/global/mulebot_count = 0
|
||||
|
||||
if(isobj(AM))
|
||||
var/obj/O = AM
|
||||
if(O.buckled_mobs.len || (locate(/mob) in AM)) //can't load non crates objects with mobs buckled to it or inside it.
|
||||
if(O.has_buckled_mobs() || (locate(/mob) in AM)) //can't load non crates objects with mobs buckled to it or inside it.
|
||||
buzz(SIGH)
|
||||
return
|
||||
|
||||
|
||||
@@ -811,7 +811,7 @@
|
||||
|
||||
if(icon_state == "parrot_fly")
|
||||
for(var/mob/living/carbon/human/H in view(src,1))
|
||||
if(H.buckled_mobs.len >= H.max_buckled_mobs) //Already has a parrot, or is being eaten by a slime
|
||||
if(H.has_buckled_mobs() && H.buckled_mobs.len >= H.max_buckled_mobs) //Already has a parrot, or is being eaten by a slime
|
||||
continue
|
||||
perch_on_human(H)
|
||||
return
|
||||
|
||||
@@ -15,7 +15,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/components/unary
|
||||
if(restrained())
|
||||
src << "You can't vent crawl while you're restrained!"
|
||||
return
|
||||
if(buckled_mobs.len)
|
||||
if(has_buckled_mobs())
|
||||
src << "You can't vent crawl with others creatures on you!"
|
||||
return
|
||||
if(buckled)
|
||||
|
||||
@@ -25,6 +25,7 @@ var/next_mob_id = 0
|
||||
..()
|
||||
|
||||
/atom/proc/prepare_huds()
|
||||
hud_list = list()
|
||||
for(var/hud in hud_possible)
|
||||
var/image/I = image('icons/mob/hud.dmi', src, "")
|
||||
I.appearance_flags = RESET_COLOR
|
||||
|
||||
Reference in New Issue
Block a user