From 84568fd43ff28b05344d5a257e9fff29c14878a8 Mon Sep 17 00:00:00 2001 From: Kyle Coburn Date: Sat, 4 Apr 2015 19:02:46 -0700 Subject: [PATCH] Report version number with completion message --- ai/strategies.lua | 4 ++-- main.lua | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ai/strategies.lua b/ai/strategies.lua index 2e66610..10c617f 100644 --- a/ai/strategies.lua +++ b/ai/strategies.lua @@ -1766,7 +1766,7 @@ strategyFunctions = { sellArray = {{name="antidote"}, {name="tm34"}, {name="nugget"}} buyArray = {{name="super_potion",index=1,amount=3}, {name="repel",index=5,amount=3}} end - return shop.transaction{ + return shop.transaction { sell = sellArray, buy = buyArray } @@ -2990,7 +2990,7 @@ strategyFunctions = { if tries == 0 then bridge.tweet("Beat Pokemon Red in "..canProgress.."!") if strategies.seed then - print(utils.frames().." frames, with seed "..strategies.seed) + print("v"..VERSION..": "..utils.frames().." frames, with seed "..strategies.seed) print("Please save this seed number to share, if you would like proof of your run!") end end diff --git a/main.lua b/main.lua index 5d83df9..00f0774 100644 --- a/main.lua +++ b/main.lua @@ -7,13 +7,12 @@ local PAINT_ON = true -- Display contextual information while the bot runs -- START CODE (hard hats on) -local START_WAIT = 99 -local VERSION = "1.2" - GAME_NAME = "red" YELLOW = GAME_NAME == "yellow" INTERNAL = false +local START_WAIT = 99 + local battle = require "action.battle" local textbox = require "action.textbox" local walk = require "action.walk"