Skip to content

Commit

Permalink
component init, salvage mob restrictions checks
Browse files Browse the repository at this point in the history
  • Loading branch information
whatston3 committed Oct 16, 2024
1 parent 9b1e017 commit 8ec6c69
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 43 deletions.
4 changes: 4 additions & 0 deletions Content.Server/_NF/Salvage/SalvageMobRestrictionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ private void OnRemoveGrid(EntityUid uid, SalvageMobRestrictionsGridComponent com
{
foreach (EntityUid target in component.MobsToKill)
{
// Don't destroy yourself, don't destroy things being destroyed.
if (uid == target || MetaData(target).EntityLifeStage >= EntityLifeStage.Terminating)
continue;

if (TryComp(target, out BodyComponent? body))
{
// Creates a pool of blood on death, but remove the organs.
Expand Down
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
28 changes: 20 additions & 8 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:
- 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 # Frontier: BaseItem<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 # Frontier: BaseItem<CardStackBase
id: CardDeckBase
categories: [ HideSpawnMenu ]
name: deck of cards
Expand All @@ -65,16 +77,12 @@
- type: Item
size: Normal
- type: CardDeck
- type: CardStack


- type: entity
parent: CardBoxBase
id: CardBoxBlack
name: black deck box
components:
- type: Item
size: Small
- type: Sprite
sprite: EstacaoPirata/Objects/Misc/cards.rsi
state: box
Expand Down Expand Up @@ -185,6 +193,8 @@
- type: StaticPrice # Frontier
price: 0.01 # Frontier

# region Black Deck

- type: entity
parent: CardBase
categories: [ HideSpawnMenu ]
Expand Down Expand Up @@ -772,3 +782,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 @@ -107,25 +107,9 @@
- Sheet
- RawMaterial
- Ingot
# Frontier
- type: ContainerContainer
containers:
machine_board: !type:Container
showEnts: False
occludes: True
ents: []
machine_parts: !type:Container
showEnts: False
occludes: True
ents: []
blueprint: !type:Container
showEnts: False
occludes: True
ents: []
# End Frontier

- 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 @@ -284,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 @@ -232,6 +232,8 @@
- type: MarketModifier
mod: 1
- type: ContainerContainer
containers:
board: !type:Container

- type: entity
name: cargo market computer
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 @@ -288,7 +288,7 @@

- type: entity
id: NfsdTechFab
parent: [ SecurityTechFab, BlueprintReceiverBase ]
parent: [ BlueprintReceiverBase, SecurityTechFab ]
name: nfsd techfab
description: Prints equipment for use by nfsd.
components:
Expand All @@ -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 @@ -36,6 +36,9 @@
- type: Machine
board: ThrusterSecurityMachineCircuitboard
- type: ContainerContainer
containers:
machine_board: !type:Container
machine_parts: !type:Container

- type: entity
id: GyroscopeSecurity
Expand All @@ -57,6 +60,10 @@
sprite: _NF/Structures/Shuttles/gyroscope.rsi
- type: Machine
board: GyroscopeSecurityMachineCircuitboard
- type: ContainerContainer
containers:
machine_board: !type:Container
machine_parts: !type:Container

- type: entity
id: SmallGyroscopeSecurity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
# Other: Chemistry wall locker
- type: entity
id: LockerWallChemistry
parent: [LockerWallMedical, BaseStructureWallmount]
parent: [BaseStructureWallmount, LockerWallMedical]
name: chemistry wall locker
components:
- type: Sprite
Expand All @@ -201,7 +201,10 @@
stateBaseClosed: med
stateDoorOpen: med_open
stateDoorClosed: chem_door

- type: ContainerContainer
containers:
entity_storage: !type:Container
paper_label: !type:ContainerSlot

- type: entity
id: ClosetWallN2
Expand Down
14 changes: 4 additions & 10 deletions Resources/Prototypes/_NF/Entities/Structures/atm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
- type: Computer
board: Null
- type: ItemSlots
- type: ContainerContainer
containers:
board: !type:Container
bank-ATM-cashSlot: !type:ContainerSlot

- type: entity
name: bank ATM
Expand All @@ -33,16 +37,6 @@
interfaces:
enum.BankATMMenuUiKey.ATM:
type: BankATMMenuBoundUserInterface
- type: ContainerContainer
containers:
board: !type:Container
showEnts: False
occludes: True
ents: []
bank-ATM-cashSlot: !type:ContainerSlot
showEnts: False
occludes: True
ent: null

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

0 comments on commit 8ec6c69

Please sign in to comment.