Skip to content

Commit 02feccb

Browse files
shorten descriptions
1 parent 3faf90c commit 02feccb

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

Code/MethodSystem/Methods/DoorMethods/BreakDoorMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace SER.Code.MethodSystem.Methods.DoorMethods;
1010
[UsedImplicitly]
1111
public class BreakDoorMethod : SynchronousMethod
1212
{
13-
public override string Description => "Breaks specified doors if possible (for example, you can't destroy Gate B, but you can destroy normal HCZ doors)";
13+
public override string Description => "Breaks specified doors if possible.";
1414

1515
public override Argument[] ExpectedArguments { get; } =
1616
[

Code/MethodSystem/Methods/NumberMethods/ChanceMethod.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
using SER.Code.ArgumentSystem.Arguments;
33
using SER.Code.ArgumentSystem.BaseArguments;
44
using SER.Code.MethodSystem.BaseMethods.Synchronous;
5+
using SER.Code.MethodSystem.MethodDescriptors;
56
using SER.Code.ValueSystem;
67

78
namespace SER.Code.MethodSystem.Methods.NumberMethods;
89

910
[UsedImplicitly]
10-
public class ChanceMethod : ReturningMethod<BoolValue>
11+
public class ChanceMethod : ReturningMethod<BoolValue>, IAdditionalDescription
1112
{
12-
public override string Description =>
13-
"Returns true with the specified chance, e.g. if set to 20%, true will be returned 20% of the time.";
13+
public override string Description => "Returns true with the specified chance.";
14+
15+
public string AdditionalDescription => "e.g. if set to 20%, true will be returned 20% of the time.";
1416

1517
public override Argument[] ExpectedArguments { get; } =
1618
[
1719
new FloatArgument("chance", 0, 1)
1820
];
19-
21+
2022
public override void Execute()
2123
{
2224
ReturnValue = Args.GetFloat("chance") < UnityEngine.Random.Range(0f, 1f);

Code/MethodSystem/Methods/OutputMethods/ReplyMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SER.Code.MethodSystem.Methods.OutputMethods;
99
public class ReplyMethod : SynchronousMethod
1010
{
1111
public override string Description =>
12-
"Sends a message to the place where the script was run from. Usually used for replying to the command sender.";
12+
"Sends a message to the place where the script was run from.";
1313

1414
public override Argument[] ExpectedArguments { get; } =
1515
[

0 commit comments

Comments
 (0)