mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 15:08:34 +01:00
Makes fruit growing code on the Alraune organ based instead of implant based. Organizes the list to make it in alphabetical order.
This commit is contained in:
@@ -2006,75 +2006,3 @@
|
||||
|
||||
icon = 'icons/vore/custom_items_vr.dmi'
|
||||
icon_state = "penlightlynn"
|
||||
|
||||
//Fruit Implants for Alraune
|
||||
/obj/item/weapon/implant/reagent_generator/fruit_implant
|
||||
name = "fruit enabling implant"
|
||||
desc = "This is an implant that hastens Alraune's fruit production."
|
||||
generated_reagents = list("sugar" = 2) //This actually allows them. This could be anything, but sugar seems most fitting.
|
||||
usable_volume = 250 //Five fruit.
|
||||
transfer_amount = 50
|
||||
empty_message = list("Your have no fruit on you.", "You have a distinct lack of fruit..")
|
||||
full_message = list("You have a multitude of fruit that is ready for harvest!", "You have fruit that is ready to be picked!")
|
||||
emote_descriptor = list("fruit right off of the Alraune!", "a fruit from the Alraune!") //These are changed below
|
||||
var/verb_descriptor = list("grabs", "snatches", "picks")
|
||||
var/self_verb_descriptor = list("grab", "snatch", "pick")
|
||||
var/short_emote_descriptor = list("picks", "grabs")
|
||||
self_emote_descriptor = list("grab", "pick", "snatch")
|
||||
assigned_proc = /mob/living/carbon/human/proc/use_reagent_implant_fruit_implant
|
||||
|
||||
/obj/item/weapon/implant/reagent_generator/fruit_implant/implanted(mob/living/carbon/human/source)
|
||||
if(source.species.name != SPECIES_ALRAUNE)
|
||||
to_chat(source, "<span class='notice'>Perhaps using this implant as a non Alraune was a bad idea...</span>") //You wasted it. Good job.
|
||||
return 1
|
||||
processing_objects += src
|
||||
to_chat(source, "<span class='notice'>You implant [source] with \the [src].</span>")
|
||||
emote_descriptor = list("fruit right off of [source]!", "a fruit from [source]!")
|
||||
var/selection = input(source, "Choose your character's fruit type. Choosing nothing will result in a default of apples.", "Fruit Type", source.fruit_type) as null|anything in acceptable_fruit_types
|
||||
if(selection)
|
||||
source.fruit_type = selection
|
||||
source.verbs |= assigned_proc
|
||||
return 1
|
||||
|
||||
/obj/item/weapon/implanter/reagent_generator/fruit_implant
|
||||
implant_type = /obj/item/weapon/implant/reagent_generator/fruit_implant
|
||||
|
||||
/mob/living/carbon/human/proc/use_reagent_implant_fruit_implant()
|
||||
set name = "Pick Fruit"
|
||||
set desc = "Pick fruit off of [src]."
|
||||
set category = "Object"
|
||||
set src in view(1)
|
||||
|
||||
//do_reagent_implant(usr)
|
||||
if(!isliving(usr) || !usr.canClick())
|
||||
return
|
||||
|
||||
if(usr.incapacitated() || usr.stat > CONSCIOUS)
|
||||
return
|
||||
|
||||
var/obj/item/weapon/implant/reagent_generator/fruit_implant/rimplant
|
||||
for(var/I in contents)
|
||||
if(istype(I, /obj/item/weapon/implant/reagent_generator))
|
||||
rimplant = I
|
||||
break
|
||||
if (rimplant)
|
||||
if(rimplant.reagents.total_volume < rimplant.transfer_amount)
|
||||
to_chat(src, "<span class='notice'>[pick(rimplant.empty_message)]</span>")
|
||||
return
|
||||
|
||||
var/datum/seed/S = plant_controller.seeds["[fruit_type]"] //crosses fingers EVEN HARDER than last one.
|
||||
S.harvest(usr,0,0,1)
|
||||
|
||||
var/index = rand(0,2)
|
||||
|
||||
if (usr != src)
|
||||
var/emote = rimplant.emote_descriptor[index]
|
||||
var/verb_desc = rimplant.verb_descriptor[index]
|
||||
var/self_verb_desc = rimplant.self_verb_descriptor[index]
|
||||
usr.visible_message("<span class='notice'>[usr] [verb_desc] [emote]</span>",
|
||||
"<span class='notice'>You [self_verb_desc] [emote]</span>")
|
||||
else
|
||||
visible_message("<span class='notice'>[src] [pick(rimplant.short_emote_descriptor)] a fruit.</span>",
|
||||
"<span class='notice'>You [pick(rimplant.self_emote_descriptor)] a fruit.</span>")
|
||||
|
||||
rimplant.reagents.remove_any(rimplant.transfer_amount)
|
||||
|
||||
Reference in New Issue
Block a user