mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
Make raids less golddiggery
This commit is contained in:
1 parent
c74130869f
commit
021c5a3b05
2 files changed
+5
-5
No files matched your search
@@ -261,7 +261,7 @@ public class Raid {
|
||||
lb.finished = true;
|
||||
Random r = new Random();
|
||||
//The base value can be abjusted
|
||||
lb.value = r.nextDouble() * 100;
|
||||
lb.value = r.nextDouble() * 30;
|
||||
|
||||
//score for looting
|
||||
this.addPointsToRaidScore(10);
|
||||
@@ -857,12 +857,12 @@ public class Raid {
|
||||
|
||||
//Report
|
||||
if (Raid.this.raidTicks % 6000 == 0) {
|
||||
Bukkit.broadcastMessage(String.valueOf(Helper.Chatlabel()) + "Report on the raid of "
|
||||
Bukkit.broadcastMessage(Helper.Chatlabel() + "Report on the raid of "
|
||||
+ Raid.this.getRaidedTown().getName() + ":");
|
||||
Bukkit.broadcastMessage(
|
||||
"Raid Score - " + String.valueOf(Raid.this.raidScore));
|
||||
"Raid Score - " + Raid.this.raidScore);
|
||||
Bukkit.broadcastMessage(
|
||||
"Chunks Looted - " + String.valueOf(Raid.this.lootedChunks.size()) + "/" + raidedTown.getTownBlocks().size());
|
||||
"Chunks Looted - " + Raid.this.lootedChunks.size() + "/" + raidedTown.getTownBlocks().size());
|
||||
}
|
||||
|
||||
//Looting chunks
|
||||
|
||||
@@ -166,7 +166,7 @@ public class RaidCommands implements CommandExecutor {
|
||||
}
|
||||
|
||||
// Is being sieged check
|
||||
for ( Siege s : SiegeData.getSieges()) {
|
||||
for (Siege s : SiegeData.getSieges()) {
|
||||
if(s.getTown().getName().equals(raidedTown.getName())) {
|
||||
raidOwner.sendMessage(String.valueOf(Helper.Chatlabel()) + "That town is already currently being sieged! Cannot raid at this time!");
|
||||
if(admin) p.sendMessage(String.valueOf(Helper.Chatlabel()) + "That town is already currently being sieged! Cannot raid at this time!");
|
||||
|
||||
Reference in new issue
Block a user