Merge pull request #45 from shellspeed1/botany-belt-redo

Adds a botany toolbelt craftable with 4 leather.
This commit is contained in:
quotefox
2019-10-25 17:07:43 +01:00
committed by GitHub
2 changed files with 26 additions and 1 deletions
@@ -155,6 +155,7 @@ GLOBAL_LIST_INIT(leather_recipes, list ( \
new/datum/stack_recipe("wallet", /obj/item/storage/wallet, 1), \
new/datum/stack_recipe("muzzle", /obj/item/clothing/mask/muzzle, 2), \
new/datum/stack_recipe("botany gloves", /obj/item/clothing/gloves/botanic_leather, 3), \
new/datum/stack_recipe("botany belt", /obj/item/storage/belt/botany, 4), \
new/datum/stack_recipe("toolbelt", /obj/item/storage/belt/utility, 4), \
new/datum/stack_recipe("leather satchel", /obj/item/storage/backpack/satchel/leather, 5), \
new/datum/stack_recipe("bandolier", /obj/item/storage/belt/bandolier, 5), \
+25 -1
View File
@@ -599,7 +599,7 @@
icon_state = "bandolier-durathread"
item_state = "bandolier-durathread"
resistance_flags = FIRE_PROOF
/obj/item/storage/belt/bandolier/durathread/ComponentInitialize()
. = ..()
GET_COMPONENT(STR, /datum/component/storage)
@@ -776,3 +776,27 @@
if(attack_type == PROJECTILE_ATTACK)
final_block_chance = 0 //To thin to block bullets
return ..()
/obj/item/storage/belt/botany
name = "botany belt"
desc = "A belt used to hold most janitorial supplies."
icon_state = "grenadebeltold" //reusing the old grenade belt sprite, can't go wrong.
item_state = "grenadebeltold"
/obj/item/storage/belt/botany/ComponentInitialize()
. = ..()
GET_COMPONENT(STR, /datum/component/storage)
STR.max_items = 8
STR.max_w_class = WEIGHT_CLASS_NORMAL
STR.can_hold = typecacheof(list(
/obj/item/reagent_containers/glass/beaker,
/obj/item/reagent_containers/glass/bottle,
/obj/item/reagent_containers/syringe,
/obj/item/reagent_containers/spray,
/obj/item/disk/plantgene,
/obj/item/seeds,
/obj/item/shovel/spade,
/obj/item/cultivator,
/obj/item/hatchet,
/obj/item/plant_analyzer
))