From 26fd3bfb50e07c3d6313e0066822845bb5b528df Mon Sep 17 00:00:00 2001 From: Gboster-0 <82319946+Gboster-0@users.noreply.github.com> Date: Wed, 1 May 2024 13:03:56 +0200 Subject: [PATCH] fixes some abnos not returning an initialize() hint (#2096) le small fix --- ModularTegustation/tegu_items/refinery/crates/_crate.dm | 4 ++-- .../mob/living/simple_animal/abnormality/_abnormality.dm | 3 +-- .../living/simple_animal/abnormality/_tools/zayin/realizer.dm | 4 ++-- .../simple_animal/abnormality/waw/red_riding_mercenary.dm | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ModularTegustation/tegu_items/refinery/crates/_crate.dm b/ModularTegustation/tegu_items/refinery/crates/_crate.dm index 9bd6778fbcc0..6718cbda261a 100644 --- a/ModularTegustation/tegu_items/refinery/crates/_crate.dm +++ b/ModularTegustation/tegu_items/refinery/crates/_crate.dm @@ -31,12 +31,12 @@ var/cosmeticchance = 0 //These do not count on the total odds of a crate /obj/structure/lootcrate/Initialize() - ..() + . = ..() if(SSmaptype.maptype in SSmaptype.citymaps) //Also can't drag it out to open it. Open it on spot, bitch anchored = TRUE /obj/structure/lootcrate/attackby(obj/item/I, mob/living/user, params) - ..() + . = ..() var/loot var/cloot if(I.tool_behaviour != TOOL_CROWBAR) diff --git a/code/modules/mob/living/simple_animal/abnormality/_abnormality.dm b/code/modules/mob/living/simple_animal/abnormality/_abnormality.dm index 6690452a6d93..a440766860ac 100644 --- a/code/modules/mob/living/simple_animal/abnormality/_abnormality.dm +++ b/code/modules/mob/living/simple_animal/abnormality/_abnormality.dm @@ -144,7 +144,7 @@ . = ..() GLOB.abnormality_mob_list -= src -/mob/living/simple_animal/hostile/abnormality/Move() +/mob/living/simple_animal/hostile/abnormality/Move(turf/newloc, dir, step_x, step_y) if(IsContained()) // STOP STEALING MY FREAKING ABNORMALITIES return FALSE return ..() @@ -185,7 +185,6 @@ datum_reference.console.chem_charges -= 1 var/obj/item/reagent_containers/my_container = O HarvestChem(my_container, user) - return /mob/living/simple_animal/hostile/abnormality/can_track(mob/living/user) if((status_flags & GODMODE)) diff --git a/code/modules/mob/living/simple_animal/abnormality/_tools/zayin/realizer.dm b/code/modules/mob/living/simple_animal/abnormality/_tools/zayin/realizer.dm index a86e01c6a957..13f2c1271c76 100644 --- a/code/modules/mob/living/simple_animal/abnormality/_tools/zayin/realizer.dm +++ b/code/modules/mob/living/simple_animal/abnormality/_tools/zayin/realizer.dm @@ -68,7 +68,7 @@ var/f2 //Filter 2, Rays filter /obj/structure/toolabnormality/realization/Initialize() - ..() + . = ..() bough = new/obj/effect/golden_bough(src) //Filter 1 gets applied to the bough @@ -84,7 +84,7 @@ /obj/structure/toolabnormality/realization/Destroy() qdel(bough) - ..() + return ..() /obj/structure/toolabnormality/realization/proc/FilterLoop(loop_stage) //Takes a numeric argument for advancing the loop's stage in a cycle (1 > 2 > 3 > 1 > ...) if(filters[filters.len]) // Stops the loop if we have no filters to animate diff --git a/code/modules/mob/living/simple_animal/abnormality/waw/red_riding_mercenary.dm b/code/modules/mob/living/simple_animal/abnormality/waw/red_riding_mercenary.dm index 46fb82894498..a1b57a59f69c 100644 --- a/code/modules/mob/living/simple_animal/abnormality/waw/red_riding_mercenary.dm +++ b/code/modules/mob/living/simple_animal/abnormality/waw/red_riding_mercenary.dm @@ -343,7 +343,7 @@ It has now been over four months. Now we get her for real. -Coxswain return /mob/living/simple_animal/hostile/abnormality/red_hood/Initialize() - ..() + . = ..() if(IsCombatMap()) faction |= "hostile" RegisterSignal(SSdcs, COMSIG_GLOB_ABNORMALITY_BREACH, PROC_REF(OnAbnoBreach))