Skip to content

Commit

Permalink
Renames all mob IDs from stupid old format (#4789)
Browse files Browse the repository at this point in the history
  • Loading branch information
SweptWasTaken authored Oct 7, 2021
1 parent ef45db6 commit 6b474c7
Show file tree
Hide file tree
Showing 21 changed files with 82 additions and 83 deletions.
2 changes: 1 addition & 1 deletion Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public LobbyCharacterPreviewPanel(IEntityManager entityManager,
IClientPreferencesManager preferencesManager)
{
_preferencesManager = preferencesManager;
_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace);
_previewDummy = entityManager.SpawnEntity("MobHumanDummy", MapCoordinates.Nullspace);

var header = new NanoHeading
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Preferences/UI/CharacterSetupGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public CharacterPickerButton(
ToggleMode = true;
Group = group;

_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace);
_previewDummy = entityManager.SpawnEntity("MobHumanDummy", MapCoordinates.Nullspace);
_previewDummy.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(profile);
var humanoid = profile as HumanoidCharacterProfile;
if (humanoid != null)
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Preferences/UI/HumanoidProfileEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt

#region Preview

_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace);
_previewDummy = entityManager.SpawnEntity("MobHumanDummy", MapCoordinates.Nullspace);
var sprite = _previewDummy.GetComponent<SpriteComponent>();

