weedkiller fix

This commit is contained in:
Fox-McCloud
2017-01-28 03:10:54 -05:00
parent 80587202fe
commit a69b3f3673
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -19,7 +19,7 @@
icon = 'icons/obj/hydroponics/equipment.dmi'
name = "weed spray"
icon_state = "weedspray"
item_state = "spray"
item_state = "plantbgone"
volume = 100
flags = OPENCONTAINER
slot_flags = SLOT_BELT
@@ -30,7 +30,7 @@
/obj/item/weapon/reagent_containers/spray/weedspray/New()
..()
reagents.add_reagent("weedkiller", 100)
reagents.add_reagent("atrazine", 100)
/obj/item/weapon/reagent_containers/spray/weedspray/suicide_act(mob/user)
user.visible_message("<span class='suicide'>[user] is huffing the [src.name]! It looks like \he's trying to commit suicide.</span>")
@@ -202,7 +202,7 @@
/obj/item/weapon/reagent_containers/glass/bottle/killer/weedkiller/New()
..()
reagents.add_reagent("weedkiller", 50)
reagents.add_reagent("atrazine", 50)
/obj/item/weapon/reagent_containers/glass/bottle/killer/pestkiller
name = "bottle of pest spray"
+2 -2
View File
@@ -612,8 +612,8 @@
adjustWeeds(-rand(5,9))
//Weed Spray
if(S.has_reagent("weedkiller", 1))
adjustToxic(round(S.get_reagent_amount("weedkiller") * 0.5))
if(S.has_reagent("atrazine", 1))
adjustToxic(round(S.get_reagent_amount("atrazine") * 0.5))
//old toxicity was 4, each spray is default 10 (minimal of 5) so 5 and 2.5 are the new ammounts
adjustWeeds(-rand(1,2))