Skip to content

Commit bc609b8

Browse files
authored
Adjust Belt Storage (#1870)
* belt rework * Remove unnecessary tags * Add whitelist to first aid kits * Adjust medkit whitelist * Add bottle-tagged items to medkit whitelist * Grenade tag already exists pro * tj is an idiot * b&t debug wtaf are you yappin about * Give belts another parent, ClothingSlotBase * contain uncontained containers * tj dumb fuck
1 parent 78a80ee commit bc609b8

File tree

18 files changed

+222
-56
lines changed

18 files changed

+222
-56
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Add sidearm and medkit slots to security belts + webbing, medical webbing respectively
2+
clothing-belt-sidearm = Sidearm
3+
clothing-belt-medkit = Medkit
4+
5+
# Add slots to the daishou
6+
clothing-belt-katana = Katana
7+
clothing-belt-wakizashi = Wakizashi

Resources/Prototypes/DeltaV/Catalog/Fills/Items/Belts/belts.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
parent: ClothingBeltKatanaSheath
44
suffix: Filled
55
components:
6-
- type: StorageFill
7-
contents:
8-
- id: Wakizashi
9-
- id: Katana
6+
- type: ContainerFill
7+
containers:
8+
katanaslot:
9+
- Katana
10+
wakizashislot:
11+
- Wakizashi
1012

1113
- type: entity
1214
id: ClothingBeltCorpsmanWebbingFilled

Resources/Prototypes/DeltaV/Entities/Clothing/Belt/belts.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
- type: Appearance
4040

4141
- type: entity
42-
parent: ClothingBeltStorageBase
42+
parent: [ClothingBeltStorageBase, ClothingSlotBase]
4343
id: ClothingBeltCorpsmanWebbing
4444
name: corpsman webbing
4545
description: A set of security webbing with blue corpsman highlights.
@@ -48,7 +48,28 @@
4848
sprite: DeltaV/Clothing/Belt/corpsman.rsi
4949
- type: Clothing
5050
sprite: DeltaV/Clothing/Belt/corpsman.rsi
51+
- type: ItemSlots # add medkit slot
52+
slots:
53+
medkit:
54+
name: clothing-belt-medkit
55+
whitelist:
56+
tags:
57+
- Medkit
58+
insertOnInteract: false # or you can't easily stow medkits in your rig.
5159
- type: Storage
5260
grid:
5361
- 0,0,2,1
5462
- 4,0,7,1
63+
- type: ItemMapper # add stowed medkit sprite
64+
mapLayers:
65+
medkit:
66+
whitelist:
67+
tags:
68+
- Medkit
69+
sprite: DeltaV/Clothing/Belt/belt_overlay.rsi
70+
- type: ContainerContainer
71+
containers:
72+
storagebase: !type:Container
73+
ents: []
74+
medkit: !type:ContainerSlot {}
75+
- type: Appearance

Resources/Prototypes/DeltaV/tags.yml

+30-27
Original file line numberDiff line numberDiff line change
@@ -7,85 +7,88 @@
77
id: BeltSlotNotBelt #not a 'belt'
88

99
- type: Tag
10-
id: BulletBB
10+
id: BionicSyrinxImplant
1111

1212
- type: Tag
13-
id: CartridgeSpecial # For the .38 special ammo and revolver
13+
id: BorgModuleSecurity
1414

1515
- type: Tag
16-
id: CartridgeMusket #For the Craftable Musket
16+
id: BorgSecurityArmour
1717

1818
- type: Tag
19-
id: Directional
19+
id: BorgSecurityHead
2020

2121
- type: Tag
22-
id: DockShipyard
22+
id: BorgSecurityLArm
2323

2424
- type: Tag
25-
id: ForensicBeltEquip
25+
id: BorgSecurityLLeg
2626

2727
- type: Tag
28-
id: Gavel
28+
id: BorgSecurityRArm
2929

3030
- type: Tag
31-
id: GasPipeHalf #Craftable Musket
31+
id: BorgSecurityRLeg
3232

3333
- type: Tag
34-
id: HandLabeler
34+
id: BorgSecurityTorso
3535

3636
- type: Tag
37-
id: HidesHarpyWings
37+
id: BulletBB
3838

3939
- type: Tag
40-
id: MagazinePistolSpecial # For the .38 special ammo and pistol
40+
id: CartridgeSpecial # For the .38 special ammo and revolver
4141

4242
- type: Tag
43-
id: ModularBreech #Craftable Musket
43+
id: CartridgeMusket #For the Craftable Musket
4444

4545
- type: Tag
46-
id: ModularTrigger #Craftable Musket
46+
id: Directional
4747

4848
- type: Tag
49-
id: SecDogWearable # allows Laika to wear meson goggles (and more later?)
49+
id: DockShipyard
5050

5151
- type: Tag
52-
id: SpeedLoaderSpecial
52+
id: ForensicBeltEquip
5353

5454
- type: Tag
55-
id: PreventLabel
55+
id: Gavel
5656

5757
- type: Tag
58-
id: BionicSyrinxImplant
58+
id: GasPipeHalf #Craftable Musket
5959

6060
- type: Tag
61-
id: PaperSlip
61+
id: HandLabeler
62+
63+
- type: Tag
64+
id: HidesHarpyWings
6265

6366
- type: Tag
6467
id: HudMedicalSecurity #Craftable Corpsman Glasses
6568

6669
- type: Tag
67-
id: BorgModuleSecurity
70+
id: MagazinePistolSpecial # For the .38 special ammo and pistol
6871

6972
- type: Tag
70-
id: BorgSecurityHead
73+
id: ModularBreech #Craftable Musket
7174

7275
- type: Tag
73-
id: BorgSecurityTorso
76+
id: ModularTrigger #Craftable Musket
7477

7578
- type: Tag
76-
id: BorgSecurityRLeg
79+
id: PaperSlip
7780

7881
- type: Tag
79-
id: BorgSecurityLLeg
82+
id: PreventLabel
8083

8184
- type: Tag
82-
id: BorgSecurityRArm
85+
id: SecDogWearable # allows Laika to wear meson goggles (and more later?)
8386

8487
- type: Tag
85-
id: BorgSecurityLArm
88+
id: Skirt
8689

8790
- type: Tag
88-
id: Skirt
91+
id: SpeedLoaderSpecial
8992

9093
- type: Tag
91-
id: BorgSecurityArmour
94+
id: Wakizashi

Resources/Prototypes/Entities/Clothing/Belt/belts.yml

+46-12
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@
456456
- type: Appearance
457457

458458
- type: entity
459-
parent: [ClothingBeltStorageBase, BaseRestrictedContraband]
459+
parent: [ClothingBeltStorageBase, BaseRestrictedContraband, ClothingSlotBase] # DeltaV - add parent ClothingSlotBase
460460
id: ClothingBeltSecurity
461461
name: security belt
462462
description: Can hold security gear like handcuffs and flashes.
@@ -465,6 +465,14 @@
465465
sprite: DeltaV/Clothing/Belt/security.rsi # DeltaV - resprite
466466
- type: Clothing
467467
sprite: DeltaV/Clothing/Belt/security.rsi # DeltaV - resprite
468+
- type: ItemSlots # DeltaV - add sidearm slot
469+
slots:
470+
holster:
471+
name: clothing-belt-sidearm
472+
whitelist:
473+
tags:
474+
- Sidearm
475+
insertOnInteract: false
468476
- type: Storage
469477
whitelist:
470478
tags:
@@ -489,21 +497,26 @@
489497
- Whistle
490498
- HolosignProjector
491499
- BalloonPopper
492-
- type: ItemMapper
500+
- type: ItemMapper # DeltaV - adjust for DeltaV sprites.
493501
mapLayers:
494-
flashbang:
495-
whitelist:
496-
components:
497-
- FlashOnTrigger
498-
stunbaton:
502+
baton:
499503
whitelist:
500504
components:
501505
- Stunbaton
502-
tear_gas_grenade:
506+
gasgrenade:
503507
whitelist:
504-
components:
505-
- SmokeOnTrigger
506-
sprite: Clothing/Belt/belt_overlay.rsi
508+
tags:
509+
- Grenade
510+
slp:
511+
whitelist:
512+
tags:
513+
- Sidearm
514+
sprite: DeltaV/Clothing/Belt/belt_overlay.rsi
515+
- type: ContainerContainer
516+
containers:
517+
storagebase: !type:Container
518+
ents: []
519+
holster: !type:ContainerSlot {}
507520
- type: Appearance
508521

509522
- type: entity
@@ -610,7 +623,7 @@
610623
- CartridgeAmmo
611624

612625
- type: entity
613-
parent: ClothingBeltStorageBase
626+
parent: [ClothingBeltStorageBase, ClothingSlotBase] # DeltaV - add parent ClothingSlotBase
614627
id: ClothingBeltSecurityWebbing
615628
name: security chest rig # DeltaV - rename from "security carrier" due to already existing plate carrier
616629
description: Unique and versatile chest rig, can hold security gear.
@@ -619,10 +632,31 @@
619632
sprite: DeltaV/Clothing/Belt/securitywebbing.rsi # DeltaV - resprite
620633
- type: Clothing
621634
sprite: DeltaV/Clothing/Belt/securitywebbing.rsi # DeltaV - resprite
635+
- type: ItemSlots # DeltaV - add sidearm slot
636+
slots:
637+
holster:
638+
name: clothing-belt-sidearm
639+
whitelist:
640+
tags:
641+
- Sidearm
642+
insertOnInteract: false
622643
- type: Storage # Delta-V - Split Inventory
623644
grid:
624645
- 0,0,2,1
625646
- 4,0,7,1
647+
- type: ItemMapper # DeltaV - add holstered sidearm sprite
648+
mapLayers:
649+
slp:
650+
whitelist:
651+
tags:
652+
- Sidearm
653+
sprite: DeltaV/Clothing/Belt/belt_overlay.rsi
654+
- type: ContainerContainer
655+
containers:
656+
storagebase: !type:Container
657+
ents: []
658+
holster: !type:ContainerSlot {}
659+
- type: Appearance # DeltaV
626660

627661
- type: entity
628662
parent: [ ClothingBeltStorageBase, BaseSecurityCargoContraband ]

Resources/Prototypes/Entities/Objects/Specific/Medical/medkits.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,20 @@
77
- type: Sprite
88
sprite: Objects/Specific/Medical/firstaidkits.rsi
99
state: firstaid
10-
- type: Storage
10+
- type: Storage # DeltaV - add whitelist to first aid kits
11+
whitelist:
12+
tags:
13+
- Bloodpack
14+
- Bottle
15+
- Brutepack
16+
- Gauze
17+
- GasTank
18+
- Ointment
19+
- PillCanister
20+
- Syringe
21+
components:
22+
- BreathMask
23+
- Hypospray
1124
maxItemSize: Small
1225
grid:
1326
- 0,0,3,1

Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
enum.ConstructionVisuals.Layer:
3636
Primed: { state: primed }
3737
Unprimed: { state: icon }
38+
- type: Tag # DeltaV - assign grenade tag to all grenades
39+
tags:
40+
- Grenade
3841

3942
- type: entity
4043
name: explosive grenade

0 commit comments

Comments
 (0)