// Front
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Content.IntegrationTests.Tests.Interaction
[TestOf(typeof(UnobstructedExtensions))]
public class InRangeUnobstructed : ContentIntegrationTest
{
private const string HumanId = "BaseHumanMob_Content";
private const string HumanId = "MobHumanBase";

private const float InteractionRange = SharedInteractionSystem.InteractionRange;

Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Cloning/Components/CloningPodComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private void OnUiReceiveMessage(ServerBoundUserInterfaceMessage obj)
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.Name = dna.Profile.Name;
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameTicker.Spawning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Content.Server.GameTicking
{
public partial class GameTicker
{
private const string PlayerPrototypeName = "HumanMob_Content";
private const string PlayerPrototypeName = "MobHuman";
private const string ObserverPrototypeName = "MobObserver";

[ViewVariables(VVAccess.ReadWrite)]
Expand Down
24 changes: 12 additions & 12 deletions Resources/Prototypes/Catalog/Fills/Crates/npc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
components:
- type: StorageFill
contents:
- id: BeeMob_Content
- id: MobBee
amount: 8


Expand All @@ -16,7 +16,7 @@
components:
- type: StorageFill
contents:
- id: ButterflyMob_Content
- id: MobButterfly
amount: 5


Expand All @@ -27,7 +27,7 @@
components:
- type: StorageFill
contents:
- id: CatMob_Content
- id: MobCat
amount: 1


Expand All @@ -38,7 +38,7 @@
components:
- type: StorageFill
contents:
- id: ChickenMob_Content
- id: MobChicken
amount: 4


Expand All @@ -49,7 +49,7 @@
components:
- type: StorageFill
contents:
- id: CorgiMob_Content
- id: MobCorgi
amount: 1

- type: entity
Expand All @@ -59,7 +59,7 @@
components:
- type: StorageFill
contents:
- id: CowMob_Content
- id: MobCow
amount: 1


Expand All @@ -70,7 +70,7 @@
components:
- type: StorageFill
contents:
- id: GoatMob_Content
- id: MobGoat
amount: 1


Expand All @@ -81,7 +81,7 @@
components:
- type: StorageFill
contents:
- id: GooseMob_Content
- id: MobGoose
amount: 2


Expand All @@ -92,7 +92,7 @@
components:
- type: StorageFill
contents:
- id: GorillaMob_Content
- id: MobGorilla
amount: 1


Expand All @@ -114,7 +114,7 @@
components:
- type: StorageFill
contents:
- id: ParrotMob_Content
- id: MobParrot
amount: 3


Expand All @@ -125,7 +125,7 @@
components:
- type: StorageFill
contents:
- id: PenguinMob_Content
- id: MobPenguin
amount: 2


Expand All @@ -136,5 +136,5 @@
components:
- type: StorageFill
contents:
- id: SnakeMob_Content
- id: MobSnake
amount: 3
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- state: ai
- type: TimedSpawner
prototypes:
- XenoMob_Content
- MobXeno
chance: 0.85
intervalSeconds: 30
minimumEntitiesSpawned: 2
Expand Down
16 changes: 8 additions & 8 deletions Resources/Prototypes/Entities/Markers/Spawners/mobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
- state: ai
- type: ConditionalSpawner
prototypes:
- MouseMob_Content
- MouseMob1_Content
- MouseMob2_Content
- MobMouse
- MobMouse1
- MobMouse2

- type: entity
name: Cat Spawner
Expand All @@ -27,9 +27,9 @@
- state: ai
- type: ConditionalSpawner
prototypes:
- CatMob_Content
- CatCalicoMob_Content
- CatCaracalMob_Content
- MobCat
- MobCatCalico
- MobCatCaracal

- type: entity
name: Corgi Spawner
Expand All @@ -42,5 +42,5 @@
- state: ai
- type: ConditionalSpawner
prototypes:
- CorgiMob_Content
- IanMob_Content
- MobCorgi
- MobCorgiOld
38 changes: 19 additions & 19 deletions Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- type: entity
name: bat
parent: SimpleMobBase
id: BatMob_Content
id: MobBat
description: Some cultures find them terrifying, others crunchy on the teeth.
components:
- type: MovementSpeedModifier
Expand Down Expand Up @@ -38,7 +38,7 @@
- type: entity
name: bee
parent: SimpleMobBase
id: BeeMob_Content
id: MobBee
description: Nice to have, but you can't build a civilization on a foundation of honey alone.
components:
- type: MovementSpeedModifier
Expand Down Expand Up @@ -73,7 +73,7 @@
- type: entity
name: chicken
parent: SimpleMobBase
id: ChickenMob_Content
id: MobChicken
description: Comes before an egg, and IS a dinosaur!
components:
- type: Sprite
Expand Down Expand Up @@ -104,7 +104,7 @@
- type: entity
name: butterfly
parent: SimpleMobBase
id: ButterflyMob_Content
id: MobButterfly
description: Despite popular misconceptions, it's not actually made of butter.
components:
- type: MovementSpeedModifier
Expand Down Expand Up @@ -148,7 +148,7 @@
- type: entity
name: cow
parent: SimpleMobBase
id: CowMob_Content
id: MobCow
description: Moo.
components:
- type: Sprite
Expand Down Expand Up @@ -179,7 +179,7 @@
- type: entity
name: crab
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.
components:
- type: Sprite
Expand Down Expand Up @@ -211,7 +211,7 @@
- type: entity
name: goat
parent: SimpleMobBase
id: GoatMob_Content
id: MobGoat
description: His spine consists of long sharp segments, no wonder he is so grumpy.
components:
- type: Sprite
Expand Down Expand Up @@ -243,7 +243,7 @@
- type: entity
name: goose
parent: SimpleMobBase
id: GooseMob_Content
id: MobGoose
description: Its stomach and mind are an enigma beyond human comprehension.
components:
- type: Sprite
Expand Down Expand Up @@ -274,7 +274,7 @@
- type: entity
name: gorilla
parent: SimpleMobBase
id: GorillaMob_Content
id: MobGorilla
description: Smashes, roars, looks cool. Don't stand near one.
components:
- type: Sprite
Expand Down Expand Up @@ -304,7 +304,7 @@

- type: entity
name: monkey
id: MonkeyMob_Content
id: MobMonkey
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.
components:
Expand Down Expand Up @@ -339,7 +339,7 @@
- type: entity
name: mouse
parent: SimpleMobBase
id: MouseMob_Content
id: MobMouse
description: Squeak!
components:
- type: GhostTakeoverAvailable
Expand Down Expand Up @@ -395,8 +395,8 @@
- type: MouseAccent

- type: entity
parent: MouseMob_Content
id: MouseMob1_Content
parent: MobMouse
id: MobMouse1
components:
- type: Sprite
drawdepth: Mobs
Expand All @@ -415,8 +415,8 @@
dead: splat-1

- type: entity
parent: MouseMob_Content
id: MouseMob2_Content
parent: MobMouse
id: MobMouse2
components:
- type: Sprite
drawdepth: Mobs
Expand All @@ -438,7 +438,7 @@
- type: entity
name: parrot
parent: SimpleMobBase
id: ParrotMob_Content
id: MobParrot
description: Infiltrates your domain, spies on you, and somehow still a cool pet.
components:
- type: MovementSpeedModifier
Expand Down Expand Up @@ -472,7 +472,7 @@
- type: entity
name: penguin
parent: SimpleMobBase
id: PenguinMob_Content
id: MobPenguin
description: Their lives are constant pain due to their inner-body knees.
components:
- type: Sprite
Expand Down Expand Up @@ -503,7 +503,7 @@
- type: entity
name: snake
parent: SimpleMobBase
id: SnakeMob_Content
id: MobSnake
description: Hissss! Bites aren't poisonous.
components:
- type: Sprite
Expand Down Expand Up @@ -537,7 +537,7 @@
- type: entity
name: tarantula
parent: SimpleMobBase
id: GiantSpiderMob_Content
id: MobGiantSpider
description: Widely recognized to be the literal worst thing in existence.
components:
- type: Sprite
Expand Down
10 changes: 5 additions & 5 deletions Resources/Prototypes/Entities/Mobs/NPCs/carp.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- type: entity
name: space carp
id: CarpMob_Content
id: MobCarp
parent: SimpleMobBase
description: It's a space carp.
components:
Expand Down Expand Up @@ -44,8 +44,8 @@

- type: entity
name: magicarp
parent: CarpMob_Content
id: MagicarpMob_Content
parent: MobCarp
id: MobCarpMagic
description: Looks like some kind of fish. Might be magical.
components:
- type: Sprite
Expand All @@ -57,8 +57,8 @@

- type: entity
name: holocarp
parent: CarpMob_Content
id: HolocarpMob_Content
parent: MobCarp
id: MobCarpHolo
description: Carp made out of holographic energies.
components:
- type: Sprite
Expand Down
Loading

0 comments on commit 6b474c7

Please sign in to comment.