mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
dug snow farming, plants and ants & MORE (#24915)
dug snow farming, plants and ants
This commit is contained in:
@@ -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)))
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user