Skip to content

Commit

Permalink
Minor fixes (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit authored Mar 9, 2024
1 parent 5df9fc2 commit 0f3cae7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
color = "#c87d44"
transformation_types = list(
/mob/living/simple_animal/hostile/infestation/broodling = 60 SECONDS,
/mob/living/simple_animal/hostile/infestation/floatfly = 75 SECONDS,
/mob/living/simple_animal/hostile/infestation/eviscerator = 90 SECONDS,
/mob/living/simple_animal/hostile/infestation/assembler = 120 SECONDS,
)
Expand All @@ -95,10 +96,17 @@
retaliate = TRUE
can_flee = FALSE

/datum/ai_holder/simple_animal/infestation/larva/implanter/can_attack(atom/movable/the_target, vision_required = TRUE)
var/mob/living/simple_animal/hostile/infestation/larva/implant/implanter/L = holder
if(L.transformation_time != null)
return FALSE

return ..()

/datum/ai_holder/simple_animal/infestation/larva/implanter/list_targets()
var/mob/living/simple_animal/hostile/infestation/larva/implant/implanter/L = holder
if(L.transformation_time != null) // Already implanted once
return
return list()

var/list/humans = list()
for(var/mob/living/carbon/human/H in view(vision_range, holder))
Expand All @@ -115,6 +123,9 @@
return
if(on_fire)
return
if(transformation_time != null)
return

var/mob/living/carbon/human/H = A
var/list/valid_organs = list()
for(var/obj/item/organ/external/O in H.organs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
/mob/living/simple_animal/hostile/random_monster/Destroy()
for(var/datum/D in abilities)
qdel(D)
abilities = null
return ..()


Expand Down

0 comments on commit 0f3cae7

Please sign in to comment.