mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-04 14:38:57 +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;
|
lb.finished = true;
|
||||||
Random r = new Random();
|
Random r = new Random();
|
||||||
//The base value can be abjusted
|
//The base value can be abjusted
|
||||||
lb.value = r.nextDouble() * 100;
|
lb.value = r.nextDouble() * 30;
|
||||||
|
|
||||||
//score for looting
|
//score for looting
|
||||||
this.addPointsToRaidScore(10);
|
this.addPointsToRaidScore(10);
|
||||||
@@ -857,12 +857,12 @@ public class Raid {
|
|||||||
|
|
||||||
//Report
|
//Report
|
||||||
if (Raid.this.raidTicks % 6000 == 0) {
|
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() + ":");
|
+ Raid.this.getRaidedTown().getName() + ":");
|
||||||
Bukkit.broadcastMessage(
|
Bukkit.broadcastMessage(
|
||||||
"Raid Score - " + String.valueOf(Raid.this.raidScore));
|
"Raid Score - " + Raid.this.raidScore);
|
||||||
Bukkit.broadcastMessage(
|
Bukkit.broadcastMessage(
|
||||||
"Chunks Looted - " + String.valueOf(Raid.this.lootedChunks.size()) + "/" + raidedTown.getTownBlocks().size());
|
"Chunks Looted - " + Raid.this.lootedChunks.size() + "/" + raidedTown.getTownBlocks().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
//Looting chunks
|
//Looting chunks
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ public class RaidCommands implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Is being sieged check
|
// Is being sieged check
|
||||||
for ( Siege s : SiegeData.getSieges()) {
|
for (Siege s : SiegeData.getSieges()) {
|
||||||
if(s.getTown().getName().equals(raidedTown.getName())) {
|
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!");
|
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!");
|
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