Files
VMSolidusandGitHub 35f2636732 Fix Doom Cabbages (#21514)
This PR nerfs this exploitative method by making it so that robust
harvest is not SIGNIFICANTLY more useful on repeat-harvestable plants,
by making it so that harvesting a plant consumes its yield_mod from
fertilizer.

<img width="908" height="869" alt="image"
src="https://github.com/user-attachments/assets/c685f63e-ae21-42c4-b9b1-e4277a93a703"
/>
2025-10-30 17:39:26 +00:00

100 lines
3.2 KiB
Plaintext

/obj/item/plantspray
icon = 'icons/obj/hydroponics_machines.dmi'
item_state = "spray"
item_flags = ITEM_FLAG_NO_BLUDGEON
slot_flags = SLOT_BELT
throwforce = 4
w_class = WEIGHT_CLASS_SMALL
throw_speed = 2
throw_range = 10
var/toxicity = 4
var/pest_kill_str = 0
var/weed_kill_str = 0
/obj/item/plantspray/weeds // -- Skie
name = "weed-spray"
desc = "It's a toxic mixture, in spray form, to kill small weeds."
icon_state = "weedspray"
weed_kill_str = 6
/obj/item/plantspray/pests
name = "pest-spray"
desc = "It's some pest eliminator spray! <I>Do not inhale!</I>"
icon_state = "pestspray"
pest_kill_str = 6
// *************************************
// Nutrient defines for hydroponics
// *************************************
/obj/item/reagent_containers/glass/fertilizer
name = "jug"
desc = "A decent sized plastic jug. Can hold up to 80 units."
icon = 'icons/obj/chemical.dmi'
icon_state = "plastic_jug"
item_state = "plastic_jug"
atom_flags = 0
possible_transfer_amounts = list(5, 10, 20, 40, 80)
volume = 80
w_class = WEIGHT_CLASS_NORMAL
hitsound = 'sound/weapons/jug_empty_impact.ogg'
drop_sound = 'sound/weapons/jug_empty_impact.ogg'
fragile = 0
unacidable = FALSE
force = 1
throwforce = 1
/obj/item/reagent_containers/glass/fertilizer/Initialize()
. = ..()
src.pixel_x = rand(-5.0, 5)
src.pixel_y = rand(-5.0, 5)
/obj/item/reagent_containers/glass/fertilizer/on_reagent_change()
. = ..()
update_icon()
if(reagents.total_volume)
var/fraction = reagents.total_volume / volume
force = max(5 * fraction, 1)
throwforce = max(5 * fraction, 1)
hitsound = 'sound/weapons/jug_filled_impact.ogg'
drop_sound = 'sound/weapons/jug_filled_impact.ogg'
else
force = 1
throwforce = 1
hitsound = 'sound/weapons/jug_empty_impact.ogg'
drop_sound = 'sound/weapons/jug_empty_impact.ogg'
/obj/item/reagent_containers/glass/fertilizer/update_icon()
ClearOverlays()
if(!is_open_container())
AddOverlays("lid_jug")
/obj/item/reagent_containers/glass/fertilizer/ez
name = "jug of E-Z-Nutrient"
icon_state = "plastic_jug_ez"
desc = "Utterly middling in every way, E-Z-Nutrient is a brand of fertiliser without any remarkably defining traits. At least it's cheap."
reagents_to_add = list(/singleton/reagent/toxin/fertilizer/eznutrient = 80)
/obj/item/reagent_containers/glass/fertilizer/l4z
name = "jug of Left-4-Zed"
icon_state = "plastic_jug_l4z"
desc = "A brand with a mixed reputation, Left-4-Zed trades nutritional value for a chance to mutate plants it is fed to. Use with caution!"
reagents_to_add = list(/singleton/reagent/toxin/fertilizer/left4zed = 80)
/obj/item/reagent_containers/glass/fertilizer/rh
name = "jug of Robust Harvest"
icon_state = "plastic_jug_rh"
desc = "This is a jug of Robust Harvest, among the more reputable - and expensive - brands of fertiliser on the market. Increases yield of crops."
reagents_to_add = list(/singleton/reagent/toxin/fertilizer/robustharvest = 80)
/obj/item/reagent_containers/glass/fertilizer/rh/mechanics_hints(mob/user, distance, is_adjacent)
. = ..()
. += "Every 10u of Robust Harvest added to a plant increases its maximum yield by up to 2 extra produce."
. += "Bonus yield only applies on the next harvest for plants that can be harvested more than once, such as fruit trees."