Skip to content

Commit

Permalink
Add Species Restrictions to Loadout Items (#554)
Browse files Browse the repository at this point in the history
# Description

This is kind of a small PR here, all I'm really doing is adding
species(read: Harpy) restrictions to all items that are invalid for a
Harpy to wear, and then reparenting items that have a skirt but aren't
tagged as such, so that Harpies can wear them. This now makes widespread
actual usage of species restrictions in Loadouts. And also this stops
people complaining that Harpies can buy items that they cannot wear.


![image](https://github.com/user-attachments/assets/d90a3fdc-8b2c-4fa9-938b-bedcfac0dc7b)

Harpies coincidentally now have a blank Shoes tab.


![image](https://github.com/user-attachments/assets/f3585a90-3518-4288-b305-14c1a675c88d)


# Changelog

:cl:
- fix: Harpies can no longer buy Loadout items that are impossible for
them to wear due to having digitigrade legs.
  • Loading branch information
VMSolidus authored Jul 18, 2024
1 parent a2c1687 commit f0c9558
Show file tree
Hide file tree
Showing 10 changed files with 215 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
sprite: DeltaV/Clothing/Uniforms/Jumpsuit/centcom_officer.rsi

- type: entity
parent: ClothingUniformBase
parent: ClothingUniformSkirtBase
id: ClothingUniformJumpsuitKilt
name: kilt
description: A fine bit o' garb for the lad an' lasses.
Expand All @@ -253,4 +253,4 @@
- type: Sprite
sprite: DeltaV/Clothing/Uniforms/Jumpsuit/chemshirtsuit.rsi
- type: Clothing
sprite: DeltaV/Clothing/Uniforms/Jumpsuit/chemshirtsuit.rsi
sprite: DeltaV/Clothing/Uniforms/Jumpsuit/chemshirtsuit.rsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- type: entity
parent: ClothingUniformBase
parent: ClothingUniformSkirtBase
id: UniformShortsRed
name: boxing shorts
description: These are shorts, not boxers.
Expand All @@ -10,7 +10,7 @@
sprite: Clothing/Uniforms/Shorts/Color/red.rsi

- type: entity
parent: ClothingUniformBase
parent: ClothingUniformSkirtBase
id: UniformShortsRedWithTop
name: boxing shorts with top
description: These are shorts, not boxers.
Expand Down
6 changes: 6 additions & 0 deletions Resources/Prototypes/Loadouts/Jobs/engineering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- StationEngineer
Expand Down Expand Up @@ -49,6 +52,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- StationEngineer
Expand Down
27 changes: 27 additions & 0 deletions Resources/Prototypes/Loadouts/Jobs/medical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand All @@ -62,6 +65,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand All @@ -77,6 +83,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand All @@ -92,6 +101,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand All @@ -107,6 +119,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand All @@ -122,6 +137,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand All @@ -137,6 +155,9 @@
cost: 3
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand Down Expand Up @@ -188,6 +209,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Paramedic
Expand Down Expand Up @@ -236,6 +260,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- MedicalDoctor
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/Loadouts/Jobs/science.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Scientist
Expand Down
24 changes: 24 additions & 0 deletions Resources/Prototypes/Loadouts/Jobs/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
cost: 1
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- SecurityOfficer
Expand All @@ -19,6 +22,9 @@
cost: 1
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- SecurityOfficer
Expand Down Expand Up @@ -85,6 +91,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- SecurityOfficer
Expand All @@ -109,6 +118,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Warden
Expand All @@ -121,6 +133,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Warden
Expand Down Expand Up @@ -181,6 +196,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Detective
Expand All @@ -196,6 +214,9 @@
cost: 1
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Detective
Expand Down Expand Up @@ -224,6 +245,9 @@
category: Jobs
cost: 1
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Detective
Expand Down
15 changes: 15 additions & 0 deletions Resources/Prototypes/Loadouts/Jobs/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Lawyer
Expand All @@ -84,6 +87,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Lawyer
Expand All @@ -108,6 +114,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Lawyer
Expand All @@ -132,6 +141,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Lawyer
Expand Down Expand Up @@ -169,6 +181,9 @@
cost: 2
exclusive: true
requirements:
- !type:CharacterSpeciesRequirement
inverted: true
species: Harpy
- !type:CharacterJobRequirement
jobs:
- Reporter
Expand Down
Loading

0 comments on commit f0c9558

Please sign in to comment.