From bda929229ed9735e7d07c75dafd0a0d904d707e7 Mon Sep 17 00:00:00 2001 From: RedSparr0w Date: Sat, 23 Nov 2019 17:07:13 +1300 Subject: [PATCH] Fixup free space check --- .../src/redone/game/bots/Bot.java | 2 +- .../src/redone/game/bots/BotHandler.java | 2 +- .../redone/game/bots/Bot$TradeChat.class | Bin 795 -> 795 bytes .../2006rebotted/redone/game/bots/Bot.class | Bin 3790 -> 3790 bytes .../redone/game/bots/BotHandler.class | Bin 7209 -> 7208 bytes 5 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2006Redone Server/src/redone/game/bots/Bot.java b/2006Redone Server/src/redone/game/bots/Bot.java index a46add12..2bebcf85 100644 --- a/2006Redone Server/src/redone/game/bots/Bot.java +++ b/2006Redone Server/src/redone/game/bots/Bot.java @@ -75,7 +75,7 @@ public class Bot { // Add some color and effects botClient.setChatTextColor(9); botClient.setChatTextEffects(2); - + String message = "Selling " + item_name + " " + formatSellPrice(value) + " ea - " + botClient.playerName; // Need to figure out how to calculate this botClient.setChatTextSize((byte) 29); diff --git a/2006Redone Server/src/redone/game/bots/BotHandler.java b/2006Redone Server/src/redone/game/bots/BotHandler.java index 90c95886..6b0f7e77 100644 --- a/2006Redone Server/src/redone/game/bots/BotHandler.java +++ b/2006Redone Server/src/redone/game/bots/BotHandler.java @@ -139,7 +139,7 @@ public class BotHandler } public static void takeCoins(Client player){ - if (!player.getItemAssistant().playerHasItem(currency) || player.getItemAssistant().freeSlots() <= 0) { + if (!player.getItemAssistant().playerHasItem(currency) && player.getItemAssistant().freeSlots() <= 0) { player.getActionSender().sendMessage("You don't have enough space in your inventory."); return; } diff --git a/CompiledServer/production/2006rebotted/redone/game/bots/Bot$TradeChat.class b/CompiledServer/production/2006rebotted/redone/game/bots/Bot$TradeChat.class index 77bb9577c1cd1b2216917fd6855216629766436c..427a389fd0197fb9c78462203d9a5b8a45254f2b 100644 GIT binary patch delta 31 mcmbQuHk)lj1{0&vb~UQ-5k1~UdJ26F~o28+p0naluph6dsQ delta 31 mcmbQuHk)lj1{0(4b~UNZ)E26F}}1`7sV2FuA$nalup$p+^D diff --git a/CompiledServer/production/2006rebotted/redone/game/bots/Bot.class b/CompiledServer/production/2006rebotted/redone/game/bots/Bot.class index ca31186942cbbea0f8fa59b1022f984d9d1a6971..ab12ed40d75f52cce18c4d8461fb9a97addf8af2 100644 GIT binary patch delta 213 zcmW-bxoSdT7(~wv7A{v26eH@z7)=n@O03+Cnm{@Wi91(pf{m7z7Iq^1ji9AP%7CRs z-oWSZ1?>F@181h1nTv5TeoaTkhlNMn_(cJp2$I1dPna$dOrH5B%7Pe6URd$UhByZj z{E*~CN*x^&Evsz$U%G&mqI8uAQ6?)nN0kCKVVx##v}y1qX-!An^qsa>8)r&*{^!-% oGP>C5;h`@d2GTNQ!iX7TwwUVEH4S=sU=G3sAL4d2*=zC+ca<_FhX4Qo delta 213 zcmW-bJ8Qyl97RuxLp7!dQf$$PSRaUwb}60equOc(w}2WIhXfaKX+}qfZX*1b4&vm{ zQE+td8{~8J3v};~F6Z9q-0PdZd2sYbi~u)8xE01pk)T47Cut+nINUKOgGZJnIacIZ zQ(#MxZ%P~~tG(`O4=NZwm#bV-6IWd<4eq5s(&U*IFTB#`4NGX#;S)>!hQG9(S{o(d s>7PGF$LtegK$M|;u*EdOWz2#J8>XsvHH%+!!3PLEx{@I@*=zF-f1zC^iU0rr diff --git a/CompiledServer/production/2006rebotted/redone/game/bots/BotHandler.class b/CompiledServer/production/2006rebotted/redone/game/bots/BotHandler.class index 1513ea48776522ba67a4daf7f420fa6ab72506ce..ee256f52d487a2885682782745d852b782079c4c 100644 GIT binary patch delta 44 zcmZ2!vBF}5kGR-F24)~+U`W^6#$Y7K{CFFK$t(tm$w}e|S-2ROl{RZgFtPvu4oC{t delta 45 zcmZ2svC?9LkGR+)24)~+U`W^6#$Y7K{CFFK$xH^`$w}e|S-BZl#JM)BOE9tk02hx6 A%m4rY