Skip to content

Commit

Permalink
Entity YAML Cleanup (new-frontiers-14#2267)
Browse files Browse the repository at this point in the history
* Entity YAML fixes

* Fix CardHandParent ID/parent
  • Loading branch information
whatston3 authored Oct 17, 2024
1 parent ec82fa4 commit 9cb617a
Show file tree
Hide file tree
Showing 16 changed files with 73 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@

- type: entity
id: MedicalTechFab
parent: [ BaseLatheLube, BlueprintReceiverBase ] # Frontier: added BlueprintReceiverBase
parent: [ BlueprintReceiverBase, BaseLatheLube ] # Frontier: added BlueprintReceiverBase
name: medical techfab
description: Prints equipment for use by the medbay.
components:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: WiresPanel
open: false
- type: Physics # Frontier
canCollide: false # Frontier

- type: entity
id: BaseIntercomSecure
Expand Down
25 changes: 20 additions & 5 deletions Resources/Prototypes/EstacaoPirata/Entities/Objects/Misc/cards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,28 @@
- type: StaticPrice # Frontier
price: 200 # Frontier

# Frontier: base stack for card stack component
- type: entity
parent: BaseItem
id: CardStackBase
name: stack of cards
abstract: true
components:
- type: Item
size: Small
- type: CardStack
- type: ContainerContainer # Frontier
containers: # Frontier
cardstack-container: !type:Container # Frontier
# End Frontier

- type: entity
parent: CardStackBase
id: CardHandBase
categories: [ HideSpawnMenu ]
name: hand of cards
components:
- type: Item
size: Small
- type: CardHand
- type: CardStack
- type: Sprite
sprite: EstacaoPirata/Objects/Misc/cards.rsi
state: singlecard_down_black
Expand All @@ -54,7 +66,7 @@
price: 0.01 # Frontier

- type: entity
parent: BaseItem
parent: CardStackBase
id: CardDeckBase
categories: [ HideSpawnMenu ]
name: deck of cards
Expand All @@ -65,7 +77,6 @@
- type: Item
size: Normal
- type: CardDeck
- type: CardStack


- type: entity
Expand Down Expand Up @@ -184,6 +195,8 @@
- type: StaticPrice # Frontier
price: 0.01 # Frontier

# region Black Cards

- type: entity
parent: CardBase
categories: [ HideSpawnMenu ]
Expand Down Expand Up @@ -771,3 +784,5 @@
- type: Sprite
sprite: EstacaoPirata/Objects/Misc/cards.rsi
state: black_joker

# endregion Black Deck
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- type: entity
parent: [ BaseLatheLube, BlueprintReceiverBase ] # Frontier: Protolathe<BaseLatheLube, added BlueprintReceiverBase
parent: [ BlueprintReceiverBase, BaseLatheLube ] # Frontier: Protolathe<BaseLatheLube, added BlueprintReceiverBase
id: ScienceTechFab
name: science techfab
description: Prints equipment for use by the epistemics department.
Expand Down Expand Up @@ -109,7 +109,7 @@
- Ingot

- type: entity
parent: [ BaseLatheLube, BlueprintReceiverBase ] # Frontier: Protolathe<BaseLatheLube, added BlueprintReceiverBase
parent: [ BlueprintReceiverBase, BaseLatheLube ] # Frontier: Protolathe<BaseLatheLube, added BlueprintReceiverBase
id: ServiceTechFab
name: service techfab
description: Prints equipment for service staff.
Expand Down Expand Up @@ -268,7 +268,7 @@
- Ingot

- type: entity
parent: [ BaseLatheLube, BlueprintReceiverBase ] # Frontier: Protolathe<BaseLatheLube, added BlueprintReceiverBase
parent: [ BlueprintReceiverBase, BaseLatheLube ] # Frontier: Protolathe<BaseLatheLube, added BlueprintReceiverBase
id: EngineeringTechFab
name: engineering techfab
description: Prints equipment for engineers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
parent:
- ClosetWallOrange
- BaseStructureWallmount
- WardrobePrisonFilled
- WardrobePrisonFilled
components:
- type: ContainerContainer
containers:
entity_storage: !type:Container
paper_label: !type:ContainerSlot
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
slot: head
- type: ContainerContainer
containers:
toggleable-clothing: !type:ContainerSlot {}
toggleable-clothing: !type:ContainerSlot
storagebase: !type:Container
- type: StaticPrice
price: 65
- type: Construction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
- type: MultiHandedItem
- type: ItemSlots
- type: ContainerContainer
containers:
paper_label: !type:ContainerSlot

- type: entity
parent: DrinkKegBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
- type: Construction
graph: Coffee
node: dark roasted coffee
defaultTarget: Null # Overwriting light target

- type: reagent
id: OilVegetable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
- type: ContainerContainer
containers:
storagebase: !type:Container
ents: []
ashes_slot: !type:ContainerSlot {}
ashes_slot: !type:ContainerSlot
paper_label: !type:ContainerSlot
- type: Appearance
- type: GenericVisualizer
visuals:
Expand Down
16 changes: 4 additions & 12 deletions Resources/Prototypes/_NF/Entities/Objects/Tools/welders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
- type: SolutionContainerManager
solutions:
Welder:
reagents:
- ReagentId: WeldingFuel
Quantity: 0
reagents: []
maxVol: 100

- type: entity
Expand All @@ -19,9 +17,7 @@
- type: SolutionContainerManager
solutions:
Welder:
reagents:
- ReagentId: WeldingFuel
Quantity: 0
reagents: []
maxVol: 250

- type: entity
Expand All @@ -32,9 +28,7 @@
- type: SolutionContainerManager
solutions:
Welder:
reagents:
- ReagentId: WeldingFuel
Quantity: 0
reagents: []
maxVol: 250

- type: entity
Expand All @@ -45,7 +39,5 @@
- type: SolutionContainerManager
solutions:
Welder:
reagents:
- ReagentId: WeldingFuel
Quantity: 0
reagents: []
maxVol: 1000
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
components:
- type: ItemPlacer
whitelist:
# Should match crates.
requireAll: true
components:
- CrateGenericSteel
- EntityStorage
- PaperLabel
- ContainerContainer
- type: CrateMachine
- type: Sprite
sprite: _NF/Structures/Machines/crate_machine.rsi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
- PrizeTicket

- type: entity
parent: [ BaseLatheLube, BlueprintReceiverBase ]
parent: [ BlueprintReceiverBase, BaseLatheLube ]
id: SalvageTechfabNF
name: salvage techfab
description: Prints equipment for salvagers.
Expand Down Expand Up @@ -310,7 +310,7 @@

- type: entity
id: MercenaryTechFab
parent: [ BaseLatheLube, BlueprintReceiverBase ]
parent: [ BlueprintReceiverBase, BaseLatheLube ]
name: mercenary techfab
description: Prints the bare minimum of tools of the trade that any budget mercenary or private security could need. Nothing fancy.
components:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@
interfaces:
enum.MicrowaveUiKey.MedicalAssemblerKey:
type: AssemblerBoundUserInterface
- type: ContainerContainer # Redefined due to inheritance order
containers:
microwave_entity_container: !type:Container
machine_board: !type:Container
machine_parts: !type:Container

# POI versions of microwave machines

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
acts: ["Destruction"]
- type: Machine
board: ThrusterSecurityMachineCircuitboard
- type: ContainerContainer
containers:
machine_board: !type:Container # FIXME: Why do these need to be defined here? What's missing?
machine_parts: !type:Container

- type: entity
id: GyroscopeSecurity
Expand All @@ -56,6 +60,10 @@
sprite: _NF/Structures/Shuttles/gyroscope.rsi
- type: Machine
board: GyroscopeSecurityMachineCircuitboard
- type: ContainerContainer
containers:
machine_board: !type:Container # FIXME: Why do these need to be defined here? What's missing?
machine_parts: !type:Container

- type: entity
id: SmallGyroscopeSecurity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
decal2:
True: { visible: false }
False: { visible: true }
- type: ContainerContainer
containers:
entity_storage: !type:Container
paper_label: !type:ContainerSlot # Defined for any locker inheriting a physical one.

# Fuel / materials storage
- type: entity
Expand Down Expand Up @@ -181,7 +185,7 @@
# Other: Chemistry wall locker
- type: entity
id: LockerWallChemistry
parent: [LockerWallMedical, BaseStructureWallmount]
parent: [BaseStructureWallmount, LockerWallMedical]
name: chemistry wall locker
components:
- type: Sprite
Expand Down
10 changes: 5 additions & 5 deletions Resources/Prototypes/_NF/Entities/Structures/atm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
singleUser: true
- type: Computer
board: Null
- type: ItemSlots # TODO: move ItemSlot to be nullable, withdraw shouldn't have one at all
- type: ContainerContainer
containers:
board: !type:Container
bank-ATM-cashSlot: !type:ContainerSlot

- type: entity
name: bank ATM
Expand All @@ -32,11 +37,6 @@
interfaces:
enum.BankATMMenuUiKey.ATM:
type: BankATMMenuBoundUserInterface
- type: ItemSlots
- type: ContainerContainer
containers:
board: !type:Container
bank-ATM-cashSlot: !type:ContainerSlot

- type: entity
name: withdraw-only bank ATM
Expand Down

0 comments on commit 9cb617a

Please sign in to comment.