mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
[s] Fixes several clingspider related runtimes and fixes spiderlings growing into infestation spiders (#21988)
* The fixes * Steelslayer review
This commit is contained in:
@@ -53,13 +53,15 @@
|
||||
/// To check and gib the spider when dead, then remove only one of the counter for the changeling owner
|
||||
var/gibbed = FALSE
|
||||
|
||||
//These two bellow are needed to both gib the spider always, and even if it was gibbed only remove 1 from the counter of spider_counter instead of death's gib calling death again and removing 2
|
||||
//These two below are needed to both gib the spider always, and even if it was gibbed only remove 1 from the counter of spider_counter instead of death's gib calling death again and removing 2
|
||||
/mob/living/simple_animal/hostile/poison/giant_spider/hunter/infestation_spider/gib()
|
||||
gibbed = TRUE
|
||||
return ..()
|
||||
|
||||
/mob/living/simple_animal/hostile/poison/giant_spider/hunter/infestation_spider/death(gibbed)
|
||||
var/mob/owner_mob = locateUID(owner_UID)
|
||||
if(!ismob(owner_mob))
|
||||
return ..(TRUE)
|
||||
var/datum/action/changeling/spiders/S = locate() in owner_mob.actions
|
||||
if(!isnull(S))
|
||||
if(gibbed)
|
||||
|
||||
@@ -1430,6 +1430,8 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
|
||||
return FALSE
|
||||
|
||||
/mob/proc/faction_check_mob(mob/target, exact_match)
|
||||
if(!target)
|
||||
return faction_check(faction, null, FALSE)
|
||||
if(exact_match) //if we need an exact match, we need to do some bullfuckery.
|
||||
var/list/faction_src = faction.Copy()
|
||||
var/list/faction_target = target.faction.Copy()
|
||||
|
||||
Reference in New Issue
Block a user