Skip to content

Commit

Permalink
viccheck
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalEpicness committed May 7, 2024
1 parent d037ee3 commit 25b980b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/mob/living/carbon/xenomorph/castes/Queen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -545,15 +545,14 @@

for(var/turf/turf in surroundings) // In every tile, w check if there are weeds, that we can build there and if it can be obscured
var/obj/effect/alien/weeds/weeds = locate(/obj/effect/alien/weeds) in turf
if(check_alien_construction(turf, silent = TRUE) && weeds && !check_if_can_be_obscured(turf,xeno_egg))
if(check_alien_construction(turf, silent = TRUE) && weeds && !check_if_can_be_obscured(turf,xeno_egg) && !istype(get_area(turf), /area/interior))
if(weeds.weed_strength >= WEED_LEVEL_HIVE && weeds.linked_hive.hivenumber == hivenumber)
suitable_turfs.Add(turf)

if(suitable_turfs.len == 0)
to_chat(src, SPAN_XENONOTICE("There is no more suitable ground to plant eggs! Automatic planting disabled!"))
egg_autoplant = FALSE
return

if(!src.check_plasma(30)) // Skip this cycle if we don't have enough plasma
return

Expand All @@ -562,7 +561,7 @@

var/obj/effect/alien/egg/new_egg = new(pick(suitable_turfs), hivenumber)
playsound(get_turf(src), 'sound/effects/splat.ogg', 15, 1)
src.use_plasma(30)
use_plasma(30)
visible_message(SPAN_XENONOTICE("[src]'s ovipositor plants the [new_egg]."))

/mob/living/carbon/xenomorph/queen/get_status_tab_items()
Expand Down

0 comments on commit 25b980b

Please sign in to comment.