Температурные пушки (#90)
* - add: Temperature guns. * - tweak: Change cryo sting slowdown. * - tweak: Tempgun tweaks. * - add: Hardsuit temperature adjustment system.
This commit is contained in:
@@ -40,6 +40,12 @@ public sealed partial class TwoModeEnergyAmmoProviderComponent : BatteryAmmoProv
|
||||
public SoundSpecifier? ToggleSound = new SoundPathSpecifier("/Audio/Weapons/Guns/Misc/egun_toggle.ogg");
|
||||
|
||||
[ViewVariables(VVAccess.ReadOnly)] public bool InStun = true;
|
||||
|
||||
[DataField("modeNames")] public Dictionary<EnergyModes, string> ModeNames = new()
|
||||
{
|
||||
{EnergyModes.Stun, "Stun"},
|
||||
{EnergyModes.Laser, "Laser"}
|
||||
};
|
||||
}
|
||||
|
||||
public enum EnergyModes
|
||||
|
||||
@@ -25,13 +25,13 @@ public abstract partial class SharedGunSystem
|
||||
return;
|
||||
|
||||
args.PushMarkup(Loc.GetString("gun-twomode-mode-examine", ("color", TwoModeExamineColor),
|
||||
("mode", GetLocMode(comp.CurrentMode))));
|
||||
("mode", GetLocMode(comp))));
|
||||
}
|
||||
}
|
||||
|
||||
private object GetLocMode(EnergyModes mode)
|
||||
private object GetLocMode(TwoModeEnergyAmmoProviderComponent comp)
|
||||
{
|
||||
return Loc.GetString($"gun-twomode-{mode.ToString()}");
|
||||
return Loc.GetString($"gun-twomode-{comp.ModeNames[comp.CurrentMode]}");
|
||||
}
|
||||
|
||||
private string GetLocSelector(SelectiveFire mode)
|
||||
|
||||
Reference in New Issue
Block a user