Skip to content

Commit

Permalink
Improved grammer on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ben_pollard committed Jan 10, 2025
1 parent 4392689 commit 8926a74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NetAF/Commands/Scene/Drop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public Reaction Invoke(Logic.Game game)
return new(ReactionResult.Error, "You must specify a character.");

if (!game.Player.CanTakeAndDropItems)
return new(ReactionResult.Error, "The player cannot drop items.");
return new(ReactionResult.Error, $"{game.Player.Identifier.Name} cannot drop items.");

if (item == null)
return new(ReactionResult.Error, "You must specify what to drop.");

if (!game.Player.HasItem(item))
return new(ReactionResult.Error, "You don't have that item.");
return new(ReactionResult.Error, $"{game.Player.Identifier.Name} does not have that item.");

game.Overworld.CurrentRegion.CurrentRoom.AddItem(item);
game.Player.RemoveItem(item);
Expand Down
2 changes: 1 addition & 1 deletion NetAF/Commands/Scene/Take.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Reaction Invoke(Logic.Game game)
return new(ReactionResult.Error, "You must specify a character.");

if (!game.Player.CanTakeAndDropItems)
return new(ReactionResult.Error, "The player cannot take items.");
return new(ReactionResult.Error, $"{game.Player.Identifier.Name} cannot take items.");

if (item == null)
return new(ReactionResult.Error, "You must specify what to take.");
Expand Down
2 changes: 1 addition & 1 deletion NetAF/Commands/Scene/TakeAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Reaction Invoke(Logic.Game game)
return new(ReactionResult.Error, "You must specify a character.");

if (!game.Player.CanTakeAndDropItems)
return new(ReactionResult.Error, "The player cannot take items.");
return new(ReactionResult.Error, $"{game.Player.Identifier.Name} cannot take items.");

if (game.Overworld.CurrentRegion.CurrentRoom == null)
return new(ReactionResult.Error, "Not in a room.");
Expand Down

0 comments on commit 8926a74

Please sign in to comment.