Температурные пушки (#90)

* - add: Temperature guns.

* - tweak: Change cryo sting slowdown.

* - tweak: Tempgun tweaks.

* - add: Hardsuit temperature adjustment system.
This commit is contained in:
Aviu00
2024-02-18 17:28:18 +09:00
committed by GitHub
parent 0b6fd195a7
commit 9caa5a408b
42 changed files with 383 additions and 9 deletions

View File

@@ -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

View File

@@ -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)