удалил StartingGear из SpeciesPrototype
This commit is contained in:
parent
fbc89c6ac5
commit
2b29ccb77e
4 changed files with 0 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue