удалил StartingGear из SpeciesPrototype

This commit is contained in:
VigersRay 2024-06-21 05:11:45 +03:00
parent fbc89c6ac5
commit 2b29ccb77e
4 changed files with 0 additions and 22 deletions

View file

@ -45,12 +45,6 @@ public sealed class RandomHumanoidSystem : EntitySystem
var speciesProto = _prototypeManager.Index<SpeciesPrototype>(profile.Species);
var humanoid = EntityManager.CreateEntityUninitialized(speciesProto.Prototype, coordinates);
if (speciesProto.StartingGear != null)
{
var startingGear = _prototypeManager.Index<StartingGearPrototype>(speciesProto.StartingGear);
_stationSpawning.EquipStartingGear(humanoid, startingGear, raiseEvent: false);
}
_metaData.SetEntityName(humanoid, prototype.RandomizeName ? profile.Name : name);
_humanoid.LoadProfile(humanoid, profile);

View file

@ -226,12 +226,6 @@ public sealed class StationSpawningSystem : SharedStationSpawningSystem
EquipStartingGear(entity.Value, startingGear, raiseEvent: false);
}
if (species.StartingGear != null)
{
var startingGear = _prototypeManager.Index<StartingGearPrototype>(species.StartingGear);
EquipStartingGear(entity.Value, startingGear, raiseEvent: false);
}
var gearEquippedEv = new StartingGearEquippedEvent(entity.Value);
RaiseLocalEvent(entity.Value, ref gearEquippedEv);

View file

@ -134,9 +134,6 @@ public sealed partial class SpeciesPrototype : IPrototype
/// </summary>
[DataField]
public int MaxAge = 120;
[DataField]
public ProtoId<StartingGearPrototype>? StartingGear;
}
public enum SpeciesNaming : byte

View file

@ -13,7 +13,6 @@
naming: First
sexes:
- Unsexed
startingGear: VoxGear
- type: speciesBaseSprites
id: MobVoxSprites
@ -156,9 +155,3 @@
baseSprite:
sprite: Mobs/Species/Vox/parts.rsi
state: r_foot
- type: startingGear
id: VoxGear
equipment:
mask: ClothingMaskBreath
pocket1: DoubleEmergencyNitrogenTankFilled