Fix more prototypes for save/spawn test (#11087)

This commit is contained in:
Leon Friedrich
2022-09-07 20:35:34 +12:00
committed by GitHub
parent 7c8351eee7
commit 6f33d3a7f8
10 changed files with 81 additions and 51 deletions

View File

@@ -111,16 +111,11 @@ public sealed class PrototypeSaveTest
"CrateArtifactContainer", "CrateArtifactContainer",
"CloningPod", "CloningPod",
"DrinkColaCan", "DrinkColaCan",
"FoodBowlBig",
"FoodBowlFancy",
"MachineFrame", "MachineFrame",
"WeaponImprovisedPneumaticCannon", "WeaponImprovisedPneumaticCannon",
"LauncherCreamPie", "LauncherCreamPie",
"GravityGenerator", "GravityGenerator",
"GravityGeneratorMini", "GravityGeneratorMini",
"FoodCondimentPacket",
"FoodCondimentBottle",
"FoodCondimentBottleSmall",
"Autolathe", "Autolathe",
"Protolathe", "Protolathe",
"CircuitImprinter", "CircuitImprinter",
@@ -140,25 +135,16 @@ public sealed class PrototypeSaveTest
"LargeBeaker", "LargeBeaker",
"CryostasisBeaker", "CryostasisBeaker",
"BluespaceBeaker", "BluespaceBeaker",
"Syringe",
"ClusterBang", "ClusterBang",
"ClusterBangFull", "ClusterBangFull",
"CargoTelepad", "CargoTelepad",
"ClothingHeadHatHardhatBlue",
"ClothingHeadHatHardhatOrange",
"ClothingHeadHatHardhatRed",
"ClothingHeadHatHardhatWhite",
"ClothingHeadHatHardhatYellow",
"Vaccinator", "Vaccinator",
"AirlockExternalShuttleLocked", "AirlockExternalShuttleLocked",
"AirlockExternalGlassShuttleLocked", "AirlockExternalGlassShuttleLocked",
"AirlockExternalGlassShuttleEmergencyLocked", "AirlockExternalGlassShuttleEmergencyLocked",
"ConveyorBelt", "ConveyorBelt",
"ClothingHeadHatChef", "ClothingHeadHatChef",
"ClothingHeadHelmetFire",
"ClothingHeadHelmetAtmosFire",
"Bucket", "Bucket",
"CableTerminal",
"AirlockShuttle", "AirlockShuttle",
"AirlockGlassShuttle" "AirlockGlassShuttle"
}; };

View File

@@ -143,6 +143,7 @@ public sealed partial class ChemistrySystem
private void OnInjectorStartup(EntityUid uid, InjectorComponent component, ComponentStartup args) private void OnInjectorStartup(EntityUid uid, InjectorComponent component, ComponentStartup args)
{ {
/// ???? why ?????
Dirty(component); Dirty(component);
} }

View File

@@ -70,8 +70,7 @@ public sealed class TagSystem : EntitySystem
/// </exception> /// </exception>
public bool AddTag(EntityUid entity, string id) public bool AddTag(EntityUid entity, string id)
{ {
return EntityManager.EnsureComponent<TagComponent>(entity, out var component) && return AddTag(EnsureComp<TagComponent>(entity), id);
AddTag(component, id);
} }
/// <summary> /// <summary>
@@ -87,8 +86,7 @@ public sealed class TagSystem : EntitySystem
/// </exception> /// </exception>
public bool AddTags(EntityUid entity, params string[] ids) public bool AddTags(EntityUid entity, params string[] ids)
{ {
return EntityManager.EnsureComponent<TagComponent>(entity, out var component) && return AddTags(EnsureComp<TagComponent>(entity), ids);
AddTags(component, ids);
} }
/// <summary> /// <summary>
@@ -104,8 +102,7 @@ public sealed class TagSystem : EntitySystem
/// </exception> /// </exception>
public bool AddTags(EntityUid entity, IEnumerable<string> ids) public bool AddTags(EntityUid entity, IEnumerable<string> ids)
{ {
return EntityManager.EnsureComponent<TagComponent>(entity, out var component) && return AddTags(EnsureComp<TagComponent>(entity), ids);
AddTags(component, ids);
} }
/// <summary> /// <summary>

