diff --git a/civcraft/bin/com/avrgaming/civcraft/config/ConfigTech.class b/civcraft/bin/com/avrgaming/civcraft/config/ConfigTech.class index 5a54a4117..f1e840c4e 100644 Binary files a/civcraft/bin/com/avrgaming/civcraft/config/ConfigTech.class and b/civcraft/bin/com/avrgaming/civcraft/config/ConfigTech.class differ diff --git a/civcraft/bin/com/avrgaming/civcraft/event/GoodieRepoEvent.class b/civcraft/bin/com/avrgaming/civcraft/event/GoodieRepoEvent.class index 063664a9f..a83e0d495 100644 Binary files a/civcraft/bin/com/avrgaming/civcraft/event/GoodieRepoEvent.class and b/civcraft/bin/com/avrgaming/civcraft/event/GoodieRepoEvent.class differ diff --git a/civcraft/bin/com/avrgaming/civcraft/main/CivMessage.class b/civcraft/bin/com/avrgaming/civcraft/main/CivMessage.class index 09775259c..d25f7c070 100644 Binary files a/civcraft/bin/com/avrgaming/civcraft/main/CivMessage.class and b/civcraft/bin/com/avrgaming/civcraft/main/CivMessage.class differ diff --git a/civcraft/bin/com/avrgaming/civcraft/structure/TownHall.class b/civcraft/bin/com/avrgaming/civcraft/structure/TownHall.class index d27330b56..2bd6028cf 100644 Binary files a/civcraft/bin/com/avrgaming/civcraft/structure/TownHall.class and b/civcraft/bin/com/avrgaming/civcraft/structure/TownHall.class differ diff --git a/civcraft/bin/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.class b/civcraft/bin/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.class index 342c15b56..75cb6603d 100644 Binary files a/civcraft/bin/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.class and b/civcraft/bin/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.class differ diff --git a/civcraft/bin/plugin.yml b/civcraft/bin/plugin.yml index fbb9d6b33..e8d3e9b77 100644 --- a/civcraft/bin/plugin.yml +++ b/civcraft/bin/plugin.yml @@ -1,7 +1,7 @@ name: CivCraft main: com.avrgaming.civcraft.main.CivCraft softdepends: [TitleAPI] -version: 1.76.2 +version: 1.76.3 commands: town: diff --git a/civcraft/localization/default_lang.yml b/civcraft/localization/default_lang.yml index b7cf876e3..4ab219cf8 100644 --- a/civcraft/localization/default_lang.yml +++ b/civcraft/localization/default_lang.yml @@ -2008,8 +2008,8 @@ var_civ_gift_tooyoung1: "[%0] cannot participate in gifting/merging civs or town var_civ_debt_endWar: "[%0] was in debt too long and can no longer maintain it's aggressive war with [%1]." -var_cultureEnterMsg: "Entering the civ borders of [%0]" -var_cultureLeaveMsg: "Leaving the civ borders of [%0]" +var_cultureEnterMsg: "Entering civ [%0]. " +var_cultureLeaveMsg: "Leaving civ [%0]. " # =========================== Resident.java Messages ========================= var_resident_debtmsg: "You are in debt by [%0] [%1]!" @@ -2469,7 +2469,8 @@ var_townHall_dynmap_heading: "Town hall of [%0]" townHall_dynmap_cultureLevel: "Culture Level:" townHall_dynmap_flatTax: "Flat Tax:" townHall_dynmap_propertyTax: "Property Tax:" -var_townHall_destroyed_isCap: "The Civilization of [%0] has been conquered by [%1]!" +var_townHall_destroyed_isCap: "[%0] Defeated!" +var_townHall_destroyed_isCap2: "conquered by [%0]!" var_townHall_victoryOverItem: "Victory Over [%0]!" var_townHall_victoryOverItem_withCannon: "Victory Over [%0] via Cannons!" var_townHall_destroyed: "The Town of [%0] in [%1] has been conquered by [%2]!" @@ -2570,10 +2571,10 @@ espionage_missionAborted: "You've left the civ borders. Mission Aborted." var_FoundTownSync_Success: "The town of [%0] has been founded in the Civilization of [%1]!" #---- playerChunkNotify ---- -playerChunkNotify_enterWilderness: "Entering Wilderness - " -var_playerChunkNotify_EnterTown: "Entering the town of [%0] [%1]. " -var_playerChunkNotify_EnterOutpost: "Entering an Outpost of the town of [%0] [%1]. " -var_playerChunkNotify_enterCamp: "Entering the camp called [%0] - " +playerChunkNotify_enterWilderness: "Wilderness - " +var_playerChunkNotify_EnterTown: "[%0] [%1]. " +var_playerChunkNotify_EnterOutpost: "Outpost [%0] [%1]. " +var_playerChunkNotify_enterCamp: "Camp [%0] - " var_playerChunkNotify_enteredBorderAlert: "[%0] has entered our borders!" #---- PlayerLoginAsync ---- @@ -2847,10 +2848,10 @@ war_wartimeBegin_title_length: "War time will last for [%0] hours." cmd_res_toggle_titleAPIDesc: "Toggles displaying of on screen titles." -var_civ_found_successTitle: "New Civilization of [%0]!" -var_civ_found_successSubTitle: "Capitol: [%0] - Founded by: [%1]" +var_civ_found_successTitle: "[%0] Founded!" +var_civ_found_successSubTitle: "Capitol: [%0] - Leader: [%1]" -general_upkeep_tick: "Starting Daily Upkeep Processing" +general_upkeep_tick: "Daily Upkeep Started" general_upkeep_tick_finish: "Daily Upkeep Finished" announce_ancientEra: "The Ancient Era" @@ -2861,7 +2862,7 @@ announce_industrialEra: "The Industrial Era" announce_modernEra: "The Modern Era" announce_atomicEra: "The Atomic Era" announce_informationEra: "The Information Era" -var_announce_newEraCiv: "Has been achieved by [%0]." +var_announce_newEraCiv: "Civ: [%0]" cmd_town_unclaim_errorTownHall: "You cannot unclaim a town chunk containing your town hall." stable_missingTech_MilitaryScience: "You need the technology 'Military Science' in order to buy this." @@ -2882,4 +2883,7 @@ var_missionBook_subvert_errorInTribalism: "[%0] is in Tribalism and has no gover var_missionBook_subvert_alert1: "[%0] has fallen into Anarchy due to the work of spies" var_missionBook_subvert_success1: "Mission Accomplished, [%0] is now in Anarchy" # =========================== END 1.76 ========================= -# ---------------------------------------------------------------- \ No newline at end of file +# ---------------------------------------------------------------- + +# 1.76.3 +goodieRepoBroadcastTitle: "Trade Goodie Repo" \ No newline at end of file diff --git a/civcraft/src/com/avrgaming/civcraft/config/ConfigTech.java b/civcraft/src/com/avrgaming/civcraft/config/ConfigTech.java index ca6eb2459..2cfcd356b 100644 --- a/civcraft/src/com/avrgaming/civcraft/config/ConfigTech.java +++ b/civcraft/src/com/avrgaming/civcraft/config/ConfigTech.java @@ -70,7 +70,7 @@ public static double eraRate(Civilization civ) { public double getAdjustedBeakerCost(Civilization civ) { double rate = 1.0; rate -= eraRate(civ); - return Math.floor(this.beaker_cost*=rate); + return Math.floor(this.beaker_cost*Math.max(rate, .01)); } public double getAdjustedTechCost(Civilization civ) { @@ -86,7 +86,7 @@ public double getAdjustedTechCost(Civilization civ) { rate = Math.max(rate, 0.75); rate -= eraRate(civ); - return Math.floor(this.cost * rate); + return Math.floor(this.cost * Math.max(rate, .01)); } diff --git a/civcraft/src/com/avrgaming/civcraft/event/GoodieRepoEvent.java b/civcraft/src/com/avrgaming/civcraft/event/GoodieRepoEvent.java index 0a3aba182..8ea591466 100644 --- a/civcraft/src/com/avrgaming/civcraft/event/GoodieRepoEvent.java +++ b/civcraft/src/com/avrgaming/civcraft/event/GoodieRepoEvent.java @@ -60,7 +60,8 @@ public void run() { public void process() { CivLog.info("TimerEvent: GoodieRepo -------------------------------------"); repoProcess(); - CivMessage.globalTitle(CivSettings.localize.localizedString("goodieRepoBroadcast"),""); + CivMessage.globalTitle(CivSettings.localize.localizedString("goodieRepoBroadcastTitle"),""); + CivMessage.global(CivSettings.localize.localizedString("goodieRepoBroadcast")); } @Override diff --git a/civcraft/src/com/avrgaming/civcraft/main/CivMessage.java b/civcraft/src/com/avrgaming/civcraft/main/CivMessage.java index 3e3a6f2b4..180af58c1 100644 --- a/civcraft/src/com/avrgaming/civcraft/main/CivMessage.java +++ b/civcraft/src/com/avrgaming/civcraft/main/CivMessage.java @@ -207,7 +207,9 @@ public static void globalTitle(String title, String subTitle) { CivMessage.sendTitle(player, 10, 60, 10, title, subTitle); } else { send(player, buildTitle(title)); - send(player, subTitle); + if (!subTitle.equals("")) { + send(player, subTitle); + } } } } diff --git a/civcraft/src/com/avrgaming/civcraft/structure/TownHall.java b/civcraft/src/com/avrgaming/civcraft/structure/TownHall.java index 8956904ba..600482b21 100644 --- a/civcraft/src/com/avrgaming/civcraft/structure/TownHall.java +++ b/civcraft/src/com/avrgaming/civcraft/structure/TownHall.java @@ -361,7 +361,7 @@ public void onControlBlockDestroy(ControlPoint cp, World world, Player player, S if (allDestroyed) { if (this.getTown().getCiv().getCapitolName().equals(this.getTown().getName())) { - CivMessage.globalTitle(CivColor.LightBlue+ChatColor.BOLD+CivSettings.localize.localizedString("var_townHall_destroyed_isCap",this.getTown().getCiv().getName(),attacker.getCiv().getName()),""); + CivMessage.globalTitle(CivColor.LightBlue+CivSettings.localize.localizedString("var_townHall_destroyed_isCap",this.getTown().getCiv().getName()),CivSettings.localize.localizedString("var_townHall_destroyed_isCap2",attacker.getCiv().getName())); for (Town town : this.getTown().getCiv().getTowns()) { town.defeated = true; } @@ -412,7 +412,7 @@ public void onControlBlockCannonDestroy(ControlPoint cp, Player player, Structur if (allDestroyed) { if (this.getTown().getCiv().getCapitolName().equals(this.getTown().getName())) { - CivMessage.globalTitle(CivColor.LightBlue+ChatColor.BOLD+CivSettings.localize.localizedString("var_townHall_destroyed_isCap",this.getTown().getCiv().getName(),attacker.getCiv().getName()),""); + CivMessage.globalTitle(CivColor.LightBlue+CivSettings.localize.localizedString("var_townHall_destroyed_isCap",this.getTown().getCiv().getName()),CivSettings.localize.localizedString("var_townHall_destroyed_isCap2",attacker.getCiv().getName())); for (Town town : this.getTown().getCiv().getTowns()) { town.defeated = true; } diff --git a/civcraft/src/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.java b/civcraft/src/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.java index 4aa852d05..6f5027e62 100644 --- a/civcraft/src/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.java +++ b/civcraft/src/com/avrgaming/civcraft/threading/tasks/PlayerChunkNotifyAsyncTask.java @@ -135,13 +135,12 @@ private void showPlotMoveMessage() { //We've entered a camp. if (toCamp != null && toCamp != fromCamp) { title += CivColor.Gold+CivSettings.localize.localizedString("var_playerChunkNotify_enterCamp",toCamp.getName())+" "+CivColor.Rose+"[PvP]"; - } - - if (toCamp == null && fromCamp != null) { + } else if (toCamp == null && fromCamp != null) { title += getToWildMessage(); - } - - // From Wild, to town + } else if (fromTc != null && toTc == null) { + // From a town... to the wild + title += getToWildMessage(); + } if (fromTc == null && toTc != null) { // To Town Town t = toTc.getTown(); @@ -156,27 +155,21 @@ private void showPlotMoveMessage() { } - // From a town... to the wild - if (fromTc != null && toTc == null) { - title += getToWildMessage(); - } - // To another town(should never happen with culture...) - if (fromTc != null && toTc != null && fromTc.getTown() != toTc.getTown()) { - title += getToTownMessage(toTc.getTown(), toTc); - } - if (toTc != null) { - subTitle += toTc.getOnEnterString(player, fromTc); - } +// // To another town(should never happen with culture...) +// if (fromTc != null && toTc != null && fromTc.getTown() != toTc.getTown()) { +// title += getToTownMessage(toTc.getTown(), toTc); +// } + +// if (toTc != null) { +// subTitle += toTc.getOnEnterString(player, fromTc); +// } // Leaving culture to the wild. if (fromCc != null && toCc == null) { - title += fromCc.getOnLeaveString(); - } - - // Leaving wild, entering culture. - if (fromCc == null && toCc != null) { + subTitle += fromCc.getOnLeaveString(); + } else if (fromCc == null && toCc != null) { // Leaving wild, entering culture. title += toCc.getOnEnterString(); if (civilization != null) { if (civilization == toCc.getCiv()) { @@ -185,10 +178,9 @@ private void showPlotMoveMessage() { subTitle += CivSettings.localize.localizedString("var_civ_border_relation",civilization.getDiplomacyManager().getRelation(toCc.getCiv()).toString()); } } onCultureEnter(toCc); - } - - //Leaving one civ's culture, into another. - if (fromCc != null && toCc !=null && fromCc.getCiv() != toCc.getCiv()) { + }else if (fromCc != null && toCc !=null && fromCc.getCiv() != toCc.getCiv()) { + //Leaving one civ's culture, into another. + title += fromCc.getOnLeaveString() +" | "+ toCc.getOnEnterString(); onCultureEnter(toCc); if (civilization != null) { diff --git a/civcraft/src/com/avrgaming/sls/SLSManager.java b/civcraft/src/com/avrgaming/sls/SLSManager.java index a21ac98e1..1920c7c08 100644 --- a/civcraft/src/com/avrgaming/sls/SLSManager.java +++ b/civcraft/src/com/avrgaming/sls/SLSManager.java @@ -88,7 +88,7 @@ public static String getParsedVersion() { public static void sendHeartbeat() { try { InetAddress address = InetAddress.getByName("atlas.civcraft.net"); -// String message = gen_id+";"+serverName+";"+serverDescription+";"+serverTimezone+";"+serverAddress+";"+ +// String message = gen_id+";"+serverName+";"+serverDescription+";"+serverTimezone+";"+serverAddress+";"+ String message = gen_id+";"+serverName+";"+serverDescription+";"+serverTimezone+";"+serverAddress+";"+ Bukkit.getOnlinePlayers().size()+";"+Bukkit.getMaxPlayers()+";"+getParsedVersion(); diff --git a/civcraft/src/plugin.yml b/civcraft/src/plugin.yml index fbb9d6b33..e8d3e9b77 100644 --- a/civcraft/src/plugin.yml +++ b/civcraft/src/plugin.yml @@ -1,7 +1,7 @@ name: CivCraft main: com.avrgaming.civcraft.main.CivCraft softdepends: [TitleAPI] -version: 1.76.2 +version: 1.76.3 commands: town: