diff --git a/code/modules/hydroponics/seed_extractor.dm b/code/modules/hydroponics/seed_extractor.dm
index a917b6afeb..54805f3141 100644
--- a/code/modules/hydroponics/seed_extractor.dm
+++ b/code/modules/hydroponics/seed_extractor.dm
@@ -90,114 +90,6 @@
to_chat(user, "You extract some seeds.")
return
else if (istype(O, /obj/item/seeds))
-<<<<<<< HEAD
- if(add_seed(O))
- to_chat(user, "You add [O] to [src.name].")
- updateUsrDialog()
- return
- else if(user.a_intent != INTENT_HARM)
- to_chat(user, "You can't extract any seeds from \the [O.name]!")
- else
- return ..()
-
-/datum/seed_pile
- var/name = ""
- var/lifespan = 0 //Saved stats
- var/endurance = 0
- var/maturation = 0
- var/production = 0
- var/yield = 0
- var/potency = 0
- var/amount = 0
-
-/datum/seed_pile/New(var/name, var/life, var/endur, var/matur, var/prod, var/yie, var/poten, var/am = 1)
- src.name = name
- src.lifespan = life
- src.endurance = endur
- src.maturation = matur
- src.production = prod
- src.yield = yie
- src.potency = poten
- src.amount = am
-
-/obj/machinery/seed_extractor/attack_hand(mob/user)
- user.set_machine(src)
- interact(user)
-
-/obj/machinery/seed_extractor/interact(mob/user)
- if (stat)
- return 0
-
- var/dat = "Stored seeds:
"
-
- if (contents.len == 0)
- dat += "No seeds"
- else
- dat += "
| Name | Lifespan | Endurance | Maturation | Production | Yield | Potency | Stock |
"
- for (var/datum/seed_pile/O in piles)
- dat += "| [O.name] | [O.lifespan] | [O.endurance] | [O.maturation] | "
- dat += "[O.production] | [O.yield] | [O.potency] | "
- dat += "Vend ([O.amount] left) |
"
- dat += "
"
- var/datum/browser/popup = new(user, "seed_ext", name, 700, 400)
- popup.set_content(dat)
- popup.open()
- return
-
-/obj/machinery/seed_extractor/Topic(var/href, var/list/href_list)
- if(..())
- return
- usr.set_machine(src)
-
- href_list["li"] = text2num(href_list["li"])
- href_list["en"] = text2num(href_list["en"])
- href_list["ma"] = text2num(href_list["ma"])
- href_list["pr"] = text2num(href_list["pr"])
- href_list["yi"] = text2num(href_list["yi"])
- href_list["pot"] = text2num(href_list["pot"])
-
- for (var/datum/seed_pile/N in piles)//Find the pile we need to reduce...
- if (href_list["name"] == N.name && href_list["li"] == N.lifespan && href_list["en"] == N.endurance && href_list["ma"] == N.maturation && href_list["pr"] == N.production && href_list["yi"] == N.yield && href_list["pot"] == N.potency)
- if(N.amount <= 0)
- return
- N.amount = max(N.amount - 1, 0)
- if (N.amount <= 0)
- piles -= N
- qdel(N)
- break
-
- for (var/obj/T in contents)//Now we find the seed we need to vend
- var/obj/item/seeds/O = T
- if (O.plantname == href_list["name"] && O.lifespan == href_list["li"] && O.endurance == href_list["en"] && O.maturation == href_list["ma"] && O.production == href_list["pr"] && O.yield == href_list["yi"] && O.potency == href_list["pot"])
- O.loc = src.loc
- break
-
- src.updateUsrDialog()
- return
-
-/obj/machinery/seed_extractor/proc/add_seed(obj/item/seeds/O)
- if(contents.len >= 999)
- to_chat(usr, "\The [src] is full.")
- return 0
-
- if(ismob(O.loc))
- var/mob/M = O.loc
- if(!M.drop_item())
- return 0
- else if(istype(O.loc, /obj/item/storage))
- var/obj/item/storage/S = O.loc
- S.remove_from_storage(O,src)
-
- O.loc = src
- . = 1
- for (var/datum/seed_pile/N in piles)
- if (O.plantname == N.name && O.lifespan == N.lifespan && O.endurance == N.endurance && O.maturation == N.maturation && O.production == N.production && O.yield == N.yield && O.potency == N.potency)
- ++N.amount
- return
-
- piles += new /datum/seed_pile(O.plantname, O.lifespan, O.endurance, O.maturation, O.production, O.yield, O.potency)
- return
-=======
if(add_seed(O))
to_chat(user, "You add [O] to [src.name].")
updateUsrDialog()
@@ -303,4 +195,3 @@
piles += new /datum/seed_pile(O.plantname, O.lifespan, O.endurance, O.maturation, O.production, O.yield, O.potency)
return
->>>>>>> b6d349e... Remove drop_item, drop_item_v, put_in_hands_or_del (#31386)