@@ -40,6 +40,7 @@ namespace Content.Server.AI.EntitySystems
|
||||
#endif
|
||||
|
||||
_sawmill = Logger.GetSawmill("npc");
|
||||
_sawmill.Level = LogLevel.Info;
|
||||
InitializeUtility();
|
||||
SubscribeLocalEvent<NPCComponent, MobStateChangedEvent>(OnMobStateChange);
|
||||
SubscribeLocalEvent<NPCComponent, ComponentInit>(OnNPCInit);
|
||||
|
||||
@@ -184,7 +184,10 @@ namespace Content.Server.Polymorph.Systems
|
||||
|
||||
var act = new InstantAction()
|
||||
{
|
||||
Event = new PolymorphActionEvent(polyproto),
|
||||
Event = new PolymorphActionEvent()
|
||||
{
|
||||
Prototype = polyproto,
|
||||
},
|
||||
Name = Loc.GetString("polymorph-self-action-name", ("target", entproto.Name)),
|
||||
Description = Loc.GetString("polymorph-self-action-description", ("target", entproto.Name)),
|
||||
Icon = new SpriteSpecifier.EntityPrototype(polyproto.Entity),
|
||||
@@ -224,11 +227,6 @@ namespace Content.Server.Polymorph.Systems
|
||||
/// The polymorph prototype containing all the information about
|
||||
/// the specific polymorph.
|
||||
/// </summary>
|
||||
public readonly PolymorphPrototype Prototype;
|
||||
|
||||
public PolymorphActionEvent(PolymorphPrototype prototype)
|
||||
{
|
||||
Prototype = prototype;
|
||||
}
|
||||
public PolymorphPrototype Prototype = default!;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -84,14 +84,10 @@ public abstract partial class SharedGunSystem
|
||||
SelectFire(component, nextMode, user);
|
||||
}
|
||||
|
||||
// TODO: Actions need doing for guns anyway.
|
||||
private sealed class CycleModeEvent : InstantActionEvent
|
||||
{
|
||||
public SelectiveFire Mode;
|
||||
|
||||
public CycleModeEvent(SelectiveFire mode)
|
||||
{
|
||||
Mode = mode;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnCycleMode(EntityUid uid, GunComponent component, CycleModeEvent args)
|
||||
|
||||
Reference in New Issue
Block a user