Command to makes you char full resources (arcane power, furia and etc.)
This commit is contained in:
parent
8fc7021992
commit
917b4cf062
@ -43,6 +43,9 @@ Switch private Tag for connect
|
|||||||
### !powerful
|
### !powerful
|
||||||
Makes your character with absurd amount of damage. Useful for testing.
|
Makes your character with absurd amount of damage. Useful for testing.
|
||||||
|
|
||||||
|
### !resourceful
|
||||||
|
Makes your character with full resource. Useful for testing.
|
||||||
|
|
||||||
### !info
|
### !info
|
||||||
Get current game information.
|
Get current game information.
|
||||||
|
|
||||||
|
|||||||
@ -55,6 +55,33 @@ public class PowerfulCommand : CommandGroup
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[CommandGroup("resourcefull", "Makes your character with full resource. Useful for testing.",
|
||||||
|
Account.UserLevels.Tester)]
|
||||||
|
public class ResourcefullCommand : CommandGroup
|
||||||
|
{
|
||||||
|
[DefaultCommand]
|
||||||
|
public string Resourcefull(string[] @params, BattleClient invokerClient)
|
||||||
|
{
|
||||||
|
if (invokerClient?.InGameClient?.Player is not { } player)
|
||||||
|
return "You must be in game to use this command.";
|
||||||
|
|
||||||
|
if (player.Attributes.FixedMap.Contains(FixedAttribute.Resourcefull))
|
||||||
|
{
|
||||||
|
player.Attributes.FixedMap.Remove(FixedAttribute.Resourcefull);
|
||||||
|
player.Attributes.BroadcastChangedIfRevealed();
|
||||||
|
return "You are no longer Resourcefull.";
|
||||||
|
}
|
||||||
|
|
||||||
|
player.Attributes.FixedMap.Add(FixedAttribute.Resourcefull, (attributes) =>
|
||||||
|
{
|
||||||
|
attributes[GameAttribute.Resource_Cur, 1] = 100;
|
||||||
|
});
|
||||||
|
|
||||||
|
player.Attributes.BroadcastChangedIfRevealed();
|
||||||
|
return "You are full resource.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[CommandGroup("info", "Get current game information.")]
|
[CommandGroup("info", "Get current game information.")]
|
||||||
public class InfoCommand : CommandGroup
|
public class InfoCommand : CommandGroup
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,7 +8,8 @@ namespace DiIiS_NA.GameServer.GSSystem.ObjectsSystem
|
|||||||
{
|
{
|
||||||
Invulnerable,
|
Invulnerable,
|
||||||
Speed,
|
Speed,
|
||||||
Powerful
|
Powerful,
|
||||||
|
Resourcefull
|
||||||
}
|
}
|
||||||
|
|
||||||
public class FixedMap
|
public class FixedMap
|
||||||
|
|||||||
Loading…
Reference in New Issue
user.block.title