forked from DeltaV-Station/Delta-v
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ghetto surgery real (DeltaV-Station#884)
* move MatchstickComponent to shared * add Speed field to ISurgeryTool, add Tweezers and Tending tools * add support for ghetto surgery tools * use Tending and Tweezers for some steps * GHETTO SURGERY!!! * add qualities to fire axe * fix popups * * disable coil hemostat * add examine verb for a tools uses * work# * round the speed to 2 decimal places * remove . * webedit ops * shitcode * undo breaking change * fix --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
- Loading branch information
1 parent
38da68a
commit 67b0a95
Showing
42 changed files
with
476 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using Content.Shared.Smoking.Systems; | ||
|
||
namespace Content.Client.Smoking; | ||
|
||
public sealed class MatchstickSystem : SharedMatchstickSystem; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Content.Shared.Smoking.Systems; | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Smoking.Components; | ||
|
||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedMatchstickSystem))] | ||
[AutoGenerateComponentState] | ||
public sealed partial class MatchstickComponent : Component | ||
{ | ||
/// <summary> | ||
/// Current state to matchstick. Can be <code>Unlit</code>, <code>Lit</code> or <code>Burnt</code>. | ||
/// </summary> | ||
[DataField("state"), AutoNetworkedField] | ||
public SmokableState CurrentState = SmokableState.Unlit; | ||
|
||
/// <summary> | ||
/// How long will matchstick last in seconds. | ||
/// </summary> | ||
[DataField] | ||
public int Duration = 10; | ||
|
||
/// <summary> | ||
/// Sound played when you ignite the matchstick. | ||
/// </summary> | ||
[DataField(required: true)] | ||
public SoundSpecifier IgniteSound = default!; | ||
} |
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,16 @@ | ||
using Content.Shared.Smoking.Components; | ||
|
||
namespace Content.Shared.Smoking.Systems; | ||
|
||
public abstract class SharedMatchstickSystem : EntitySystem | ||
{ | ||
public virtual bool SetState(Entity<MatchstickComponent> ent, SmokableState state) | ||
{ | ||
if (ent.Comp.CurrentState == state) | ||
return false; | ||
|
||
ent.Comp.CurrentState = state; | ||
Dirty(ent); | ||
return true; | ||
} | ||
} |
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
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
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
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.