Message when claiming mine succeeds.

This commit is contained in:
2023-01-19 14:09:15 -05:00
parent 79d05f1fb2
commit 78cdb6967a
2 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -36,8 +36,7 @@ import java.time.LocalDateTime;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import static engine.gameManager.DbManager.MineQueries; import static engine.gameManager.DbManager.*;
import static engine.gameManager.DbManager.getObject;
import static engine.math.FastMath.sqr; import static engine.math.FastMath.sqr;
public class Mine extends AbstractGameObject { public class Mine extends AbstractGameObject {
@@ -47,7 +47,9 @@ public class ClaimMinePowerAction extends AbstractPowerAction {
if (mine == null) if (mine == null)
return; return;
if (mine.claimMine((PlayerCharacter) source) == false) if (mine.claimMine((PlayerCharacter) source) == true)
ChatManager.sendSystemMessage( (PlayerCharacter) source, "You successfully claimed this mine..");
else
ChatManager.sendSystemMessage( (PlayerCharacter) source, "Your attempt for to claim this mine failed."); ChatManager.sendSystemMessage( (PlayerCharacter) source, "Your attempt for to claim this mine failed.");
} }