Browse Source

Message when claiming mine succeeds.

master
MagicBot 2 years ago
parent
commit
78cdb6967a
  1. 3
      src/engine/objects/Mine.java
  2. 4
      src/engine/powers/poweractions/ClaimMinePowerAction.java

3
src/engine/objects/Mine.java

@ -36,8 +36,7 @@ import java.time.LocalDateTime; @@ -36,8 +36,7 @@ import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap;
import static engine.gameManager.DbManager.MineQueries;
import static engine.gameManager.DbManager.getObject;
import static engine.gameManager.DbManager.*;
import static engine.math.FastMath.sqr;
public class Mine extends AbstractGameObject {

4
src/engine/powers/poweractions/ClaimMinePowerAction.java

@ -47,7 +47,9 @@ public class ClaimMinePowerAction extends AbstractPowerAction { @@ -47,7 +47,9 @@ public class ClaimMinePowerAction extends AbstractPowerAction {
if (mine == null)
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.");
}

Loading…
Cancel
Save