// Plant analyzer /obj/item/plant_analyzer name = "plant analyzer" desc = "A scanner used to evaluate a plant's various areas of growth." icon = 'icons/obj/device.dmi' icon_state = "hydro" item_state = "analyzer" w_class = WEIGHT_CLASS_TINY slot_flags = SLOT_BELT origin_tech = "magnets=2;biotech=2" materials = list(MAT_METAL=30, MAT_GLASS=20) // ************************************* // Hydroponics Tools // ************************************* /obj/item/reagent_containers/spray/weedspray // -- Skie desc = "It's a toxic mixture, in spray form, to kill small weeds." icon = 'icons/obj/hydroponics/equipment.dmi' name = "weed spray" icon_state = "weedspray" item_state = "plantbgone" volume = 100 container_type = OPENCONTAINER slot_flags = SLOT_BELT throwforce = 0 w_class = WEIGHT_CLASS_SMALL throw_speed = 3 throw_range = 10 list_reagents = list("atrazine" = 100) /obj/item/reagent_containers/spray/weedspray/suicide_act(mob/user) user.visible_message("[user] is huffing the [src.name]! It looks like [user.p_theyre()] trying to commit suicide.") return TOXLOSS /obj/item/reagent_containers/spray/pestspray // -- Skie desc = "It's some pest eliminator spray! Do not inhale!" icon = 'icons/obj/hydroponics/equipment.dmi' name = "pest spray" icon_state = "pestspray" item_state = "plantbgone" volume = 100 container_type = OPENCONTAINER slot_flags = SLOT_BELT throwforce = 0 w_class = WEIGHT_CLASS_SMALL throw_speed = 3 throw_range = 10 list_reagents = list("pestkiller" = 100) /obj/item/reagent_containers/spray/pestspray/suicide_act(mob/user) user.visible_message("[user] is huffing the [src.name]! It looks like [user.p_theyre()] trying to commit suicide.") return TOXLOSS /obj/item/cultivator name = "cultivator" desc = "It's used for removing weeds or scratching your back." icon_state = "cultivator" item_state = "cultivator" origin_tech = "engineering=2;biotech=2" flags = CONDUCT force = 5 throwforce = 7 w_class = WEIGHT_CLASS_SMALL materials = list(MAT_METAL=50) attack_verb = list("slashed", "sliced", "cut", "clawed") hitsound = 'sound/weapons/bladeslice.ogg' /obj/item/cultivator/rake name = "rake" icon_state = "rake" w_class = WEIGHT_CLASS_NORMAL attack_verb = list("slashed", "sliced", "bashed", "clawed") hitsound = null materials = null flags = NONE resistance_flags = FLAMMABLE /obj/item/hatchet name = "hatchet" desc = "A very sharp axe blade upon a short fibremetal handle. It has a long history of chopping things, but now it is used for chopping wood." icon_state = "hatchet" item_state = "hatchet" flags = CONDUCT force = 12 w_class = WEIGHT_CLASS_TINY throwforce = 15 throw_speed = 3 throw_range = 4 materials = list(MAT_METAL = 15000) origin_tech = "materials=2;combat=2" attack_verb = list("chopped", "torn", "cut") hitsound = 'sound/weapons/bladeslice.ogg' sharp = 1 /obj/item/hatchet/suicide_act(mob/user) user.visible_message("[user] is chopping at [user.p_them()]self with the [name]! It looks like [user.p_theyre()] trying to commit suicide.") playsound(loc, 'sound/weapons/bladeslice.ogg', 50, 1, -1) return BRUTELOSS /obj/item/hatchet/unathiknife name = "duelling knife" desc = "A length of leather-bound wood studded with razor-sharp teeth. How crude." icon_state = "unathiknife" attack_verb = list("ripped", "torn", "cut") /obj/item/hatchet/wooden desc = "A crude axe blade upon a short wooden handle." icon_state = "woodhatchet" materials = null flags = NONE /obj/item/scythe icon_state = "scythe0" name = "scythe" desc = "A sharp and curved blade on a long fibremetal handle, this tool makes it easy to reap what you sow." force = 13 throwforce = 5 throw_speed = 2 throw_range = 3 w_class = WEIGHT_CLASS_BULKY flags = CONDUCT armour_penetration = 20 slot_flags = SLOT_BACK origin_tech = "materials=3;combat=2" attack_verb = list("chopped", "sliced", "cut", "reaped") hitsound = 'sound/weapons/bladeslice.ogg' sharp = 1 var/extend = 1 var/swiping = FALSE /obj/item/scythe/suicide_act(mob/user) user.visible_message("[user] is beheading [user.p_them()]self with the [name]! It looks like [user.p_theyre()] trying to commit suicide.") if(ishuman(user)) var/mob/living/carbon/human/H = user var/obj/item/organ/external/affecting = H.get_organ("head") if(affecting) affecting.droplimb(1, DROPLIMB_SHARP) playsound(loc, pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg'), 50, 1, -1) return BRUTELOSS /obj/item/scythe/pre_attackby(atom/A, mob/living/user, params) if(swiping || !istype(A, /obj/structure/spacevine) || get_turf(A) == get_turf(user)) return ..() else var/turf/user_turf = get_turf(user) var/dir_to_target = get_dir(user_turf, get_turf(A)) swiping = TRUE var/static/list/scythe_slash_angles = list(0, 45, 90, -45, -90) for(var/i in scythe_slash_angles) var/turf/T = get_step(user_turf, turn(dir_to_target, i)) for(var/obj/structure/spacevine/V in T) if(user.Adjacent(V)) melee_attack_chain(user, V) swiping = FALSE /obj/item/scythe/tele icon_state = "tscythe0" item_state = null //no sprite for folded version, like a tele-baton name = "telescopic scythe" desc = "A sharp and curved blade on a collapsable fibre metal handle, this tool is the pinnacle of covert reaping technology." force = 3 sharp = 0 w_class = WEIGHT_CLASS_SMALL extend = 0 slot_flags = SLOT_BELT origin_tech = "materials=3;combat=3" attack_verb = list("hit", "poked") hitsound = "swing_hit" /obj/item/scythe/tele/attack_self(mob/user) extend = !extend if(extend) to_chat(user, "With a flick of your wrist, you extend the scythe. It's reaping time!") icon_state = "tscythe1" item_state = "scythe0" //use the normal scythe in-hands slot_flags = SLOT_BACK //won't fit on belt, but can be worn on belt when extended w_class = WEIGHT_CLASS_BULKY //won't fit in backpacks while extended force = 15 //slightly better than normal scythe damage attack_verb = list("chopped", "sliced", "cut", "reaped") hitsound = 'sound/weapons/bladeslice.ogg' //Extend sound (blade unsheath) playsound(src.loc, 'sound/weapons/blade_unsheath.ogg', 50, 1) //Sound credit to Qat of Freesound.org else to_chat(user, "You collapse the scythe, folding it away for easy storage.") icon_state = "tscythe0" item_state = null //no sprite for folded version, like a tele-baton slot_flags = SLOT_BELT //can be worn on belt again, but no longer makes sense to wear on the back w_class = WEIGHT_CLASS_SMALL force = 3 attack_verb = list("hit", "poked") hitsound = "swing_hit" //Collapse sound (blade sheath) playsound(src.loc, 'sound/weapons/blade_sheath.ogg', 50, 1) //Sound credit to Q.K. of Freesound.org sharp = extend if(ishuman(user)) var/mob/living/carbon/human/H = user H.update_inv_l_hand() H.update_inv_r_hand() add_fingerprint(user) if(!blood_DNA) return if(blood_overlay && (blood_DNA.len >= 1)) //updated blood overlay, if any overlays.Cut() //this might delete other item overlays as well but eeeeeh var/icon/I = new /icon(icon, icon_state) I.Blend(new /icon('icons/effects/blood.dmi', rgb(255,255,255)), ICON_ADD) I.Blend(new /icon('icons/effects/blood.dmi', "itemblood"), ICON_MULTIPLY) blood_overlay = I overlays += blood_overlay // ************************************* // Nutrient defines for hydroponics // ************************************* /obj/item/reagent_containers/glass/bottle/nutrient name = "jug of nutrient" desc = "A decent sized plastic jug." icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug" item_state = "plastic_jug" w_class = WEIGHT_CLASS_TINY amount_per_transfer_from_this = 10 possible_transfer_amounts = list(1,2,5,10,20,40,80) container_type = OPENCONTAINER volume = 80 hitsound = 'sound/weapons/jug_empty_impact.ogg' throwhitsound = 'sound/weapons/jug_empty_impact.ogg' force = 0.2 throwforce = 0.2 /obj/item/reagent_containers/glass/bottle/nutrient/New() ..() add_lid() pixel_x = rand(-5, 5) pixel_y = rand(-5, 5) /obj/item/reagent_containers/glass/bottle/nutrient/on_reagent_change() . = ..() update_icon() if(reagents.total_volume) hitsound = 'sound/weapons/jug_filled_impact.ogg' throwhitsound = 'sound/weapons/jug_filled_impact.ogg' else hitsound = 'sound/weapons/jug_empty_impact.ogg' throwhitsound = 'sound/weapons/jug_empty_impact.ogg' /obj/item/reagent_containers/glass/bottle/nutrient/update_icon() cut_overlays() if(reagents.total_volume) var/image/filling = image('icons/obj/reagentfillings.dmi', src, "plastic_jug10") var/percent = round((reagents.total_volume / volume) * 100) switch(percent) if(0 to 10) filling.icon_state = "plastic_jug-10" if(11 to 29) filling.icon_state = "plastic_jug25" if(30 to 45) filling.icon_state = "plastic_jug40" if(46 to 61) filling.icon_state = "plastic_jug55" if(62 to 77) filling.icon_state = "plastic_jug70" if(78 to 92) filling.icon_state = "plastic_jug85" if(93 to INFINITY) filling.icon_state = "plastic_jug100" filling.icon += mix_color_from_reagents(reagents.reagent_list) add_overlay(filling) if(!is_open_container()) add_overlay("lid_jug") /obj/item/reagent_containers/glass/bottle/nutrient/ez name = "jug of E-Z-Nutrient" desc = "Contains a fertilizer that causes mild mutations with each harvest." icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug_ez" list_reagents = list("eznutriment" = 80) /obj/item/reagent_containers/glass/bottle/nutrient/l4z name = "jug of Left 4 Zed" desc = "Contains a fertilizer that limits plant yields to no more than one and causes significant mutations in plants." icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug_l4z" list_reagents = list("left4zednutriment" = 80) /obj/item/reagent_containers/glass/bottle/nutrient/rh name = "jug of Robust Harvest" desc = "Contains a fertilizer that increases the yield of a plant by 30% while causing no mutations." icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug_rh" list_reagents = list("robustharvestnutriment" = 80) /obj/item/reagent_containers/glass/bottle/nutrient/empty icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug" /obj/item/reagent_containers/glass/bottle/nutrient/killer icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug_k" w_class = WEIGHT_CLASS_TINY /obj/item/reagent_containers/glass/bottle/nutrient/killer/New() ..() pixel_x = rand(-5, 5) pixel_y = rand(-5, 5) /obj/item/reagent_containers/glass/bottle/nutrient/killer/weedkiller name = "jug of weed killer" desc = "Contains a herbicide." icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug_wk" list_reagents = list("atrazine" = 80) /obj/item/reagent_containers/glass/bottle/nutrient/killer/pestkiller name = "jug of pest spray" desc = "Contains a pesticide." icon = 'icons/obj/chemical.dmi' icon_state = "plastic_jug_pk" list_reagents = list("pestkiller" = 80)