View File

@@ -38,6 +38,8 @@
visible: false visible: false
map: [ "light" ] map: [ "light" ]
- type: Clothing - type: Clothing
equippedPrefix: off
- type: Item
heldPrefix: off heldPrefix: off
- type: ToggleableLightVisuals - type: ToggleableLightVisuals
- type: PointLight - type: PointLight

View File

@@ -37,6 +37,10 @@
- type: PowerCellSlot - type: PowerCellSlot
cellSlot: cellSlot:
startingItem: PowerCellMedium startingItem: PowerCellMedium
- type: ContainerContainer
containers:
cell_slot: !type:ContainerSlot
- type: ItemSlots
- type: entity - type: entity
parent: ClothingHeadHatHardhatBase parent: ClothingHeadHatHardhatBase

View File

@@ -52,6 +52,9 @@
max: 1 max: 1
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
- type: Tag
tags:
- Trash
- type: entity - type: entity
name: broken bowl name: broken bowl

View File

@@ -5,8 +5,9 @@
# Since this one is closed, the only way to insert liquid is with a syringe. # Since this one is closed, the only way to insert liquid is with a syringe.
- type: entity - type: entity
parent: BaseItem parent: BaseItem
id: FoodCondimentPacket id: BaseFoodCondimentPacket
name: condiment packet name: condiment packet
abstract: true
description: A small plastic pack with condiments to put on your food. description: A small plastic pack with condiments to put on your food.
components: components:
- type: Drink - type: Drink
@@ -40,7 +41,15 @@
solution: food solution: food
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacket
components:
- type: Tag
tags:
- Trash
- type: entity
parent: BaseFoodCondimentPacket
id: FoodCondimentPacketAstrotame id: FoodCondimentPacketAstrotame
name: Astrotame name: Astrotame
description: The sweetness of a thousand sugars but none of the calories. description: The sweetness of a thousand sugars but none of the calories.
@@ -66,7 +75,7 @@
fillBaseName: packet-trans- fillBaseName: packet-trans-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketBbq id: FoodCondimentPacketBbq
name: BBQ sauce name: BBQ sauce
description: Hand wipes not included. description: Hand wipes not included.
@@ -92,7 +101,7 @@
fillBaseName: packet-trans- fillBaseName: packet-trans-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketCornoil id: FoodCondimentPacketCornoil
name: corn oil name: corn oil
description: Corn oil. A delicious oil used in cooking. Made from corn. description: Corn oil. A delicious oil used in cooking. Made from corn.
@@ -118,7 +127,7 @@
fillBaseName: packet-trans- fillBaseName: packet-trans-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketFrostoil id: FoodCondimentPacketFrostoil
name: coldsauce name: coldsauce
description: Coldsauce. Leaves the tongue numb in its passage. description: Coldsauce. Leaves the tongue numb in its passage.
@@ -144,7 +153,7 @@
fillBaseName: packet-trans- fillBaseName: packet-trans-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketHorseradish id: FoodCondimentPacketHorseradish
name: horseradish sauce name: horseradish sauce
description: A packet of smelly horseradish sauce. description: A packet of smelly horseradish sauce.
@@ -170,7 +179,7 @@
fillBaseName: packet-solid- fillBaseName: packet-solid-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketHotsauce id: FoodCondimentPacketHotsauce
name: hotsauce name: hotsauce
description: You can almost TASTE the stomach ulcers now! description: You can almost TASTE the stomach ulcers now!
@@ -196,7 +205,7 @@
fillBaseName: packet-trans- fillBaseName: packet-trans-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketKetchup id: FoodCondimentPacketKetchup
name: ketchup name: ketchup
description: You feel more American already. description: You feel more American already.
@@ -221,7 +230,7 @@
fillBaseName: packet-solid- fillBaseName: packet-solid-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketPepper id: FoodCondimentPacketPepper
name: black pepper name: black pepper
description: Often used to flavor food or make people sneeze. description: Often used to flavor food or make people sneeze.
@@ -246,7 +255,7 @@
fillBaseName: packet-solid- fillBaseName: packet-solid-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketSalt id: FoodCondimentPacketSalt
name: salt name: salt
description: Salt. From space oceans, presumably. description: Salt. From space oceans, presumably.
@@ -273,7 +282,7 @@
fillBaseName: packet-solid- fillBaseName: packet-solid-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketSoy id: FoodCondimentPacketSoy
name: soy sauce name: soy sauce
description: A salty soy-based flavoring. description: A salty soy-based flavoring.
@@ -298,7 +307,7 @@
fillBaseName: packet-solid- fillBaseName: packet-solid-
- type: entity - type: entity
parent: FoodCondimentPacket parent: BaseFoodCondimentPacket
id: FoodCondimentPacketSugar id: FoodCondimentPacketSugar
name: sugar name: sugar
description: Tasty spacey sugar! description: Tasty spacey sugar!
@@ -326,7 +335,8 @@
- type: entity - type: entity
parent: BaseItem parent: BaseItem
id: FoodCondimentBottle id: BaseFoodCondimentBottle
abstract: true
name: condiment bottle name: condiment bottle
description: A thin glass bottle used to store condiments. description: A thin glass bottle used to store condiments.
components: components:
@@ -358,7 +368,15 @@
solution: food solution: food
- type: entity - type: entity
parent: FoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottle
components:
- type: Tag
tags:
- Trash
- type: entity
parent: BaseFoodCondimentBottle
id: FoodCondimentBottleColdsauce id: FoodCondimentBottleColdsauce
name: coldsauce bottle name: coldsauce bottle
description: Leaves the tongue numb in its passage. description: Leaves the tongue numb in its passage.
@@ -381,7 +399,7 @@
state: bottle-coldsauce state: bottle-coldsauce
- type: entity - type: entity
parent: FoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottleEnzyme id: FoodCondimentBottleEnzyme
name: universal enzyme name: universal enzyme
description: Used in cooking various dishes. description: Used in cooking various dishes.
@@ -404,7 +422,7 @@
state: bottle-enzyme state: bottle-enzyme
- type: entity - type: entity
parent: FoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottleHotsauce id: FoodCondimentBottleHotsauce
name: hotsauce name: hotsauce
description: You can almost TASTE the stomach ulcers now! description: You can almost TASTE the stomach ulcers now!
@@ -427,7 +445,7 @@
state: bottle-hotsauce state: bottle-hotsauce
- type: entity - type: entity
parent: FoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottleKetchup id: FoodCondimentBottleKetchup
name: ketchup name: ketchup
description: You feel more American already. description: You feel more American already.
@@ -450,7 +468,7 @@
state: bottle-ketchup state: bottle-ketchup
- type: entity - type: entity
parent: FoodCondimentBottle parent: BaseFoodCondimentBottle
id: FoodCondimentBottleBBQ id: FoodCondimentBottleBBQ
name: BBQ sauce name: BBQ sauce
description: Hand wipes not included. description: Hand wipes not included.
@@ -477,7 +495,8 @@
- type: entity - type: entity
parent: BaseItem parent: BaseItem
id: FoodCondimentBottleSmall id: BaseFoodCondimentBottleSmall
abstract: true
name: condiment bottle name: condiment bottle
description: A smaller glass bottle used to store condiments. description: A smaller glass bottle used to store condiments.
components: components:
@@ -507,7 +526,15 @@
solution: food solution: food
- type: entity - type: entity
parent: FoodCondimentBottleSmall parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmall
components:
- type: Tag
tags:
- Trash
- type: entity
parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallColdsauce id: FoodCondimentBottleSmallColdsauce
name: coldsauce bottle name: coldsauce bottle
description: Leaves the tongue numb in its passage. description: Leaves the tongue numb in its passage.
@@ -530,7 +557,7 @@
state: bottle-s-coldsauce state: bottle-s-coldsauce
- type: entity - type: entity
parent: FoodCondimentBottleSmall parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallHotsauce id: FoodCondimentBottleSmallHotsauce
name: hotsauce name: hotsauce
description: You can almost TASTE the stomach ulcers now! description: You can almost TASTE the stomach ulcers now!
@@ -553,7 +580,7 @@
state: bottle-s-hotsauce state: bottle-s-hotsauce
- type: entity - type: entity
parent: FoodCondimentBottleSmall parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallKetchup id: FoodCondimentBottleSmallKetchup
name: ketchup name: ketchup
description: You feel more American already. description: You feel more American already.
@@ -576,7 +603,7 @@
state: bottle-s-ketchup state: bottle-s-ketchup
- type: entity - type: entity
parent: FoodCondimentBottleSmall parent: BaseFoodCondimentBottleSmall
id: FoodCondimentBottleSmallVinegar id: FoodCondimentBottleSmallVinegar
name: vinegar name: vinegar
description: Used in cooking to enhance flavor. description: Used in cooking to enhance flavor.

