Fix Felinid system (again)
This commit is contained in:
parent
bc7b728b98
commit
6e0b6b23ac
|
|
@ -17,10 +17,20 @@ public sealed partial class FelinidComponent : Component
|
|||
//[DataField("hairballAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
//public string HairballAction = "ActionHairball";
|
||||
|
||||
[DataField("hairballActionId",
|
||||
customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? HairballActionId = "ActionHairball";
|
||||
|
||||
[DataField("hairballAction")]
|
||||
public EntityUid? HairballAction = null;
|
||||
public EntityUid? HairballAction;
|
||||
|
||||
[DataField("eatActionId",
|
||||
customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? EatActionId = "ActionEatMouse";
|
||||
|
||||
[DataField("eatAction")]
|
||||
public EntityUid? EatAction;
|
||||
|
||||
[DataField("eatActionTarget")]
|
||||
public EntityUid? EatActionTarget = null;
|
||||
|
||||
public EntityUid? EatAction = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ public sealed partial class FelinidSystem : EntitySystem
|
|||
if (component.HairballAction != null)
|
||||
return;
|
||||
|
||||
component.HairballAction = Spawn("ActionHairball");
|
||||
_actionsSystem.AddAction(uid, component.HairballAction.Value, uid);
|
||||
//component.HairballAction = Spawn("ActionHairball");
|
||||
_actionsSystem.AddAction(uid, ref component.HairballAction, component.HairballActionId);
|
||||
}
|
||||
|
||||
private void OnEquipped(EntityUid uid, FelinidComponent component, DidEquipHandEvent args)
|
||||
|
|
@ -85,8 +85,8 @@ public sealed partial class FelinidSystem : EntitySystem
|
|||
|
||||
component.EatActionTarget = args.Equipped;
|
||||
|
||||
component.EatAction = Spawn("ActionEatMouse");
|
||||
_actionsSystem.AddAction(uid, ref component.EatAction, null);
|
||||
//component.EatAction = Spawn("ActionEatMouse");
|
||||
_actionsSystem.AddAction(uid, ref component.EatAction, component.EatActionId);
|
||||
}
|
||||
|
||||
private void OnUnequipped(EntityUid uid, FelinidComponent component, DidUnequipHandEvent args)
|
||||
|
|
|
|||
Loading…
Reference in New Issue