Skip to content

Commit

Permalink
I FUCKED UP I FUCKED UP I FUCKED UP
Browse files Browse the repository at this point in the history
Accidental double ComponentInitialize(), I was way too hasty with my copy and pasting.

I can't make it parent the parent proc as the can_hold list is static, and I really don't wanna retype the western bandolier as it is a bandolier subtype. Might make something later that makes a generic bandolier the parent that just holds ammo.
  • Loading branch information
VickiMorris committed Jan 5, 2024
1 parent 5e9777d commit 90d74f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/game/objects/items/storage/belt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -706,15 +706,14 @@
name = "sheriff's bandolier"
desc = "A bandolier that has been retrofitted for .38 cartridges"

/obj/item/storage/belt/bandolier/ComponentInitialize()
/obj/item/storage/belt/bandolier/western/ComponentInitialize()
. = ..()
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
STR.max_items = 21
STR.display_numerical_stacking = TRUE
var/static/list/can_hold = typecacheof(list(
var/static/list/can_western_hold = typecacheof(list(
/obj/item/ammo_casing/c38
))
STR.can_hold = can_hold
STR.can_hold = can_western_hold

/obj/item/storage/belt/bandolier/western/filled/PopulateContents()
for(var/i in 1 to 21)
Expand Down

0 comments on commit 90d74f3

Please sign in to comment.