diff --git a/code/modules/mob/living/basic/jungle/venus_human_trap.dm b/code/modules/mob/living/basic/jungle/venus_human_trap.dm index a997a8d266b..bd5ee66b13d 100644 --- a/code/modules/mob/living/basic/jungle/venus_human_trap.dm +++ b/code/modules/mob/living/basic/jungle/venus_human_trap.dm @@ -126,7 +126,7 @@ * Akin to certain spiders, venus human traps can also be possessed and controlled by ghosts. * */ - + /mob/living/basic/venus_human_trap name = "venus human trap" desc = "Now you know how the fly feels." diff --git a/code/modules/mob/living/simple_animal/hostile/alien.dm b/code/modules/mob/living/simple_animal/hostile/alien.dm index 2d17820af0b..593bf29535e 100644 --- a/code/modules/mob/living/simple_animal/hostile/alien.dm +++ b/code/modules/mob/living/simple_animal/hostile/alien.dm @@ -160,7 +160,7 @@ . = ..() AddElement(/datum/element/cleaning) -/mob/living/simple_animal/hostile/alien/maid/AttackingTarget() +/mob/living/simple_animal/hostile/alien/maid/AttackingTarget(atom/attacked_target) if(ismovable(target)) target.wash(CLEAN_SCRUB) if(istype(target, /obj/effect/decal/cleanable)) diff --git a/code/modules/mob/living/simple_animal/hostile/constructs/wraith.dm b/code/modules/mob/living/simple_animal/hostile/constructs/wraith.dm index e7ef22a9e07..d0727aacfa9 100644 --- a/code/modules/mob/living/simple_animal/hostile/constructs/wraith.dm +++ b/code/modules/mob/living/simple_animal/hostile/constructs/wraith.dm @@ -26,7 +26,7 @@ /// The seconds refunded when putting a target into critical var/crit_refund = 5 SECONDS -/mob/living/simple_animal/hostile/construct/wraith/AttackingTarget() //refund jaunt cooldown when attacking living targets +/mob/living/simple_animal/hostile/construct/wraith/AttackingTarget(atom/attacked_target) //refund jaunt cooldown when attacking living targets var/prev_stat var/mob/living/living_target = target diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 96ae60c3e07..4dd2c464a2f 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -314,14 +314,14 @@ for(var/i in 1 to rapid_melee) addtimer(cb, (i - 1)*delay) else - AttackingTarget() + AttackingTarget(target) if(patience) GainPatience() /mob/living/simple_animal/hostile/proc/CheckAndAttack() var/atom/target_from = GET_TARGETS_FROM(src) if(target && isturf(target_from.loc) && target.Adjacent(target_from) && !incapacitated()) - AttackingTarget() + AttackingTarget(target) /mob/living/simple_animal/hostile/proc/MoveToTarget(list/possible_targets)//Step 5, handle movement between us and our target stop_automated_movement = 1 diff --git a/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm b/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm index 04bb2f94cc9..aa11bcbd43e 100644 --- a/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm +++ b/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm @@ -170,7 +170,7 @@ if(hop_cooldown <= world.time) Hop(player_hop = TRUE) -/mob/living/simple_animal/hostile/jungle/leaper/AttackingTarget() +/mob/living/simple_animal/hostile/jungle/leaper/AttackingTarget(atom/attacked_target) if(isliving(target)) return return ..() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/_megafauna.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/_megafauna.dm index 5bb9f314ed1..5f9e2678fd8 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/_megafauna.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/_megafauna.dm @@ -119,7 +119,7 @@ return ..() -/mob/living/simple_animal/hostile/megafauna/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/AttackingTarget(atom/attacked_target) if(recovery_time >= world.time) return . = ..() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm index 1bd196651fd..113f7431ffc 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm @@ -130,7 +130,7 @@ Difficulty: Medium return FALSE return ..() -/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/AttackingTarget(atom/attacked_target) if(QDELETED(target)) return face_atom(target) @@ -185,7 +185,7 @@ Difficulty: Medium /mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/guidance guidance = TRUE -/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/hunter/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/hunter/AttackingTarget(atom/attacked_target) . = ..() if(. && prob(12)) INVOKE_ASYNC(dash, TYPE_PROC_REF(/datum/action, Trigger), target) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm index ec90fa9fa7b..a1336bd6a09 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -291,7 +291,7 @@ Difficulty: Hard if(!(flags_1 & ADMIN_SPAWNED_1)) SSshuttle.shuttle_purchase_requirements_met[SHUTTLE_UNLOCK_BUBBLEGUM] = TRUE -/mob/living/simple_animal/hostile/megafauna/bubblegum/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/bubblegum/AttackingTarget(atom/attacked_target) . = ..() if(.) recovery_time = world.time + 20 // can only attack melee once every 2 seconds but rapid_melee gives higher priority @@ -348,7 +348,7 @@ Difficulty: Hard /mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/OpenFire() return -/mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/AttackingTarget(atom/attacked_target) return /mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/try_bloodattack() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm index 5aef5c9029b..b13dba948d0 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm @@ -188,7 +188,7 @@ return return ..() -/mob/living/simple_animal/hostile/megafauna/dragon/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/dragon/AttackingTarget(atom/attacked_target) if(!swooping) return ..() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm index e20724227f1..375d4993cfd 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -453,7 +453,7 @@ Difficulty: Hard wander = TRUE did_reset = FALSE -/mob/living/simple_animal/hostile/megafauna/hierophant/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/hierophant/AttackingTarget(atom/attacked_target) if(!blinking) if(target && isliving(target)) var/mob/living/L = target diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm index de693bde9ea..56c753c9c8b 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm @@ -202,7 +202,7 @@ ///In addition to parent functionality, this will also turn the target into a small legion if they are unconscious. -/mob/living/simple_animal/hostile/megafauna/legion/AttackingTarget() +/mob/living/simple_animal/hostile/megafauna/legion/AttackingTarget(atom/attacked_target) . = ..() if(!. || !ishuman(target)) return diff --git a/code/modules/mob/living/simple_animal/hostile/mimic.dm b/code/modules/mob/living/simple_animal/hostile/mimic.dm index d07775b42bd..af305fef38d 100644 --- a/code/modules/mob/living/simple_animal/hostile/mimic.dm +++ b/code/modules/mob/living/simple_animal/hostile/mimic.dm @@ -68,7 +68,7 @@ if(.) trigger() -/mob/living/simple_animal/hostile/mimic/crate/AttackingTarget() +/mob/living/simple_animal/hostile/mimic/crate/AttackingTarget(atom/attacked_target) . = ..() if(.) icon_state = initial(icon_state) @@ -184,7 +184,7 @@ GLOBAL_LIST_INIT(animatable_blacklist, list(/obj/structure/table, /obj/structure if(destroy_objects) ..() -/mob/living/simple_animal/hostile/mimic/copy/AttackingTarget() +/mob/living/simple_animal/hostile/mimic/copy/AttackingTarget(atom/attacked_target) . = ..() if(knockdown_people && . && prob(15) && iscarbon(target)) var/mob/living/carbon/C = target @@ -303,7 +303,7 @@ GLOBAL_LIST_INIT(animatable_blacklist, list(/obj/structure/table, /obj/structure lock = new lock.Grant(src) -/mob/living/simple_animal/hostile/mimic/xenobio/AttackingTarget() +/mob/living/simple_animal/hostile/mimic/xenobio/AttackingTarget(atom/attacked_target) if(src == target) toggle_open() return diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm index fcfa4560611..881a6cf17d6 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm @@ -34,7 +34,7 @@ attack_action.Grant(src) //Prevents elites from attacking members of their faction (can't hurt themselves either) and lets them mine rock with an attack despite not being able to smash walls. -/mob/living/simple_animal/hostile/asteroid/elite/AttackingTarget() +/mob/living/simple_animal/hostile/asteroid/elite/AttackingTarget(atom/attacked_target) if(ishostile(target)) var/mob/living/simple_animal/hostile/M = target if(faction_check_atom(M)) diff --git a/code/modules/mob/living/simple_animal/hostile/ooze.dm b/code/modules/mob/living/simple_animal/hostile/ooze.dm index 61719c21db6..d4f86d3905d 100644 --- a/code/modules/mob/living/simple_animal/hostile/ooze.dm +++ b/code/modules/mob/living/simple_animal/hostile/ooze.dm @@ -78,6 +78,8 @@ ///Tries to transfer the atoms reagents then delete it /mob/living/simple_animal/hostile/ooze/proc/eat_atom(atom/eat_target, silent) + if(isnull(eat_target)) + return if(SEND_SIGNAL(eat_target, COMSIG_OOZE_EAT_ATOM, src, edible_food_types) & COMPONENT_ATOM_EATEN) return if(silent || !isitem(eat_target)) //Don't bother reporting it for everything diff --git a/code/modules/mob/living/simple_animal/hostile/zombie.dm b/code/modules/mob/living/simple_animal/hostile/zombie.dm index b525c502e4f..f16449764de 100644 --- a/code/modules/mob/living/simple_animal/hostile/zombie.dm +++ b/code/modules/mob/living/simple_animal/hostile/zombie.dm @@ -31,7 +31,7 @@ . = ..() apply_dynamic_human_appearance(src, outfit, /datum/species/zombie, bloody_slots = ITEM_SLOT_OCLOTHING) -/mob/living/simple_animal/hostile/zombie/AttackingTarget() +/mob/living/simple_animal/hostile/zombie/AttackingTarget(atom/attacked_target) . = ..() if(. && ishuman(target) && prob(infection_chance)) try_to_zombie_infect(target)