Skip to content

Commit

Permalink
redo
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Nov 28, 2023
1 parent fc2a864 commit ecf4515
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions code/__DEFINES/layers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@

/// for xenos to hide behind bushes and tall grass
#define ABOVE_XENO_LAYER 4.12
/// For eggs so they can't hide below grass
#define EGG_LAYER 4.121
/// For facehuggers
#define FACEHUGGER_LAYER 4.13
/// For WEATHER
Expand Down
2 changes: 1 addition & 1 deletion code/modules/cm_aliens/structures/egg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
icon_state = "Egg Growing"
density = FALSE
anchored = TRUE
layer = EGG_LAYER
layer = LYING_BETWEEN_MOB_LAYER
health = 80
plane = GAME_PLANE
var/list/egg_triggers = list()
Expand Down
6 changes: 6 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/egg_item.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@
to_chat(user, SPAN_XENOWARNING("[src] cannot be planted inside a vehicle."))
return

for(var/obj/object in T.contents)
var/obj/effect/alien/egg/xeno_egg = /obj/effect/alien/egg
if(object.layer > initial(xeno_egg.layer))
to_chat(user, SPAN_XENOWARNING("[src] cannot be planted below objects that would obscure it."))
return

user.visible_message(SPAN_XENONOTICE("[user] starts planting [src]."), SPAN_XENONOTICE("You start planting [src]."), null, 5)

var/plant_time = 35
Expand Down

0 comments on commit ecf4515

Please sign in to comment.