-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into munitions-descriptions
# Conflicts: # Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Magazines/magnum.yml
- Loading branch information
Showing
61 changed files
with
911 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
Content.Server/Weapons/Melee/EnergySword/EnergySwordComponent.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
Content.Shared/Weapons/Melee/EnergySword/EnergySwordComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Weapons.Melee.EnergySword; | ||
|
||
[RegisterComponent, NetworkedComponent, Access(typeof(EnergySwordSystem))] | ||
[AutoGenerateComponentState] | ||
public sealed partial class EnergySwordComponent : Component | ||
{ | ||
/// <summary> | ||
/// What color the blade will be when activated. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public Color ActivatedColor = Color.DodgerBlue; | ||
|
||
/// <summary> | ||
/// A color option list for the random color picker. | ||
/// </summary> | ||
[DataField] | ||
public List<Color> ColorOptions = new() | ||
{ | ||
Color.Tomato, | ||
Color.DodgerBlue, | ||
Color.Aqua, | ||
Color.MediumSpringGreen, | ||
Color.MediumOrchid | ||
}; | ||
|
||
/// <summary> | ||
/// Whether the energy sword has been pulsed by a multitool, | ||
/// causing the blade to cycle RGB colors. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public bool Hacked; | ||
|
||
/// <summary> | ||
/// RGB cycle rate for hacked e-swords. | ||
/// </summary> | ||
[DataField] | ||
public float CycleRate = 1f; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.