View File

@@ -222,7 +222,7 @@
# Syringes # Syringes
- type: entity - type: entity
name: ephedrine syringe name: ephedrine syringe
parent: Syringe parent: BaseSyringe
id: SyringeEphedrine id: SyringeEphedrine
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -235,7 +235,7 @@
- type: entity - type: entity
name: inaprovaline syringe name: inaprovaline syringe
parent: Syringe parent: BaseSyringe
id: SyringeInaprovaline id: SyringeInaprovaline
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -248,7 +248,7 @@
- type: entity - type: entity
name: tranexamic acid syringe name: tranexamic acid syringe
parent: Syringe parent: BaseSyringe
id: SyringeTranexamicAcid id: SyringeTranexamicAcid
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -261,7 +261,7 @@
- type: entity - type: entity
name: spaceacillin syringe name: spaceacillin syringe
parent: Syringe parent: BaseSyringe
id: SyringeSpaceacillin id: SyringeSpaceacillin
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -274,7 +274,7 @@
- type: entity - type: entity
name: ipecac syringe name: ipecac syringe
parent: Syringe parent: BaseSyringe
id: SyringeIpecac id: SyringeIpecac
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -288,7 +288,7 @@
#this is where all the syringes are so i didn't know where to put it #this is where all the syringes are so i didn't know where to put it
- type: entity - type: entity
name: corpium syringe name: corpium syringe
parent: Syringe parent: BaseSyringe
id: SyringeCorpium id: SyringeCorpium
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager

View File

@@ -210,7 +210,8 @@
name: syringe name: syringe
parent: BaseItem parent: BaseItem
description: Used to draw blood samples from mobs, or to inject them with reagents. description: Used to draw blood samples from mobs, or to inject them with reagents.
id: Syringe id: BaseSyringe
abstract: true
components: components:
- type: Sprite - type: Sprite
sprite: Objects/Specific/Chemistry/syringe.rsi sprite: Objects/Specific/Chemistry/syringe.rsi
@@ -239,6 +240,14 @@
maxFillLevels: 4 maxFillLevels: 4
fillBaseName: syringe fillBaseName: syringe
- type: entity
parent: BaseSyringe
id: Syringe
components:
- type: Tag
tags:
- Trash
- type: entity - type: entity
name: pill name: pill
parent: BaseItem parent: BaseItem

View File

@@ -11,6 +11,7 @@
drawdepth: BelowFloor drawdepth: BelowFloor
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
- type: CollideOnAnchor
- type: Transform - type: Transform
anchored: true anchored: true
- type: Damageable - type: Damageable