Skip to content

Commit

Permalink
Prevent creating tealprints on tiles that have something with density (
Browse files Browse the repository at this point in the history
…stonepillars/goon-flock#57)

* restrict tealprint creation

* change message
  • Loading branch information
FlameArrow57 authored Mar 17, 2022
1 parent 7998386 commit 02076c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/datums/abilities/flock/flockmind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,16 @@
if(!istype(T, /turf/simulated/floor/feather))
boutput(holder.owner, "<span class='alert'>You aren't above a flocktile.</span>")//todo maybe make this flock themed?
return 1
if(locate(/obj/flock_structure/ghost) in T)
boutput(holder.owner, "<span class='alert'>A tealprint has already been scheduled here!</span>")
return 1
if(locate(/obj/flock_structure) in T)
boutput(holder.owner, "<span class='alert'>There is already a flock structure on this flocktile!</span>")
return 1
for (var/atom/O in T.contents)
if (O.density && !isflock(O))
boutput(holder.owner, "<span class='alert'>That tile has something that blocks tealprint creation!</span>")
return 1
//todo: replace with FANCY tgui/chui window with WHEELS and ICONS and stuff!
var/structurewanted = tgui_input_list(holder.owner, "Select which structure you would like to create", "Tealprint selection", list("Collector", "Sentinel"))
if (!structurewanted)
Expand Down

0 comments on commit 02076c8

Please sign in to comment.