Renames all mob IDs from stupid old format (#4789)

This commit is contained in:
Swept
2021-10-07 11:59:59 -07:00
committed by GitHub
parent ef45db6811
commit 6b474c75f8
21 changed files with 82 additions and 83 deletions

View File

@@ -32,7 +32,7 @@ namespace Content.Client.Lobby.UI
IClientPreferencesManager preferencesManager) IClientPreferencesManager preferencesManager)
{ {
_preferencesManager = preferencesManager; _preferencesManager = preferencesManager;
_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace); _previewDummy = entityManager.SpawnEntity("MobHumanDummy", MapCoordinates.Nullspace);
var header = new NanoHeading var header = new NanoHeading
{ {

View File

@@ -245,7 +245,7 @@ namespace Content.Client.Preferences.UI
ToggleMode = true; ToggleMode = true;
Group = group; Group = group;
_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace); _previewDummy = entityManager.SpawnEntity("MobHumanDummy", MapCoordinates.Nullspace);
_previewDummy.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(profile); _previewDummy.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(profile);
var humanoid = profile as HumanoidCharacterProfile; var humanoid = profile as HumanoidCharacterProfile;
if (humanoid != null) if (humanoid != null)

View File

@@ -679,7 +679,7 @@ namespace Content.Client.Preferences.UI
#region Preview #region Preview
_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace); _previewDummy = entityManager.SpawnEntity("MobHumanDummy", MapCoordinates.Nullspace);
var sprite = _previewDummy.GetComponent<SpriteComponent>(); var sprite = _previewDummy.GetComponent<SpriteComponent>();
// Front // Front

View File

@@ -16,7 +16,7 @@ namespace Content.IntegrationTests.Tests.Interaction
[TestOf(typeof(UnobstructedExtensions))] [TestOf(typeof(UnobstructedExtensions))]
public class InRangeUnobstructed : ContentIntegrationTest public class InRangeUnobstructed : ContentIntegrationTest
{ {
private const string HumanId = "BaseHumanMob_Content"; private const string HumanId = "MobHumanBase";
private const float InteractionRange = SharedInteractionSystem.InteractionRange; private const float InteractionRange = SharedInteractionSystem.InteractionRange;

View File

@@ -134,7 +134,7 @@ namespace Content.Server.Cloning.Components
return; // If we can't track down the client, we can't offer transfer. That'd be quite bad. return; // If we can't track down the client, we can't offer transfer. That'd be quite bad.
} }
var mob = Owner.EntityManager.SpawnEntity("HumanMob_Content", Owner.Transform.MapPosition); var mob = Owner.EntityManager.SpawnEntity("MobHuman", Owner.Transform.MapPosition);
mob.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(dna.Profile); mob.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(dna.Profile);
mob.Name = dna.Profile.Name; mob.Name = dna.Profile.Name;

View File

@@ -29,7 +29,7 @@ namespace Content.Server.GameTicking
{ {
public partial class GameTicker public partial class GameTicker
{ {
private const string PlayerPrototypeName = "HumanMob_Content"; private const string PlayerPrototypeName = "MobHuman";
private const string ObserverPrototypeName = "MobObserver"; private const string ObserverPrototypeName = "MobObserver";
[ViewVariables(VVAccess.ReadWrite)] [ViewVariables(VVAccess.ReadWrite)]

View File

@@ -5,7 +5,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: BeeMob_Content - id: MobBee
amount: 8 amount: 8
@@ -16,7 +16,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: ButterflyMob_Content - id: MobButterfly
amount: 5 amount: 5
@@ -27,7 +27,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: CatMob_Content - id: MobCat
amount: 1 amount: 1
@@ -38,7 +38,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: ChickenMob_Content - id: MobChicken
amount: 4 amount: 4
@@ -49,7 +49,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: CorgiMob_Content - id: MobCorgi
amount: 1 amount: 1
- type: entity - type: entity
@@ -59,7 +59,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: CowMob_Content - id: MobCow
amount: 1 amount: 1
@@ -70,7 +70,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: GoatMob_Content - id: MobGoat
amount: 1 amount: 1
@@ -81,7 +81,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: GooseMob_Content - id: MobGoose
amount: 2 amount: 2
@@ -92,7 +92,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: GorillaMob_Content - id: MobGorilla
amount: 1 amount: 1
@@ -114,7 +114,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: ParrotMob_Content - id: MobParrot
amount: 3 amount: 3
@@ -125,7 +125,7 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: PenguinMob_Content - id: MobPenguin
amount: 2 amount: 2
@@ -136,5 +136,5 @@
components: components:
- type: StorageFill - type: StorageFill
contents: contents:
- id: SnakeMob_Content - id: MobSnake
amount: 3 amount: 3

View File

@@ -29,7 +29,7 @@
- state: ai - state: ai
- type: TimedSpawner - type: TimedSpawner
prototypes: prototypes:
- XenoMob_Content - MobXeno
chance: 0.85 chance: 0.85
intervalSeconds: 30 intervalSeconds: 30
minimumEntitiesSpawned: 2 minimumEntitiesSpawned: 2

View File

@@ -12,9 +12,9 @@
- state: ai - state: ai
- type: ConditionalSpawner - type: ConditionalSpawner
prototypes: prototypes:
- MouseMob_Content - MobMouse
- MouseMob1_Content - MobMouse1
- MouseMob2_Content - MobMouse2
- type: entity - type: entity
name: Cat Spawner name: Cat Spawner
@@ -27,9 +27,9 @@
- state: ai - state: ai
- type: ConditionalSpawner - type: ConditionalSpawner
prototypes: prototypes:
- CatMob_Content - MobCat
- CatCalicoMob_Content - MobCatCalico
- CatCaracalMob_Content - MobCatCaracal
- type: entity - type: entity
name: Corgi Spawner name: Corgi Spawner
@@ -42,5 +42,5 @@
- state: ai - state: ai
- type: ConditionalSpawner - type: ConditionalSpawner
prototypes: prototypes:
- CorgiMob_Content - MobCorgi
- IanMob_Content - MobCorgiOld

View File

@@ -4,7 +4,7 @@
- type: entity - type: entity
name: bat name: bat
parent: SimpleMobBase parent: SimpleMobBase
id: BatMob_Content id: MobBat
description: Some cultures find them terrifying, others crunchy on the teeth. description: Some cultures find them terrifying, others crunchy on the teeth.
components: components:
- type: MovementSpeedModifier - type: MovementSpeedModifier
@@ -38,7 +38,7 @@
- type: entity - type: entity
name: bee name: bee
parent: SimpleMobBase parent: SimpleMobBase
id: BeeMob_Content id: MobBee
description: Nice to have, but you can't build a civilization on a foundation of honey alone. description: Nice to have, but you can't build a civilization on a foundation of honey alone.
components: components:
- type: MovementSpeedModifier - type: MovementSpeedModifier
@@ -73,7 +73,7 @@
- type: entity - type: entity
name: chicken name: chicken
parent: SimpleMobBase parent: SimpleMobBase
id: ChickenMob_Content id: MobChicken
description: Comes before an egg, and IS a dinosaur! description: Comes before an egg, and IS a dinosaur!
components: components:
- type: Sprite - type: Sprite
@@ -104,7 +104,7 @@
- type: entity - type: entity
name: butterfly name: butterfly
parent: SimpleMobBase parent: SimpleMobBase
id: ButterflyMob_Content id: MobButterfly
description: Despite popular misconceptions, it's not actually made of butter. description: Despite popular misconceptions, it's not actually made of butter.
components: components:
- type: MovementSpeedModifier - type: MovementSpeedModifier
@@ -148,7 +148,7 @@
- type: entity - type: entity
name: cow name: cow
parent: SimpleMobBase parent: SimpleMobBase
id: CowMob_Content id: MobCow
description: Moo. description: Moo.
components: components:
- type: Sprite - type: Sprite
@@ -179,7 +179,7 @@
- type: entity - type: entity
name: crab name: crab
parent: SimpleMobBase parent: SimpleMobBase
id: CrabMob_Content id: MobCrab
description: A folk legend goes around that his claw snaps spacemen out of existance over distasteful remarks. Be polite and tolerant for your own safety. description: A folk legend goes around that his claw snaps spacemen out of existance over distasteful remarks. Be polite and tolerant for your own safety.
components: components:
- type: Sprite - type: Sprite
@@ -211,7 +211,7 @@
- type: entity - type: entity
name: goat name: goat
parent: SimpleMobBase parent: SimpleMobBase
id: GoatMob_Content id: MobGoat
description: His spine consists of long sharp segments, no wonder he is so grumpy. description: His spine consists of long sharp segments, no wonder he is so grumpy.
components: components:
- type: Sprite - type: Sprite
@@ -243,7 +243,7 @@
- type: entity - type: entity
name: goose name: goose
parent: SimpleMobBase parent: SimpleMobBase
id: GooseMob_Content id: MobGoose
description: Its stomach and mind are an enigma beyond human comprehension. description: Its stomach and mind are an enigma beyond human comprehension.
components: components:
- type: Sprite - type: Sprite
@@ -274,7 +274,7 @@
- type: entity - type: entity
name: gorilla name: gorilla
parent: SimpleMobBase parent: SimpleMobBase
id: GorillaMob_Content id: MobGorilla
description: Smashes, roars, looks cool. Don't stand near one. description: Smashes, roars, looks cool. Don't stand near one.
components: components:
- type: Sprite - type: Sprite
@@ -304,7 +304,7 @@
- type: entity - type: entity
name: monkey name: monkey
id: MonkeyMob_Content id: MobMonkey
parent: SimpleMobBase parent: SimpleMobBase
description: New church of neo-darwinists actually believe that EVERY animal evolved from a monkey. Tastes like pork, and killing them is both fun and relaxing. description: New church of neo-darwinists actually believe that EVERY animal evolved from a monkey. Tastes like pork, and killing them is both fun and relaxing.
components: components:
@@ -339,7 +339,7 @@
- type: entity - type: entity
name: mouse name: mouse
parent: SimpleMobBase parent: SimpleMobBase
id: MouseMob_Content id: MobMouse
description: Squeak! description: Squeak!
components: components:
- type: GhostTakeoverAvailable - type: GhostTakeoverAvailable
@@ -395,8 +395,8 @@
- type: MouseAccent - type: MouseAccent
- type: entity - type: entity
parent: MouseMob_Content parent: MobMouse
id: MouseMob1_Content id: MobMouse1
components: components:
- type: Sprite - type: Sprite
drawdepth: Mobs drawdepth: Mobs
@@ -415,8 +415,8 @@
dead: splat-1 dead: splat-1
- type: entity - type: entity
parent: MouseMob_Content parent: MobMouse
id: MouseMob2_Content id: MobMouse2
components: components:
- type: Sprite - type: Sprite
drawdepth: Mobs drawdepth: Mobs
@@ -438,7 +438,7 @@
- type: entity - type: entity
name: parrot name: parrot
parent: SimpleMobBase parent: SimpleMobBase
id: ParrotMob_Content id: MobParrot
description: Infiltrates your domain, spies on you, and somehow still a cool pet. description: Infiltrates your domain, spies on you, and somehow still a cool pet.
components: components:
- type: MovementSpeedModifier - type: MovementSpeedModifier
@@ -472,7 +472,7 @@
- type: entity - type: entity
name: penguin name: penguin
parent: SimpleMobBase parent: SimpleMobBase
id: PenguinMob_Content id: MobPenguin
description: Their lives are constant pain due to their inner-body knees. description: Their lives are constant pain due to their inner-body knees.
components: components:
- type: Sprite - type: Sprite
@@ -503,7 +503,7 @@
- type: entity - type: entity
name: snake name: snake
parent: SimpleMobBase parent: SimpleMobBase
id: SnakeMob_Content id: MobSnake
description: Hissss! Bites aren't poisonous. description: Hissss! Bites aren't poisonous.
components: components:
- type: Sprite - type: Sprite
@@ -537,7 +537,7 @@
- type: entity - type: entity
name: tarantula name: tarantula
parent: SimpleMobBase parent: SimpleMobBase
id: GiantSpiderMob_Content id: MobGiantSpider
description: Widely recognized to be the literal worst thing in existence. description: Widely recognized to be the literal worst thing in existence.
components: components:
- type: Sprite - type: Sprite

View File

@@ -1,6 +1,6 @@
- type: entity - type: entity
name: space carp name: space carp
id: CarpMob_Content id: MobCarp
parent: SimpleMobBase parent: SimpleMobBase
description: It's a space carp. description: It's a space carp.
components: components:
@@ -44,8 +44,8 @@
- type: entity - type: entity
name: magicarp name: magicarp
parent: CarpMob_Content parent: MobCarp
id: MagicarpMob_Content id: MobCarpMagic
description: Looks like some kind of fish. Might be magical. description: Looks like some kind of fish. Might be magical.
components: components:
- type: Sprite - type: Sprite
@@ -57,8 +57,8 @@
- type: entity - type: entity
name: holocarp name: holocarp
parent: CarpMob_Content parent: MobCarp
id: HolocarpMob_Content id: MobCarpHolo
description: Carp made out of holographic energies. description: Carp made out of holographic energies.
components: components:
- type: Sprite - type: Sprite

View File

@@ -1,8 +1,8 @@
- type: entity - type: entity
save: false save: false
name: Pathfinding Dummy name: Pathfinding Dummy
parent: BaseHumanMob_Content parent: MobHumanBase
id: HumanMob_PathDummy id: MobHumanPathDummy
description: A miserable pile of secrets. description: A miserable pile of secrets.
suffix: AI suffix: AI
components: components:

View File

@@ -1,7 +1,7 @@
- type: entity - type: entity
name: Civilian name: Civilian
parent: BaseHumanMob_Content parent: MobHumanBase
id: HumanMob_Civilian id: MobCivilian
description: A miserable pile of secrets. description: A miserable pile of secrets.
components: components:
- type: UtilityAI - type: UtilityAI
@@ -17,8 +17,8 @@
- type: entity - type: entity
name: Spirate name: Spirate
parent: BaseHumanMob_Content parent: MobHumanBase
id: HumanMob_Spirate id: MobSpirate
description: Yarr! description: Yarr!
components: components:
- type: UtilityAI - type: UtilityAI

View File

@@ -1,6 +1,6 @@
- type: entity - type: entity
name: Mimic name: Mimic
id: MimicMob_Content id: MobMimic
parent: SimpleMobBase parent: SimpleMobBase
description: Surprise. # When this gets a proper write this should use the object's actual description >:) description: Surprise. # When this gets a proper write this should use the object's actual description >:)
components: components:

View File

@@ -4,7 +4,7 @@
- type: entity - type: entity
name: corgi name: corgi
parent: SimpleMobBase parent: SimpleMobBase
id: CorgiMob_Content id: MobCorgi
description: Finally, a space corgi! description: Finally, a space corgi!
components: components:
- type: Sprite - type: Sprite
@@ -33,8 +33,8 @@
- type: entity - type: entity
name: ian name: ian
parent: CorgiMob_Content parent: MobCorgi
id: IanMob_Content id: MobCorgiOld
description: Favorite pet corgi. description: Favorite pet corgi.
components: components:
- type: Sprite - type: Sprite
@@ -52,7 +52,7 @@
- type: entity - type: entity
name: cat name: cat
parent: SimpleMobBase parent: SimpleMobBase
id: CatMob_Content id: MobCat
description: Feline pet, very funny. description: Feline pet, very funny.
components: components:
- type: Sprite - type: Sprite
@@ -81,8 +81,8 @@
- type: entity - type: entity
name: calico cat name: calico cat
id: CatCalicoMob_Content id: MobCatCalico
parent: CatMob_Content parent: MobCat
description: Feline pet, very funny. description: Feline pet, very funny.
components: components:
- type: Sprite - type: Sprite
@@ -99,8 +99,8 @@
- type: entity - type: entity
name: caracal cat name: caracal cat
id: CatCaracalMob_Content id: MobCatCaracal
parent: CatMob_Content parent: MobCat
description: Hilarious. description: Hilarious.
components: components:
- type: Sprite - type: Sprite
@@ -118,7 +118,7 @@
- type: entity - type: entity
name: sloth name: sloth
parent: SimpleMobBase parent: SimpleMobBase
id: SlothMob_Content id: MobSloth
description: Very slow animal. For people with low energy. description: Very slow animal. For people with low energy.
components: components:
- type: MovementSpeedModifier - type: MovementSpeedModifier

View File

@@ -1,7 +1,7 @@
# Hacky for the stress test so don't even consider adding to this # Hacky for the stress test so don't even consider adding to this
- type: entity - type: entity
name: Xeno name: Xeno
id: XenoMob_Content id: MobXeno
parent: SimpleMobBase parent: SimpleMobBase
description: They mostly come at night. Mostly. description: They mostly come at night. Mostly.
components: components:

View File

@@ -1,8 +1,8 @@
- type: entity - type: entity
save: false save: false
name: Urist McHands name: Urist McHands
parent: BaseHumanMob_Content parent: MobHumanBase
id: HumanMob_Content id: MobHuman
description: A miserable pile of secrets. description: A miserable pile of secrets.
components: components:
- type: Mind - type: Mind
@@ -27,8 +27,8 @@
- type: entity - type: entity
name: centcom official name: centcom official
parent: HumanMob_Content parent: MobHuman
id: HumanMob_CentcomOfficial id: MobHumanCentcomOfficial
components: components:
- type: Icon - type: Icon
sprite: Markers/jobs.rsi sprite: Markers/jobs.rsi

View File

@@ -1,8 +1,8 @@
# Anything human specific (e.g. UI, input) goes under HumanMob_Content # Anything human specific (e.g. UI, input) goes under MobHuman
- type: entity - type: entity
save: false save: false
name: Urist McHands name: Urist McHands
id: BaseHumanMob_Content id: MobHumanBase
description: A miserable pile of secrets. description: A miserable pile of secrets.
abstract: true abstract: true
components: components:
@@ -278,7 +278,7 @@
- type: entity - type: entity
save: false save: false
name: Urist McHands name: Urist McHands
id: HumanMob_Dummy id: MobHumanDummy
abstract: true abstract: true
description: A dummy human meant to be used in character setup. description: A dummy human meant to be used in character setup.
components: components:

View File

@@ -1,6 +1,6 @@
- type: entity - type: entity
name: Slime Person name: Slime Person
parent: HumanMob_Content parent: MobHuman
id: BaseSlimePerson id: BaseSlimePerson
description: A miserable pile of slime. description: A miserable pile of slime.
abstract: true abstract: true

View File

@@ -1,6 +1,5 @@
# Vox bad. moff best. - type: entity
- type: entity parent: MobHuman
parent: HumanMob_Content
abstract: True abstract: True
id: BaseVox id: BaseVox
components: components:

View File

@@ -25,7 +25,7 @@
reagents: reagents:
- Water - Water
- type: Rehydratable - type: Rehydratable
target: MonkeyMob_Content target: MobMonkey
- type: CollisionWake - type: CollisionWake
enabled: false enabled: false
- type: Physics - type: Physics
@@ -66,7 +66,7 @@
reagents: reagents:
- Water - Water
- type: Rehydratable - type: Rehydratable
target: CarpMob_Content target: MobCarp
- type: CollisionWake - type: CollisionWake
enabled: false enabled: false
- type: Physics - type: Physics