Skip to content

Commit

Permalink
dug snow farming, plants and ants & MORE (#560)
Browse files Browse the repository at this point in the history
dug snow farming, plants and ants

Co-authored-by: jjpark-kb <[email protected]>
  • Loading branch information
Steals-The-PRs and jjpark-kb authored Nov 11, 2023
1 parent 8e514fb commit 56496c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modular_skyrat/modules/ashwalkers/code/buildings/antfarm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
/obj/structure/antfarm/Initialize(mapload)
. = ..()
var/turf/src_turf = get_turf(src)
if(!istype(get_turf(src), /turf/open/misc/asteroid/basalt))
src_turf.balloon_alert_to_viewers("must be on basalt")
if(!src_turf.GetComponent(/datum/component/simple_farm))
src_turf.balloon_alert_to_viewers("must be on farmable surface")
return INITIALIZE_HINT_QDEL

for(var/obj/structure/antfarm/found_farm in range(2, get_turf(src)))
Expand Down
14 changes: 13 additions & 1 deletion modular_skyrat/modules/ashwalkers/code/buildings/ash_farming.dm
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,18 @@

plant_bag?.atom_storage?.attempt_insert(created_harvest, user, TRUE)

/turf/open/misc/asteroid/basalt/Initialize(mapload)
/turf/open/misc/asteroid/basalt/getDug()
. = ..()
AddComponent(/datum/component/simple_farm)

/turf/open/misc/asteroid/basalt/refill_dug()
. = ..()
qdel(GetComponent(/datum/component/simple_farm))

/turf/open/misc/asteroid/snow/getDug()
. = ..()
AddComponent(/datum/component/simple_farm)

/turf/open/misc/asteroid/snow/refill_dug()
. = ..()
qdel(GetComponent(/datum/component/simple_farm))

0 comments on commit 56496c0

Please sign in to comment.