fix logic error
This commit is contained in:
parent
d7032977a2
commit
72d70c5d43
@ -10,7 +10,7 @@ fn waitForCooldown(remaining_seconds: i64) void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn depositIfNeeded(api: *ArtifactsAPI, char: *ArtifactsAPI.Character) !void {
|
pub fn depositIfNeeded(api: *ArtifactsAPI, char: *ArtifactsAPI.Character) !void {
|
||||||
if (char.getItemCount() == char.inventory_max_items) return;
|
if (char.getItemCount() < char.inventory_max_items) return;
|
||||||
|
|
||||||
{
|
{
|
||||||
const move_result = try api.actionMove(char.name, 4, 1);
|
const move_result = try api.actionMove(char.name, 4, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user