iquickeater: antifire's will now be consumed just before they are about to expire - needs testing

This commit is contained in:
illumineawake 2020-11-07 19:09:01 +11:00
parent 0da2d9d745
commit 9a8b6e2b54
5 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.2.0"
version = "4.3.0"
project.extra["PluginName"] = "iQuick Eater"
project.extra["PluginDescription"] = "Illumine - auto eat food, consume potions and equip items"

View File

@ -277,9 +277,10 @@ public class iQuickEaterPlugin extends Plugin
private void onChatMessage(ChatMessage event)
{
String BURN_MESSAGE = ("You're horribly burnt by the dragon fire!");
String BURN_EXPIRE = ("antifire potion is about to expire.");
String IMB_HEART_MESSAGE = ("Your imbued heart has regained its magical power.");
if (event.getMessage().equals(BURN_MESSAGE) && config.drinkAntiFire())
if (event.getMessage().equals(BURN_MESSAGE) || event.getMessage().contains(BURN_EXPIRE) && config.drinkAntiFire())
{
if (inventory.containsItem(ANTI_FIRE_SET))
{

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.