Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(game): legacy commands for stats #236

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f71cb82
feat(game): implement /set command
MeikelLP Nov 26, 2024
4773688
Merge branch 'refs/heads/master' into feature/set-command
MeikelLP Nov 26, 2024
a907113
feat(game): implement /set_maxhp command
MeikelLP Nov 26, 2024
fd3fc9d
refactor(game): rename SendAsync -> Send
MeikelLP Nov 26, 2024
0c0f34e
feat(game): implement /setskill command
MeikelLP Nov 26, 2024
c266b8a
feat(game): implement /con+
MeikelLP Nov 26, 2024
622836c
feat(game): implement /mspd command
MeikelLP Nov 26, 2024
475486f
feat(game): implement /stat_reset command
MeikelLP Nov 26, 2024
eefbedf
feat(game): implement /all_skills_master command
MeikelLP Nov 26, 2024
1d5d945
refactor(game): implement EPlayerClassGendered
MeikelLP Nov 26, 2024
7bd3760
fix(game): equip shields
MeikelLP Nov 26, 2024
fe45581
feat(game): implement /full_set command
MeikelLP Nov 26, 2024
1b8ee98
feat(game): Implement /m + /mob command
MeikelLP Nov 28, 2024
b60b16d
feat(game): Implement /mob_ld command
MeikelLP Nov 28, 2024
e9f6210
fix(game): /set [Name] exp [Value] causing a stack overflow
MeikelLP Nov 29, 2024
7493553
feat(game): Implement /mm command
MeikelLP Nov 29, 2024
56ca39e
feat(game): Implement /group command
MeikelLP Nov 29, 2024
40bb0f8
feat(game): Implement /grrandom command
MeikelLP Nov 29, 2024
b404fec
feat(game): Implement /state command
MeikelLP Nov 29, 2024
2f859ef
feat(game): Implement /gstate command
MeikelLP Nov 29, 2024
32fa285
Merge branch 'feature/monster-commands' into feature/set-command
MeikelLP Nov 29, 2024
a73eb4f
feat(game): Implement /purge command
MeikelLP Nov 29, 2024
b0f9997
refactor(game): improved command error messages
MeikelLP Nov 29, 2024
644305b
Merge branch 'master' into feature/set-command
MeikelLP Dec 13, 2024
d98ec45
Merge branch 'master' into feature/set-command
MeikelLP Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(game): implement /con+
feat(game): implement /int+
feat(game): implement /str+
feat(game): implement /dex+
  • Loading branch information
MeikelLP committed Nov 26, 2024
commit c266b8a1f770880a6dacbda2cf483b809fa86aa4
14 changes: 14 additions & 0 deletions src/Libraries/Game.Server/Commands/ConCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using QuantumCore.API.Game;

namespace QuantumCore.Game.Commands;

[Command("con+", "Increment health stat by 1")]
public class ConCommand : ICommandHandler
{
public Task ExecuteAsync(CommandContext context)
{
context.Player.Player.Ht++;
context.Player.SendPoints();
return Task.CompletedTask;
}
}
14 changes: 14 additions & 0 deletions src/Libraries/Game.Server/Commands/DexCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using QuantumCore.API.Game;

namespace QuantumCore.Game.Commands;

[Command("dex+", "Increment dexterity stat by 1")]
public class DexCommand : ICommandHandler
{
public Task ExecuteAsync(CommandContext context)
{
context.Player.Player.Dx++;
context.Player.SendPoints();
return Task.CompletedTask;
}
}
14 changes: 14 additions & 0 deletions src/Libraries/Game.Server/Commands/IntCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using QuantumCore.API.Game;

namespace QuantumCore.Game.Commands;

[Command("int+", "Increment intelligence stat by 1")]
public class IntCommand : ICommandHandler
{
public Task ExecuteAsync(CommandContext context)
{
context.Player.Player.Iq++;
context.Player.SendPoints();
return Task.CompletedTask;
}
}
14 changes: 14 additions & 0 deletions src/Libraries/Game.Server/Commands/StrCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using QuantumCore.API.Game;

namespace QuantumCore.Game.Commands;

[Command("str+", "Increment strength stat by 1")]
public class StrCommand : ICommandHandler
{
public Task ExecuteAsync(CommandContext context)
{
context.Player.Player.St++;
context.Player.SendPoints();
return Task.CompletedTask;
}
}