Skip to content

Commit 567034d

Browse files
committed
finally remembered to add VPR and PCT to role types
1 parent b2df31e commit 567034d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

WoLua/Lua/Api/Game/JobData.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@
77
namespace VariableVixen.WoLua.Lua.Api.Game;
88

99
[MoonSharpUserData]
10-
[MoonSharpHideMember(nameof(Equals))]
1110
[MoonSharpHideMember("<Clone>$")]
1211
[MoonSharpHideMember(nameof(Deconstruct))]
1312
public sealed record class JobData(uint Id, string? Name, string? Abbreviation): IEquatable<JobData> {
1413
public const string
1514
InvalidJobName = "adventurer",
1615
InvalidJobAbbr = "ADV";
17-
public bool Equals(JobData? other)
18-
=> this.Id == other?.Id;
19-
public override int GetHashCode()
20-
=> this.Id.GetHashCode();
16+
17+
[MoonSharpHidden] public bool Equals(JobData? other) => this.Id == other?.Id;
18+
[MoonSharpHidden] public override int GetHashCode() => this.Id.GetHashCode();
2119

2220
public string? Abbr
2321
=> this.Abbreviation;
@@ -32,11 +30,11 @@ public bool IsCrafter
3230
public bool IsGatherer
3331
=> this.Valid && this.Id is >= 16 and <= 18;
3432
public bool IsMeleeDPS
35-
=> this.Valid && this.Id is 2 or 4 or 20 or 22 or 29 or 30 or 34 or 39;
33+
=> this.Valid && this.Id is 2 or 4 or 20 or 22 or 29 or 30 or 34 or 39 or 41;
3634
public bool IsRangedDPS
3735
=> this.Valid && this.Id is 5 or 23 or 31 or 38;
3836
public bool IsMagicDPS
39-
=> this.Valid && this.Id is 7 or 25 or 26 or 27 or 35;
37+
=> this.Valid && this.Id is 7 or 25 or 26 or 27 or 35 or 42;
4038
public bool IsHealer
4139
=> this.Valid && this.Id is 6 or 24 or 28 or 33 or 40;
4240
public bool IsTank

0 commit comments

Comments
 (0)