Skip to content

Commit 4b6f191

Browse files
Fix Gun Migration (#5003)
## Short description #4934 forgot to migrate the bundle, and it's used on some event maps, so this broke some maps. I migrated it to a new bundle, containing an estoc and china lake. It was also missing # Starlight comments, and deleted Wizden files, so I added the comments and restored the deleted files. ## Why we need to add this Event maps need to be able to load, and deleting wizden files is bad. ## Checks - [X] I do not require assistance to complete the PR. - [X] Before posting/requesting review of a PR, I have verified that the changes work. - [X] I have added screenshots/videos of the changes, or this PR does not change in-game mechanics. - [X] I affirm that my changes are licensed under the [MIT License](https://github.com/ss14Starlight/space-station-14/blob/Starlight/LICENSE.TXT) and grant permission for use in this repository under its conditions. Literally nothing player facing outside of events so I don't think we need a CL here. --------- Co-authored-by: Red Mushie <82113471+redmushie@users.noreply.github.com>
1 parent bf608aa commit 4b6f191

17 files changed

Lines changed: 156 additions & 8 deletions

File tree

Resources/Prototypes/Catalog/Fills/Backpacks/duffelbag.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,26 @@
146146
- id: MagazineGrenadeBlast #SL
147147
- id: MagazineGrenadeFrag #SL
148148

149+
#- type: entity # Starlight start, we don't use the M90 since it doesn't actually work
150+
# parent: ClothingBackpackDuffelSyndicateBundle
151+
# id: ClothingBackpackDuffelSyndicateFilledCarbine
152+
# name: M-90gl bundle
153+
# description: "A versatile battle rifle with an attached grenade launcher, bundled with 3 magazines and 6 grenades of various capabilities."
154+
# components:
155+
# - type: EntityTableContainerFill
156+
# containers:
157+
# storagebase: !type:AllSelector
158+
# children:
159+
# - id: WeaponRifleM90GrenadeLauncher
160+
# - id: MagazineRifleFMJ
161+
# amount: 2
162+
# - id: GrenadeBlast
163+
# amount: 2
164+
# - id: GrenadeFlash
165+
# amount: 2
166+
# - id: GrenadeFrag
167+
# amount: 2 # Starlight end
168+
149169
- type: entity
150170
parent: ClothingBackpackDuffelSyndicateAmmo
151171
id: ClothingBackpackDuffelSyndicateAmmoFilled

Resources/Prototypes/Entities/Objects/Weapons/Guns/Rifles/rifles.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,50 @@
130130
zeroVisible: true
131131
- type: Appearance
132132

133+
#- type: entity # Starlight start, weapon replaced with the Lawbringer
134+
# name: M90 GL
135+
# parent: [BaseWeaponRifle, BaseSyndicateContraband]
136+
# id: WeaponRifleM90GrenadeLauncher
137+
# description: "An older bullpup carbine model, with an attached underbarrel grenade launcher.\nFeeds from .20 rifle magazines."
138+
# components:
139+
# - type: Sprite
140+
# sprite: Objects/Weapons/Guns/Rifles/carbine.rsi
141+
# layers:
142+
# - state: base
143+
# map: [ "enum.GunVisualLayers.Base" ]
144+
# - state: mag-0
145+
# map: [ "enum.GunVisualLayers.Mag" ]
146+
# - type: Clothing
147+
# sprite: Objects/Weapons/Guns/Rifles/carbine.rsi
148+
# - type: ItemSlots
149+
# slots:
150+
# gun_magazine:
151+
# name: Magazine
152+
# startingItem: MagazineRifleFMJ
153+
# insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
154+
# ejectSound: /Audio/Weapons/Guns/MagOut/batrifle_magout.ogg
155+
# priority: 2
156+
# whitelist:
157+
# tags:
158+
# - MagazineRifle
159+
# whitelistFailPopup: gun-magazine-whitelist-fail
160+
# gun_chamber:
161+
# name: Chamber
162+
# priority: 1
163+
# whitelist:
164+
# tags:
165+
# - CartridgeRifle
166+
# - type: ContainerContainer
167+
# containers:
168+
# gun_magazine: !type:ContainerSlot ""
169+
# gun_chamber: !type:ContainerSlot ""
170+
# firing_pin: !type:Container # starlight
171+
# - type: MagazineVisuals
172+
# magState: mag
173+
# steps: 1
174+
# zeroVisible: true
175+
# - type: Appearance # Starlight end
176+
133177
- type: entity
134178
name: Lecter
135179
parent: [ BaseWeaponRifle, BaseSecurityContraband ]

Resources/Prototypes/Magic/event_spells.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
orGroup: Guns
5353
- id: WeaponRifleAk
5454
orGroup: Guns
55-
- id: WeaponRifleLawbringer
55+
- id: WeaponRifleLawbringer # Starlight WeaponRifleM90GrenadeLauncher -> WeaponRifleLawbringer
5656
orGroup: Guns
5757
- id: WeaponRifleLecter
5858
orGroup: Guns

Resources/Prototypes/_Starlight/Catalog/Fills/Backpacks/duffelbag.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,23 @@
139139
- id: ClothingHeadsetChameleon
140140
- id: ClothingShoesChameleon
141141
- id: ClothingMiscChameleon
142+
143+
- type: entity
144+
parent: ClothingBackpackDuffelSyndicateBundleDeluxe
145+
id: ClothingBackpackDuffelSyndicateFilledRifleGrenade
146+
name: firepower support bundle
147+
suffix: Estoc, China Lake
148+
description: "A marksman rifle and a grenade launcher, bundled with 4 magazines and 9 grenades of various capabilities."
149+
components:
150+
- type: EntityTableContainerFill
151+
containers:
152+
storagebase: !type:AllSelector
153+
children:
154+
- id: WeaponLauncherChinaLake
155+
- id: GrenadeFlash
156+
amount: 3
157+
- id: GrenadeBlast
158+
amount: 3
159+
- id: WeaponRifleEstoc
160+
- id: MagazineRifleFMJ
161+
amount: 3

Resources/Prototypes/_Starlight/Entities/Clothing/Back/duffel.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,25 @@
9696
grid:
9797
- 0,0,19,19
9898
- type: ReadOnlyStorage
99+
100+
- type: entity
101+
parent: [ClothingBackpackDuffel, BaseMinorContraband]
102+
id: ClothingBackpackDuffelSyndicateDeluxe
103+
name: deluxe syndicate duffel bag
104+
description: A huge duffel bag for holding an obscene amount of Syndicate goods.
105+
components:
106+
- type: Sprite
107+
sprite: Clothing/Back/Duffels/syndicate.rsi
108+
- type: ExplosionResistance
109+
damageCoefficient: 0.1
110+
- type: Storage
111+
grid:
112+
- 0,0,9,5
113+
114+
- type: entity
115+
parent: [ ClothingBackpackDuffelSyndicateDeluxe, BaseMinorContraband ]
116+
id: ClothingBackpackDuffelSyndicateBundleDeluxe
117+
abstract: true
118+
components:
119+
- type: Tag
120+
tags: [] # ignore "WhitelistChameleon" tag

Resources/Prototypes/_Starlight/Entities/Objects/Weapons/Guns/Rifles/rifles.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
name: M18-Militant
439439
parent: [BaseWeaponRifle, BaseSalvageContraband]
440440
id: WeaponRifleM18
441-
description: Aged yet dependable, this old-world assault rifle is chambered in .20 rifle ammunition. Renowned for its reliability and ease of maintenance even in the harshest environments, it remains a staple among your stations merce- salvage forces.
441+
description: Aged yet dependable, this old-world assault rifle is chambered in .20 rifle ammunition. Renowned for its reliability and ease of maintenance even in the harshest environments, it remains a staple among your station's merce- salvage forces.
442442
components:
443443
- type: Sprite
444444
sprite: _Starlight/Objects/Weapons/Guns/Rifles/m16.rsi
@@ -563,7 +563,7 @@
563563
name: Lawbringer
564564
parent: [BaseWeaponRifle, BaseSecurityContraband]
565565
id: WeaponRifleLawbringer
566-
description: "A bullpup carbine of modern design, commissioned by CentCom for their security forces.\nFeeds from .30 rifle magazines."
566+
description: "A bullpup carbine of modern design, commissioned by CentComm for their security forces.\nFeeds from .30 rifle magazines."
567567
components:
568568
- type: Sprite
569569
sprite: _Starlight/Objects/Weapons/Guns/Rifles/lawbringer.rsi
@@ -598,7 +598,7 @@
598598
containers:
599599
gun_magazine: !type:ContainerSlot ""
600600
gun_chamber: !type:ContainerSlot ""
601-
firing_pin: !type:Container # starlight
601+
firing_pin: !type:Container
602602
- type: MagazineVisuals
603603
magState: mag
604604
steps: 1

Resources/Prototypes/tags.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@
876876
id: MagazineGrenade # ShuttleGunDuster
877877

878878
- type: Tag
879-
id: MagazineLightRifle # WeaponRifleAk, WeaponRifleLawbringer
879+
id: MagazineLightRifle # WeaponRifleAk, # Starlight - WeaponRifleLawbringer
880880

881881
- type: Tag
882882
id: MagazineLightRifleBox # WeaponLightMachineGunL6
@@ -900,7 +900,7 @@
900900
id: MagazinePistolSubMachineGunTopMounted # WeaponSubMachineGunWt550
901901

902902
- type: Tag
903-
id: MagazineRifle # WeaponRifleLecter, WeaponRifleEstoc
903+
id: MagazineRifle # WeaponRifleLecter, WeaponRifleEstoc, # Starlight - Removed WeaponRifleM90GrenadeLauncher
904904

905905
- type: Tag
906906
id: MagazineShotgun # WeaponShotgunBulldog
357 Bytes
Loading
356 Bytes
Loading
1.01 KB
Loading

0 commit comments

Comments
 (0)