From dda73fe1e59d84fccea14c5e6d07ce06c520de22 Mon Sep 17 00:00:00 2001 From: BenjaminGoGurts Date: Sun, 28 Feb 2016 12:01:58 +0100 Subject: [PATCH 1/8] Reduced hopper crafting price Changed it to Steel Ingot to make it more fair --- civcraft/data/materials.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/civcraft/data/materials.yml b/civcraft/data/materials.yml index 15ba88772..aeaba7104 100644 --- a/civcraft/data/materials.yml +++ b/civcraft/data/materials.yml @@ -4380,7 +4380,7 @@ materials: - name: 'AllowBlockPlace' ingredients: - type_id: 0 - custom_id: 'mat_carbide_steel_ingot' + custom_id: 'mat_steel_ingot' data: 0 letter: 's' - type_id: 54 From f051ea009ce70a4fb081709b648df5a1a1f21a98 Mon Sep 17 00:00:00 2001 From: Nathan Stoltenberg Date: Fri, 18 Mar 2016 11:53:59 -0500 Subject: [PATCH 2/8] Corrected the '/town info mine' command. --- .../command/town/TownInfoCommand.class | Bin 30529 -> 30518 bytes civcraft/bin/plugin.yml | 2 +- civcraft/localization/default_lang.yml | 2 +- .../command/town/TownInfoCommand.java | 6 +++--- civcraft/src/plugin.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/civcraft/bin/com/avrgaming/civcraft/command/town/TownInfoCommand.class b/civcraft/bin/com/avrgaming/civcraft/command/town/TownInfoCommand.class index af39a56ae94e37fdcb8253e8991d6202dfa80255..189b3ffd6db88609671b41f04963fcc990839f1a 100644 GIT binary patch delta 3949 zcma)8d3;pW6+ZXfn|W_07qUzy$&ejFN|wnaYzYwx0W^Sw9T7yrBpH%PX3K0WB2g4K zP=SjJC?HxzQ7P+~AX;$2YDJ;7?nSJX*0xyJw#e3V-y{(Mf4}}SbLXCOzVn^+&cQE9 z^h=WX#<_hj0>B`)Sp|i_AdzQGTQgtVX+Kz;p3vkBjrMuN!Ep|c#~BEk=s0TC=rzJz zGMmg1o|4?+xdcr0j-YdnuHAq|{1N~wgN?hiN} zjWJ7&F2K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9;wh;z6 ztue+ETDt`NfcgDV&>Tu#nbs?hUzv`@7wyUUZ|zeiF)+!p#mRcd{L(|#*|NVYK50+2 zI<>gk0WsZED9}4leCkOMw|cH`e7}!$J|M7o(PRsm#Q&iWwId|#rS@?jYM+W0?@0E! zSnW+`Uy8@P!`R=%L2ps&F{;=u{!c2}_h*~v2VwV37;@aqrmGK5_T=f*_wX}fkuRMo zVu`Pjp*Z3j&Me}TZ$!107eiYoymV_-jpIUTY7&ZaXopg?oL#Z}<0H=ue10!pv#YNp+ zj}-@DhG|WDU3&#D!I#<7wOkIhgWW>66l_I|cM?t$pSnL=&`&@Kl z9FCCb9Ld=mkR`S*PV0ypY=eThQxjfx8d8*U$(W5rZHx0_j7XE??O=oD_|U4N-Huo9 z1Nu2uX5R*ro%Z-cf%RoJr!9sJyRi9j7$xI&TKBSSidvwg ze2>f6OtA8|SqfeYIbcHz9AVqo6JV!TeKlT(%SCN?@RaN6tB@dqGoQhu`4} z>;O$mhZT4Oy&6`n6bf)9-Uv3JS3^D;aa6oX>t zU{~>GmF<=9iE>N@uELj07~V0VpAkD?bbQDF<4ra8^b#;ldn@jeqQcg zyj#2%Ddkimp+}u;jmVB>Ca>*z0uOe#st~o&vb6iCQuLdSSQ|^9j6M?xZoSwZ&1DBC*3Ky2_K-(BvANJd=NKJb7BkD Date: Mon, 21 Mar 2016 07:28:26 -0500 Subject: [PATCH 3/8] Fix Notre Dame reduced anarchy buff. --- .../structure/wonders/NotreDame.class | Bin 3403 -> 3594 bytes .../civcraft/structure/wonders/NotreDame.java | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/civcraft/bin/com/avrgaming/civcraft/structure/wonders/NotreDame.class b/civcraft/bin/com/avrgaming/civcraft/structure/wonders/NotreDame.class index 4d79b101bffa154c63ab4a3ba74786da291c5374..35dc9ee32fd0319ef33857eb09573a8b5fa0eeab 100644 GIT binary patch delta 1043 zcmY*ZZF3V<6n<`Yv$xsY%!E+-!YH&9+N4t(sXA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6x`y zO}2f1HQ`s)rs}qrc`}(Sld9WckWQ%V%3b$klUYV4vr7kRi`cDitH$Y6na;?!Z+5#q zPtO8)vvH Date: Tue, 22 Mar 2016 17:20:03 -0500 Subject: [PATCH 4/8] Allow checking of wonders --- .../com/avrgaming/civcraft/object/Town.class | Bin 85908 -> 85988 bytes .../com/avrgaming/civcraft/object/Town.java | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/civcraft/bin/com/avrgaming/civcraft/object/Town.class b/civcraft/bin/com/avrgaming/civcraft/object/Town.class index 4b5e33cf2b0b84e8fd638393680fddba65f98e6b..e3af90cb0bff19f02b0e3156cb7990b507b0e506 100644 GIT binary patch delta 5248 zcmZ8lcYIYv(|+cVyL-;=ULcSV5=euDkU|NaK&YXFYCs@#5<&|IBoqzBAc#^FUcKOv zj-r4_(?Bj&dQnk8Y)Eewuz)WpAj&rczwgKI`{&N=%=$kw!CT=suN$~-p?3nyv zwX!FS964fqtzKjDN9EX}h~RnlvAWfFcu+^`|zyA8>k zFd~0QPLHv}^0RV=*y1DKimb$dy+-WweV!Ff2YolQs)rml;)vxX=n>;uPRtrHDl2;w zhkop>xNlf?t?-jZe1Yc(fg{HC8Z$a)Nd6PSUovi}?^t%ZdS4sy%_A@~ zVqEL2aTBsebsm#5MA52%Vg(Z48F9u6CnzrNF~~Suoa0QPMYRWCAzEG(G$fbwPG!{* zdmsHA_RSueK%W(D89FQ=c%{rXViBSh)t5QOGnX1OdquTJ=6dLzq9tSR+NF-zy?kRU z#TV@&KSWf8-k;_4M8Qx);`KYdi#bU)`=!Cef0nOGREskxE zOfQe=P`a_FWKil@ioFJ5q4su*2z$lK6j{*|D&vdA+rDi#;U~xQ@jf<58-GaR7E)%3EM<*iYFn|Q!I8A zdrm$XwEN$n66c;`vHwZufq$KkCLVgyarFNjHGjo2o>T7*#v z#S~R6zTIv`5K`nCWQ5Ac#DP*os3;bveO-SEqoqZ;zr0I@4Vbiss47yBD4L?7NJV?m z0#A#U7$VZ}jA(=B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~8J1NF#AR*#J~>hH4u!b|+E1tXn2b8Ay0ucC4=wHK5Y2+|Uv z+C)ulp@CLttTkF{8{M@x`s(t?))kPi1290`1YQXs=GCgSrhJ)otm#Zcjhy47#a1&_mtP^HzPDG6ZA+-(xWk5 z7vfDlhJlU49z6jE^(1_&U&2NG3NGuZ_?hi@*#Ah+Af;zgkba#a^(<4sTJ;pBmg|T1nHBRcUjWha?aZVpKe$>Z|>-xCymp@^<^ih8TF&9&o1USoAIl{&v5Bq_=s0@jyIzO*L8lp@qdq&6WN@i=~mf`#en7< z{Rg}6mR$%dno}M6%SlL~K<77(68aJQ9+&xQx1idFe)7yYrUhRl<>0ct%6y&{l*k|c z-nQwv+k!4rj?FG_el8Cmo8Q%Je^jvp5N-#ex?LGH?J8(&S4FZNf_`==2G|i8X;;HL zb`+M{HORDMsFEE^E$nz|YuBbMyAF-D>(V59bEmO?f#zPRO(3Gb6C$sRXd;C4dQk~kZ2D@GkX|X*#+ook3@kz3bX97c*`CK z#~zOl>axcP>=Pd_AVysbM&xxqmR7@dHg)W-s{Y7N2dZ0aF>JJ zD~vV8?j>>s%PRkXE# zbk1eaB;ViIbsfI;4FuXZQOUmT4D3L|U3Vevd(ZaluN~-}_y-K?A#?DEr+myjJV6t0 wpt-k1nzxBA-WIaF6>paZ802j`t2t<8 diff --git a/civcraft/src/com/avrgaming/civcraft/object/Town.java b/civcraft/src/com/avrgaming/civcraft/object/Town.java index bf624973d..c2e589fd1 100644 --- a/civcraft/src/com/avrgaming/civcraft/object/Town.java +++ b/civcraft/src/com/avrgaming/civcraft/object/Town.java @@ -1559,6 +1559,11 @@ public int getStructureTypeCount(String id) { count++; } } + for (Wonder wonder : this.wonders.values()) { + if (wonder.getConfigId().equalsIgnoreCase(id)) { + count++; + } + } return count; } From a4474ecaab935fb9e46e98c2a03dd19c72e72528 Mon Sep 17 00:00:00 2001 From: Nathan Stoltenberg Date: Sun, 27 Mar 2016 14:23:07 -0500 Subject: [PATCH 5/8] Fix Taxation and Enlightenment Techs. --- civcraft/data/techs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/civcraft/data/techs.yml b/civcraft/data/techs.yml index 7fc96a3a0..bee74abbb 100644 --- a/civcraft/data/techs.yml +++ b/civcraft/data/techs.yml @@ -238,7 +238,7 @@ techs: - id: 'tech_taxation' name: 'Taxation' beaker_cost: 5000.0 - cost: 40000.0 + cost: 15000.0 points: 2500 require_techs: 'tech_sailing' era: 2 @@ -532,8 +532,8 @@ techs: #Information era - id: 'tech_enlightenment' name: 'Enlightenment' - beaker_cost: 7500000.0 - cost: 50000000.0 + beaker_cost: 3500000.0 + cost: 15000000.0 points: 375000 require_techs: 'tech_military_science:tech_refrigeration:tech_plastics' era: 7 From 5aa38a2fc8242fc2f3172f04aaa5e843f7f850bf Mon Sep 17 00:00:00 2001 From: Nathan Stoltenberg Date: Sun, 27 Mar 2016 18:34:17 -0500 Subject: [PATCH 6/8] Strip out HTML from SLS --- civcraft/src/com/avrgaming/sls/SLSManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/civcraft/src/com/avrgaming/sls/SLSManager.java b/civcraft/src/com/avrgaming/sls/SLSManager.java index 1920c7c08..ce577eae1 100644 --- a/civcraft/src/com/avrgaming/sls/SLSManager.java +++ b/civcraft/src/com/avrgaming/sls/SLSManager.java @@ -41,16 +41,25 @@ public static void init() throws CivException, InvalidConfiguration { if (serverName.contains(";")) { throw new CivException("Cannot have a server name with a ';' in it."); } + if (serverName.contains("<") && serverName.contains(">")) { + serverName = serverName.replaceAll("[<>]", ""); + } serverDescription = CivSettings.getStringBase("server_description"); if (serverDescription.contains(";")) { throw new CivException("Cannot have a server description with a ';' in it."); } + if (serverDescription.contains("<") && serverDescription.contains(">")) { + serverDescription = serverDescription.replaceAll("[<>]", ""); + } serverAddress = CivSettings.getStringBase("server_address"); if (serverAddress.contains(";")) { throw new CivException("Cannot have a server address with a ';' in it."); } + if (serverAddress.contains("<") && serverAddress.contains(">")) { + serverAddress = serverAddress.replaceAll("[<>]", ""); + } serverURL = CivSettings.getStringBase("server_url"); if (serverURL.contains(";")) { From e15b4ef382fb656a3c9c666ec76f6f1b1cee4fcc Mon Sep 17 00:00:00 2001 From: Nathan Stoltenberg Date: Sun, 27 Mar 2016 18:34:35 -0500 Subject: [PATCH 7/8] Handle ClassCastException in Market --- .../avrgaming/civcraft/structure/Market.class | Bin 10640 -> 10839 bytes .../avrgaming/civcraft/structure/Market.java | 15 +++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/civcraft/bin/com/avrgaming/civcraft/structure/Market.class b/civcraft/bin/com/avrgaming/civcraft/structure/Market.class index 3b067da7d76a08667e70ad36309b87b028bb497c..1559dae3135e596d74af42cce27174d6c61f345a 100644 GIT binary patch delta 4670 zcma)933yXg7XD9?<|XN+O;;KyrR;6fLIK&zB8#9%DOd_viqz1CQX10QrU))XL_rZ1 zd7uJP7Ll+jEf7+6QS9hA3gd!`&ZwY{3otGtj4YjVUlX>$@1tMy?m6e3ckj99Kg+#~ z#vIGDzH@2!egNI6L4l6YNnK-Xu3Gih+FmP+dIi(fr$wTnoX|u4#CS_avIQ>OClHHD zLR?DrG{+1_7nj3b(q)XNveaGDH+7r^1@H(|V}^P#vX6q9ctF9d#n!a;cn}W}3?)v_ z-2{C~>To&PYymGGAs8JM6;5}tdNeB8ibn~gE%lgu`?%UQDl^~0GtC!xA~c64SRn9J zNH9T8_q4z>c$Q%Dls8#Kh)qfTe>*LB4yuC1gtpp_SL;j}+2thyOXSYNoRyX3mEjnU z=LKHCiv(q=qbkQa)1w(aLBaCv4=SILag)GiY*7o$ZyR?A>|`>{vaD6Tz;0=T!duOo zRpGQ?6!r?_VxM&Ix$xG}!`&WdiLUCQ^NC&ZwS1J!|MF-cGRG54!5;_ z8-G>s4k5}_UgU6)oxfg(!(cYL7ciJm=8_=sSg z?x-wtdJ0S3Gx+P`;kQ|E44*3agkN0`owV;W^$TGScj0sC_Adw->X)K}x>_g`*wO<0 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WK^jLZABi;pTYh6O9(K?@(z3#W?@+RuC1*3zZwQT zsfRYw_QInu?w;bO9fuCs#w9n>E2vv Nb^nR)2?uYm{|`rkfN1~# diff --git a/civcraft/src/com/avrgaming/civcraft/structure/Market.java b/civcraft/src/com/avrgaming/civcraft/structure/Market.java index 1ecfd2cab..a4a1130ac 100644 --- a/civcraft/src/com/avrgaming/civcraft/structure/Market.java +++ b/civcraft/src/com/avrgaming/civcraft/structure/Market.java @@ -81,7 +81,7 @@ public static void globalSignUpdate(int id) { try { market.setSignText(sign, item); } catch (ClassCastException e) { - CivLog.error("Can't cast structure sign to sign for market update."); + CivLog.error("Can't cast structure sign to sign for market update. "+sign.getCoord().getX()+" "+sign.getCoord().getY()+" "+sign.getCoord().getZ()); continue; } } @@ -134,7 +134,7 @@ public void processSignAction(Player player, StructureSign sign, PlayerInteractE Market.globalSignUpdate(id); } - public void setSignText(StructureSign sign, ConfigMarketItem item) { + public void setSignText(StructureSign sign, ConfigMarketItem item) throws ClassCastException { String itemColor; switch (item.lastaction) { @@ -153,36 +153,44 @@ public void setSignText(StructureSign sign, ConfigMarketItem item) { Sign s; switch (sign.getAction().toLowerCase()) { case "sellbig": + if (sign.getCoord().getBlock().getState() instanceof Sign) { s = (Sign)sign.getCoord().getBlock().getState(); s.setLine(0, ChatColor.BOLD+CivSettings.localize.localizedString("market_sign_sellBulk")); s.setLine(1, item.name); s.setLine(2, itemColor+item.getSellCostForAmount(BULK_AMOUNT)+" "+CivSettings.CURRENCY_NAME); s.setLine(3, CivSettings.localize.localizedString("var_market_sign_amount",BULK_AMOUNT)); s.update(); + } break; case "sell": + if (sign.getCoord().getBlock().getState() instanceof Sign) { s = (Sign)sign.getCoord().getBlock().getState(); s.setLine(0, ChatColor.BOLD+CivSettings.localize.localizedString("market_sign_sell")); s.setLine(1, item.name); s.setLine(2, itemColor+item.getSellCostForAmount(1)+" "+CivSettings.CURRENCY_NAME); s.setLine(3, CivSettings.localize.localizedString("var_market_sign_amount",1)); s.update(); + } break; case "buy": + if (sign.getCoord().getBlock().getState() instanceof Sign) { s = (Sign)sign.getCoord().getBlock().getState(); s.setLine(0, ChatColor.BOLD+CivSettings.localize.localizedString("market_sign_buy")); s.setLine(1, item.name); s.setLine(2, itemColor+item.getBuyCostForAmount(1)+" "+CivSettings.CURRENCY_NAME); s.setLine(3, CivSettings.localize.localizedString("var_market_sign_amount",1)); s.update(); + } break; case "buybig": + if (sign.getCoord().getBlock().getState() instanceof Sign) { s = (Sign)sign.getCoord().getBlock().getState(); s.setLine(0, ChatColor.BOLD+CivSettings.localize.localizedString("market_sign_buyBulk")); s.setLine(1, item.name); s.setLine(2, itemColor+item.getBuyCostForAmount(BULK_AMOUNT)+" "+CivSettings.CURRENCY_NAME); s.setLine(3, CivSettings.localize.localizedString("var_market_sign_amount",BULK_AMOUNT)); s.update(); + } break; } } catch (Exception e) { @@ -190,8 +198,7 @@ public void setSignText(StructureSign sign, ConfigMarketItem item) { } } - private void buildSign(String action, Integer id, BlockCoord absCoord, - ConfigMarketItem item, SimpleBlock commandBlock) { + private void buildSign(String action, Integer id, BlockCoord absCoord, ConfigMarketItem item, SimpleBlock commandBlock) { Block b = absCoord.getBlock(); ItemManager.setTypeIdAndData(b, ItemManager.getId(Material.WALL_SIGN), (byte)commandBlock.getData(), false); From 5f409e9dd9da998a73cabbfb7d4d4e7d468f428c Mon Sep 17 00:00:00 2001 From: Nathan Stoltenberg Date: Sat, 2 Apr 2016 18:29:27 -0500 Subject: [PATCH 8/8] Fix Global Trade's requirements --- civcraft/data/techs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/civcraft/data/techs.yml b/civcraft/data/techs.yml index bee74abbb..0814f6bdc 100644 --- a/civcraft/data/techs.yml +++ b/civcraft/data/techs.yml @@ -312,7 +312,7 @@ techs: beaker_cost: 10000.0 cost: 40000.0 points: 2500 - require_techs: 'tech_commerce:tech_artillery' + require_techs: 'tech_commerce:tech_exploration' era: 2 - id: 'tech_currency'