Frame 1
var rightClick = new ContextMenu();
rightClick.hideBuiltInItems();
_root.menu = rightClick;
Frame 11
function musicSoundTick() {
_root.musicDelay.myDelay--;
if (_root.musicDelay.myDelay <= 0) {
if (_root.currentScreen == "game") {
_root.musicSound.attachSound(_root.musicArray[_root.gameStage - 1]);
}
_root.musicSound.start();
_root.musicDelay.onEnterFrame = undefined;
}
}
function stopSounds(inCategory) {
if (inCategory == "reel") {
reelSound.stop();
reelCurrent = "";
}
if (inCategory == "fish") {
fishSound.stop();
}
if (inCategory == "scene") {
sceneSound.stop();
}
if (inCategory == "ui") {
uiSound.stop();
}
if (inCategory == "music") {
musicSound.stop();
}
if (inCategory == "ambient") {
ambSound.stop();
}
}
function playSound(inCategory, inSound) {
if ((inCategory == "reel") && (inSound != reelCurrent)) {
reelSound.stop();
reelSound.attachSound(inSound);
reelSound.start();
reelSound.setVolume(100);
reelCurrent = inSound;
}
if (inCategory == "fish") {
fishSound.stop();
fishSound.attachSound(inSound);
fishSound.start();
fishSound.setVolume(100);
}
if (inCategory == "scene") {
sceneSound.stop();
sceneSound.attachSound(inSound);
sceneSound.start();
sceneSound.setVolume(100);
}
if (inCategory == "ui") {
uiSound.stop();
uiSound.attachSound(inSound);
uiSound.start();
uiSound.setVolume(100);
}
if (inCategory == "music") {
musicSound.stop();
musicSound.attachSound(inSound);
musicSound.start();
musicSound.setVolume(60);
musicDelay.onEnterFrame = undefined;
}
if (inCategory == "ambient") {
ambSound.stop();
ambSound.attachSound(inSound);
ambSound.start();
ambSound.setVolume(40);
}
}
var musicObject = attachMovie("Blank_MC", "musicObject", this.getNextHighestDepth());
var musicSound = new Sound(musicObject);
var ambObject = attachMovie("Blank_MC", "ambObject", this.getNextHighestDepth());
var ambSound = new Sound(ambObject);
var reelObject = attachMovie("Blank_MC", "reelObject", this.getNextHighestDepth());
var reelSound = new Sound(reelObject);
var fishobject = attachMovie("Blank_MC", "fishobject", this.getNextHighestDepth());
var fishSound = new Sound(fishobject);
var sceneObject = attachMovie("Blank_MC", "sceneObject", this.getNextHighestDepth());
var sceneSound = new Sound(sceneObject);
var uiObject = attachMovie("Blank_MC", "uiObject", this.getNextHighestDepth());
var uiSound = new Sound(uiObject);
var reelCurrent = new String();
musicDelay.removeMovieClip();
delete musicDelay;
var musicDelay = createEmptyMovieClip("musicDelay", getNextHighestDepth());
var ambArray = ["Amb_Canal", "Amb_Lake", "Amb_Ocean", "Amb_Ocean", "Amb_Golf"];
var musicArray = ["music_1", "music_2", "music_3", "music_4", "music_4"];
ambSound.onSoundComplete = function () {
if (currentScreen == "game") {
ambSound.attachSound(ambArray[gameStage - 1]);
ambSound.start();
} else {
ambSound.stop(ambArray[gameStage - 1]);
}
};
musicSound.onSoundComplete = function () {
if (currentScreen == "game") {
musicDelay.myDelay = SwainMath.randomNumber(300, 600);
} else {
musicDelay.myDelay = 0;
}
musicDelay.onEnterFrame = musicSoundTick;
};
reelSound.onSoundComplete = function () {
if (currentScreen == "game") {
reelSound.attachSound(reelCurrent);
reelCurrent = "";
reelSound.start();
reelSound.setVolume(100);
} else {
reelSound.stop();
}
};
Frame 14
function newGame() {
gameStage = 1;
gameStagesOpen = 1;
myMission = 1;
MissionOrganizer.task1Count = 0;
MissionOrganizer.task2Count = 0;
MissionOrganizer.task3Count = 0;
MissionOrganizer.task4Count = 0;
MissionOrganizer.task1Goal = 0;
MissionOrganizer.task2Goal = 0;
MissionOrganizer.task3Goal = 0;
MissionOrganizer.task4Goal = 0;
myCash = 0;
myEquip = new Array("lure", 0);
BasicInventory.lureInv = new Array();
BasicInventory.baitInv = new Array();
BasicInventory.fishInv = new Array();
BasicInventory.trophyInv = new Array();
BasicInventory.addInvItem("Starter Spoon", "lure", "spoon", 1, 1, 1, 0, "A dinged-up spoon you found. Find a replacement when possible.");
tutorialActive = true;
statFishCaught = 0;
statFishLost = 0;
statSharksCaught = 0;
statLegendsCaught = 0;
statTotalCash = 0;
statShortestFight = 0;
statBiggestFish = undefined;
statSmallestFish = undefined;
statTotalTime = 0;
statTotalCasts = 0;
}
function saveGame() {
var _local1 = SharedObject.getLocal("FishData");
_local1.data.gameStage = gameStage;
_local1.data.gameStagesOpen = gameStagesOpen;
_local1.data.myMission = myMission;
_local1.data.task1Count = MissionOrganizer.task1Count;
_local1.data.task2Count = MissionOrganizer.task2Count;
_local1.data.task3Count = MissionOrganizer.task3Count;
_local1.data.task4Count = MissionOrganizer.task4Count;
_local1.data.task1Goal = MissionOrganizer.task1Goal;
_local1.data.task2Goal = MissionOrganizer.task2Goal;
_local1.data.task3Goal = MissionOrganizer.task3Goal;
_local1.data.task4Goal = MissionOrganizer.task4Goal;
_local1.data.myCash = myCash;
_local1.data.myEquip = myEquip;
_local1.data.lureInv = BasicInventory.lureInv;
_local1.data.baitInv = BasicInventory.baitInv;
_local1.data.fishInv = BasicInventory.fishInv;
_local1.data.trophyInv = BasicInventory.trophyInv;
_local1.data.statFishCaught = statFishCaught;
_local1.data.statFishLost = statFishLost;
_local1.data.statSharksCaught = statSharksCaught;
_local1.data.statLegendsCaught = statLegendsCaught;
_local1.data.statTotalCash = statTotalCash;
_local1.data.statShortestFight = statShortestFight;
_local1.data.statBiggestFish = statBiggestFish;
_local1.data.statSmallestFish = statSmallestFish;
_local1.data.statTotalTime = statTotalTime;
_local1.data.statTotalCasts = statTotalCasts;
_local1.data.baitLife = PondWorld.baitLife;
_local1.flush();
}
function loadGame() {
var _local1 = SharedObject.getLocal("FishData");
if (_local1.data.myCash == undefined) {
newGame();
} else {
gameStage = _local1.data.gameStage;
gameStagesOpen = _local1.data.gameStagesOpen;
myMission = _local1.data.myMission;
MissionOrganizer.task1Count = _local1.data.task1Count;
MissionOrganizer.task2Count = _local1.data.task2Count;
MissionOrganizer.task3Count = _local1.data.task3Count;
MissionOrganizer.task4Count = _local1.data.task4Count;
MissionOrganizer.task1Goal = _local1.data.task1Goal;
MissionOrganizer.task2Goal = _local1.data.task2Goal;
MissionOrganizer.task3Goal = _local1.data.task3Goal;
MissionOrganizer.task4Goal = _local1.data.task4Goal;
myCash = _local1.data.myCash;
myEquip = _local1.data.myEquip;
BasicInventory.lureInv = _local1.data.lureInv;
BasicInventory.baitInv = _local1.data.baitInv;
BasicInventory.fishInv = _local1.data.fishInv;
BasicInventory.trophyInv = _local1.data.trophyInv;
statFishCaught = _local1.data.statFishCaught;
statFishLost = _local1.data.statFishLost;
statSharksCaught = _local1.data.statSharksCaught;
statLegendsCaught = _local1.data.statLegendsCaught;
statTotalCash = _local1.data.statTotalCash;
statShortestFight = _local1.data.statShortestFight;
statBiggestFish = _local1.data.statBiggestFish;
statSmallestFish = _local1.data.statSmallestFish;
statTotalTime = _local1.data.statTotalTime;
statTotalCasts = _local1.data.statTotalCasts;
PondWorld.baitLife = _local1.data.baitLife;
}
}
function newSplash() {
var _local2 = 0;
while (_local2 < 20) {
var _local3 = attachMovie("quick_particle", "introSplash" + String(_local2), this.getNextHighestDepth());
_local3.init(["fish1", "fish2", "fish3"], 400, 600, 80, 0, -90, 90, -50, -20, -20, 20, "menu", 2.5, 20, 10);
_local2++;
}
}
stop();
var currentScreen = "menu";
popup.removeMovieClip();
_root.stopSounds("reel");
_root.stopSounds("scene");
_root.stopSounds("fish");
_root.stopSounds("ambient");
_root.playSound("music", "music_menu");
_root.playSound("scene", "Fish_Catch2");
musicSound.setVolume(30);
_root._quality = "medium";
var gameStage = 1;
var gameStagesOpen = 1;
var myMission = 1;
var myCash = 0;
var myCashDisplay = ("$" + String(myCash));
var myHat = 1;
var tutorialActive = false;
var gameFinished = false;
var myEquip = new Array("lure", 0);
var baitLifeMax = 1800;
var batiLife = baitLifeMax;
var targetDepth = "mid";
var statFishCaught = 0;
var statFishLost = 0;
var statSharksCaught = 0;
var statLegendsCaught = 0;
var statTotalCash = 0;
var statShortestFight = 0;
var statBiggestFish;
var statSmallestFish;
var statTotalTime = 0;
var statTotalCasts = 0;
FishStats.setFishArray();
newSplash();
Instance of Symbol 565 MovieClip "myTarget" in Frame 14
onClipEvent (load) {
var mapStartX = _parent.myMap._x;
var mapBitmap = (new flash.display.BitmapData(_parent.myMap._width, _parent.myMap._height));
mapBitmap.draw(_parent.myMap);
var mapPoint = (new flash.geom.Point(52, 20));
var componentX = 4;
var componentY = 4;
var scaleX = 50;
var scaleY = 50;
var filter = (new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY));
var filterList = new Array();
filterList.push(filter);
this.filters = filterList;
_parent.myMap._visible = false;
}
onClipEvent (enterFrame) {
_parent.myMap._x = _parent.myMap._x - 1;
if (_parent.myMap._x <= (mapStartX - 600)) {
_parent.myMap._x = mapStartX;
}
offsetX = _parent.myMap._x - this._x;
offsetY = _parent.myMap._y - this._y;
var newPoint = (new flash.geom.Point(offsetX, offsetY));
filter.mapPoint = newPoint;
this.filters = filterList;
}
Frame 15
currentScreen = "intro";
Instance of Symbol 619 MovieClip "myTarget" in Frame 15
onClipEvent (load) {
var mapStartX = _parent.myMap2._x;
var mapBitmap = (new flash.display.BitmapData(_parent.myMap2._width, _parent.myMap2._height));
mapBitmap.draw(_parent.myMap2);
var mapPoint = (new flash.geom.Point(0, 0));
var componentX = 4;
var componentY = 4;
var scaleX = 50;
var scaleY = 50;
var filter = (new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY));
var filterList = new Array();
filterList.push(filter);
this.filters = filterList;
_parent.myMap2._visible = false;
}
onClipEvent (enterFrame) {
_parent.myMap2._x = _parent.myMap2._x - 1;
if (_parent.myMap2._x <= (mapStartX - 600)) {
_parent.myMap2._x = mapStartX;
}
offsetX = _parent.myMap2._x - this._x;
offsetY = _parent.myMap2._y - this._y;
var newPoint = (new flash.geom.Point(offsetX, offsetY));
filter.mapPoint = newPoint;
this.filters = filterList;
}
Instance of Symbol 697 MovieClip "tutorialCheckbox" in Frame 15
onClipEvent (enterFrame) {
this._visible = _root.tutorialActive;
}
Frame 19
function selectStage(inStage) {
if (inStage <= gameStagesOpen) {
gameStage = inStage;
_root.gotoAndStop("game");
}
}
function rollOverStage(inStage, rollIn) {
}
currentScreen = "map";
transition.gotoAndPlay(1);
myInventory.gotoAndStop(1);
_root.stopSounds("reel");
_root.stopSounds("scene");
_root.stopSounds("fish");
_root.stopSounds("ambient");
_root.playSound("music", "music_alt2");
_root.playSound("scene", "Stuff_Map");
Frame 20
function leaveFishing() {
newFishing.swapDepths(12345);
newFishing.removeMovieClip();
delete newFishing;
fishCaught.removeMovieClip();
fishLost.removeMovieClip();
}
function setFishAttraction() {
var _local1 = 0;
while (_local1 < FishAI.allFish.length) {
FishAI.allFish[_local1].setLureAttraction();
_local1++;
}
}
function createStressBar(inFish) {
var _local2 = attachMovie("stress_indicator", "stressIndicator", this.getNextHighestDepth());
_local2.init(inFish);
_local2._x = 400;
_local2._y = 450;
}
function createVictory() {
var _local2 = attachMovie("fishCaught", "fishCaught", this.getNextHighestDepth());
_local2._x = 400;
_local2._y = 210;
}
function createFail() {
var _local2 = attachMovie("fishLost", "fishLost", this.getNextHighestDepth());
_local2._x = 400;
_local2._y = 110;
}
function payPlayer(inFish) {
var _local2 = Math.ceil(1 + (((5 * (5 - inFish.myRare)) * inFish.myFight) / 5));
myCash = myCash + _local2;
lastPaycheck = "+$" + String(_local2);
_root.statTotalCash = _root.statTotalCash + _local2;
}
function createMissionComplete() {
var _local2 = attachMovie("mission_complete", "missionComplete", this.getNextHighestDepth());
_local2._x = 400;
_local2._y = 210;
buttonBar.missionPanel.missionFlash.gotoAndPlay(2);
}
currentScreen = "game";
transition.gotoAndPlay(1);
_root.playSound("ambient", ambArray[gameStage - 1]);
_root.playSound("music", musicArray[gameStage - 1]);
if (((gameStage == 2) || (gameStage == 3)) || (gameStage == 4)) {
_root.playSound("scene", "Stuff_NewStage");
}
if (tutorialActive) {
PondWorld.populatePopup("newgame");
tutorialActive = false;
}
var lastPaycheck = new String();
var newFishing = attachMovie("PondWorld", "newFishing", this.getNextHighestDepth());
newFishing.init(gameStage);
newFishing._x = -10;
newFishing._y = 300;
newFishing.swapDepths(popup);
newFishing.swapDepths(myInventory);
Frame 21
transition.gotoAndPlay(1);
_root.stopSounds("reel");
_root.stopSounds("scene");
_root.stopSounds("fish");
_root.stopSounds("ambient");
_root.playSound("music", "music_alt1");
_root.playSound("scene", "Stuff_Store");
fishermanContainer.removeMovieClip();
myInventory.removeMovieClip();
saveGame();
currentScreen = "store";
stop();
var myStoreName = new Array("Miami Store", "Lake Store", "Biscayne Store", "Bimini Store", "West Palm Store");
var displayName = myStoreName[_root.gameStage - 1];
Frame 22
transition.gotoAndPlay(1);
_root.stopSounds("reel");
_root.stopSounds("scene");
_root.stopSounds("fish");
_root.stopSounds("ambient");
_root.playSound("music", "music_alt1");
invFish.currentFish = 0;
invFish.maxFish = 0;
invFish.showFish = 1;
invFish.totalFish = 0;
BasicInventory.assignMaxFish(invFish);
BasicInventory.changeFishAppearance(invFish, "start");
Symbol 2 MovieClip [Blank_MC] Frame 1
_visible = false;
Symbol 11 MovieClip Frame 52
if (currentInterest == "green") {
gotoAndPlay(currentInterest);
}
Symbol 11 MovieClip Frame 113
if (currentInterest == "red") {
gotoAndPlay(currentInterest);
}
Symbol 13 MovieClip Frame 1
_visible = false;
Symbol 30 MovieClip Frame 46
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
_visible = false;
Symbol 42 MovieClip Frame 5
gotoAndPlay(currentInterest);
Symbol 42 MovieClip Frame 25
gotoAndPlay(currentInterest);
Symbol 42 MovieClip Frame 60
gotoAndPlay(currentInterest);
Symbol 42 MovieClip Frame 113
gotoAndPlay(currentInterest);
Symbol 52 MovieClip [PondWorld] Frame 1
#initclip 12
Object.registerClass("PondWorld", PondWorld);
#endinitclip
Instance of Symbol 31 MovieClip "rodStrengthX" in Symbol 52 MovieClip [PondWorld] Frame 2
onClipEvent (load) {
_alpha = 0;
_visible = false;
var myWidth = barBG._width;
var myHeight = barBG._height;
}
Symbol 59 MovieClip [fish_unit] Frame 1
#initclip 9
Object.registerClass("fish_unit", FishAI);
#endinitclip
Symbol 65 MovieClip Frame 86
_parent.removeMovieClip();
Symbol 69 MovieClip Frame 150
_parent.removeMovieClip();
Symbol 72 MovieClip Frame 43
_parent.removeMovieClip();
Symbol 74 MovieClip Frame 92
_parent.removeMovieClip();
Instance of Symbol 67 MovieClip in Symbol 75 MovieClip [pondEffect] Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.paused) {
_parent.myEffect.stop();
} else {
_parent.myEffect.play();
}
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 8
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 6
stop();
Symbol 112 MovieClip Frame 6
stop();
Symbol 115 MovieClip Frame 6
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
_parent.healthBar.healthScale.gotoAndPlay(1);
Symbol 116 MovieClip Frame 3
_parent.healthBar.healthScale.gotoAndPlay(1);
Symbol 116 MovieClip Frame 4
_parent.healthBar.healthScale.gotoAndPlay(1);
Symbol 116 MovieClip Frame 5
var i = 0;
while (i < 20) {
var newFishing = attachMovie("quick_particle", "introSplash" + String(i), this.getNextHighestDepth());
newFishing.init(["sparkle"], 0, 0, 30, 30, -180, 180, -25, 0, -10, 10, "game", 2.9, 20, 10);
i++;
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 51
_parent.justStarted = false;
Symbol 144 MovieClip Frame 71
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 151 MovieClip [stress_indicator] Frame 1
#initclip 10
Object.registerClass("stress_indicator", StressBar);
#endinitclip
Symbol 165 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
gotoAndStop(_parent.gotoRecord);
Symbol 401 MovieClip Frame 1
if (_parent.amLegendary) {
_visible = true;
} else {
_visible = false;
}
Symbol 405 Button
on (press) {
play();
}
Symbol 411 MovieClip Frame 32
stop();
Symbol 412 MovieClip [fishCaught] Frame 1
pauseGame = false;
Symbol 412 MovieClip [fishCaught] Frame 2
_root.playSound("scene", "Fish_Catch1");
Symbol 412 MovieClip [fishCaught] Frame 16
pauseGame = true;
var gotoRecord = "none";
var thisType = _root.newFishing.lastFish.myType;
if (BasicInventory.fishInv[thisType].fishArray[0] == _root.newFishing.lastFish) {
if ((BasicInventory.fishInv[thisType].fishArray[1] == undefined) && (BasicInventory.fishInv[thisType].fishArray[2] == undefined)) {
gotoRecord = "new_fish";
} else {
gotoRecord = "new_record";
}
}
var amLegendary = _root.newFishing.lastFish.amLegendary;
Instance of Symbol 392 MovieClip "invFish" in Symbol 412 MovieClip [fishCaught] Frame 16
onClipEvent (load) {
BasicInventory.changeFishAppearance(this, "last");
_xscale = 100;
_yscale = 100;
myStand._visible = false;
}
Symbol 412 MovieClip [fishCaught] Frame 31
stop();
Symbol 412 MovieClip [fishCaught] Frame 32
function newSplash() {
var _local2 = 0;
while (_local2 < 40) {
var _local3 = attachMovie("quick_particle", "introSplash" + String(_local2), this.getNextHighestDepth());
_local3.init(["fish1", "fish2", "fish3", "coins", "coins", "coins"], 0, 0, 110, 60, -90, 90, -50, -20, -20, 20, "game", 3.5, 20, 10);
_local2++;
}
}
newSplash();
_root.playSound("scene", "Fish_Catch2");
Symbol 412 MovieClip [fishCaught] Frame 37
pauseGame = false;
Symbol 412 MovieClip [fishCaught] Frame 50
if ((_root.myMission == 11) && (!_root.gameFinished)) {
PondWorld.populatePopup("victory");
_root.gameFinished = true;
}
Symbol 412 MovieClip [fishCaught] Frame 126
stop();
this.removeMovieClip();
delete this;
Symbol 415 MovieClip [fishLost] Frame 51
stop();
this.removeMovieClip();
delete this;
Symbol 429 MovieClip Frame 1
gotoAndPlay(SwainMath.randomNumber(1, 10) + 1);
Symbol 429 MovieClip Frame 11
gotoAndPlay (2);
Symbol 433 MovieClip Frame 1
gotoAndStop(SwainMath.randomNumber(1, 3));
Symbol 434 MovieClip [quick_particle] Frame 1
#initclip 11
Object.registerClass("quick_particle", QuickParticle);
#endinitclip
Symbol 450 MovieClip [mission_complete] Frame 56
if (!MissionOrganizer.returnNewStage()) {
stop();
this.removeMovieClip();
delete this;
}
Symbol 450 MovieClip [mission_complete] Frame 106
stop();
this.removeMovieClip();
delete this;
Instance of Symbol 457 MovieClip in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = 100 + ((100 - _parent._parent._xscale) * 2);
this._yscale = this._xscale;
}
Symbol 467 MovieClip Frame 1
stop();
if (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType == "fly") {
nextFrame();
}
Symbol 470 MovieClip Frame 81
myStatus = "loop";
Symbol 470 MovieClip Frame 158
if (myStatus == "loop") {
gotoAndPlay ("loop");
}
Symbol 470 MovieClip Frame 186
if (myStatus == "bite") {
myStatus = "loop";
gotoAndPlay ("loop");
}
Symbol 470 MovieClip Frame 197
if (myStatus == "caught") {
stop();
}
Symbol 492 Button
on (release) {
_root.play();
}
Symbol 493 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 493 MovieClip Frame 2
gotoAndPlay (1);
Symbol 500 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.kongregate.com/?haref=superfishing&src=spon&cm=superfishing", "_blank");
}
Symbol 501 MovieClip Frame 1
stop();
Symbol 1400 MovieClip [__Packages.BasicInventory] Frame 0
class BasicInventory
{
function BasicInventory () {
}
static function addInvItem(inName, inCatagory, inType, inSubType, inColor1, inColor2, inLevel, inDescription) {
var _local3 = getEmptySlot(inCatagory);
var _local2 = new Object();
if (_local3 != undefined) {
if (inCatagory == "lure") {
lureInv[_local3] = _local2;
} else {
baitInv[_local3] = _local2;
_local2.myQuantity = 10;
}
}
_local2.myName = inName;
_local2.myType = inType;
_local2.mySubType = inSubType;
_local2.myColor1 = inColor1;
_local2.myColor2 = inColor2;
_local2.myLevel = inLevel;
_local2.myDescription = inDescription;
_root.saveGame();
}
static function removeInvItem(inCatagory, inSlot, payCash) {
if (inCatagory == "lure") {
if (payCash) {
_root.myCash = _root.myCash + 10;
}
lureInv[inSlot] = undefined;
} else {
baitInv[inSlot] = undefined;
}
_root.saveGame();
}
static function getEmptySlot(inCatagory) {
var _local2;
var _local1 = 0;
while (_local1 < 4) {
if ((inCatagory == "lure") && (lureInv[_local1] == undefined)) {
_local2 = _local1;
break;
}
if (inCatagory == "bait") {
if (_local1 > 1) {
break;
}
if (baitInv[_local1] == undefined) {
_local2 = _local1;
break;
}
}
_local1++;
}
return(_local2);
}
static function loadLureStats(inType, inStage, inSlot, inLure) {
if (inType == "jig") {
if (inStage == 1) {
if (inSlot == 1) {
inLure.mySubType = 0;
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 2) {
if (inSlot == 1) {
inLure.mySubType = 0;
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 3) {
if (inSlot == 1) {
inLure.myName = "Pop-Eye Jig";
inLure.mySubType = 1;
inLure.myColor1Options = [1, 2, 3, 4];
inLure.myColor2Options = [11, 12, 13];
inLure.myCost = 20;
inLure.myLevel = 1;
inLure.myDescription = "A great starter lure for fishermen trying to score bigger game.";
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 4) {
if (inSlot == 1) {
inLure.myName = "Pop-Eye Jig";
inLure.mySubType = 1;
inLure.myColor1Options = [1, 2, 3, 4, 11, 8];
inLure.myColor2Options = [3, 5, 6, 15];
inLure.myCost = 20;
inLure.myLevel = 1;
inLure.myDescription = "A great starter lure for fishermen trying to score bigger game.";
} else if (inSlot == 2) {
inLure.myName = "Bubblejig";
inLure.mySubType = 2;
inLure.myColor1Options = [8, 4, 9, 5];
inLure.myColor2Options = [1, 4, 3, 5, 7];
inLure.myCost = 70;
inLure.myLevel = 2;
inLure.myDescription = "Skirtless but still effective. Air and counterweight help this jig live up to its name.";
} else if (inSlot == 3) {
inLure.myName = "Fletched Jig";
inLure.mySubType = 3;
inLure.myColor1Options = [2, 7, 3, 12, 13];
inLure.myColor2Options = [1, 9, 3, 4, 6];
inLure.myCost = 120;
inLure.myLevel = 3;
inLure.myDescription = "Large fish can't resist this bearded jig.";
} else if (inSlot == 4) {
inLure.myName = "Tacklemaster Jig";
inLure.mySubType = 4;
inLure.myColor1Options = [6, 2, 3, 4];
inLure.myColor2Options = [1, 15, 3, 4, 12];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "Why play around with laboratory gear when you can go for what works: realism, in a lure!";
}
} else if (inStage == 5) {
if (inSlot == 1) {
inLure.myName = "Tacklemaster Jig";
inLure.mySubType = 4;
inLure.myColor1Options = [8, 4, 9, 5];
inLure.myColor2Options = [3, 5, 6, 15];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "Why play around with laboratory gear when you can go for what works: realism, in a lure!";
} else if (inSlot == 2) {
inLure.myName = "KrakenKaster Jig";
inLure.mySubType = 5;
inLure.myColor1Options = [2, 7, 3, 12, 13];
inLure.myColor2Options = [8, 4, 9, 5];
inLure.myCost = 200;
inLure.myLevel = 5;
inLure.myDescription = "More realism and more attraction than any other jig on the market.";
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
}
}
if (inType == "spoon") {
if (inStage == 1) {
if (inSlot == 1) {
inLure.myName = "VanillaCo Spoon";
inLure.mySubType = 1;
inLure.myColor1Options = [10, 13, 2, 5, 8];
inLure.myColor2Options = [11, 15, 6, 7, 4];
inLure.myCost = 15;
inLure.myLevel = 1;
inLure.myDescription = "The classic spoon, suitable for all levels of fishing experience.";
} else if (inSlot == 2) {
inLure.myName = "FishBar Spoon";
inLure.mySubType = 2;
inLure.myColor1Options = [4, 8, 12, 9, 3];
inLure.myColor2Options = [12, 15, 6, 7, 3];
inLure.myCost = 40;
inLure.myLevel = 2;
inLure.myDescription = "An exotic and irresistible dance provided by this spoon will always bring chase.";
} else if (inSlot == 3) {
inLure.myName = "Electrum Spoon";
inLure.mySubType = 3;
inLure.myColor1Options = [12, 3, 4, 5, 1];
inLure.myColor2Options = [12, 11, 6, 7, 15];
inLure.myCost = 70;
inLure.myLevel = 3;
inLure.myDescription = "Currents in the water cause this spoon to wiggle erratically, appearing quite lifelike to fish.";
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 2) {
if (inSlot == 1) {
inLure.myName = "Electrum Spoon";
inLure.mySubType = 3;
inLure.myColor1Options = [1, 4, 8, 9, 10];
inLure.myColor2Options = [8, 9, 13, 14, 15];
inLure.myCost = 70;
inLure.myLevel = 3;
inLure.myDescription = "Currents in the water cause this spoon to wiggle erratically, appearing quite lifelike to fish.";
} else if (inSlot == 2) {
inLure.myName = "Bottle-Opener Spoon";
inLure.mySubType = 4;
inLure.myColor1Options = [5, 6, 7, 8, 10];
inLure.myColor2Options = [10, 15, 6, 8, 9];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "An improved model derived from old coin-and-tongue spoon lures.";
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 3) {
if (inSlot == 1) {
inLure.myName = "Bottle-Opener Spoon";
inLure.mySubType = 4;
inLure.myColor1Options = [2, 3, 7, 14, 15];
inLure.myColor2Options = [1, 5, 7, 13];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "An improved model derived from old coin-and-tongue spoon lures.";
} else if (inSlot == 2) {
inLure.myName = "SushiWhistle Spoon";
inLure.mySubType = 5;
inLure.myColor1Options = [6, 7, 8, 10, 12];
inLure.myColor2Options = [1, 7, 15, 6, 8];
inLure.myCost = 200;
inLure.myLevel = 5;
inLure.myDescription = "Combining both sound and motion, this spoon's song and dance will pull the rarest fish from the deep.";
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 4) {
if (inSlot == 1) {
inLure.myName = "SushiWhistle Spoon";
inLure.mySubType = 5;
inLure.myColor1Options = [1, 2, 4, 5, 7];
inLure.myColor2Options = [5, 6, 9, 12, 13];
inLure.myCost = 200;
inLure.myLevel = 5;
inLure.myDescription = "Combining both sound and motion, this spoon's song and dance will pull the rarest fish from the deep.";
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 5) {
if (inSlot == 1) {
inLure.mySubType = 0;
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
}
}
if (inType == "plug") {
if (inStage == 1) {
if (inSlot == 1) {
inLure.mySubType = 0;
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 2) {
if (inSlot == 1) {
inLure.mySubType = 0;
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 3) {
if (inSlot == 1) {
inLure.myName = "Petite Pete Plug";
inLure.mySubType = 1;
inLure.myColor1Options = [1, 4, 5, 13, 15];
inLure.myColor2Options = [1, 7, 8, 9, 13];
inLure.myCost = 15;
inLure.myLevel = 1;
inLure.myDescription = "If you're looking to snag some common game, this is the plug to lean on.";
} else if (inSlot == 2) {
inLure.myName = "TM SadPlug";
inLure.mySubType = 2;
inLure.myColor1Options = [3, 4, 6, 7, 12];
inLure.myColor2Options = [3, 6, 11, 12, 14];
inLure.myCost = 40;
inLure.myLevel = 2;
inLure.myDescription = "A Tacklemaster favorite: this plug imitates injured prey and is very reliable.";
} else if (inSlot == 3) {
inLure.myName = "Lil' ChubPlug";
inLure.mySubType = 3;
inLure.myColor1Options = [2, 3, 7, 10, 14];
inLure.myColor2Options = [1, 2, 11, 14, 15];
inLure.myCost = 70;
inLure.myLevel = 3;
inLure.myDescription = "When stepping up your game to larger fish, this plug is the next logical step up.";
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 4) {
if (inSlot == 1) {
inLure.myName = "Lil' ChubPlug";
inLure.mySubType = 3;
inLure.myColor1Options = [2, 5, 6, 9, 10];
inLure.myColor2Options = [3, 4, 8, 12, 13];
inLure.myCost = 70;
inLure.myLevel = 3;
inLure.myDescription = "When stepping up your game to larger fish, this plug is the next logical step up.";
} else if (inSlot == 2) {
inLure.myName = "Gentleman's Plug";
inLure.mySubType = 4;
inLure.myColor1Options = [1, 2, 3, 8, 11];
inLure.myColor2Options = [5, 10, 11, 12, 14];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "The dual-piece body of the lure simulates a more lifelike motion than most plugs.";
} else if (inSlot == 3) {
inLure.myName = "Screamin' Mimi Plug";
inLure.mySubType = 5;
inLure.myColor1Options = [4, 8, 9, 10, 11];
inLure.myColor2Options = [10, 11, 12, 13, 15];
inLure.myCost = 200;
inLure.myLevel = 5;
inLure.myDescription = "Fish are naturally drawn to the exotic sound produced by this plug when it moves.";
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 5) {
if (inSlot == 1) {
inLure.myName = "Gentleman's Plug";
inLure.mySubType = 4;
inLure.myColor1Options = [1, 3, 5, 9, 10];
inLure.myColor2Options = [4, 6, 7, 13, 14];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "The dual-piece body of the lure simulates a more lifelike motion than most plugs.";
} else if (inSlot == 2) {
inLure.myName = "Screamin' Mimi Plug";
inLure.mySubType = 5;
inLure.myColor1Options = [2, 3, 13, 14, 15];
inLure.myColor2Options = [5, 7, 8, 110, 13];
inLure.myCost = 200;
inLure.myLevel = 5;
inLure.myDescription = "Fish are naturally drawn to the exotic sound produced by this plug when it moves.";
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
}
}
if (inType == "fly") {
if (inStage == 1) {
if (inSlot == 1) {
inLure.mySubType = 0;
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 2) {
if (inSlot == 1) {
inLure.myName = "Tsetse Fly";
inLure.mySubType = 1;
inLure.myColor1Options = [2, 3, 5, 12, 14];
inLure.myColor2Options = [1, 5, 6, 7, 15];
inLure.myCost = 15;
inLure.myLevel = 1;
inLure.myDescription = "A cheap and replaceable standard for most fly fishermen.";
} else if (inSlot == 2) {
inLure.myName = "ShagBeetle";
inLure.mySubType = 2;
inLure.myColor1Options = [2, 4, 8, 9, 15];
inLure.myColor2Options = [1, 2, 10, 11, 12];
inLure.myCost = 40;
inLure.myLevel = 2;
inLure.myDescription = "The additional fur on this fly helps it to keep afloat longer, and thus increases its appeal.";
} else if (inSlot == 3) {
inLure.myName = "Pigtail Fly";
inLure.mySubType = 3;
inLure.myColor1Options = [1, 3, 6, 7, 13];
inLure.myColor2Options = [2, 3, 8, 10, 11];
inLure.myCost = 70;
inLure.myLevel = 3;
inLure.myDescription = "Conical feathers produce an appetizing alternative for bass and other freshwater game.";
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 3) {
if (inSlot == 1) {
inLure.myName = "ShagBeetle";
inLure.mySubType = 2;
inLure.myColor1Options = [1, 3, 6, 10, 13];
inLure.myColor2Options = [4, 7, 13, 14, 15];
inLure.myCost = 40;
inLure.myLevel = 2;
inLure.myDescription = "The additional fur on this fly helps it to keep afloat longer, and thus increases its appeal.";
} else if (inSlot == 2) {
inLure.myName = "Pigtail Fly";
inLure.mySubType = 3;
inLure.myColor1Options = [2, 4, 5, 7, 12];
inLure.myColor2Options = [3, 6, 8, 14, 15];
inLure.myCost = 70;
inLure.myLevel = 3;
inLure.myDescription = "Conical feathers produce an appetizing alternative for bass and other freshwater game.";
} else if (inSlot == 3) {
inLure.myName = "BassFeast Grub";
inLure.mySubType = 4;
inLure.myColor1Options = [1, 3, 5, 9, 10];
inLure.myColor2Options = [3, 4, 6, 11, 12];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "A wet fly capable of attracting fish at any depth.";
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 4) {
if (inSlot == 1) {
inLure.mySubType = 0;
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 5) {
if (inSlot == 1) {
inLure.myName = "BassFeast Grub";
inLure.mySubType = 4;
inLure.myColor1Options = [1, 2, 4, 7, 13];
inLure.myColor2Options = [2, 5, 8, 12, 13];
inLure.myCost = 120;
inLure.myLevel = 4;
inLure.myDescription = "A wet fly capable of attracting fish at any depth.";
} else if (inSlot == 2) {
inLure.myName = "LaserWasp 5000";
inLure.mySubType = 5;
inLure.myColor1Options = [2, 6, 7, 12, 13];
inLure.myColor2Options = [1, 3, 4, 14, 15];
inLure.myCost = 200;
inLure.myLevel = 5;
inLure.myDescription = "It doesn't really shoot lasers at fish, but with its gorgeous hand-craftsmanship, it won't have to.";
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
}
}
if (inType == "bait") {
if (inStage == 1) {
if (inSlot == 1) {
inLure.myName = "Cut Bait Chunks (x10)";
inLure.mySubType = 1;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 10;
inLure.myLevel = 2;
inLure.myDescription = "Various pieces of assorted fish parts. Irresistible to bottom-feeders.";
} else if (inSlot == 2) {
inLure.myName = "Nightcrawlers (x10)";
inLure.mySubType = 2;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 20;
inLure.myLevel = 2;
inLure.myDescription = "Wrigling and convulsive worms that most freshwater (and some saltwater) fish can't ignore.";
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 2) {
if (inSlot == 1) {
inLure.myName = "Cut Bait Chunks (x10)";
inLure.mySubType = 1;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 10;
inLure.myLevel = 2;
inLure.myDescription = "Various pieces of assorted fish parts. Irresistible to bottom-feeders.";
} else if (inSlot == 2) {
inLure.myName = "Minnows (x10)";
inLure.mySubType = 3;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 35;
inLure.myLevel = 2;
inLure.myDescription = "Feeder fish and larger fish spawn, caught or bred live and ready for the hook.";
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 3) {
if (inSlot == 1) {
inLure.myName = "Shrimp (x10)";
inLure.mySubType = 4;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 40;
inLure.myLevel = 2;
inLure.myDescription = "Hooked properly, shrimp will stay alive on your line for a long time.";
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 4) {
if (inSlot == 1) {
inLure.myName = "Squid (x10)";
inLure.mySubType = 5;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 40;
inLure.myLevel = 2;
inLure.myDescription = "The bait of choice for pro fishermen. Live squid is difficult to manage but worth it.";
} else if (inSlot == 2) {
inLure.mySubType = 0;
} else if (inSlot == 3) {
inLure.mySubType = 0;
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
} else if (inStage == 5) {
if (inSlot == 1) {
inLure.myName = "Cut Bait Chunks (x10)";
inLure.mySubType = 1;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 10;
inLure.myLevel = 2;
inLure.myDescription = "Various pieces of assorted fish parts. Irresistible to bottom-feeders.";
} else if (inSlot == 2) {
inLure.myName = "Nightcrawlers (x10)";
inLure.mySubType = 2;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 20;
inLure.myLevel = 2;
inLure.myDescription = "Wrigling and convulsive worms that most freshwater (and some saltwater) fish can't ignore.";
} else if (inSlot == 3) {
inLure.myName = "Minnows (x10)";
inLure.mySubType = 3;
inLure.myColor1Options = [1, 3, 5];
inLure.myColor2Options = [1, 5, 6, 7];
inLure.myCost = 35;
inLure.myLevel = 2;
inLure.myDescription = "Feeder fish and larger fish spawn, caught or bred live and ready for the hook.";
} else if (inSlot == 4) {
inLure.mySubType = 0;
}
}
}
if (inLure.mySubType == 0) {
inLure.gotoAndStop(1);
} else {
inLure.gotoAndStop(2);
changeLureAppearance(inLure.myLure, inLure.myName, inType, inLure.mySubType, inLure.myColor1Options[0], inLure.myColor2Options[0]);
}
}
static function changeLureAppearance(inLure, inName, inType, inSubType, inColor1, inColor2) {
inLure.gotoAndStop(inType + String(inSubType));
inLure.textName.text = inName;
inLure[(inType + String(inSubType)) + "color1"].gotoAndStop(inColor1);
inLure[(inType + String(inSubType)) + "color2"].gotoAndStop(inColor2);
}
static function isEquipped() {
if (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]] == undefined) {
return(false);
}
return(true);
}
static function catchFish(inFish) {
var _local2 = new Object();
_local2.myName = inFish.myName;
_local2.myType = inFish.myType;
_local2.mySize = inFish.mySize;
_local2.mySizeDisplay = inFish.mySizeDisplay;
_local2.myHealth = inFish.myHealth;
_local2.myFight = inFish.myFight;
_local2.myFear = inFish.myFear;
_local2.myLures = inFish.myLures;
_local2.myPickiness = inFish.myPickiness;
_local2.mySpeed = inFish.mySpeed;
_local2.myErratic = inFish.myErratic;
_local2.mySchool = inFish.mySchool;
_local2.myColorsLiked = inFish.myColorsLiked;
_local2.myColorsHated = inFish.myColorsHated;
_local2.amLegendary = inFish.amLegendary;
_local2.mySize = _local2.mySize * 100;
_local2.mySize = _local2.mySize * (0.5 + (0.1 * BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].mySubType));
_local2.mySize = Math.floor(_local2.mySize);
_local2.mySize = _local2.mySize / 100;
_local2.mySizeDisplay = String(_local2.mySize).substr(0, Number(String(Math.floor(_local2.mySize)).length) + 3) + " lbs";
if (fishInv[_local2.myType] == undefined) {
var _local4 = new Object();
_local4.myType = _local2.myType;
var _local5 = new Array();
_local4.fishArray = _local5;
fishInv[_local2.myType] = _local4;
}
sortNewFish(_local2, fishInv[_local2.myType].fishArray);
inFish._parent.lastFish = _local2;
_root.statFishCaught++;
if ((_root.statBiggestFish == undefined) || (inFish.mySize > _root.statBiggestFish.mySize)) {
_root.statBiggestFish = _local2;
}
if (((_root.statSmallestFish == undefined) || (inFish.mySize < _root.statSmallestFish.mySize)) || (_root.statSmallestFish.mySize == 0)) {
_root.statSmallestFish = _local2;
}
if (inFish.amShark) {
_root.statSharksCaught++;
}
if (inFish.amLegendary) {
_root.statLegendsCaught++;
}
if ((inFish.fightTimerTotal < _root.statShortestFight) || (_root.statShortestFight == 0)) {
_root.statShortestFight = inFish.fightTimerTotal;
}
}
static function changeFishAppearance(inFish, inAction) {
if (inAction == "start") {
} else if (inAction == "prev") {
inFish.currentFish--;
inFish.showFish--;
} else if (inAction == "next") {
inFish.currentFish++;
inFish.showFish++;
} else if (inAction == "last") {
}
var _local4 = 0;
while ((fishInv[FishStats.allFish[inFish.currentFish]] == undefined) && (_local4 < FishStats.allFish.length)) {
if (inAction == "prev") {
inFish.currentFish--;
} else {
inFish.currentFish++;
}
if (inFish.currentFish > (FishStats.allFish.length - 1)) {
inFish.currentFish = 0;
inFish.showFish = 1;
}
if (inFish.currentFish < 0) {
inFish.currentFish = FishStats.allFish.length - 1;
inFish.showFish = inFish.maxFish;
}
_local4++;
}
var _local6 = inFish.currentFish;
var _local3 = fishInv[FishStats.allFish[_local6]].fishArray[0];
if (inAction == "last") {
_local3 = fishInv[_root.newFishing.lastFish.myType].fishArray[3];
if (_local3.amLegendary) {
}
}
if (inFish.maxFish == 0) {
inFish.gotoAndStop("empty");
inFish.showFish = 0;
inFish._parent.leftButton._visible = false;
inFish.showWeight = "(Get crackin' on that!)";
inFish.showWeight2 = "";
inFish.showWeight3 = "";
inFish.showName = "NO FISH!";
inFish._parent.rightButton._visible = false;
} else {
inFish.gotoAndStop(_local3.myType);
if (_local3.amLegendary) {
inFish.myStand.gotoAndStop(2);
} else {
inFish.myStand.gotoAndStop(1);
}
if (_local3.mySize <= 50) {
inFish._xscale = 35 + (_local3.mySize * 1.3);
} else if (_local3.mySize <= 150) {
inFish._xscale = 100 + (_local3.mySize / 3);
} else if (_local3.mySize <= 200) {
inFish._xscale = 150 + (_local3.mySize / 20);
} else {
inFish._xscale = 160 + (_local3.mySize / 200);
}
inFish._yscale = inFish._xscale;
inFish.showName = _local3.myName;
inFish.showWeight = _local3.mySizeDisplay;
inFish.showWeight2 = "--- --- ---";
inFish.showWeight3 = "--- --- ---";
if (fishInv[FishStats.allFish[_local6]].fishArray[1] != undefined) {
inFish.showWeight2 = fishInv[FishStats.allFish[_local6]].fishArray[1].mySizeDisplay;
}
if (fishInv[FishStats.allFish[_local6]].fishArray[2] != undefined) {
inFish.showWeight3 = fishInv[FishStats.allFish[_local6]].fishArray[2].mySizeDisplay;
}
}
}
static function assignMaxFish(inFish) {
inFish.totalFish = ("(" + String(FishStats.allFish.length)) + " total)";
var _local2 = new Number();
var _local1 = 0;
while (_local1 < FishStats.allFish.length) {
if (fishInv[FishStats.allFish[_local1]] != undefined) {
_local2++;
}
_local1++;
}
inFish.maxFish = _local2;
}
static function sortNewFish(inFish, inArray) {
var _local1 = new Array();
if (inArray[0] != undefined) {
_local1.push(inArray[0]);
}
if (inArray[1] != undefined) {
_local1.push(inArray[1]);
}
if (inArray[2] != undefined) {
_local1.push(inArray[2]);
}
_local1.push(inFish);
_local1.sortOn("mySize", Array.DESCENDING | Array.NUMERIC);
inArray[0] = _local1[0];
inArray[1] = _local1[1];
inArray[2] = _local1[2];
inArray[3] = inFish;
}
static function checkSaleValid() {
var _local2 = new Number();
var _local1 = 0;
while (_local1 < lureInv.length) {
if (lureInv[_local1] != undefined) {
_local2++;
}
_local1++;
}
return(_local2 > 1);
}
static var lureInv = new Array();
static var baitInv = new Array();
static var fishInv = new Array();
static var trophyInv = new Array();
}
Symbol 1401 MovieClip [__Packages.FishStats] Frame 0
class FishStats
{
function FishStats () {
}
static function setFishArray() {
allFish = ["largemouthbass", "spottedbass", "stripedbass", "peacockbass", "sunshinebass", "blackcrappie", "bluegill", "redbreastsunfish", "spottedsunfish", "warmouth", "channelcatfish", "bluecatfish", "whitecatfish", "walkingcatfish", "oscar", "bluetilapia", "spottedtilapia", "floridagar", "bowfin", "americanshad_fresh", "yellowbullhead", "brownbullhead", "grasscarp", "commoncarp", "brownhoplo", "amberjack", "crevallejack", "almacojack", "americanshad_salt", "sharpnoseshark", "atlanticspadefish", "bandedrudderfish", "bankseabass", "blackseabass", "blackdrum", "blackgrouper", "nassaugrouper", "gaggrouper", "goliathgrouper", "blackfinsnapper", "cuberasnapper", "queensnapper", "redsnapper", "yellowtailsnapper", "dogsnapper", "blacktipshark", "bluemarlin", "spearfish", "sailfish", "swordfish", "whitefinmarlin", "bluefish", "bonefish", "bonnetheadshark", "ceromackerel", "kingmackerel", "dolphin", "fantailmullet", "fatsnook", "gulfflounder", "greateramberjack", "atlanticsturgeon", "joltheadporgy", "ladyfish", "shortfinmakoshark", "snook", "wahoo", "whitegrunt"];
fishHigh1 = new Array();
fishHigh2 = new Array();
fishHigh3 = new Array();
fishHigh4 = new Array();
fishHigh5 = new Array();
fishMid1 = new Array();
fishMid2 = new Array();
fishMid3 = new Array();
fishMid4 = new Array();
fishMid5 = new Array();
fishLow1 = new Array();
fishLow2 = new Array();
fishLow3 = new Array();
fishLow4 = new Array();
fishLow5 = new Array();
var _local2 = new Object();
var _local4 = 0;
while (_local4 < allFish.length) {
applyStats(_local2, allFish[_local4]);
var _local1 = 1;
while (_local1 < 6) {
if (_local2["stage" + String(_local1)]) {
var _local3 = 0;
while (_local3 < _local2.myRare) {
if (_local2.foundLow) {
FishStats["fishLow" + String(_local1)].push(allFish[_local4]);
}
if (_local2.foundMid) {
FishStats["fishMid" + String(_local1)].push(allFish[_local4]);
}
if (_local2.foundHigh) {
FishStats["fishHigh" + String(_local1)].push(allFish[_local4]);
}
_local3++;
}
}
_local1++;
}
_local4++;
}
_local4 = 1;
while (_local4 < 6) {
_local4++;
}
}
static function applyStats(inFish, inType) {
inFish.myType = inType;
inFish.stage1 = false;
inFish.stage2 = false;
inFish.stage3 = false;
inFish.stage4 = false;
inFish.stage5 = false;
inFish.foundLow = false;
inFish.foundMid = false;
inFish.foundHigh = false;
inFish.amLegendary = false;
inFish.amShark = false;
if (inType == "largemouthbass") {
inFish.myName = "Largemouth Bass";
inFish.mySize = SwainMath.randomNumber(300, 1000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1000, 2500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 6;
inFish.myLures = ["fly", "worm", "shrimp"];
inFish.myPickiness = 7;
inFish.myColorsLiked = [2, 6, 11];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 2;
} else if (inType == "spottedbass") {
inFish.myName = "Spotted Bass";
inFish.mySize = SwainMath.randomNumber(80, 200) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(200, 375) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 5;
inFish.myLures = ["worm", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 6, 12, 1];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "stripedbass") {
inFish.myName = "Striped Bass";
inFish.mySize = SwainMath.randomNumber(400, 1200) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1200, 42.25) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 5;
inFish.myLures = ["minnow", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 11, 12];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage5 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 2;
} else if (inType == "peacockbass") {
inFish.myName = "Peacock Bass";
inFish.mySize = SwainMath.randomNumber(120, 375) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(375, 908) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 4;
inFish.myLures = ["minnow", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [3, 6, 11, 12];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage5 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 2;
} else if (inType == "sunshinebass") {
inFish.myName = "Sunshine Bass";
inFish.mySize = SwainMath.randomNumber(230, 700) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(700, 1631) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 4;
inFish.myLures = ["minnow", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 6, 11, 15, 5];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage5 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 4;
} else if (inType == "blackcrappie") {
inFish.myName = "Black Crappie";
inFish.mySize = SwainMath.randomNumber(65, 200) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(200, 383) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 3;
inFish.myFear = 6;
inFish.myLures = ["minnow", "shrimp", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 7, 8, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundMid = true;
inFish.myRare = 3;
} else if (inType == "bluegill") {
inFish.myName = "Bluegill";
inFish.mySize = SwainMath.randomNumber(50, 125) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(125, 295) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 2;
inFish.myFear = 7;
inFish.myLures = ["fly", "worm", "shrimp", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [5, 6, 10, 14, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage2 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 4;
} else if (inType == "redbreastsunfish") {
inFish.myName = "Redbreast Sunfish";
inFish.mySize = SwainMath.randomNumber(40, 75) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(75, 208) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 2;
inFish.myFear = 5;
inFish.myLures = ["fly", "worm", "shrimp", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 6, 10, 11];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundHigh = true;
inFish.myRare = 3;
} else if (inType == "spottedsunfish") {
inFish.myName = "Spotted Sunfish";
inFish.mySize = SwainMath.randomNumber(20, 50) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(50, 83) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 3;
inFish.myLures = ["fly", "worm", "shrimp", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 8, 11, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "warmouth") {
inFish.myName = "Warmouth";
inFish.mySize = SwainMath.randomNumber(30, 75) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(75, 244) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 2;
inFish.myFear = 4;
inFish.myLures = ["fly", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 9, 12, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "channelcatfish") {
inFish.myName = "Channel Catfish";
inFish.mySize = SwainMath.randomNumber(500, 1500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1500, 4400) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 4;
inFish.myLures = ["fly", "cut", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 2, 6, 8, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.foundLow = true;
inFish.myRare = 2;
} else if (inType == "bluecatfish") {
inFish.myName = "Blue Catfish";
inFish.mySize = SwainMath.randomNumber(650, 2000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(2000, 6150) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 4;
inFish.myLures = ["fly", "cut", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 2, 8, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage5 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "whitecatfish") {
inFish.myName = "White Catfish";
inFish.mySize = SwainMath.randomNumber(130, 500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(500, 1880) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 4;
inFish.myLures = ["fly", "cut", "worm", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 6, 8, 13, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.foundLow = true;
inFish.myRare = 2;
} else if (inType == "walkingcatfish") {
inFish.myName = "Walking Catfish";
inFish.mySize = SwainMath.randomNumber(65, 200) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(200, 400) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 2;
inFish.myFear = 3;
inFish.myLures = ["worm", "cut", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 2, 4, 6, 8];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage2 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "oscar") {
inFish.myName = "Oscar";
inFish.mySize = SwainMath.randomNumber(120, 350) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(350, 500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 1;
inFish.myFear = 1;
inFish.myLures = ["fly", "cut", "shrimp", "minnow", "worm", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 4, 5, 6, 8, 9, 10, 14, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
} else if (inType == "bluetilapia") {
inFish.myName = "Blue Tilapia";
inFish.mySize = SwainMath.randomNumber(120, 350) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(350, 500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 4;
inFish.myFear = 4;
inFish.myLures = ["worm", "cut"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 4, 5, 10];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "spottedtilapia") {
inFish.myName = "Spotted Tilapia";
inFish.mySize = SwainMath.randomNumber(30, 75) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(75, 120) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 1;
inFish.myFear = 6;
inFish.myLures = ["cut"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 4, 10, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
} else if (inType == "floridagar") {
inFish.myName = "Florida Gar";
inFish.mySize = SwainMath.randomNumber(130, 500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(500, 944) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 2;
inFish.myLures = ["fish", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [3, 12];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage2 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
} else if (inType == "bowfin") {
inFish.myName = "Bowfin";
inFish.mySize = SwainMath.randomNumber(330, 1000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1000, 1900) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 3;
inFish.myLures = ["fish", "squid", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 7, 9, 11, 12];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
} else if (inType == "americanshad_fresh") {
inFish.myName = "American Freshwater Shad";
inFish.mySize = SwainMath.randomNumber(135, 400) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(400, 519) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 5;
inFish.myLures = ["fly", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 4, 6, 9, 10, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 3;
} else if (inType == "yellowbullhead") {
inFish.myName = "Yellow Bullhead";
inFish.mySize = SwainMath.randomNumber(60, 150) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(150, 200) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 2;
inFish.myFear = 4;
inFish.myLures = ["cut", "worm"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 10, 11, 13, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundLow = true;
inFish.myRare = 3;
} else if (inType == "brownbullhead") {
inFish.myName = "Brown Bullhead";
inFish.mySize = SwainMath.randomNumber(66, 200) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(200, 572) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 4;
inFish.myLures = ["worm", "cut", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 9, 11, 13, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage2 = true;
inFish.stage5 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "grasscarp") {
inFish.myName = "Grass Carp";
inFish.mySize = SwainMath.randomNumber(500, 1500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1500, 4000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 6;
inFish.myLures = ["fly", "cut", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 4, 12];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage5 = true;
inFish.foundLow = true;
inFish.myRare = 2;
} else if (inType == "commoncarp") {
inFish.myName = "Common Carp";
inFish.mySize = SwainMath.randomNumber(500, 1500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1500, 4000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 6;
inFish.myLures = ["worm", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 4, 12, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage5 = true;
inFish.foundLow = true;
inFish.myRare = 4;
} else if (inType == "brownhoplo") {
inFish.myName = "Brown Hoplo";
inFish.mySize = SwainMath.randomNumber(40, 100) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(100, 150) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 1;
inFish.myFear = 5;
inFish.myLures = ["fly", "cut"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 3, 7, 8, 10];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage5 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "amberjack") {
inFish.myName = "Amberjack";
inFish.mySize = SwainMath.randomNumber(330, 1000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1000, 1200) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 3;
inFish.myLures = ["squid", "fish", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [5, 6, 7, 12, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.myRare = 2;
} else if (inType == "bandedrudderfish") {
inFish.myName = "Banded Rudderfish";
inFish.mySize = SwainMath.randomNumber(330, 1000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1000, 1200) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 3;
inFish.myLures = ["fly", "fish", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 8, 9];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "crevallejack") {
inFish.myName = "Crevalle Jack";
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3000, 7000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 3;
inFish.myLures = ["fish", "squid", "shrimp", "minnow"];
inFish.myPickiness = 9;
inFish.myColorsLiked = [10, 12, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "almacojack") {
inFish.myName = "Almaco Jack";
inFish.mySize = SwainMath.randomNumber(630, 2000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(2000, 2500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 4;
inFish.myLures = ["squid", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 6, 10];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
} else if (inType == "americanshad_salt") {
inFish.myName = "American Saltwater Shad";
inFish.mySize = SwainMath.randomNumber(130, 400) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(400, 519) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 4;
inFish.myFear = 4;
inFish.myLures = ["fly", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 4, 6, 9, 10, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundHigh = true;
inFish.myRare = 3;
} else if (inType == "sharpnoseshark") {
inFish.myName = "Sharpnose Shark";
inFish.mySize = SwainMath.randomNumber(500, 1500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1500, 1700) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 3;
inFish.myLures = ["shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [15, 14, 11, 8, 7, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "atlanticspadefish") {
inFish.myName = "Atlantic Spadefish";
inFish.mySize = SwainMath.randomNumber(100, 300) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(300, 600) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 3;
inFish.myFear = 4;
inFish.myLures = ["shrimp", "worm"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 10, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "bankseabass") {
inFish.myName = "Bank Seabass";
inFish.mySize = SwainMath.randomNumber(130, 400) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(400, 600) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 5;
inFish.myLures = ["fish", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 3, 9];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
} else if (inType == "blackseabass") {
inFish.myName = "Black Seabass";
inFish.mySize = SwainMath.randomNumber(200, 600) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(600, 800) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 6;
inFish.myLures = ["shrimp", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 3, 9, 11];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 1;
} else if (inType == "blackdrum") {
inFish.myName = "Black Drum";
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3000, 9600) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 5;
inFish.myLures = ["shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 12, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "blackgrouper") {
inFish.myName = "Black Grouper";
inFish.mySize = SwainMath.randomNumber(1000, 3500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3500, 11300) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 4;
inFish.myLures = ["shrimp", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [7, 8, 9];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "nassaugrouper") {
inFish.myName = "Nassau Grouper";
inFish.mySize = SwainMath.randomNumber(300, 900) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(900, 2500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 4;
inFish.myFear = 3;
inFish.myLures = ["shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [7, 8, 9, 11];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
} else if (inType == "gaggrouper") {
inFish.myName = "Gag Grouper";
inFish.mySize = SwainMath.randomNumber(850, 2500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(2500, 8100) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 4;
inFish.myLures = ["squid", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [5, 7, 8, 11];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 2;
} else if (inType == "goliathgrouper") {
inFish.myName = "Goliath Grouper";
inFish.mySize = SwainMath.randomNumber(8000, 40000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(40000, 68000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 2;
inFish.myFear = 1;
inFish.myLures = ["squid", "shrimp", "fish"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 7, 8, 9, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "blackfinsnapper") {
inFish.myName = "Blackfin Snapper";
inFish.mySize = SwainMath.randomNumber(330, 1000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1000, 1300) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 5;
inFish.myLures = ["worm", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 13, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.myRare = 2;
} else if (inType == "cuberasnapper") {
inFish.myName = "Cubera Snapper";
inFish.mySize = SwainMath.randomNumber(1300, 4000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(4000, 12500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 6;
inFish.myLures = ["fish", "squid", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 14, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.myRare = 2;
} else if (inType == "queensnapper") {
inFish.myName = "Queen Snapper";
inFish.mySize = SwainMath.randomNumber(330, 1000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1000, 1200) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 5;
inFish.myLures = ["fish", "squid", "cut", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 5];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "redsnapper") {
inFish.myName = "Red Snapper";
inFish.mySize = SwainMath.randomNumber(670, 2000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(2000, 4680) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 4;
inFish.myLures = ["fish", "squid", "cut", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 12, 7];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 3;
} else if (inType == "yellowtailsnapper") {
inFish.myName = "Yellowtail Snapper";
inFish.mySize = SwainMath.randomNumber(140, 500) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(500, 890) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 5;
inFish.myLures = ["squid", "worm", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 4];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 2;
} else if (inType == "dogsnapper") {
inFish.myName = "Dog Snapper";
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3000, 4000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 4;
inFish.myLures = ["shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 3, 8];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "blacktipshark") {
inFish.myName = "Blacktip Shark";
inFish.mySize = SwainMath.randomNumber(1300, 5000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(5000, 15200) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 10;
inFish.myFear = 1;
inFish.myLures = ["fish", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [15, 12, 11, 9, 7, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "bluemarlin") {
inFish.myName = "Blue Marlin";
inFish.mySize = SwainMath.randomNumber(10000, 35000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(35000, 104600) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 10;
inFish.myFear = 3;
inFish.myLures = ["fish", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [7, 8];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "spearfish") {
inFish.myName = "Spearfish";
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3000, 6100) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 3;
inFish.myLures = ["fish", "squid", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [6, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "sailfish") {
inFish.myName = "Sailfish";
inFish.mySize = SwainMath.randomNumber(3300, 10000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(10000, 12600) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 3;
inFish.myLures = ["fish", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [12, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "swordfish") {
inFish.myName = "Swordfish";
inFish.mySize = SwainMath.randomNumber(6700, 20000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(20000, 61200) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 10;
inFish.myFear = 3;
inFish.myLures = ["squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [10, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "whitefinmarlin") {
inFish.myName = "Whitefin Marlin";
inFish.mySize = SwainMath.randomNumber(2300, 7000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(7000, 16100) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 3;
inFish.myLures = ["fish", "squid", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 9];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
inFish.amShark = true;
} else if (inType == "bluefish") {
inFish.myName = "Bluefish";
inFish.mySize = SwainMath.randomNumber(240, 700) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(700, 2000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 6;
inFish.myFear = 5;
inFish.myLures = ["fish", "squid", "cut", "shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [6, 9, 10, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "bonefish") {
inFish.myName = "Bonefish";
inFish.mySize = SwainMath.randomNumber(240, 700) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(700, 1600) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 5;
inFish.myLures = ["fly", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 5, 10, 11];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundHigh = true;
inFish.myRare = 3;
} else if (inType == "bonnetheadshark") {
inFish.myName = "Bonnethead Shark";
inFish.mySize = SwainMath.randomNumber(1000, 2000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(2000, 2430) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 10;
inFish.myFear = 1;
inFish.myLures = ["fish", "squid", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 6, 10, 11, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "ceromackerel") {
inFish.myName = "Cero Mackerel";
inFish.mySize = SwainMath.randomNumber(330, 1000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 4;
inFish.myLures = ["squid", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 2, 4, 5];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundMid = true;
inFish.myRare = 3;
} else if (inType == "kingmackerel") {
inFish.myName = "King Mackerel";
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3000, 9000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 4;
inFish.myLures = ["fish", "squid", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 2, 3, 9];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "dolphin") {
inFish.myName = "Dolphin";
inFish.mySize = SwainMath.randomNumber(1100, 3300) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3300, 8100) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 3;
inFish.myLures = ["fish", "squid", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [5, 8, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(12, 18) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 1;
} else if (inType == "fantailmullet") {
inFish.myName = "Fantail Mullet";
inFish.mySize = SwainMath.randomNumber(40, 100) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(100, 150) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 2;
inFish.myFear = 6;
inFish.myLures = ["fly", "cut", "minnow", "worm"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [10, 12, 14, 15];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundHigh = true;
inFish.myRare = 4;
} else if (inType == "fatsnook") {
inFish.myName = "Fat Snook";
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3000, 3500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 8;
inFish.myFear = 2;
inFish.myLures = ["shrimp", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 2;
} else if (inType == "gulfflounder") {
inFish.myName = "Gulf Flounder";
inFish.mySize = SwainMath.randomNumber(140, 400) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(400, 2000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 5;
inFish.myFear = 4;
inFish.myLures = ["squid", "cut", "minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [1, 2, 3, 4];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage4 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "greateramberjack") {
inFish.myName = "Greater Amberjack";
inFish.mySize = SwainMath.randomNumber(1700, 5000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(5000, 14200) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 4;
inFish.myLures = ["fish", "squid", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [11, 12, 13];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 1;
} else if (inType == "atlanticsturgeon") {
inFish.myName = "Atlantic Sturgeon";
inFish.mySize = SwainMath.randomNumber(10000, 30000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(30000, 79000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 7;
inFish.myFear = 5;
inFish.myLures = ["fly", "worm", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [6, 7, 8];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.myRare = 1;
} else if (inType == "joltheadporgy") {
inFish.myName = "Jolthead Porgy";
inFish.mySize = SwainMath.randomNumber(270, 800) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(800, 2300) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 4;
inFish.myFear = 6;
inFish.myLures = ["shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [9, 10, 11];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundMid = true;
inFish.foundHigh = true;
inFish.myRare = 3;
} else if (inType == "ladyfish") {
inFish.myName = "Ladyfish";
inFish.mySize = SwainMath.randomNumber(140, 400) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(400, 600) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 6;
inFish.myLures = ["minnow"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [10, 13, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundHigh = true;
inFish.myRare = 2;
} else if (inType == "shortfinmakoshark") {
inFish.myName = "Shortfin Mako";
inFish.mySize = SwainMath.randomNumber(40000, 80000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(80000, 91100) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 10;
inFish.myFear = 1;
inFish.myLures = ["fish", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [9, 10];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(20, 25) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 1;
inFish.amShark = true;
} else if (inType == "snook") {
inFish.myName = "Snook";
inFish.mySize = SwainMath.randomNumber(1000, 3000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(3000, 4400) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 2;
inFish.myLures = ["fish", "squid", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [2, 13, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage1 = true;
inFish.stage4 = true;
inFish.foundLow = true;
inFish.myRare = 2;
} else if (inType == "wahoo") {
inFish.myName = "Wahoo";
inFish.mySize = SwainMath.randomNumber(1000, 5000) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(5000, 9000) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 9;
inFish.myFear = 1;
inFish.myLures = ["fish", "squid"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [5, 8, 14];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.foundLow = true;
inFish.foundMid = true;
inFish.myRare = 2;
} else if (inType == "whitegrunt") {
inFish.myName = "White Grunt";
inFish.mySize = SwainMath.randomNumber(50, 200) / 100;
if (SwainMath.randomNumber(0, 30) == 0) {
inFish.mySize = SwainMath.randomNumber(200, 1500) / 100;
inFish.amLegendary = true;
}
inFish.myHealth = 300;
inFish.myFight = 3;
inFish.myFear = 5;
inFish.myLures = ["worm", "cut", "shrimp"];
inFish.myPickiness = 8;
inFish.myColorsLiked = [4, 11, 12];
inFish.myColorsHated = [12, 13, 14];
inFish.mySpeed = SwainMath.randomNumber(10, 15) / 10;
inFish.myErratic = 2;
inFish.mySchool = SwainMath.randomNumber(2, 3);
inFish.stage3 = true;
inFish.stage4 = true;
inFish.foundHigh = true;
inFish.myRare = 4;
}
inFish.myHealth = (150 + (inFish.mySize * 5)) + (inFish.myFight * 50);
if (inFish.myHealth > 4000) {
inFish.myHealth = 4000;
}
}
static var fishHigh1 = new Array();
static var fishHigh2 = new Array();
static var fishHigh3 = new Array();
static var fishHigh4 = new Array();
static var fishHigh5 = new Array();
static var fishMid1 = new Array();
static var fishMid2 = new Array();
static var fishMid3 = new Array();
static var fishMid4 = new Array();
static var fishMid5 = new Array();
static var fishLow1 = new Array();
static var fishLow2 = new Array();
static var fishLow3 = new Array();
static var fishLow4 = new Array();
static var fishLow5 = new Array();
static var allFishFresh = new Array();
static var allFishSalt = new Array();
static var allFish = new Array();
}
Symbol 1402 MovieClip [__Packages.SwainMath] Frame 0
class SwainMath
{
function SwainMath () {
}
static function calculate_rotation(source_x, source_y, target_x, target_y) {
Xd = target_x - source_x;
Yd = target_y - source_y;
radAngle = Math.atan2(Yd, Xd);
rotation_result = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (rotation_result > 180) {
rotation_result = -180 + (rotation_result - 180);
}
return(rotation_result);
}
static function move_me(this_mc, this_rotation, this_speed) {
if (this_rotation > 180) {
this_mc._y = this_mc._y + (this_speed * Math.cos((Math.PI/180) * this_rotation));
this_mc._x = this_mc._x - (this_speed * Math.sin((Math.PI/180) * this_rotation));
} else {
this_mc._y = this_mc._y - (this_speed * Math.cos((Math.PI/180) * this_rotation));
this_mc._x = this_mc._x + (this_speed * Math.sin((Math.PI/180) * this_rotation));
}
}
static function move_me2(this_axis, this_rotation, this_speed) {
if (this_rotation > 180) {
if (this_axis == "y") {
return(this_speed * Math.cos((Math.PI/180) * this_rotation));
}
if (this_axis == "x") {
return(-(this_speed * Math.sin((Math.PI/180) * this_rotation)));
}
} else {
if (this_axis == "y") {
return(-(this_speed * Math.cos((Math.PI/180) * this_rotation)));
}
if (this_axis == "x") {
return(this_speed * Math.sin((Math.PI/180) * this_rotation));
}
}
}
static function get_position(startX, startY, this_rotation, this_distance, this_axis) {
if (this_axis == "x") {
if (this_rotation > 180) {
return(startX - (this_distance * Math.sin((Math.PI/180) * this_rotation)));
}
return(startX + (this_distance * Math.sin((Math.PI/180) * this_rotation)));
}
if (this_axis == "y") {
if (this_rotation > 180) {
return(startY + (this_distance * Math.cos((Math.PI/180) * this_rotation)));
}
return(startY - (this_distance * Math.cos((Math.PI/180) * this_rotation)));
}
}
static function get_distance(mc_1, mc_2) {
point_this.x = mc_1._x;
point_this.y = mc_1._y;
point_target.x = mc_2._x;
point_target.y = mc_2._y;
this_distance = flash.geom.Point.distance(point_this, point_target);
return(this_distance);
}
static function get_distance2(mc_1_x, mc_1_y, mc_2_x, mc_2_y) {
point_this.x = mc_1_x;
point_this.y = mc_1_y;
point_target.x = mc_2_x;
point_target.y = mc_2_y;
this_distance = flash.geom.Point.distance(point_this, point_target);
return(this_distance);
}
static function randomNumber(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
static function getAxisDistance(inStart, inEnd) {
var _local1 = inStart - inEnd;
if (inStart < inEnd) {
_local1 = _local1 * -1;
}
return(_local1);
}
static function getRotDistance(inRot1, inRot2) {
var _local1;
if (inRot1 < (inRot2 - 180)) {
inRot1 = inRot1 + 360;
}
if (inRot1 > (inRot2 + 180)) {
inRot1 = inRot1 - 360;
}
_local1 = inRot1 - inRot2;
if (_local1 < 0) {
_local1 = _local1 * -1;
}
return(_local1);
}
static var point_this = new flash.geom.Point(0, 0);
static var point_target = new flash.geom.Point(0, 0);
static var this_distance = new Number();
static var Xd = new Number();
static var Yd = new Number();
static var radAngle = new Number();
static var rotation_result = new Number();
}
Symbol 1403 MovieClip [__Packages.PondWorld] Frame 0
class PondWorld extends MovieClip
{
static var baitLife, currentPond, popupDir, popupTextArray, popupTitleArray;
var startPos, onEnterFrame, onMouseDown, onMouseUp, myHeight, _height, myWidth, _width, gotoAndStop, targetIndicator, randSpawnNumber, myDistanceOffset, _y, pondHit, targetX, targetY, _x, _xmouse, _ymouse, pondGlow, playerLocation, reelDistance, lureSpeed, hookedFish, fishIndicator, rodStrength, lureSTATS, gamePhaseT, mouseDownT, mouseHoldT, mouse2xT, mouseReleaseT, mouseTimerT, rodStressT, hookedFishT, attachMovie, getNextHighestDepth, _parent;
function PondWorld () {
super();
startPos = new Array();
onEnterFrame = tick;
onMouseDown = mouseDown;
onMouseUp = mouseUp;
}
function init(inStage) {
myHeight = _height;
myWidth = _width;
startPos.push(-100);
startPos.push(myWidth + 100);
gotoAndStop(inStage + 1);
_root.fishTarget.gotoAndStop("cast");
FishAI.allFish = new Array();
FishAI.lowestFish = new Number();
_root.fishermanContainer.gotoAndStop(_root.gameStage);
myFisherman = _root.fishermanContainer.fisherman;
myFisherman.myPond = this;
myFisherman.playstate = "idle";
myFisherman.gotoAndPlay("idleLoop");
_root.fishermanContainer.pickupIndicator._alpha = 0;
if (baitLife == undefined) {
baitLife = baitLifeMax;
}
targetIndicator.currentInterest = "none";
_root.buttonBar.baitLifeBar._visible = false;
currentPond = this;
}
function tick() {
pauseConditions();
if (!paused) {
randSpawnNumber = SwainMath.randomNumber(0, spawnRate[[_root.gameStage - 1]]);
if (((FishAI.allFish.length < spawnMax[_root.gameStage - 1]) && (randSpawnNumber == 0)) || (FishAI.allFish.length < 3)) {
makeNewFish(["high", "high", "high", "mid", "mid", "low", "low"], startPos[SwainMath.randomNumber(0, 1)]);
}
if ((SwainMath.randomNumber(0, spawnSchool[_root.gameStage - 1]) == 0) && (FishAI.allFish.length < (spawnMax[_root.gameStage - 1] * 2))) {
makeNewSchool(["high", "high", "high", "mid", "mid", "low", "low"]);
}
if (BasicInventory.isEquipped()) {
myDistanceOffset = 1 - (((myHeight - (_root.fishTarget._y - _y)) / myHeight) * scaleOffset);
_root.fishTarget._xscale = 100 * myDistanceOffset;
_root.fishTarget._yscale = _root.fishTarget._xscale;
} else {
_root.fishTarget._xscale = 100;
_root.fishTarget._yscale = 100;
}
if (gamePhase == "cast") {
if ((((((lureStatus == "holding") && (pondHit.hitTest(_root._xmouse, _root._ymouse, true))) && (_root._xmouse > 20)) && (_root._xmouse < 780)) && (_root._ymouse < 585)) && (_root._ymouse > 305)) {
_root.fishTarget._x = _root._xmouse;
_root.fishTarget._y = _root._ymouse;
_root.fishTarget._visible = true;
if (!BasicInventory.isEquipped()) {
_root.fishTarget.gotoAndStop("nolure");
} else {
_root.fishTarget.gotoAndStop("cast");
}
} else if (lureStatus != "casting") {
_root.fishTarget._visible = false;
}
if ((lureStatus == "collecting") && (statusTimer > 10)) {
lureStatus = "holding";
statusTimer = 0;
_root.fishTarget.gotoAndStop("cast");
_root.fishTarget._visible = false;
}
if ((lureStatus == "casting") && (statusTimer > 40)) {
castTimer = 0;
gamePhase = "wait";
lureStatus = "floating";
statusTimer = 0;
mouseClick = false;
mouse2x = false;
mouseHold = false;
mouseTimer = -1;
checkFishReaction("cast", targetX, targetY, undefined);
createEffect("splash1", _root.fishTarget._x - _x, _root.fishTarget._y - _y, myDistanceOffset);
_root.statTotalCasts++;
}
if (((mouseClick && (lureStatus == "holding")) && (_root.fishTarget._visible)) && (BasicInventory.isEquipped())) {
lureStatus = "casting";
statusTimer = 0;
targetX = _xmouse + _x;
targetY = _ymouse;
_root.fishTarget.gotoAndStop("wait");
changeFishermanSprite("cast");
MissionOrganizer.checkTaskComplete("tut_cast");
}
if (pondGlow._alpha < 100) {
pondGlow._alpha = pondGlow._alpha + 10;
}
} else if (pondGlow._alpha > 0) {
pondGlow._alpha = pondGlow._alpha - 10;
}
if (gamePhase == "wait") {
_root.fishTarget._y = _root.fishTarget._y - (((_root.fishTarget._y - _y) - targetY) / reelSpeed);
_root.fishTarget._x = _root.fishTarget._x - ((_root.fishTarget._x - targetX) / reelSpeed);
_root.fishTarget._visible = true;
if (SwainMath.get_distance2(_root.fishTarget._x, _root.fishTarget._y - _y, playerLocation._x, playerLocation._y) < 20) {
_root.stopSounds("reel");
gamePhase = "cast";
lureStatus = "collecting";
statusTimer = 0;
mouseClick = false;
mouse2x = false;
mouseHold = false;
mouseTimer = -1;
changeFishermanSprite("collect");
}
reelDistance = 0;
if ((mouse2x && (mouseReleaseTimer == 0)) && (mouseTimer != -1)) {
reelDistance = 25 * myDistanceOffset;
lureStatus = "yank";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Fast");
} else if (((mouseReleaseTimer == 0) && (mouseTimer < 4)) && (mouseTimer != -1)) {
reelDistance = 15 * myDistanceOffset;
lureStatus = "pop";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Slow");
} else if (mouse2x && (mouseHold)) {
reelDistance = 60 * myDistanceOffset;
lureStatus = "reel1";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Fast");
} else if (mouseHold) {
reelDistance = 12 * myDistanceOffset;
lureStatus = "reel2";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Slow");
} else {
changeFishermanSprite("idle");
_root.stopSounds("reel");
}
lureSpeed = SwainMath.get_distance2(_root.fishTarget._x, _root.fishTarget._y - _y, targetX, targetY);
if (lureSpeed < 4) {
if (lureStatus != "floating") {
createEffect("splash2", _root.fishTarget._x - _x, _root.fishTarget._y - _y, myDistanceOffset);
}
lureStatus = "floating";
}
checkFishReaction(lureStatus, targetX, targetY, lureSpeed);
if (reelDistance > 0) {
targetX = SwainMath.get_position(_root.fishTarget._x, _root.fishTarget._y, SwainMath.calculate_rotation(_root.fishTarget._x, _root.fishTarget._y - _y, playerLocation._x, playerLocation._y), reelDistance, "x");
targetY = SwainMath.get_position(_root.fishTarget._x, _root.fishTarget._y, SwainMath.calculate_rotation(_root.fishTarget._x, _root.fishTarget._y - _y, playerLocation._x, playerLocation._y), reelDistance, "y") - _y;
if (targetY < playerLocation._y) {
targetY = playerLocation._y;
}
if ((_root.fishTarget._x > playerLocation._x) && (targetX < playerLocation._x)) {
targetX = playerLocation._x;
}
if ((_root.fishTarget._x < playerLocation._x) && (targetX > playerLocation._x)) {
targetX = playerLocation._x;
}
}
castTimer++;
}
if (gamePhase == "reel") {
if (lureStatus == "jump") {
if (statusTimer > 15) {
lureStatus = "free";
}
}
if ((mouse2x && (mouseReleaseTimer == 0)) && (mouseTimer != -1)) {
lureStatus = "yank";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Fast");
} else if (((mouseReleaseTimer == 0) && (mouseTimer < 4)) && (mouseTimer != -1)) {
lureStatus = "pop";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Slow");
} else if (mouse2x && (mouseHold)) {
lureStatus = "reel1";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Fast");
} else if (mouseHold) {
lureStatus = "reel2";
changeFishermanSprite(lureStatus);
_root.playSound("reel", "Reel_Slow");
} else {
lureStatus = "free";
changeFishermanSprite("idle");
changeFishermanSprite("idle");
if (hookedFish.fighting) {
_root.playSound("reel", "Reel_Fight1");
} else {
_root.playSound("reel", "Reel_Fight2");
}
}
StressBar.adjustStress(lureStatus);
if (rodStress > 100) {
} else {
fishIndicator._x = hookedFish._x;
fishIndicator._y = hookedFish._y;
fishIndicator._visible = false;
if (hookedFish._x < -10) {
fishIndicator._visible = true;
fishIndicator._x = 10;
} else if (hookedFish._x > (myWidth + 10)) {
fishIndicator._visible = true;
fishIndicator._x = myWidth - 10;
}
if (hookedFish._y > (myHeight + 10)) {
fishIndicator._visible = true;
fishIndicator._y = myHeight - 10;
}
rodStrength._x = hookedFish._x;
rodStrength._y = hookedFish._y;
rodStrength._visible = true;
if (rodStrength._alpha < 100) {
rodStrength._alpha = rodStrength._alpha + 20;
}
if (rodStrength < (0 + (rodStrength.myWidth / 2))) {
rodStrength._x = 0 + (rodStrength.myWidth / 2);
}
if (rodStrength > (myWidth - (rodStrength.myWidth / 2))) {
rodStrength._x = myWidth - (rodStrength.myWidth / 2);
}
if (rodStrength._y > myHeight) {
rodStrength._y = myHeight;
}
rodStrength.barAmount._x = (rodStrength.myWidth / -2) + (rodStrength.myWidth * (rodStress / 100));
rodStrength.barBG.gotoAndStop(rodStress + 1);
if (hookedFish.myHealth <= -100000) {
rodStrength.gotoAndStop(2);
} else {
rodStrength.gotoAndStop(1);
}
}
} else {
if (rodStrength._visible && (rodStrength._alpha > 0)) {
rodStrength._alpha = rodStrength._alpha - 20;
if (rodStrength._alpha <= 0) {
rodStrength._visible = false;
}
}
fishIndicator._visible = false;
hookedFish = undefined;
}
if (gamePhase == "catch") {
if (((lureStatus != "collect") && (lureStatus != "admire")) && (lureStatus != "collecting")) {
lureStatus = "collect";
statusTimer = 0;
changeFishermanSprite("catch");
_root.stopSounds("reel");
}
if ((lureStatus == "collect") && (statusTimer > 10)) {
lureStatus = "admire";
statusTimer = 0;
}
if ((lureStatus == "admire") && (statusTimer > 10)) {
lureStatus = "collecting";
statusTimer = 0;
}
if ((lureStatus == "collecting") && (statusTimer > 10)) {
gamePhase = "cast";
lureStatus = "holding";
statusTimer = 0;
changeFishermanSprite("idle");
}
_root.fishTarget._visible = false;
}
if (gamePhase == "lose") {
if (lureStatus != "collecting") {
_root.stopSounds("reel");
lureStatus = "collecting";
statusTimer = 0;
changeFishermanSprite("lose");
}
if ((lureStatus == "collecting") && (statusTimer > 20)) {
gamePhase = "cast";
lureStatus = "holding";
statusTimer = 0;
}
_root.fishTarget._visible = false;
}
_root.searchBubble._x = _root._xmouse;
_root.searchBubble._y = _root._ymouse;
_root.searchBubble._visible = false;
if ((gamePhase == "reel") || (gamePhase == "wait")) {
if (_root.fishermanContainer.pickupIndicator._alpha < 50) {
_root.fishermanContainer.pickupIndicator._alpha = _root.fishermanContainer.pickupIndicator._alpha + 5;
}
} else {
_root.fishermanContainer.pickupIndicator._alpha = 0;
}
if ((mouseTimer > -1) && (mouseTimer <= mouseTime2x)) {
mouseTimer++;
} else {
mouseTimer = -1;
if (!mouseHold) {
mouse2x = false;
}
}
if ((mouseTimer > 0) || (mouseTimer == -1)) {
mouseClick = false;
}
mouseReleaseTimer++;
statusTimer++;
if (gamePhase != "reel") {
rodStress = 0;
} else if (lureStatus == "free") {
rodStress = rodStress - 4;
} else {
rodStress = rodStress - 2;
}
if (rodStress < 0) {
rodStress = 0;
}
if (gamePhase == "wait") {
rippleTimer++;
if ((lureStatus == "reel1") && (rippleTimer > 2)) {
createEffect("splash3", _root.fishTarget._x - _x, _root.fishTarget._y - _y, myDistanceOffset);
rippleTimer = 0;
} else if ((lureStatus == "reel2") && (rippleTimer > 10)) {
createEffect("splash4", _root.fishTarget._x - _x, _root.fishTarget._y - _y, myDistanceOffset);
rippleTimer = 0;
} else if (rippleTimer > 130) {
createEffect("splash2", _root.fishTarget._x - _x, _root.fishTarget._y - _y, myDistanceOffset);
rippleTimer = 0;
}
} else {
rippleTimer = 0;
}
lureSTATS.text = lureStatus;
gamePhaseT.text = gamePhase;
mouseDownT.text = mouseClick;
mouseHoldT.text = mouseHold;
mouse2xT.text = mouse2x;
mouseReleaseT.text = mouseReleaseTimer;
mouseTimerT.text = mouseTimer;
rodStressT.text = rodStress;
hookedFishT.text = hookedFish.myHealth;
_root.statTotalTime++;
if (gamePhase == "wait") {
targetIndicator.currentInterest = "none";
} else if (gamePhase == "cast") {
var _local4 = 0;
var _local3 = 0;
while (_local3 < FishAI.allFish.length) {
if ((_local4 < FishAI.allFish[_local3].lureAttraction) && (!FishAI.allFish[_local3].afraid)) {
_local4 = FishAI.allFish[_local3].lureAttraction;
}
if (_local4 == 2) {
break;
}
_local3++;
}
if (_local4 == 0) {
if (pondGlow.currentInterest != "red") {
pondGlow.gotoAndPlay("green_transition");
}
pondGlow.currentInterest = "red";
} else {
if (pondGlow.currentInterest == "red") {
pondGlow.gotoAndPlay("red_transition");
}
pondGlow.currentInterest = "green";
}
targetIndicator.currentInterest = "none";
}
if ((_root.myEquip[0] == "bait") && (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]] != undefined)) {
_root.buttonBar.baitLifeBar._visible = true;
if (gamePhase == "wait") {
baitLife = baitLife - 0.03;
}
if (baitLife <= 0) {
_root.stopSounds("reel");
gamePhase = "cast";
lureStatus = "collecting";
statusTimer = 0;
mouseClick = false;
mouse2x = false;
mouseHold = false;
mouseTimer = -1;
changeFishermanSprite("collect");
eatBait();
}
_root.buttonBar.baitLifeBar.myBar._xscale = 100 * (baitLife / baitLifeMax);
if (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].mySubType == 1) {
baitLife = baitLifeMax;
_root.buttonBar.baitLifeBar._visible = false;
}
} else {
_root.buttonBar.baitLifeBar._visible = false;
}
}
}
function mouseDown() {
if (!paused) {
if (mouseTimer == -1) {
mouseTimer = 0;
mouse2x = false;
} else {
mouse2x = true;
}
mouseClick = true;
mouseHold = true;
}
}
function mouseUp() {
if (!paused) {
mouseClick = false;
mouseHold = false;
mouseReleaseTimer = 0;
}
}
function makeNewSchool(inFishArray) {
var _local5 = startPos[SwainMath.randomNumber(0, 1)];
var _local4 = attachMovie("fish_unit", "newFish", getNextHighestDepth());
_local4.init(inFishArray[SwainMath.randomNumber(0, inFishArray.length - 1)], _local5);
var _local2 = 1;
while (_local2 < _local4.mySchool) {
var _local3 = attachMovie("fish_unit", "newFish" + _local2, getNextHighestDepth());
_local3.init(_local4.myDepth, _local5);
_local3.mySpeed = _local4.mySpeed;
_local2++;
}
}
function makeNewFish(inFishArray, inStartX) {
var _local2 = attachMovie("fish_unit", "newFish", getNextHighestDepth());
_local2.init(inFishArray[SwainMath.randomNumber(0, inFishArray.length - 1)], inStartX);
}
function castLine() {
}
function pullLine(inSeverity) {
}
function checkFishReaction(inAction, inX, inY, inSpeed) {
var _local1 = 0;
while (_local1 < FishAI.allFish.length) {
FishAI.allFish[_local1].lureReaction(inAction, inX, inY, inSpeed);
_local1++;
}
}
function pauseConditions() {
if ((((!(_root.myInventory._currentframe === 1)) || (StressBar.currentBar.justStarted == true)) || (_parent.fishCaught.pauseGame == true)) || (popupActive())) {
paused = true;
_root.stopSounds("reel");
} else if (paused) {
paused = false;
mouseClick = false;
mouseHold = false;
mouse2x = false;
mouseTimer = -1;
}
}
function createEffect(inType, inX, inY, inDistanceOffset) {
var _local2 = attachMovie("pondEffect", "pondEffect" + lowestEffect, getNextHighestDepth());
lowestEffect++;
_local2.gotoAndStop(inType);
_local2._x = inX;
_local2._y = inY;
_local2._xscale = _local2._xscale * inDistanceOffset;
_local2._yscale = _local2._xscale;
}
function eatBait() {
if (_root.myEquip[0] == "bait") {
baitLife = baitLifeMax;
var _local2 = BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]];
_local2.myQuantity--;
if (_local2.myQuantity <= 0) {
BasicInventory.removeInvItem("bait", _root.myEquip[1]);
_root.buttonBar.pickedLure.gotoAndStop("empty");
_root.buttonBar.baitLifeBar._visible = false;
}
}
}
function loseFish() {
_root.playSound("scene", "Reel_LoseFish");
hookedFish.myMission = "flee";
hookedFish.afraid = true;
hookedFish.hooked = false;
gamePhase = "lose";
rodStress = 0;
hookedFish.spookFish(_root.fishTarget._x - _x, _root.fishTarget._y - _y);
eatBait();
if (((_root.gameStage == 1) || (_root.gameStage == 2)) || (_root.gameStage == 5)) {
MissionOrganizer.checkTaskComplete("lose_fresh");
}
if ((_root.gameStage == 3) || (_root.gameStage == 4)) {
MissionOrganizer.checkTaskComplete("lose_salt");
}
_root.statFishLost++;
_root.saveGame();
_root.createFail();
}
function createStressBar(inFish) {
var _local2 = attachMovie("stress_indicator", "stressIndicator", getNextHighestDepth());
_local2.init(inFish);
_local2._x = 410;
_local2._y = -190;
}
function createVictory() {
var _local2 = attachMovie("fishCaught", "fishCaught", getNextHighestDepth());
_local2._x = 410;
_local2._y = -190;
}
function createFail() {
var _local2 = attachMovie("fishLost", "fishLost", getNextHighestDepth());
_local2._x = 410;
_local2._y = -190;
}
function changeFishermanSprite(inAction) {
if ((myFisherman.playstate != inAction) && ((((((((((myFisherman.playstate == "idle") || (myFisherman.playstate == "reel1")) || (myFisherman.playstate == "reel2")) || ((myFisherman.playstate == "pop") && (inAction == "yank"))) || ((myFisherman.playstate == "pop") && (inAction == "reel1"))) || ((myFisherman.playstate == "catch") && (inAction == "idle"))) || (inAction == "catch")) || (inAction == "lose")) || (inAction == "collect")) || (inAction == "cast"))) {
myFisherman.playstate = inAction;
myFisherman.gotoAndPlay(inAction);
}
}
static function popupSet() {
currentPond.pondGlow._alpha = 0;
_root.popup.gotoAndStop(popupDir);
_root.popup.panel.panel.popupTEXT.text = popupTextArray[0];
popupTextArray.splice(0, 1);
_root.popup.panel.panel.popupTitleTEXT.text = popupTitleArray[0];
popupTitleArray.splice(0, 1);
}
static function popupClose() {
_root.popup.gotoAndStop(1);
}
static function popupNext() {
if ((popupTextArray.length > 0) && (popupTextArray != undefined)) {
popupSet();
} else {
popupClose();
}
currentPond.mouseHold = false;
currentPond.mouseClick = false;
currentPond.mouseTimer = -1;
currentPond.mouseReleaseTimer = 2;
}
static function popupActive() {
return(_root.popup._currentframe != 1);
}
static function populatePopup(inCat) {
popupTextArray = new Array();
popupTitleArray = new Array();
popupDir = "bottom";
if (inCat == "newgame") {
popupTitleArray.push("Tutorial - 1");
popupTextArray.push("Welcome to the pond, new fisherman! You're about to learn a few vital tips to help you along your fishing career. Press NEXT to continue.");
popupTitleArray.push("Tutorial - 2");
popupTextArray.push("You may cast your line anywhere within the enclosed area below your fisherman. Fish will cross from side to side, and it's your mission to nab 'em.");
popupTitleArray.push("Tutorial - 3");
popupTextArray.push("Not all fish will want to bite. Your choice of lure, its color, and its price will appeal to fish differently.");
popupTitleArray.push("Tutorial - 4");
popupTextArray.push("At a glance, the color that encircles the play area will tell you if any fish swimming by may be interested in your lure. Green means you've got a good chance. Red, not so much.");
popupTitleArray.push("Good Luck!");
popupTextArray.push("Click any giant question mark [?] button you see for more help on that section.");
}
if (inCat == "cast") {
popupTitleArray.push("Fishing - 1");
popupTextArray.push("You've just cast your line. You're so awesome. You'll be using your mouse to reel in and manipulate your lure in the water.");
popupTitleArray.push("Fishing - 2");
popupTextArray.push("Clicking your mouse once will pop your line. Holding it down will reel in slowly.");
popupTitleArray.push("Fishing - 3");
popupTextArray.push("Double clicking the mouse will jerk your line harshly. Double clicking and holding will initiate a very fast reel.");
popupTitleArray.push("Fishing - 4");
popupTextArray.push("For more information on how to use each lure, visit the [?] Tutorials in the Store.");
}
if (inCat == "inspect") {
popupTitleArray.push("Fishing - 5");
popupTextArray.push("A fish is inspecting your lure! Once he lunges, 2x Click to jerk your line and set your hook.");
}
if (inCat == "hook") {
popupTitleArray.push("Fishing - 6");
popupTextArray.push("You've set your hook, so prepare to fight this fish! Use the same reeling techniques you've already learned to bring in your catch.");
popupTitleArray.push("Fishing - 7");
popupTextArray.push("This is done by keeping the red indicator within the Secure zone. Too much slack or stress on the line and the fish may get free.");
popupTitleArray.push("Fishing - 8");
popupTextArray.push("Keeping your line secure longer will build you multipliers that go toward wearing out the fish. Once he's beat, you can reel him in safely and measure 'em up.");
popupDir = "top";
}
if (inCat == "store") {
popupTitleArray.push("Store - 1");
popupTextArray.push("Each area you access from the map comes with its own store. Each store carries common and unique lures, lure colors, and bait to choose from.");
popupTitleArray.push("Store - 2");
popupTextArray.push("To acquire new lures, earn cash by (you guessed it!) catching fish.");
}
if (inCat == "inventory") {
popupTitleArray.push("Inventory - 1");
popupTextArray.push("This is your Tackle Box. It will contain all of your lures and bait, which can be equipped when fishing or sold back to the store.");
popupTitleArray.push("Inventory - 2");
popupTextArray.push("If you'd like to know more about the use of particular bait and lures, go to the store and click the [?] Tutorial within each category.");
}
if (inCat == "lure_spoon") {
popupTitleArray.push("Spoon Lure - 1");
popupTextArray.push("To effectively use a Spoon, reel it in slowly. Reeling too quickly or stopping will ruin the illusion and turn fish away.");
}
if (inCat == "lure_fly") {
popupTitleArray.push("Fly Lure - 1");
popupTextArray.push("To effectively use a Fly, cast your lure and hold still for a few seconds. If no fish are interested, try again.");
popupTitleArray.push("Fly Lure - 2");
popupTextArray.push("Make certain not to move your fly before you're ready to reel it back in. The lure will not appeal to fish anymore until it is cast again.");
}
if (inCat == "lure_jig") {
popupTitleArray.push("Jig Lure - 1");
popupTextArray.push("To effectively use a Jig, find a good balance between reeling very fast and stopping completely. Too much of either will lose a fish's interest");
}
if (inCat == "lure_plug") {
popupTitleArray.push("Plug Lure - 1");
popupTextArray.push("To effectively use a Plug, find a good balance between slowly reeling in and popping your line. Too much movement, however, may scare fish away.");
}
if (inCat == "lure_bait") {
popupTitleArray.push("Bait - 1");
popupTextArray.push("To effectively use Bait, cast your line and wait. So long as your bait does not die, you can wait indefinitely. Movement may startle fish.");
popupTitleArray.push("Bait - 2");
popupTextArray.push("Note that catching a fish will cause you to lose one piece of bait.");
}
if (inCat == "objectives") {
popupTitleArray.push("Mission - 1");
popupTextArray.push("Complete Mission Objectives to open up new locations on your map, and with them, new and rarer types of fish!");
}
if (inCat == "map") {
popupTitleArray.push("Map - 1");
popupTextArray.push("There are five Florida locations to visit in this game. To open up new locations, you must first complete Missions.");
}
if (inCat == "victory") {
popupTitleArray.push("Victory - 1");
popupTextArray.push("Congratulations, you've reached the highest grade of fishing royalty!");
popupTitleArray.push("Victory - 2");
popupTextArray.push("Keep looking for bigger and badder fish, and try to fill your study with one of every kind.");
popupTitleArray.push("Victory - 3");
popupTextArray.push("Good luck on the rest of your journey...and thanks for playing!");
}
popupSet();
}
var spawnMax = new Array(6, 6, 4, 5, 5);
var spawnRate = new Array(300, 500, 500, 250, 300);
var spawnSchool = new Array(3000, 3000, 3000, 3000, 3000);
var paused = false;
var gamePhase = "cast";
var lureStatus = "holding";
var statusTimer = -1;
var locked = false;
var mouseTimer = -1;
var mouseTime2x = 9;
var mouseClick = false;
var mouseReleaseTimer = 2;
var mouseHold = false;
var mouse2x = false;
var reelSpeed = 10;
var lowestEffect = new Number();
var rodStress = new Number();
var OOBTimer = new Number();
var rippleTimer = new Number();
var myFisherman = new Object();
var scaleOffset = 0.6;
var castTimer = new Number();
static var baitLifeMax = 100;
}
Symbol 1404 MovieClip [__Packages.FishAI] Frame 0
class FishAI extends MovieClip
{
var onEnterFrame, _name, myMission, gotoAndStop, _x, targetX, _parent, _y, targetY, _rotation, varyYTarget, myDistanceOffset, _height, _xscale, _yscale, interestTEXT, startleTEXT, missionTEXT, _alpha, removeMovieClip;
function FishAI () {
super();
onEnterFrame = fishBrain;
}
function init(inType, inStartX) {
_name = "fish" + lowestFish;
lowestFish++;
allFish.push(this);
if (inType == "high") {
myType = FishStats["fishHigh" + String(_root.gameStage)][SwainMath.randomNumber(0, FishStats["fishHigh" + String(_root.gameStage)].length - 1)];
} else if (inType == "mid") {
myType = FishStats["fishMid" + String(_root.gameStage)][SwainMath.randomNumber(0, FishStats["fishMid" + String(_root.gameStage)].length - 1)];
} else {
myType = FishStats["fishLow" + String(_root.gameStage)][SwainMath.randomNumber(0, FishStats["fishLow" + String(_root.gameStage)].length - 1)];
}
FishStats.applyStats(this, myType);
trace(((("New " + myName) + "(") + inType) + ")");
myHealthMax = myHealth;
mySizeDisplay = String(mySize).substr(0, Number(String(Math.floor(mySize)).length) + 3) + " lbs";
myMission = "cross";
myDepth = inType;
gotoAndStop(inType);
_x = inStartX;
if (inStartX < 0) {
targetX = _parent.myWidth + 300;
} else {
targetX = -300;
}
_y = SwainMath.randomNumber(0, _parent.myHeight);
targetY = SwainMath.randomNumber(0, _parent.myHeight);
setLureAttraction();
_rotation = SwainMath.calculate_rotation(_x, _y, targetX, targetY);
rotCurrent = _rotation;
rotVel = 0;
rotAccel = adjust_rotAccel();
}
function fishBrain() {
if (!_parent.paused) {
if (((myMission == "flee") || ((myMission == "cross") && (SwainMath.randomNumber(1, 80) <= (myErratic * 3)))) && (varyYTarget == undefined)) {
varyYTarget = SwainMath.randomNumber(-4000 + (-4000 * (myErratic / 5)), 4000 + (4000 * (myErratic / 5))) / 100;
if ((targetY + varyYTarget) > _parent.myHeight) {
varyYTarget = varyYTarget - _parent.myHeight;
}
if ((targetY + varyYTarget) < 0) {
varyYTarget = -varyYTarget;
}
varyYTarget = varyYTarget + targetY;
}
if (varyYTarget != undefined) {
if (varyY == 0) {
if (myMission == "curious") {
varyY = (targetY - varyYTarget) / -100;
} else {
varyY = (targetY - varyYTarget) / -10;
}
} else if (((varyY < 0.1) && (varyY > 0)) || ((varyY > -0.1) && (varyY < 0))) {
varyY = 0;
varyYTarget = undefined;
}
if (((targetY - varyYTarget) / 2) >= (-varyY)) {
if (myMission == "curious") {
varyY = varyY * (1 + trackInterest());
} else {
varyY = varyY * (1.05 + (myErratic / 200));
}
} else if (myMission == "curious") {
varyY = varyY * (1 - trackInterest());
} else {
varyY = varyY * (0.95 - (myErratic / 200));
}
}
if (((myMission == "cross") || (myMission == "flee")) && ((targetY < 0) || (targetY > _parent.myHeight))) {
if (targetY < 0) {
varyYTarget = 0;
}
if (targetY > _parent.myHeight) {
varyYTarget = _parent.myHeight;
}
varyY = 0;
}
if ((myMission == "cross") || (myMission == "flee")) {
if ((targetX > _x) && (targetX < (_x + _parent.myWidth))) {
targetX = targetX + 5;
}
if ((targetX < _x) && (targetX > (_x - _parent.myWidth))) {
targetX = targetX - 5;
}
if (SwainMath.randomNumber(0, (11 - myErratic) * 30) == 0) {
targetY = SwainMath.randomNumber(0, _parent.myHeight);
}
}
if (myMission == "curious") {
if (((_parent.lureStatus.substr(0, 4) != "reel") && (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType != "fly")) && (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType != "bait")) {
if (myInterest > 0) {
} else if (SwainMath.randomNumber(0, 30) == 0) {
myMission = "cross";
}
}
if (!checkAttraction(myMission)) {
myMission = "cross";
} else {
varyY = 0;
varyYTarget = SwainMath.get_position(_x, _y, SwainMath.calculate_rotation(_x, _y, _root.fishTarget._x - _parent._x, _root.fishTarget._y - _parent._y), 500 * myDistanceOffset, "y");
if ((SwainMath.randomNumber(0, (myFear + myPickiness) + myErratic) * 3) == 0) {
}
if ((SwainMath.randomNumber(0, (myFear + (10 - myPickiness)) + (30 - (myErratic * 3))) * 2) == 0) {
}
targetY = _root.fishTarget._y - _parent._y;
targetX = _root.fishTarget._x - _parent._x;
}
if (myLureDistance(false) <= (_height / 1)) {
myMission = "inspect";
MissionOrganizer.checkTaskComplete("tut_attract");
}
}
if (myMission == "inspect") {
varyYTarget = _root.fishTarget._y - _parent._y;
targetX = _root.fishTarget._x - _parent._x;
targetY = _root.fishTarget._y - _parent._y;
if (!checkAttraction("inspect")) {
if (checkAttraction("curious")) {
myMission = "curious";
} else {
myMission = "cross";
}
}
if ((_parent.gamePhase == "cast") || (_parent.gamePhase == "reel")) {
myMission = "flee";
afraid = true;
spookFish(_root.fishTarget._x - _parent._x, _root.fishTarget._y - _parent._y);
} else if ((SwainMath.randomNumber(0, 80) == 0) || ((SwainMath.randomNumber(0, 20) == 0) && ((BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType == "jig") || (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType == "spoon")))) {
myMission = "bite";
_parent.createEffect("splash1", _x, _y, myDistanceOffset);
}
if (amShark) {
myMission = "bite";
_parent.createEffect("splash2", _x, _y, myDistanceOffset);
}
}
if (myMission == "bite") {
targetX = _root.fishTarget._x - _parent._x;
targetY = _root.fishTarget._y - _parent._y;
if (SwainMath.randomNumber(0, 5) == 0) {
_parent.createEffect("splash4", _x, _y, myDistanceOffset);
}
if ((_parent.gamePhase == "cast") || (_parent.gamePhase == "reel")) {
myMission = "flee";
afraid = true;
spookFish(_root.fishTarget._x - _parent._x, _root.fishTarget._y - _parent._y);
} else if (!checkAttraction(myMission)) {
myMission = "cross";
} else if (myLureDistance(true) < (20 * myDistanceOffset)) {
PondWorld.baitLife = PondWorld.baitLife - 0.1;
myStartle = myStartle + (6 - (myFear / 2));
if (_root.fishTarget.myBobber.myStatus == "loop") {
_root.fishTarget.myBobber.myStatus = "bite";
_root.fishTarget.myBobber.gotoAndPlay("bite");
}
}
}
if (myMission == "fight") {
varyY = 0;
varyYTarget = undefined;
myHealth = myHealth - (0.1 * Math.floor(StressBar.healthMod));
fightTimerTotal++;
if (SwainMath.randomNumber(0, 10) == 0) {
_parent.createEffect("splash4", _x, _y, myDistanceOffset);
}
if (jumpTimer <= 0) {
if (SwainMath.randomNumber(0, 40) < (myErratic * 3)) {
fightTargets(_parent.playerLocation._x, _parent.playerLocation._y);
}
if ((SwainMath.randomNumber(0, 300 - (myFight * 10)) == 0) && (fighting)) {
jumpTimer = 40;
trace("FISHJUMP!");
}
if ((SwainMath.get_distance(this, _parent.playerLocation) < 30) && (myHealth <= 0)) {
_parent.gamePhase = "catch";
BasicInventory.catchFish(this);
_root.payPlayer(this);
StressBar.adjustStress("finished");
_root.createVictory();
applyMissionTaskCatch();
_parent.eatBait();
_root.saveGame();
removeFish();
}
if ((myHealth > -100000) && (myHealth < 0)) {
StressBar.adjustStress("defeated");
myHealth = -100000;
}
if (myHealth > -100000) {
if (_parent.lureStatus == "reel1") {
myHealth = myHealth - (2 * Math.floor(StressBar.healthMod));
_parent.rodStress = _parent.rodStress + 2.5;
} else if (_parent.lureStatus == "reel2") {
myHealth = myHealth - (1 * Math.floor(StressBar.healthMod));
if (fighting) {
_parent.rodStress = _parent.rodStress + 1;
}
} else if (_parent.lureStatus == "yank") {
myHealth = myHealth - (15 * Math.floor(StressBar.healthMod));
_parent.rodStress = _parent.rodStress + 10;
if (fighting) {
fightTimer = fightTimer - 15;
}
} else if (_parent.lureStatus == "pop") {
myHealth = myHealth - (8 * Math.floor(StressBar.healthMod));
_parent.rodStress = _parent.rodStress + 5;
}
if (fighting) {
_parent.rodStress = _parent.rodStress + (myFight / 2.5);
}
}
} else {
jumpTimer = jumpTimer - 1;
if (jumpTimer > 20) {
StressBar.adjustStress("jump1");
} else {
StressBar.adjustStress("jump2");
}
}
}
if (targetY < 0) {
targetY = 0;
}
rotAccel = adjust_rotAccel();
myRotTarget = SwainMath.calculate_rotation(_x, _y, targetX, targetY);
myRotDistance = SwainMath.getRotDistance(rotCurrent, myRotDistance);
if ((myRotTarget > rotCurrent) || (myRotTarget < (rotCurrent - 180))) {
myRotDistance = myRotDistance * 1;
} else {
myRotDistance = myRotDistance * -1;
}
slowTurns = 0;
if ((((rotVel < 1) && (myRotDistance < 15)) && (myRotDistance >= 0)) || (((rotVel > -1) && (myRotDistance > -15)) && (myRotDistance <= 0))) {
rotVel = 0;
} else if (myHealth > 0) {
if (myRotDistance > 0) {
var _local3 = 0;
while (_local3 <= (rotVel / rotAccel)) {
slowTurns = slowTurns + (rotVel - (rotAccel * _local3));
_local3++;
}
} else {
var _local3 = 0;
while (_local3 <= (-(rotVel / rotAccel))) {
slowTurns = slowTurns + (rotVel - (rotAccel * _local3));
_local3++;
}
}
slowTurns = slowTurns * 5;
if (((myRotDistance < 0) && (slowTurns > (myRotDistance + (rotVel * 5)))) || ((myRotDistance > 0) && (slowTurns < (myRotDistance - (rotVel * 5))))) {
if (myRotDistance > 0) {
rotVel = rotVel + rotAccel;
} else {
rotVel = rotVel - rotAccel;
}
} else if (myRotDistance > 0) {
rotVel = rotVel - rotAccel;
} else {
rotVel = rotVel + rotAccel;
}
}
if (rotCurrent > 180) {
rotCurrent = rotCurrent - 360;
}
if (rotCurrent < -180) {
rotCurrent = rotCurrent + 360;
}
rotCurrent = rotCurrent + rotVel;
_rotation = rotCurrent;
myDistanceOffset = 1 - (((_parent.myHeight - _y) / _parent.myHeight) * _parent.scaleOffset);
if (myMission == "fight") {
var _local4;
var _local5 = 1;
if (myHealth < 0) {
_local5 = 0.1;
}
if (jumpTimer > 0) {
speedMod = 0;
_local4 = false;
} else if (_parent.lureStatus == "reel1") {
speedMod = 5 * ((10 - (myFight * _local5)) / 10);
_local4 = true;
} else if (_parent.lureStatus == "reel2") {
speedMod = 3 * ((10 - (myFight * _local5)) / 10);
_local4 = true;
} else if (_parent.lureStatus == "yank") {
speedMod = 9 * ((10 - (myFight * _local5)) / 10);
_local4 = true;
} else if (_parent.lureStatus == "pop") {
speedMod = 6 * ((10 - (myFight * _local5)) / 10);
_local4 = true;
}
if (!fighting) {
speedMod = speedMod * 2;
}
if (_local4) {
_x = SwainMath.get_position(_x, _y, SwainMath.calculate_rotation(_x, _y, _parent.playerLocation._x, _parent.playerLocation._y), speedMod * myDistanceOffset, "x");
_y = SwainMath.get_position(_x, _y, SwainMath.calculate_rotation(_x, _y, _parent.playerLocation._x, _parent.playerLocation._y), speedMod * myDistanceOffset, "y");
}
speedMod = (1 - (_y / _parent.myHeight)) + 0.1;
if (myHealth < 0) {
speedMod = 0.5;
} else if (fighting) {
speedMod = speedMod * 6;
} else {
speedMod = speedMod * 3;
}
} else if (afraid) {
speedMod = 8;
} else if (myMission == "inspect") {
speedMod = myLureDistance(true) / 230;
} else if (myMission == "bite") {
if (myLureDistance(true) < (20 * myDistanceOffset)) {
speedMod = 0.1;
} else {
speedMod = speedMod * 1.2;
if (speedMod > 10) {
speedMod = 10;
}
}
} else {
speedMod = 1;
}
if (jumpTimer <= 0) {
if (((((myMission == "curious") || (myMission == "inspect")) || (myMission == "bite")) && ((BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType == "jig") || (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType == "spoon"))) && (SwainMath.getRotDistance(_rotation, SwainMath.calculate_rotation(_x, _y, targetX, targetY)) < 20)) {
_x = SwainMath.get_position(_x, _y, _rotation, ((mySpeed + (_parent.lureSpeed / 2)) * speedMod) * myDistanceOffset, "x");
_y = SwainMath.get_position(_x, _y, _rotation, ((mySpeed + (_parent.lureSpeed / 2)) * speedMod) * myDistanceOffset, "y");
} else {
_x = SwainMath.get_position(_x, _y, _rotation, (mySpeed * speedMod) * myDistanceOffset, "x");
_y = SwainMath.get_position(_x, _y, _rotation, (mySpeed * speedMod) * myDistanceOffset, "y");
}
}
_xscale = 50;
if (mySize > 1) {
_xscale = _xscale + 4;
}
if (mySize > 3) {
_xscale = _xscale + 8;
}
if (mySize > 5) {
_xscale = _xscale + 10;
}
if (mySize > 10) {
_xscale = _xscale + 10;
}
if (mySize > 14) {
_xscale = _xscale + 10;
}
if (mySize > 19) {
_xscale = _xscale + 10;
}
if (mySize > 25) {
_xscale = _xscale + 14;
}
if (mySize > 32) {
_xscale = _xscale + 14;
}
if (mySize > 40) {
_xscale = _xscale + 8;
}
if (mySize > 65) {
_xscale = _xscale + 8;
}
if (mySize > 90) {
_xscale = _xscale + 8;
}
if (mySize > 130) {
_xscale = _xscale + 4;
}
if (mySize > 180) {
_xscale = _xscale + 4;
}
if (mySize > 200) {
_xscale = _xscale + 4;
}
if (mySize > 300) {
_xscale = _xscale + 4;
}
if (mySize > 400) {
_xscale = _xscale + 4;
}
if (mySize > 500) {
_xscale = _xscale + 4;
}
_xscale = _xscale * myDistanceOffset;
_yscale = _xscale;
if (_rotation < 0) {
_xscale = _xscale + (0.7 * SwainMath.getRotDistance(-90, _rotation));
_yscale = _yscale - (0.3 * SwainMath.getRotDistance(-90, _rotation));
} else {
_xscale = _xscale + (0.7 * SwainMath.getRotDistance(90, _rotation));
_yscale = _yscale - (0.3 * SwainMath.getRotDistance(90, _rotation));
}
if (_xscale < 8) {
_xscale = 8;
}
if (_yscale < 8) {
_yscale = 8;
}
var _local3 = 0;
while (_local3 < allFish.length) {
if (((!afraid) && (allFish[_local3] != this)) && (myType != allFish[_local3].myType)) {
if (SwainMath.get_distance(this, allFish[_local3]) < (130 * myDistanceOffset)) {
if ((mySize * (allFish[_local3].myFear / 3)) > allFish[_local3].mySize) {
} else {
varyYTarget = SwainMath.get_position(_x, _y, SwainMath.calculate_rotation(_x, _y, allFish[_local3]._x, allFish[_local3]._y), 1000, "y");
}
break;
}
}
_local3++;
}
if ((myMission != "fight") && (((((targetX > _parent.myWidth) && (_x > _parent.myWidth)) || ((targetX < 0) && (_x < 0))) || ((targetY > (_parent.myHeight + 10)) && (_y > (_parent.myHeight + 10)))) || (_y < -20))) {
removeFish();
}
if ((hooked && (myHealth > 0)) && (myHealth != myHealthMax)) {
if (fighting) {
if (jumpTimer <= 0) {
StressBar.adjustStress("fight");
}
fightTimer = fightTimer - (1 / (myHealth / myHealthMax));
if (fightTimer < 0) {
fighting = false;
trace("not fighting :(");
}
tiredTimer = 0;
} else if (myHealth > 100) {
if (jumpTimer <= 0) {
tiredTimer++;
if (tiredTimer < ((55 - (myFight * 5)) + 60)) {
StressBar.adjustStress("rest");
} else {
StressBar.adjustStress("default");
}
}
fightTimer++;
if (((!fighting) && (fightTimer > 60)) && (SwainMath.randomNumber(0, 100 - (myFight * 10)) == 0)) {
fighting = true;
trace("FIGHTING!!!");
fightTimer = SwainMath.randomNumber(0, 30) + (myFight * 20);
}
} else {
StressBar.adjustStress("defeated");
}
} else {
if (hooked && (jumpTimer <= 0)) {
StressBar.adjustStress("rest");
}
fightTimer = 0;
fighting = false;
tiredTimer = 0;
}
if ((myInterest > 0) && (_parent.gamePhase == "wait")) {
if (myMission != "curious") {
myInterest = myInterest - (2 - lureAttraction);
}
} else {
myInterest = 0;
}
if (myStartle > 0) {
myStartle = myStartle - 1;
} else {
myStartle = 0;
}
if (_parent.gamePhase != "wait") {
myStartle = 0;
myInterest = 0;
}
if ((((lureAttraction > 0) || (myInterest > 10)) && (_parent.gamePhase == "wait")) && (!afraid)) {
if (SwainMath.get_distance2(_x, _y, _root.fishTarget._x - _parent._x, _root.fishTarget._y - _parent._y) < (300 * myDistanceOffset)) {
if (SwainMath.randomNumber(0, Math.floor((60 * (4 - lureAttraction)) - (myInterest * 2))) == 0) {
myInterest = myInterest + 30;
}
if (myInterest > (30 - (5 - Math.floor(myPickiness / 2)))) {
if (myMission == "cross") {
myMission = "curious";
}
if (targetX != (_root.fishTarget._x - _parent._x)) {
targetX = _root.fishTarget._x - _parent._x;
}
}
}
}
if (myStartle > (20 + (myFear * 8))) {
afraid = true;
myMission = "flee";
spookFish(_root.fishTarget._x - _parent._x, _root.fishTarget._y - _parent._y);
myInterest = 0;
} else if (myStartle > (20 + (myFear * 5))) {
myInterest = 0;
}
interestTEXT.text = myInterest;
startleTEXT.text = myStartle;
missionTEXT.text = myType;
if (_y < 0) {
_alpha = 100 + (_y * 5);
} else {
_alpha = 100;
}
}
}
function removeFish() {
var _local2 = 0;
while (_local2 < allFish.length) {
if (this == allFish[_local2]) {
allFish.splice(_local2, 1);
break;
}
_local2++;
}
removeMovieClip();
}
function spookFish(fearX, fearY) {
targetX = SwainMath.get_position(fearX, fearY, SwainMath.calculate_rotation(fearX, fearY, _x, _y), 1000, "x");
varyYTarget = SwainMath.get_position(fearX, fearY, SwainMath.calculate_rotation(fearX, fearY, _x, _y), 1000, "y");
_parent.createEffect("splash1", _x, _y);
if (SwainMath.randomNumber(0, 1) == 0) {
_root.playSound("fish", "Fish_Flee1");
} else {
_root.playSound("fish", "Fish_Flee2");
}
}
function fightTargets(fightX, fightY) {
targetX = SwainMath.randomNumber(0, _parent.myWidth);
targetY = SwainMath.randomNumber(100, _parent.myHeight);
}
function checkAttraction(inType) {
if (_parent.gamePhase != "wait") {
return(false);
}
if (inType == "curious") {
var _local4 = myLureDistance(true);
var _local3 = (130 + (10 * BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].mySubType)) + ((35 * lureAttraction) * myDistanceOffset);
if (_local4 <= _local3) {
return(true);
}
} else if (inType == "inspect") {
var _local4 = myLureDistance(true);
var _local3 = 60;
if (_local4 <= _local3) {
return(true);
}
} else {
if (myMission == "bite") {
return(true);
}
if (myMission == "fight") {
return(true);
}
}
}
function myLureDistance(inDistanceCheck) {
if (inDistanceCheck) {
return(SwainMath.get_distance2(_x, _y, _root.fishTarget._x - _parent._x, _root.fishTarget._y - _parent._y) * myDistanceOffset);
}
return(SwainMath.get_distance2(_x, _y, _root.fishTarget._x - _parent._x, _root.fishTarget._y - _parent._y));
}
function trackInterest() {
return(0.5);
}
function lureReaction(inAction, inX, inY, inSpeed) {
if ((!afraid) && (!hooked)) {
var _local5 = myLureDistance(true);
var _local3 = BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]];
if ((inAction == "yank") || (inAction == "pop")) {
if (_local5 < (30 * myDistanceOffset)) {
if ((myMission == "bite") && (_parent.hookedFish == undefined)) {
myMission = "fight";
hooked = true;
fighting = true;
fightTimer = SwainMath.randomNumber(0, 30) + (myFight * 20);
_parent.gamePhase = "reel";
_root.createStressBar(this);
_parent.hookedFish = this;
_root.stopSounds("reel");
MissionOrganizer.checkTaskComplete("tut_hook");
if (_root.fishTarget.myBobber.myStatus != "caught") {
_root.fishTarget.myBobber.myStatus = "caught";
_root.fishTarget.myBobber.gotoAndPlay("caught");
}
StressBar.adjustStress("default");
}
} else if (((myMission == "cross") && (checkAttraction("curious"))) || (myMission == "curious")) {
if (inAction == "yank") {
if (_local3.myType == "jig") {
myStartle = myStartle + (2.5 + (myStartle / 30));
}
if (_local3.myType == "spoon") {
myStartle = myStartle + (3 + (myStartle / 30));
}
if (_local3.myType == "plug") {
myStartle = myStartle + (2.5 + (myStartle / 30));
}
if (_local3.myType == "fly") {
myInterest = 0;
_parent.castTimer = 9999;
myStartle = myStartle + (2.5 + (myStartle / 30));
}
if (_local3.myType == "bait") {
myInterest = 0;
myStartle = myStartle + (3 + (myStartle / 30));
}
} else {
if (_local3.myType == "jig") {
myInterest = myInterest + (1 + (0.6 * (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myLevel - (5 - myRare))));
myStartle = myStartle + (2 + (myStartle / 30));
}
if (_local3.myType == "spoon") {
myStartle = myStartle + (3 + (myStartle / 30));
}
if (_local3.myType == "plug") {
myInterest = myInterest + (2.5 + (0.1 * (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myLevel - (5 - myRare))));
myStartle = myStartle + (2.1 + (myStartle / 30));
}
if (_local3.myType == "fly") {
myInterest = 0;
_parent.castTimer = 9999;
myStartle = myStartle + (0.5 + (myStartle / 30));
}
if (_local3.myType == "bait") {
myInterest = 0;
myStartle = myStartle + (3 + (myStartle / 30));
}
}
}
}
if (inAction == "reel1") {
if (((myMission == "cross") && (checkAttraction("curious"))) || (myMission == "curious")) {
if (_local3.myType == "jig") {
myInterest = myInterest + (1.5 + (0.1 * (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myLevel - (5 - myRare))));
myStartle = myStartle + 1;
}
if (_local3.myType == "spoon") {
myInterest = myInterest + 0.5;
myStartle = myStartle + 1;
}
if (_local3.myType == "plug") {
myInterest = myInterest + (1.5 + (0.1 * (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myLevel - (5 - myRare))));
myStartle = myStartle + 2;
}
if (_local3.myType == "fly") {
myInterest = 0;
_parent.castTimer = 9999;
myStartle = myStartle + 0.5;
}
if (_local3.myType == "bait") {
myInterest = 0;
myStartle = myStartle + 2;
}
}
}
if (inAction == "reel2") {
if (((myMission == "cross") && (checkAttraction("curious"))) || (myMission == "curious")) {
if (_local3.myType == "jig") {
myInterest = myInterest + 0.5;
myStartle = myStartle + 1.5;
}
if (_local3.myType == "spoon") {
myInterest = myInterest + (1.3 + (0.1 * (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myLevel - (5 - myRare))));
myStartle = myStartle + 1;
}
if (_local3.myType == "plug") {
myInterest = myInterest + (1 + (0.6 * (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myLevel - (5 - myRare))));
myStartle = myStartle + 1.3;
}
if (_local3.myType == "fly") {
myInterest = 0;
_parent.castTimer = 9999;
myStartle = myStartle + 0.5;
}
if (_local3.myType == "bait") {
myInterest = 0;
myStartle = myStartle + 2;
}
}
}
if ((inAction == "free") || (inAction == "floating")) {
if (((myMission == "cross") && (checkAttraction("curious"))) || (myMission == "curious")) {
if (_local3.myType == "jig") {
if (myMission != "curious") {
myInterest = -3;
}
}
if (_local3.myType == "spoon") {
if (myMission != "curious") {
myInterest = -3;
myStartle = myStartle + 0.3;
}
}
if (_local3.myType == "plug") {
}
if (_local3.myType == "fly") {
if (_parent.castTimer <= 260) {
myInterest = (10 + (lureAttraction * 10)) + (4 * (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myLevel - (5 - myRare)));
myStartle = 0;
} else if ((myMission != "curious") && (myMission != "inspect")) {
myInterest = 0;
}
}
if (_local3.myType == "bait") {
myInterest = 25;
myStartle = myStartle + 0;
}
}
}
if ((myMission == "cross") || (myMission == "curious")) {
if ((_parent.castTimer > 90) && (_local3.myType == "fly")) {
myInterest = 0;
}
if ((PondWorld.baitLife <= 0) && (_local3.myType == "bait")) {
myInterest = 0;
}
}
if ((inAction == "cast") && (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType != "fly")) {
if (myDepth == "high") {
if (_local5 < ((50 + (100 - (myFear * 10))) * myDistanceOffset)) {
afraid = true;
}
}
}
if (afraid) {
spookFish(inX, inY);
myMission = "flee";
}
}
}
function setLureAttraction() {
var _local3;
lureAttraction = 0;
var _local5 = 0;
while (_local5 < myLures.length) {
_local3 = BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]];
if ((((((((myLures[_local5] == "fish") && (_local3.myType == "plug")) || ((myLures[_local5] == "minnow") && (((_local3.myType == "bait") && (_local3.mySubType == 3)) || (_local3.myType == "spoon")))) || ((myLures[_local5] == "squid") && (((_local3.myType == "bait") && (_local3.mySubType == 5)) || (_local3.myType == "jig")))) || (((myLures[_local5] == "shrimp") && (_local3.myType == "bait")) && (_local3.mySubType == 4))) || (((myLures[_local5] == "cut") && (_local3.myType == "bait")) && (_local3.mySubType == 1))) || ((myLures[_local5] == "fly") && (_local3.myType == "fly"))) || (((myLures[_local5] == "worm") && (_local3.myType == "bait")) && (_local3.mySubType == 2))) {
trace(((myName + " likes your lure! (") + _local3.myType) + ")");
var _local4;
_local4 = 0;
while (_local4 < myColorsLiked.length) {
if ((myColorsLiked[_local4] == _local3.myColor1) || (myColorsLiked[_local4] == _local3.myColor2)) {
_local4 = 9999;
break;
}
_local4++;
}
if ((_root.myEquip[0] == "bait") || (_local4 == 9999)) {
lureAttraction = 2;
} else {
lureAttraction = 1;
}
break;
}
if (_root.codeAttract) {
lureAttraction = 2;
}
_local5++;
}
}
function adjust_rotAccel() {
if (afraid) {
return(6);
}
if (myMission == "bite") {
return(mySpeed * 3);
}
if (myMission == "fight") {
return(10);
}
return(mySpeed / 6);
}
function applyMissionTaskCatch() {
MissionOrganizer.checkTaskComplete("catch_" + BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType);
MissionOrganizer.checkTaskComplete("catch_" + myType);
if (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType == "bait") {
MissionOrganizer.checkTaskComplete("catch_bait" + BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].mySubType);
}
if (mySize >= 15) {
MissionOrganizer.checkTaskComplete("catch_15+");
}
if (mySize >= 10) {
MissionOrganizer.checkTaskComplete("catch_10+");
}
if (((((myType == "bluemarlin") || (myType == "spearfish")) || (myType == "sailfish")) || (myType == "swordfish")) || (myType == "whitefinmarlin")) {
MissionOrganizer.checkTaskComplete("catch_sail");
}
if (((myType == "bonnetheadshark") || (myType == "shortfinmakoshark")) || (myType == "blacktipshark")) {
MissionOrganizer.checkTaskComplete("catch_shark");
}
if ((_root.gameStage == 1) && (myRare == 1)) {
MissionOrganizer.checkTaskComplete("catch_canal_rare");
}
if ((_root.gameStage == 2) && (myRare == 1)) {
MissionOrganizer.checkTaskComplete("catch_lake_rare");
}
if ((_root.gameStage == 3) && (myRare == 1)) {
MissionOrganizer.checkTaskComplete("catch_bay_rare");
}
if ((_root.gameStage == 4) && (myRare == 1)) {
MissionOrganizer.checkTaskComplete("catch_wreck_rare");
}
if ((myFight >= 7.5) && (((_root.gameStage == 1) || (_root.gameStage == 2)) || (_root.gameStage == 5))) {
MissionOrganizer.checkTaskComplete("catch_fresh");
}
if ((myFight >= 7.5) && ((_root.gameStage == 3) || (_root.gameStage == 4))) {
MissionOrganizer.checkTaskComplete("catch_salt");
}
}
static var allFish = new Array();
static var lowestFish = new Number();
var myHealth = new Number();
var myHealthMax = new Number();
var myType = new String();
var myDepth = new String();
var mySize = new Number();
var mySizeDisplay = new String();
var myName = new String();
var myFight = new Number();
var myFear = new Number();
var myLures = new Array();
var myPickiness = new Number();
var myColorsLiked = new Array();
var myColorsHated = new Array();
var mySpeed = new Number();
var myErratic = new Number();
var mySchool = new Number();
var amLegendary = new Boolean();
var myRare = new Number();
var amShark = new Boolean();
var varyY = new Number();
var afraid = false;
var hooked = false;
var speedMod = new Number();
var myInterest = new Number();
var myStartle = new Number();
var lureAttraction = new Number();
var jumpTimer = new Number();
var fightTimer = new Number();
var fighting = new Boolean();
var fightStatus = new String();
var tiredTimer = new Number();
var fightTimerTotal = new Number();
var rotCurrent = new Number();
var rotVel = new Number();
var rotAccel = new Number();
var myRotDistance = new Number();
var myRotTarget = new Number();
var slowTurns = new Number();
}
Symbol 1405 MovieClip [__Packages.MissionOrganizer] Frame 0
class MissionOrganizer
{
function MissionOrganizer () {
}
static function getMissionObjective(inText) {
var _local3 = _root.myMission;
loadNewGoalCount(_local3);
if (inText == "title") {
if (_local3 == 1) {
return("Introduction to Fishing!");
}
if (_local3 == 2) {
return("Fishing License - Junior");
}
if (_local3 == 3) {
return("Kickin' Back");
}
if (_local3 == 4) {
return("Fishing License - Novice");
}
if (_local3 == 5) {
return("Scourge of the Gulf Stream");
}
if (_local3 == 6) {
return("Fishing License - Adept");
}
if (_local3 == 7) {
return("Lord of the Bite");
}
if (_local3 == 8) {
return("Fishing License - Advanced");
}
if (_local3 == 9) {
return("Freshwater Mastery");
}
if (_local3 == 10) {
return("Fishing License - Sport Pro");
}
if (_local3 >= 11) {
return("Missions Completed!");
}
}
if (inText == "description") {
if (_local3 == 1) {
return("Learn the ropes and follow the Tutorial instructions.");
}
if (_local3 == 2) {
return("Bag a few fish to qualify for your first License.");
}
if (_local3 == 3) {
return("Try to nab a few fish with new Lure types.");
}
if (_local3 == 4) {
return("Catch a few previously unobtainable fish.");
}
if (_local3 == 5) {
return("Explore the bounty of the sea: pull in a couple of 'Big Ones'.");
}
if (_local3 == 6) {
return("Catch some of the fiercest fish off the coast of Miami!");
}
if (_local3 == 7) {
return("Use each of the four live baits to catch any fish.");
}
if (_local3 == 8) {
return("Catch some rares from each of your hunting grounds.");
}
if (_local3 == 9) {
return("Score some new rare fish from the stock pond.");
}
if (_local3 == 10) {
return("Catch ten difficult fish without losing a single one!");
}
if (_local3 >= 11) {
return("Enjoy your fishing.");
}
}
if (inText.substr(0, 4) == "task") {
if ((MissionOrganizer[inText + "Count"] == MissionOrganizer[inText + "Goal"]) && (MissionOrganizer[inText + "Goal"] > 0)) {
return("Completed!");
}
if (_local3 == 1) {
if (inText == "task1") {
return("Cast your line");
}
if (inText == "task2") {
return("Attract a fish");
}
if (inText == "task3") {
return("Set your hook");
}
if (inText == "task4") {
return("Catch a fish");
}
}
if (_local3 == 2) {
if (inText == "task1") {
return(((("Catch fish: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return("");
}
if (inText == "task3") {
return("");
}
if (inText == "task4") {
return("");
}
}
if (_local3 == 3) {
if (inText == "task1") {
return(((("Fly catches: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Spoon catches: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return("");
}
if (inText == "task4") {
return("");
}
}
if (_local3 == 4) {
if (inText == "task1") {
return(((("Bluegills caught: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Redbreast Sunfish caught: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return(((("Yellow Bullhead caught: (" + task3Count) + " of ") + task3Goal) + ")");
}
if (inText == "task4") {
return("");
}
}
if (_local3 == 5) {
if (inText == "task1") {
return(((("Fish over 10 lbs: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Fish over 15 lbs: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return("");
}
if (inText == "task4") {
return("");
}
}
if (_local3 == 6) {
if (inText == "task1") {
return(((("Sail-type fish caught: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Large Sharks caught: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return("");
}
if (inText == "task4") {
return("");
}
}
if (_local3 == 7) {
if (inText == "task1") {
return(((("Nightcrawler catches: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Minnow catches: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return(((("Shrimp catches: (" + task3Count) + " of ") + task3Goal) + ")");
}
if (inText == "task4") {
return(((("Squid catches: (" + task4Count) + " of ") + task4Goal) + ")");
}
}
if (_local3 == 8) {
if (inText == "task1") {
return(((("Canal Rares: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Lake Rares: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return(((("Bay Rares: (" + task3Count) + " of ") + task3Goal) + ")");
}
if (inText == "task4") {
return(((("Wreck Rares: (" + task4Count) + " of ") + task4Goal) + ")");
}
}
if (_local3 == 9) {
if (inText == "task1") {
return(((("Brown Hoplo caught: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Peacock Bass caught: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return(((("Grass Carp caught: (" + task3Count) + " of ") + task3Goal) + ")");
}
if (inText == "task4") {
return(((("Striped Bass caught: (" + task4Count) + " of ") + task4Goal) + ")");
}
}
if (_local3 == 10) {
if (inText == "task1") {
return(((("Tough freshwaters caught: (" + task1Count) + " of ") + task1Goal) + ")");
}
if (inText == "task2") {
return(((("Tough saltwaters caught: (" + task2Count) + " of ") + task2Goal) + ")");
}
if (inText == "task3") {
return("");
}
if (inText == "task4") {
return("");
}
}
if (_local3 == 11) {
if (inText == "task1") {
return("");
}
if (inText == "task2") {
return("");
}
if (inText == "task3") {
return("");
}
if (inText == "task4") {
return("");
}
}
}
}
static function setMissionPanelText() {
_root.buttonBar.missionPanel.setText();
}
static function checkTaskComplete(inAction) {
if ((!(lastFish === _root.newFishing.hookedFish)) || (_root.newFishing.hookedFish == undefined)) {
goAhead = true;
} else {
goAhead = false;
}
if (inAction.substr(0, 5) == "catch") {
lastFish = _root.newFishing.hookedFish;
} else {
lastFish = undefined;
}
var _local3 = _root.myMission;
if (_local3 == 1) {
if ((inAction == "tut_cast") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
PondWorld.populatePopup("cast");
}
if ((inAction == "tut_attract") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
PondWorld.populatePopup("inspect");
}
if ((inAction == "tut_hook") && (task3Count < task3Goal)) {
task3Count = task3Count + 1;
setMissionPanelText();
PondWorld.populatePopup("hook");
}
if (((inAction.substr(0, 5) == "catch") && (goAhead)) && (task4Count < task4Goal)) {
task4Count = task4Count + 1;
setMissionPanelText();
}
}
if (_local3 == 2) {
if (((inAction.substr(0, 5) == "catch") && (goAhead)) && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
}
if (_local3 == 3) {
if ((inAction == "catch_fly") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_spoon") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
}
if (_local3 == 4) {
if ((inAction == "catch_bluegill") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_redbreastsunfish") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_yellowbullhead") && (task3Count < task3Goal)) {
task3Count = task3Count + 1;
setMissionPanelText();
}
}
if (_local3 == 5) {
if ((inAction == "catch_10+") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_15+") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
}
if (_local3 == 6) {
if ((inAction == "catch_sail") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_shark") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
}
if (_local3 == 7) {
if ((inAction == "catch_bait2") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_bait3") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_bait4") && (task3Count < task3Goal)) {
task3Count = task3Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_bait5") && (task4Count < task4Goal)) {
task4Count = task4Count + 1;
setMissionPanelText();
}
}
if (_local3 == 8) {
if ((inAction == "catch_canal_rare") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_lake_rare") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_bay_rare") && (task3Count < task3Goal)) {
task3Count = task3Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_wreck_rare") && (task4Count < task4Goal)) {
task4Count = task4Count + 1;
setMissionPanelText();
}
}
if (_local3 == 9) {
if ((inAction == "catch_brownhoplo") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_peacockbass") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_grasscarp") && (task3Count < task3Goal)) {
task3Count = task3Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_stripedbass") && (task4Count < task4Goal)) {
task4Count = task4Count + 1;
setMissionPanelText();
}
}
if (_local3 == 10) {
if ((inAction == "catch_fresh") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_salt") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
if (inAction == "lose_fresh") {
task1Count = 0;
setMissionPanelText();
}
if (inAction == "lose_salt") {
task2Count = 0;
setMissionPanelText();
}
}
if (_local3 == 11) {
if ((inAction == "catch_bandlefish") && (task1Count < task1Goal)) {
task1Count = task1Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_fishhead") && (task2Count < task2Goal)) {
task2Count = task2Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_doublebass") && (task3Count < task3Goal)) {
task3Count = task3Count + 1;
setMissionPanelText();
}
if ((inAction == "catch_pescadito") && (task4Count < task4Goal)) {
task4Count = task4Count + 1;
setMissionPanelText();
}
}
var _local4 = false;
if (task1Count > task1Goal) {
task1Count = task1Goal;
}
if (task2Count > task2Goal) {
task2Count = task2Goal;
}
if (task3Count > task3Goal) {
task3Count = task3Goal;
}
if (task4Count > task4Goal) {
task4Count = task4Goal;
}
if ((((((task1Goal > 0) && (task1Count == task1Goal)) || (task1Goal == 0)) && (((task2Goal > 0) && (task2Count == task2Goal)) || (task2Goal == 0))) && (((task3Goal > 0) && (task3Count == task3Goal)) || (task3Goal == 0))) && (((task4Goal > 0) && (task4Count == task4Goal)) || (task4Goal == 0))) {
_local4 = true;
}
if (_local4) {
_root.myMission++;
task1Count = 0;
task2Count = 0;
task3Count = 0;
task4Count = 0;
loadNewGoalCount(_local3);
setMissionPanelText();
_root.createMissionComplete();
_root.gameStagesOpen = Math.ceil(_root.myMission / 2);
_root.saveGame();
}
}
static function returnNewStage() {
return((((_root.myMission == 3) || (_root.myMission == 5)) || (_root.myMission == 7)) || (_root.myMission == 9));
}
static function loadNewGoalCount(inMission) {
if (inMission == 1) {
task1Goal = 1;
task2Goal = 1;
task3Goal = 1;
task4Goal = 1;
}
if (inMission == 2) {
task1Goal = 3;
task2Goal = 0;
task3Goal = 0;
task4Goal = 0;
}
if (inMission == 3) {
task1Goal = 3;
task2Goal = 3;
task3Goal = 0;
task4Goal = 0;
}
if (inMission == 4) {
task1Goal = 1;
task2Goal = 1;
task3Goal = 1;
task4Goal = 0;
}
if (inMission == 5) {
task1Goal = 6;
task2Goal = 3;
task3Goal = 0;
task4Goal = 0;
}
if (inMission == 6) {
task1Goal = 1;
task2Goal = 1;
task3Goal = 0;
task4Goal = 0;
}
if (inMission == 7) {
task1Goal = 3;
task2Goal = 3;
task3Goal = 3;
task4Goal = 3;
}
if (inMission == 8) {
task1Goal = 1;
task2Goal = 1;
task3Goal = 1;
task4Goal = 1;
}
if (inMission == 9) {
task1Goal = 1;
task2Goal = 1;
task3Goal = 1;
task4Goal = 1;
}
if (inMission == 10) {
task1Goal = 5;
task2Goal = 5;
task3Goal = 0;
task4Goal = 0;
}
if (inMission == 11) {
task1Goal = 999;
task2Goal = 0;
task3Goal = 0;
task4Goal = 0;
}
}
static function storeAdvice() {
var _local3 = _root.myMission;
var _local2 = new Number();
if (_local3 == 1) {
_local2 = SwainMath.randomNumber(0, 4);
if (_local2 == 0) {
return("Welcome to the neighborhood, guppy.");
}
if (_local2 == 1) {
return("I got everything you need to get started. Have a look around.");
}
if (_local2 == 2) {
return("Buy any lure, and I'll throw in a free rod.");
}
if (_local2 == 3) {
return("Howdy.");
}
if (_local2 == 4) {
return("Welcome to the neighborhood, guppy.");
}
}
if (_local3 == 2) {
_local2 = SwainMath.randomNumber(0, 2);
if (_local2 == 0) {
return("Casting too close to a fish with a heavy lure will spook it.");
}
if (_local2 == 1) {
return("A red indicator means you're using the wrong lure for any fish nearby.");
}
if (_local2 == 2) {
return("A green indicator means your lure choice is perfect for any fish nearby.");
}
}
if (_local3 == 3) {
_local2 = SwainMath.randomNumber(0, 1);
if (_local2 == 0) {
return("To fly fish, you need to cast and wait for a few seconds. Don't jerk the line! If the fish aren't biting, reel in and try again.");
}
if (_local2 == 1) {
return("Spoons are attractive only while reeling, but reeling too long or fast may startle fish.");
}
}
if (_local3 == 4) {
_local2 = SwainMath.randomNumber(0, 2);
if (_local2 == 0) {
return("Sunfish? They'll eat just about anything in high water. Hard to find, though.");
}
if (_local2 == 1) {
return("Bluegills are common little bait thieves. Not much fight. Why do you ask?");
}
if (_local2 == 2) {
return("Bullheads are bottom-feeders. Bait them accordingly.");
}
}
if (_local3 == 5) {
_local2 = SwainMath.randomNumber(0, 1);
if (_local2 == 0) {
return("You'll catch bigger fish off the shelf outside Biscayne Bay.");
}
if (_local2 == 1) {
return("If you're trying to catch huge fish in fresh water, then you're doing it wrong.");
}
}
if (_local3 == 6) {
_local2 = SwainMath.randomNumber(0, 1);
if (_local2 == 0) {
return("Large predator fish don't wait to figure out if they like your lure. They strike FAST, so be ready!");
}
if (_local2 == 1) {
return("Large predators like large bait. Jigs, squid, and plugs are a good start, but they're not the only right way.");
}
}
if (_local3 == 7) {
_local2 = SwainMath.randomNumber(0, 1);
if (_local2 == 0) {
return("When fishing with live bait, try not to jerk on the line too much. You're likely to kill or lose it.");
}
if (_local2 == 1) {
return("Live bait is delicate business, but the fish will appreciate the difference.");
}
}
if (_local3 == 8) {
_local2 = SwainMath.randomNumber(0, 1);
if (_local2 == 0) {
return("Fishing for freshwater rares? I'd use cut bait, shrimp, or minnows.");
}
if (_local2 == 1) {
return("Hunting saltwater rares? Plugs, shrimp, and minnows are good choices...but not for every fish.");
}
}
if (_local3 == 9) {
_local2 = SwainMath.randomNumber(0, 3);
if (_local2 == 0) {
return("Peacock bass is a beautiful catch. They tend toward smaller fish to feed on.");
}
if (_local2 == 1) {
return("The Hoplo is a bottom feeder, but he'll come up for flies if he spots them.");
}
if (_local2 == 2) {
return("Grass Carp can get pretty big for freshwater. They like to be spoon-fed.");
}
if (_local2 == 3) {
return("Striped Bass feeds like most bass, but he's not big on flies.");
}
}
if (_local3 == 10) {
_local2 = SwainMath.randomNumber(0, 0);
if (_local2 == 0) {
return("It's gonna take all your skill to complete a fishing marathon. Good luck, champ!");
}
}
if (_local3 == 11) {
_local2 = SwainMath.randomNumber(0, 0);
if (_local2 == 0) {
return(("So you've made it to the top, have you? Have you caught all " + FishStats.allFish.length) + " fish?");
}
}
}
static var task1Count = new Number();
static var task2Count = new Number();
static var task3Count = new Number();
static var task4Count = new Number();
static var task1Goal = new Number();
static var task2Goal = new Number();
static var task3Goal = new Number();
static var task4Goal = new Number();
static var lastFish = new Object();
static var goAhead = true;
}
Symbol 1406 MovieClip [__Packages.StressBar] Frame 0
class StressBar extends MovieClip
{
var onEnterFrame, myDifficulty, myWeightClass, slackHealth, stressHealth, _alpha, fightIndicator, myStartAnim, psTEXT, fsTEXT, targetIndicator, currentIndicator, stressBar, slackBar, healthBar, healthMult, removeMovieClip;
function StressBar () {
super();
onEnterFrame = tick;
}
function init(inFish) {
targetFish = inFish;
currentBar = this;
myDifficulty = targetFish.myFight;
myWeightClass = determineWeightClass(targetFish.mySize);
slackHealth = (stressHealth = SlackStressMax);
_alpha = 0;
fightIndicator.gotoAndStop(myDifficulty);
justStarted = true;
healthMod = 1;
}
function tick() {
if (!PondWorld.popupActive()) {
if (!myStartAnim._visible) {
myStartAnim._visible = true;
myStartAnim.gotoAndPlay(1);
}
if (myPhase == -1) {
if (_alpha < 100) {
_alpha = _alpha + 25;
} else {
myPhase = 0;
}
}
if (!targetFish._parent.paused) {
if (_root.currentScreen != "game") {
removeMe();
}
if (myPhase == 1) {
playerStress = 0;
fishStress = 0;
if (_alpha > 0) {
_alpha = _alpha - 25;
} else {
removeMe();
}
}
if (targetValue < (playerStress + fishStress)) {
targetValue = targetValue + (((playerStress + fishStress) - targetValue) / 10);
}
if (targetValue > (playerStress + fishStress)) {
targetValue = targetValue - ((targetValue - (playerStress + fishStress)) / 10);
}
psTEXT.text = playerStress;
fsTEXT.text = fishStress;
if (targetValue < -400) {
targetValue = -400;
}
if (targetValue > 400) {
targetValue = 400;
}
if (targetValue < currentValue) {
if ((targetValue - currentValue) >= (-cvAccel)) {
cvVelocity = 0;
} else if ((targetValue - currentValue) < (cvVelocity * 13)) {
cvVelocity = cvVelocity - cvAccel;
} else {
cvVelocity = cvVelocity + cvAccel;
}
}
if (targetValue > currentValue) {
if ((targetValue - currentValue) <= cvAccel) {
cvVelocity = 0;
} else if ((targetValue - currentValue) > (cvVelocity * 13)) {
cvVelocity = cvVelocity + cvAccel;
} else {
cvVelocity = cvVelocity - cvAccel;
}
}
currentValue = currentValue + cvVelocity;
if (currentValue < -400) {
currentValue = -400;
cvVelocity = 0;
}
if (currentValue > 400) {
currentValue = 400;
cvVelocity = 0;
}
targetIndicator.gotoAndStop(Math.floor(targetValue + 400));
currentIndicator.gotoAndStop(Math.floor(currentValue + 400));
if (((stressHealth < 0) || (slackHealth < 0)) && (myPhase != 1)) {
myPhase = 1;
targetFish._parent.loseFish();
}
if (currentValue < (-35 + ((-(11 - myDifficulty)) * 13.5135135135135))) {
stressHealth = stressHealth - 1;
} else {
stressHealth = stressHealth + 2;
}
if (currentValue > (35 + ((11 - myDifficulty) * 13.5135135135135))) {
slackHealth = slackHealth - 1;
} else {
slackHealth = slackHealth + 2;
}
if ((currentBar.myPhase == 1) || (targetFish.myHealth <= 0)) {
stressHealth = SlackStressMax;
slackHealth = SlackStressMax;
}
stressBar.gotoAndStop((SlackStressMax - stressHealth) + 1);
slackBar.gotoAndStop((SlackStressMax - slackHealth) + 1);
if (stressHealth > SlackStressMax) {
stressHealth = SlackStressMax;
}
if (slackHealth > SlackStressMax) {
slackHealth = SlackStressMax;
}
healthBar.healthScale._xscale = 100 * (targetFish.myHealth / targetFish.myHealthMax);
if (targetFish.myHealth <= 0) {
} else if ((stressHealth == SlackStressMax) && (slackHealth == SlackStressMax)) {
healthMod = healthMod + 0.013;
if (healthMod > 4) {
healthMod = 4;
}
} else {
healthMod = 1;
}
if ((healthMod < 2) && (healthMult._currentframe != 1)) {
if ((currentMod > 1) && (targetFish.myHealth > 0)) {
_root.playSound("scene", "Fish_MultLose");
}
healthMult.gotoAndStop(5);
} else {
if ((currentMod != Math.floor(healthMod)) && (targetFish.myHealth > 0)) {
_root.playSound("scene", "Fish_MultGet");
}
healthMult.gotoAndStop(Math.floor(healthMod));
}
currentMod = Math.floor(healthMod);
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 25;
}
justStarted = true;
myStartAnim.gotoAndPlay(1);
myStartAnim._visible = false;
targetIndicator.gotoAndStop(400);
currentIndicator.gotoAndStop(400);
}
}
function removeMe() {
removeMovieClip();
}
function stressColor(inDir, inType) {
}
function determineWeightClass(inSize) {
var _local1 = new Number();
if (inSize < 1) {
_local1 = 1;
} else if (inSize < 2) {
_local1 = 2;
} else if (inSize < 4) {
_local1 = 3;
} else if (inSize < 6) {
_local1 = 4;
} else if (inSize < 10) {
_local1 = 5;
} else if (inSize < 14) {
_local1 = 6;
} else if (inSize < 25) {
_local1 = 7;
} else if (inSize < 50) {
_local1 = 8;
} else if (inSize < 100) {
_local1 = 9;
} else {
_local1 = 10;
}
return(_local1);
}
static function adjustStress(inAction) {
if (inAction == "fight") {
currentBar.fishStress = -100 + ((-currentBar.myWeightClass) * 20);
currentBar.fishIcon.gotoAndStop("fight");
}
if (inAction == "jump1") {
currentBar.fishStress = -100 + ((-currentBar.myWeightClass) * 20);
currentBar.fishIcon.gotoAndStop("jump");
}
if (inAction == "jump2") {
currentBar.fishStress = 200 + (currentBar.myWeightClass * 20);
currentBar.fishIcon.gotoAndStop("jump");
}
if (inAction == "rest") {
currentBar.fishStress = 100 + (currentBar.myWeightClass * 20);
currentBar.fishIcon.gotoAndStop("rest");
}
if (inAction == "default") {
currentBar.fishStress = 50 + (currentBar.myWeightClass * 20);
currentBar.fishIcon.gotoAndStop("start");
}
if (inAction == "defeated") {
currentBar.fishStress = 0;
currentBar.fishIcon.gotoAndStop("defeated");
}
if (inAction == "yank") {
currentBar.playerStress = -600;
}
if (inAction == "pop") {
currentBar.playerStress = -450;
}
if (inAction == "reel1") {
currentBar.playerStress = -300;
}
if (inAction == "reel2") {
currentBar.playerStress = -200;
}
if (inAction == "free") {
currentBar.playerStress = 300;
}
if (currentBar.targetFish == undefined) {
currentBar.playerStress = 0;
currentBar.fishStress = 0;
}
if (inAction == "finished") {
currentBar.myPhase = 1;
}
}
var targetValue = 0;
var currentValue = 0;
var cvVelocity = 0;
var cvAccel = 0.7;
var targetFish = new Object();
var myPhase = -1;
var SlackStressMax = 60;
var playerStress = 0;
var fishStress = 0;
static var currentBar = new Object();
static var healthMod = 1;
var justStarted = new Boolean();
var currentMod = new Number();
}
Symbol 1407 MovieClip [__Packages.QuickParticle] Frame 0
class QuickParticle extends MovieClip
{
var onEnterFrame, _x, _y, _rotation, myVelDown, myVelRight, myScreen, myGravity, _xscale, _yscale, spinSpeed, gotoAndStop, removeMovieClip;
function QuickParticle () {
super();
gotoArray = new Array();
onEnterFrame = tick;
}
function init(inArray, inX, inY, inXVar, inYVar, rotStart, rotEnd, velDownStart, velDownEnd, velRightStart, velRightEnd, inScreen, inGravity, inScaleDiff, inSpinRange) {
_x = inX + SwainMath.randomNumber(-inXVar, inXVar);
_y = inY + SwainMath.randomNumber(-inYVar, inYVar);
_rotation = SwainMath.randomNumber(rotStart, rotEnd);
myVelDown = SwainMath.randomNumber(velDownStart, velDownEnd);
myVelRight = SwainMath.randomNumber(velRightStart, velRightEnd);
myScreen = inScreen;
myGravity = inGravity;
_xscale = _xscale + SwainMath.randomNumber(-inScaleDiff, inScaleDiff);
_yscale = _xscale;
spinSpeed = SwainMath.randomNumber((-inSpinRange) * 100, inSpinRange * 100);
spinSpeed = spinSpeed / 100;
gotoArray = inArray;
gotoAndStop(gotoArray[SwainMath.randomNumber(0, gotoArray.length - 1)]);
}
function tick() {
_x = _x + myVelRight;
_y = _y + myVelDown;
myVelDown = myVelDown + myGravity;
_rotation = _rotation + spinSpeed;
if (((_x > (borderRight + deleteBuffer)) || (_y > 1000)) || (_root.currentScreen != myScreen)) {
removeMovieClip();
}
}
var gotoArray = new Array();
static var deleteBuffer = 40;
static var borderBottom = 600;
static var borderRight = 800;
}
Symbol 504 Button
on (release) {
getURL ("http://www.kongregate.com/?haref=superfishing&src=spon&cm=superfishing", "_blank");
}
Symbol 530 MovieClip Frame 1
_root.stop();
Symbol 530 MovieClip Frame 141
_root.play();
Symbol 563 MovieClip Frame 2
stop();
Symbol 578 MovieClip Frame 79
stop();
Symbol 602 Button
on (press) {
_root.newGame();
_root.gotoAndStop("intro");
}
Symbol 606 Button
on (press) {
_root.loadGame();
_root.gotoAndStop("intro");
}
Symbol 608 MovieClip Frame 9
stop();
Symbol 615 Button
on (press) {
_root.codeAttract = true;
}
Symbol 641 MovieClip Frame 1
gotoAndStop(_root.myHat);
Symbol 650 Button
on (press) {
if (customHead._currentframe == 1) {
customHead.gotoAndStop(customHead._totalframes);
} else {
customHead.prevFrame();
}
_root.myHat = customHead._currentFrame;
}
Symbol 651 Button
on (press) {
if (customHead._currentframe == customHead._totalframes) {
customHead.gotoAndStop(1);
} else {
customHead.nextFrame();
}
_root.myHat = customHead._currentFrame;
}
Symbol 660 Button
on (press) {
_root.gotoAndStop("game");
}
Symbol 672 Button
on (press) {
_root._quality = "high";
}
Symbol 676 Button
on (press) {
_root._quality = "medium";
}
Symbol 680 Button
on (press) {
_root._quality = "low";
}
Symbol 695 Button
on (press) {
_root.tutorialActive = !_root.tutorialActive;
}
Symbol 717 MovieClip Frame 43
gotoAndPlay ("loop");
Symbol 720 Button
on (rollOver) {
_root.rollOverStage(1, true);
this.gotoAndStop(2);
}
on (rollOut) {
_root.rollOverStage(1, false);
this.gotoAndStop(1);
}
on (press) {
_root.selectStage(1);
}
Symbol 727 MovieClip Frame 60
gotoAndPlay ("restart");
Symbol 732 MovieClip Frame 1
stop();
Symbol 733 Button
on (rollOver) {
_root.rollOverStage(2, true);
this.gotoAndStop(2);
}
on (rollOut) {
_root.rollOverStage(2, false);
this.gotoAndStop(1);
}
on (press) {
_root.selectStage(2);
}
Symbol 737 MovieClip Frame 1
stop();
Symbol 738 Button
on (rollOver) {
_root.rollOverStage(4, true);
this.gotoAndStop(2);
}
on (rollOut) {
_root.rollOverStage(4, false);
this.gotoAndStop(1);
}
on (press) {
_root.selectStage(4);
}
Symbol 742 MovieClip Frame 1
stop();
Symbol 743 Button
on (rollOver) {
_root.rollOverStage(5, true);
this.gotoAndStop(2);
}
on (rollOut) {
_root.rollOverStage(5, false);
this.gotoAndStop(1);
}
on (press) {
_root.selectStage(5);
}
Symbol 747 MovieClip Frame 1
stop();
Symbol 748 Button
on (rollOver) {
_root.rollOverStage(3, true);
this.gotoAndStop(2);
}
on (rollOut) {
_root.rollOverStage(3, false);
this.gotoAndStop(1);
}
on (press) {
_root.selectStage(3);
}
Symbol 752 MovieClip Frame 1
stop();
Symbol 753 MovieClip Frame 23
stop();
Instance of Symbol 732 MovieClip in Symbol 753 MovieClip Frame 23
onClipEvent (load) {
if (_root.gameStagesOpen >= 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 737 MovieClip in Symbol 753 MovieClip Frame 23
onClipEvent (load) {
if (_root.gameStagesOpen >= 2) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 742 MovieClip in Symbol 753 MovieClip Frame 23
onClipEvent (load) {
if (_root.gameStagesOpen >= 4) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 747 MovieClip in Symbol 753 MovieClip Frame 23
onClipEvent (load) {
if (_root.gameStagesOpen >= 5) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 752 MovieClip in Symbol 753 MovieClip Frame 23
onClipEvent (load) {
if (_root.gameStagesOpen >= 3) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 758 Button
on (press) {
PondWorld.populatePopup("map");
}
Symbol 762 MovieClip Frame 6
stop();
Symbol 772 Button
on (press) {
PondWorld.popupClose();
}
Symbol 776 Button
on (press) {
PondWorld.popupNext();
}
Symbol 779 MovieClip Frame 8
stop();
Symbol 784 MovieClip Frame 8
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 8
stop();
Symbol 810 MovieClip Frame 1
gotoAndStop(_root.gameStage);
Instance of Symbol 792 MovieClip "myTarget" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
var mapStartX = _parent.myMap._x;
var mapBitmap = (new flash.display.BitmapData(_parent.myMap._width, _parent.myMap._height));
mapBitmap.draw(_parent.myMap);
var mapPoint = (new flash.geom.Point(0, 0));
var componentX = 4;
var componentY = 4;
var scaleX = 30;
var scaleY = 30;
var filter = (new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY));
var filterList = new Array();
filterList.push(filter);
this.filters = filterList;
_parent.myMap._visible = false;
}
onClipEvent (enterFrame) {
_parent.myMap._x = _parent.myMap._x - 1;
if (_parent.myMap._x <= (mapStartX - 600)) {
_parent.myMap._x = mapStartX;
}
offsetX = _parent.myMap._x - this._x;
offsetY = _parent.myMap._y - this._y;
var newPoint = (new flash.geom.Point(offsetX, offsetY));
filter.mapPoint = newPoint;
this.filters = filterList;
}
Instance of Symbol 797 MovieClip "myTarget" in Symbol 810 MovieClip Frame 2
onClipEvent (load) {
var mapStartX = _parent.myMap._x;
var mapBitmap = (new flash.display.BitmapData(_parent.myMap._width, _parent.myMap._height));
mapBitmap.draw(_parent.myMap);
var mapPoint = (new flash.geom.Point(0, 0));
var componentX = 4;
var componentY = 4;
var scaleX = 30;
var scaleY = 30;
var filter = (new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY));
var filterList = new Array();
filterList.push(filter);
this.filters = filterList;
_parent.myMap._visible = false;
}
onClipEvent (enterFrame) {
_parent.myMap._x = _parent.myMap._x - 1;
if (_parent.myMap._x <= (mapStartX - 600)) {
_parent.myMap._x = mapStartX;
}
offsetX = _parent.myMap._x - this._x;
offsetY = _parent.myMap._y - this._y;
var newPoint = (new flash.geom.Point(offsetX, offsetY));
filter.mapPoint = newPoint;
this.filters = filterList;
}
Instance of Symbol 801 MovieClip "myTarget" in Symbol 810 MovieClip Frame 3
onClipEvent (load) {
var mapStartX = _parent.myMap._x;
var mapBitmap = (new flash.display.BitmapData(_parent.myMap._width, _parent.myMap._height));
mapBitmap.draw(_parent.myMap);
var mapPoint = (new flash.geom.Point(0, 0));
var componentX = 4;
var componentY = 4;
var scaleX = 30;
var scaleY = 30;
var filter = (new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY));
var filterList = new Array();
filterList.push(filter);
this.filters = filterList;
_parent.myMap._visible = false;
}
onClipEvent (enterFrame) {
_parent.myMap._x = _parent.myMap._x - 1;
if (_parent.myMap._x <= (mapStartX - 600)) {
_parent.myMap._x = mapStartX;
}
offsetX = _parent.myMap._x - this._x;
offsetY = _parent.myMap._y - this._y;
var newPoint = (new flash.geom.Point(offsetX, offsetY));
filter.mapPoint = newPoint;
this.filters = filterList;
}
Instance of Symbol 805 MovieClip "myTarget" in Symbol 810 MovieClip Frame 4
onClipEvent (load) {
var mapStartX = _parent.myMap._x;
var mapBitmap = (new flash.display.BitmapData(_parent.myMap._width, _parent.myMap._height));
mapBitmap.draw(_parent.myMap);
var mapPoint = (new flash.geom.Point(0, 0));
var componentX = 4;
var componentY = 4;
var scaleX = 30;
var scaleY = 30;
var filter = (new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY));
var filterList = new Array();
filterList.push(filter);
this.filters = filterList;
_parent.myMap._visible = false;
}
onClipEvent (enterFrame) {
_parent.myMap._x = _parent.myMap._x - 1;
if (_parent.myMap._x <= (mapStartX - 600)) {
_parent.myMap._x = mapStartX;
}
offsetX = _parent.myMap._x - this._x;
offsetY = _parent.myMap._y - this._y;
var newPoint = (new flash.geom.Point(offsetX, offsetY));
filter.mapPoint = newPoint;
this.filters = filterList;
}
Instance of Symbol 809 MovieClip "myTarget" in Symbol 810 MovieClip Frame 5
onClipEvent (load) {
var mapStartX = _parent.myMap._x;
var mapBitmap = (new flash.display.BitmapData(_parent.myMap._width, _parent.myMap._height));
mapBitmap.draw(_parent.myMap);
var mapPoint = (new flash.geom.Point(0, 0));
var componentX = 4;
var componentY = 4;
var scaleX = 30;
var scaleY = 30;
var filter = (new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY));
var filterList = new Array();
filterList.push(filter);
this.filters = filterList;
_parent.myMap._visible = false;
}
onClipEvent (enterFrame) {
_parent.myMap._x = _parent.myMap._x - 1;
if (_parent.myMap._x <= (mapStartX - 600)) {
_parent.myMap._x = mapStartX;
}
offsetX = _parent.myMap._x - this._x;
offsetY = _parent.myMap._y - this._y;
var newPoint = (new flash.geom.Point(offsetX, offsetY));
filter.mapPoint = newPoint;
this.filters = filterList;
}
Symbol 817 Button
on (press) {
_root.leaveFishing();
_root.gotoAndStop("map");
}
Symbol 819 Button
on (press) {
_root.leaveFishing();
_root.gotoAndStop("store");
}
Symbol 820 Button
on (press) {
_root.myStore.gotoAndStop(1);
_root.myInventory.gotoAndStop(3);
}
Symbol 822 Button
on (press) {
if ((_root.newFishing == undefined) || (_root.newFishing.gamePhase == "cast")) {
_root.myStore.gotoAndStop(1);
_root.myInventory.gotoAndStop(2);
}
}
Symbol 824 Button
on (press) {
newFishing.newFish(["low"], 900);
}
Symbol 825 Button
on (press) {
newFishing.newFish(["high"], -100);
}
Instance of Symbol 957 MovieClip "selector" in Symbol 958 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 963 MovieClip "selector" in Symbol 964 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 968 MovieClip Frame 1
stop();
Symbol 969 Button
on (rollOver) {
rollOverLure("lure", 0, true);
}
on (rollOut) {
rollOverLure("lure", 0, false);
}
on (press) {
equipLure("lure", 0);
}
Symbol 970 Button
on (rollOver) {
rollOverLure("lure", 1, true);
}
on (rollOut) {
rollOverLure("lure", 1, false);
}
on (press) {
equipLure("lure", 1);
}
Symbol 971 Button
on (rollOver) {
rollOverLure("lure", 2, true);
}
on (rollOut) {
rollOverLure("lure", 2, false);
}
on (press) {
equipLure("lure", 2);
}
Symbol 972 Button
on (rollOver) {
rollOverLure("lure", 3, true);
}
on (rollOut) {
rollOverLure("lure", 3, false);
}
on (press) {
equipLure("lure", 3);
}
Symbol 973 Button
on (rollOver) {
rollOverLure("bait", 0, true);
}
on (rollOut) {
rollOverLure("bait", 0, false);
}
on (press) {
equipLure("bait", 0);
}
Symbol 974 Button
on (rollOver) {
rollOverLure("bait", 1, true);
}
on (rollOut) {
rollOverLure("bait", 1, false);
}
on (press) {
equipLure("bait", 1);
}
Symbol 980 Button
on (press) {
if (BasicInventory.checkSaleValid()) {
BasicInventory.removeInvItem("lure", 0, true);
lure0.gotoAndStop(1);
lureButton0._visible = false;
lureEquip0._visible = false;
_root.playSound("scene", "Stuff_SelectLure");
}
}
Symbol 981 Button
on (press) {
if (BasicInventory.checkSaleValid()) {
BasicInventory.removeInvItem("lure", 2, true);
lure2.gotoAndStop(1);
lureButton2._visible = false;
lureEquip2._visible = false;
_root.playSound("scene", "Stuff_SelectLure");
}
}
Symbol 982 Button
on (press) {
if (BasicInventory.checkSaleValid()) {
BasicInventory.removeInvItem("lure", 1, true);
lure1.gotoAndStop(1);
lureButton1._visible = false;
lureEquip1._visible = false;
_root.playSound("scene", "Stuff_SelectLure");
}
}
Symbol 983 Button
on (press) {
if (BasicInventory.checkSaleValid()) {
BasicInventory.removeInvItem("lure", 3, true);
lure3.gotoAndStop(1);
lureButton3._visible = false;
lureEquip3._visible = false;
_root.playSound("scene", "Stuff_SelectLure");
}
}
Symbol 984 Button
on (press) {
BasicInventory.removeInvItem("bait", 0, false);
bait0.gotoAndStop(1);
baitButton0._visible = false;
baitEquip0._visible = false;
_root.playSound("scene", "Stuff_SelectBait");
}
Symbol 985 Button
on (press) {
BasicInventory.removeInvItem("bait", 1, false);
bait1.gotoAndStop(1);
baitButton1._visible = false;
baitEquip1._visible = false;
_root.playSound("scene", "Stuff_SelectBait");
}
Symbol 986 Button
on (press) {
gotoAndStop (1);
_root.playSound("scene", "Stuff_TackleClose");
}
Symbol 987 Button
on (press) {
PondWorld.populatePopup("inventory");
}
Symbol 997 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 1
stop();
_parent.inventoryButton._visible = true;
_parent.storeButton._visible = true;
_root.buttonBar.pickedLure.updateMe();
Symbol 998 MovieClip Frame 2
function equipLure(inCat, inSelect) {
if (_root.currentScreen == "game") {
if (((_root.myEquip[0] == "bait") && (inCat != "bait")) || (((_root.myEquip[0] == "bait") && (inCat == "bait")) && (_root.myEquip[1] != inSelect))) {
if ((PondWorld.baitLife < (PondWorld.baitLifeMax * 0.95)) && (BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].mySubType != 1)) {
_root.newFishing.eatBait();
}
PondWorld.baitLife = PondWorld.baitLifeMax;
}
_root.myEquip[0] = inCat;
_root.myEquip[1] = inSelect;
setEquipSelect(inCat, inSelect);
if (inCat == "lure") {
_root.playSound("scene", "Stuff_SelectLure");
} else {
_root.playSound("scene", "Stuff_SelectBait");
}
}
_root.setFishAttraction();
_root.saveGame();
}
function rollOverLure(inCat, inSelect, inVisible) {
var _local3 = this[inCat + String(inSelect)];
itemStats._x = _local3._x;
itemStats._y = _local3._y;
itemStats._visible = inVisible;
_local3.selector._visible = inVisible;
if (inCat == "lure") {
itemStats.displayName = BasicInventory.lureInv[inSelect].myName;
itemStats.displaySubType = BasicInventory.lureInv[inSelect].mySubType;
itemStats.gotoAndStop(1);
} else {
itemStats.displayName = BasicInventory.baitInv[inSelect].myName;
itemStats.displaySubType = BasicInventory.baitInv[inSelect].myLevel;
itemStats.gotoAndStop(2);
}
}
function setEquipSelect(inCat, inSelect) {
if (_root.currentScreen == "game") {
if (BasicInventory.isEquipped()) {
equipSelect._visible = true;
} else {
equipSelect._visible = false;
}
var _local3 = this[inCat + String(inSelect)];
equipSelect._x = _local3._x;
equipSelect._y = _local3._y;
if (inCat == "lure") {
equipSelect.gotoAndStop(1);
} else {
equipSelect.gotoAndStop(2);
}
} else {
equipSelect._visible = false;
}
}
function setInvArt(inMC, inCategory, inSlot, inButton) {
var _local3;
if (inCategory == "lure") {
_local3 = BasicInventory.lureInv[inSlot];
} else {
_local3 = BasicInventory.baitInv[inSlot];
}
if (_local3 == undefined) {
inMC.gotoAndStop(1);
this[(inCategory + "Equip") + String(inSlot)]._visible = false;
inButton._visible = false;
} else {
inMC.gotoAndStop(2);
BasicInventory.changeLureAppearance(inMC.myLure, _local3.myName, _local3.myType, _local3.mySubType, _local3.myColor1, _local3.myColor2);
inMC.displayQuantity = "x" + String(_local3.myQuantity);
if (_root.currentScreen == "game") {
} else {
inButton._visible = true;
}
}
}
_parent.inventoryButton._visible = false;
_parent.storeButton._visible = false;
setEquipSelect(_root.myEquip[0], _root.myEquip[1]);
_root.playSound("scene", "Stuff_TackleOpen");
if (_root.currentScreen == "game") {
lureButton0._visible = false;
lureButton1._visible = false;
lureButton2._visible = false;
lureButton3._visible = false;
baitButton0._visible = false;
baitButton1._visible = false;
} else {
equipSelect._visible = false;
}
Instance of Symbol 958 MovieClip "lure0" in Symbol 998 MovieClip Frame 2
onClipEvent (load) {
_parent.setInvArt(this, "lure", 0, _parent.lureButton0);
}
Instance of Symbol 964 MovieClip "bait0" in Symbol 998 MovieClip Frame 2
onClipEvent (load) {
_parent.setInvArt(this, "bait", 0, _parent.baitButton0);
}
onClipEvent (enterFrame) {
_parent.setInvArt(this, "bait", 0, _parent.baitButton0);
}
Instance of Symbol 958 MovieClip "lure2" in Symbol 998 MovieClip Frame 2
onClipEvent (load) {
_parent.setInvArt(this, "lure", 2, _parent.lureButton2);
}
Instance of Symbol 958 MovieClip "lure1" in Symbol 998 MovieClip Frame 2
onClipEvent (load) {
_parent.setInvArt(this, "lure", 1, _parent.lureButton1);
}
Instance of Symbol 958 MovieClip "lure3" in Symbol 998 MovieClip Frame 2
onClipEvent (load) {
_parent.setInvArt(this, "lure", 3, _parent.lureButton3);
}
Instance of Symbol 964 MovieClip "bait1" in Symbol 998 MovieClip Frame 2
onClipEvent (load) {
_parent.setInvArt(this, "bait", 1, _parent.baitButton1);
}
onClipEvent (enterFrame) {
_parent.setInvArt(this, "bait", 1, _parent.baitButton1);
}
Symbol 1007 MovieClip Frame 1
gotoAndStop(_parent.mycar);
Symbol 1008 MovieClip Frame 1
mycar = SwainMath.randomNumber(1, 7);
Symbol 1008 MovieClip Frame 21
if (SwainMath.randomNumber(0, 10) != 0) {
gotoAndPlay (1);
}
Symbol 1010 MovieClip Frame 1
mycar = SwainMath.randomNumber(1, 7);
Symbol 1010 MovieClip Frame 20
if (SwainMath.randomNumber(0, 10) != 0) {
gotoAndPlay (1);
}
Symbol 1023 MovieClip Frame 1
stop();
if (_parent.myPond.hookedFish != undefined) {
nextFrame();
}
Symbol 1035 MovieClip Frame 109
if (playstate == "idle") {
gotoAndPlay ("idleLoop");
}
Symbol 1035 MovieClip Frame 124
_root.playSound("scene", "Reel_Cast");
Symbol 1035 MovieClip Frame 141
if (playstate == "cast") {
gotoAndPlay ("idleLoop");
playstate = "idle";
}
Symbol 1035 MovieClip Frame 149
if (playstate == "reel1") {
gotoAndPlay ("reel1loop");
}
Symbol 1035 MovieClip Frame 163
if (playstate == "reel2") {
gotoAndPlay ("reel2loop");
}
Symbol 1035 MovieClip Frame 173
if (playstate == "pop") {
gotoAndPlay ("idleLoop");
playstate = "idle";
}
Symbol 1035 MovieClip Frame 182
if (playstate == "yank") {
gotoAndPlay ("idleLoop");
playstate = "idle";
}
Symbol 1035 MovieClip Frame 233
if (playstate == "catch") {
gotoAndPlay ("catchloop");
}
Symbol 1035 MovieClip Frame 247
if (playstate == "lose") {
gotoAndPlay ("idleLoop");
playstate = "idle";
}
Symbol 1035 MovieClip Frame 262
if (playstate == "collect") {
gotoAndPlay ("idleLoop");
playstate = "idle";
}
Symbol 1056 MovieClip Frame 30
if (SwainMath.randomNumber(0, 10) != 0) {
gotoAndPlay (1);
}
Symbol 1071 MovieClip Frame 1
gotoAndStop(_parent.myship);
Symbol 1072 MovieClip Frame 1
myship = SwainMath.randomNumber(1, 7);
Symbol 1072 MovieClip Frame 30
if (SwainMath.randomNumber(0, 10) != 0) {
gotoAndPlay (1);
}
Symbol 1084 MovieClip Frame 82
stop();
Symbol 1085 MovieClip Frame 31
if (SwainMath.randomNumber(0, 30) != 0) {
gotoAndPlay (1);
}
Symbol 1088 MovieClip Frame 31
if (SwainMath.randomNumber(0, 30) != 0) {
gotoAndPlay (1);
}
Symbol 1090 Button
on (press) {
leaveFishing();
gotoAndStop ("store");
}
Symbol 1091 Button
on (press) {
_root.leaveFishing();
_root.gotoAndStop("map");
}
Symbol 1092 Button
on (press) {
_root.leaveFishing();
_root.gotoAndStop("store");
}
Symbol 1093 Button
on (press) {
_root.gotoAndStop("trophy");
}
Symbol 1094 Button
on (press) {
if ((_root.newFishing == undefined) || ((_root.newFishing.gamePhase == "cast") && (_root.newFishing.lureStatus == "holding"))) {
_root.myStore.gotoAndStop(1);
_root.myInventory.gotoAndStop(2);
}
}
Symbol 1095 Button
on (press) {
_root.leaveFishing();
_root.gotoAndStop("menu");
}
Symbol 1117 MovieClip Frame 1
stop();
Symbol 1129 MovieClip Frame 1
stop();
Symbol 1130 MovieClip Frame 1
function setText() {
myTitle = MissionOrganizer.getMissionObjective("title");
myDescription = MissionOrganizer.getMissionObjective("description");
myTask1 = MissionOrganizer.getMissionObjective("task1");
myTask2 = MissionOrganizer.getMissionObjective("task2");
myTask3 = MissionOrganizer.getMissionObjective("task3");
myTask4 = MissionOrganizer.getMissionObjective("task4");
if (myTask1 == "Completed!") {
bead1.gotoAndStop(2);
} else {
bead1.gotoAndStop(1);
}
if (myTask1 == "") {
bead1._visible = false;
} else {
bead1._visible = true;
}
if (myTask2 == "Completed!") {
bead2.gotoAndStop(2);
} else {
bead2.gotoAndStop(1);
}
if (myTask2 == "") {
bead2._visible = false;
} else {
bead2._visible = true;
}
if (myTask3 == "Completed!") {
bead3.gotoAndStop(2);
} else {
bead3.gotoAndStop(1);
}
if (myTask3 == "") {
bead3._visible = false;
} else {
bead3._visible = true;
}
if (myTask4 == "Completed!") {
bead4.gotoAndStop(2);
} else {
bead4.gotoAndStop(1);
}
if (myTask4 == "") {
bead4._visible = false;
} else {
bead4._visible = true;
}
if (textStart) {
missionFlash.gotoAndPlay(2);
} else {
textStart = true;
}
}
function panelAction() {
if (myStatus == "open") {
if (_y < endPos) {
_y = (_y + Math.ceil((endPos - _y) / 4));
} else {
myStatus = "done";
}
} else if (myStatus == "close") {
if (_y > startPos) {
_y = (_y - Math.ceil((_y - startPos) / 4));
} else {
myStatus = "done";
}
}
}
function myRollOver() {
myStatus = "open";
}
function myRollOut() {
myStatus = "close";
}
onEnterFrame = panelAction;
onRollOver = myRollOver;
onRollOut = myRollOut;
var startPos = _y;
var endPos = (startPos + 200);
var myStatus = "done";
var myTitle = new String();
var myDescription = new String();
var myTask1 = new String();
var myTask2 = new String();
var myTask3 = new String();
var myTask4 = new String();
var textStart = false;
setText();
Instance of Symbol 955 MovieClip "pickedLure" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
function updateMe() {
if (BasicInventory.isEquipped()) {
var _local3 = BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]];
gotoAndStop(_local3);
BasicInventory.changeLureAppearance(this, _local3.myName, _local3.myType, _local3.mySubType, _local3.myColor1, _local3.myColor2);
} else {
gotoAndStop ("empty");
}
}
updateMe();
}
Symbol 1133 Button
on (press) {
MissionOrganizer.checkTaskComplete("catch_brownhoplo");
MissionOrganizer.checkTaskComplete("catch_grasscarp");
MissionOrganizer.checkTaskComplete("catch_peacockbass");
MissionOrganizer.checkTaskComplete("catch_stripedbass");
MissionOrganizer.checkTaskComplete(("catch_" + BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].myType) + BasicInventory[_root.myEquip[0] + "Inv"][_root.myEquip[1]].mySubType);
MissionOrganizer.checkTaskComplete("catch_15+");
MissionOrganizer.checkTaskComplete("catch_10+");
MissionOrganizer.checkTaskComplete("catch_sail");
MissionOrganizer.checkTaskComplete("catch_shark");
MissionOrganizer.checkTaskComplete("catch_canal_rare");
MissionOrganizer.checkTaskComplete("catch_lake_rare");
MissionOrganizer.checkTaskComplete("catch_bay_rare");
MissionOrganizer.checkTaskComplete("catch_wreck_rare");
MissionOrganizer.checkTaskComplete("catch_fresh");
MissionOrganizer.checkTaskComplete("catch_salt");
MissionOrganizer.checkTaskComplete("catch_fly");
MissionOrganizer.checkTaskComplete("catch_spoon");
MissionOrganizer.checkTaskComplete("catch_plug");
MissionOrganizer.checkTaskComplete("catch_jig");
MissionOrganizer.checkTaskComplete("catch_redbreastsunfish");
MissionOrganizer.checkTaskComplete("catch_bluegill");
MissionOrganizer.checkTaskComplete("catch_yellowbullhead");
MissionOrganizer.checkTaskComplete("catch_jig");
MissionOrganizer.checkTaskComplete("catch_redbreastsunfish");
MissionOrganizer.checkTaskComplete("catch_bluegill");
MissionOrganizer.checkTaskComplete("catch_yellowbullhead");
}
Symbol 1141 MovieClip Frame 1
gotoAndStop(_root.gameStage);
Symbol 1202 MovieClip Frame 1
gotoAndStop(_root.gameStage);
Symbol 1208 Button
on (press) {
PondWorld.populatePopup("store");
}
Symbol 1212 MovieClip Frame 1
var myAdvice = MissionOrganizer.storeAdvice();
thisAdvice.text = myAdvice;
Symbol 1213 MovieClip Frame 16
stop();
Symbol 1230 MovieClip Frame 1
stop();
Symbol 1243 Button
on (rollOver) {
buyIcon1.myBG.gotoAndStop(2);
}
on (rollOut) {
buyIcon1.myBG.gotoAndStop(1);
}
on (press) {
selectType("jig");
}
Symbol 1244 Button
on (rollOver) {
buyIcon2.myBG.gotoAndStop(2);
}
on (rollOut) {
buyIcon2.myBG.gotoAndStop(1);
}
on (press) {
selectType("spoon");
}
Symbol 1245 Button
on (rollOver) {
buyIcon3.myBG.gotoAndStop(2);
}
on (rollOut) {
buyIcon3.myBG.gotoAndStop(1);
}
on (press) {
selectType("plug");
}
Symbol 1246 Button
on (rollOver) {
buyIcon4.myBG.gotoAndStop(2);
}
on (rollOut) {
buyIcon4.myBG.gotoAndStop(1);
}
on (press) {
selectType("fly");
}
Symbol 1247 Button
on (rollOver) {
buyIcon5.myBG.gotoAndStop(2);
}
on (rollOut) {
buyIcon5.myBG.gotoAndStop(1);
}
on (press) {
selectType("bait");
}
Symbol 1248 Button
on (press) {
gotoAndStop (1);
}
Symbol 1252 Button
on (press) {
PondWorld.populatePopup("lure_jig");
}
Symbol 1255 Button
on (press) {
PondWorld.populatePopup("lure_spoon");
}
Symbol 1258 Button
on (press) {
PondWorld.populatePopup("lure_plug");
}
Symbol 1261 Button
on (press) {
PondWorld.populatePopup("lure_fly");
}
Symbol 1264 Button
on (press) {
PondWorld.populatePopup("lure_bait");
}
Symbol 1271 MovieClip Frame 1
stop();
Symbol 1276 MovieClip Frame 1
stop();
Symbol 1278 MovieClip Frame 1
stop();
Symbol 1281 MovieClip Frame 1
stop();
Symbol 1282 Button
on (rollOver) {
sub1.myBG.gotoAndStop(2);
}
on (rollOut) {
sub1.myBG.gotoAndStop(1);
}
on (press) {
selectSubType(sub1);
}
Symbol 1283 Button
on (rollOver) {
sub2.myBG.gotoAndStop(2);
}
on (rollOut) {
sub2.myBG.gotoAndStop(1);
}
on (press) {
selectSubType(sub2);
}
Symbol 1284 Button
on (rollOver) {
sub3.myBG.gotoAndStop(2);
}
on (rollOut) {
sub3.myBG.gotoAndStop(1);
}
on (press) {
selectSubType(sub3);
}
Symbol 1285 Button
on (rollOver) {
sub4.myBG.gotoAndStop(2);
}
on (rollOut) {
sub4.myBG.gotoAndStop(1);
}
on (press) {
selectSubType(sub4);
}
Symbol 1297 Button
on (press) {
selectColor(1, 1);
}
Symbol 1298 Button
on (press) {
selectColor(1, 3);
}
Symbol 1299 Button
on (press) {
selectColor(1, 4);
}
Symbol 1300 Button
on (press) {
selectColor(1, 2);
}
Symbol 1301 Button
on (press) {
selectColor(2, 0);
}
Symbol 1302 Button
on (press) {
selectColor(2, 1);
}
Symbol 1303 Button
on (press) {
selectColor(2, 3);
}
Symbol 1304 Button
on (press) {
selectColor(2, 4);
}
Symbol 1305 Button
on (press) {
selectColor(2, 2);
}
Symbol 1306 Button
on (press) {
selectColor(1, 0);
}
Symbol 1320 Button
on (press) {
if (_parent._parent.checkSpace()) {
if (_parent._parent.checkCost()) {
BasicInventory.addInvItem(_parent._parent.myName, _parent._parent.myCategory, _parent._parent.myType, _parent._parent.mySubType, _parent._parent.myColor1, _parent._parent.myColor2, _parent._parent.myLevel, _parent._parent.myDescription);
_parent._parent.gotoAndStop("purchased");
} else {
trace("No Cash!");
}
} else {
trace("No Space!");
}
}
Symbol 1322 MovieClip Frame 9
stop();
Symbol 1327 MovieClip Frame 7
stop();
Symbol 1328 MovieClip Frame 1
stop();
_parent.storeButton._visible = true;
Symbol 1328 MovieClip Frame 2
function selectType(inType) {
if (inType != "bait") {
myCategory = "lure";
} else {
myCategory = "bait";
}
gotoAndStop ("lure");
mainIcon.gotoAndStop(inType);
myType = inType;
sub1.mySubType = undefined;
sub2.mySubType = undefined;
sub3.mySubType = undefined;
sub4.mySubType = undefined;
BasicInventory.loadLureStats(myType, _root.gameStage, 1, sub1);
BasicInventory.loadLureStats(myType, _root.gameStage, 2, sub2);
BasicInventory.loadLureStats(myType, _root.gameStage, 3, sub3);
BasicInventory.loadLureStats(myType, _root.gameStage, 4, sub4);
}
function selectSubType(inSub) {
if (myCategory == "bait") {
_root.playSound("scene", "Stuff_SelectBait");
} else {
_root.playSound("scene", "Stuff_SelectLure");
}
gotoAndStop ("color");
mainIcon.gotoAndStop("subtype" + myType);
mySubType = inSub.mySubType;
myColor1 = inSub.myColor1Options[0];
myColor2 = inSub.myColor2Options[0];
myName = inSub.myName;
myDescription = inSub.myDescription;
myCost = inSub.myCost;
myCostDisplay = "$" + myCost;
BasicInventory.changeLureAppearance(mainIcon.myLure, myName, myType, mySubType, myColor1, myColor2);
targetSub = inSub;
myLevel = inSub.myLevel;
var _local4 = 1;
while (_local4 < 3) {
var _local3 = 0;
while (_local3 < 5) {
if ((this.targetSub[("myColor" + String(_local4)) + "Options"][_local3] == undefined) || (myCategory == "bait")) {
this[("colorOption" + String(_local4)) + String(_local3)].gotoAndStop("empty");
this[("colorButton" + String(_local4)) + String(_local3)]._visible = false;
} else {
this[("colorOption" + String(_local4)) + String(_local3)].gotoAndStop(targetSub[("myColor" + String(_local4)) + "Options"][_local3]);
this[("colorButton" + String(_local4)) + String(_local3)]._visible = true;
}
_local3++;
}
_local4++;
}
colorSelector1._x = colorOption10._x;
colorSelector2._x = colorOption20._x;
if (myCategory == "bait") {
colorSelector1._visible = false;
colorSelector2._visible = false;
} else {
colorSelector1._visible = true;
colorSelector2._visible = true;
}
}
function selectColor(inCat, inSelect) {
this["colorSelector" + String(inCat)]._x = this[("colorOption" + String(inCat)) + String(inSelect)]._x;
this["myColor" + String(inCat)] = this.targetSub[("myColor" + String(inCat)) + "Options"][inSelect];
BasicInventory.changeLureAppearance(mainIcon.myLure, myName, myType, mySubType, myColor1, myColor2);
}
function checkCost() {
if (myCost > _root.myCash) {
return(false);
}
_root.myCash = _root.myCash - myCost;
_root.myCashDisplay = "$" + _root.myCash;
return(true);
}
function checkSpace() {
if (BasicInventory.getEmptySlot(myCategory) == undefined) {
return(false);
}
return(true);
}
var myType;
var mySubType;
var myColor1 = 1;
var myColor2 = 1;
var myName;
var myCategory;
var myCost;
var myCostDisplay;
var myLevel;
var targetSub;
var color1Options;
var color2Options;
_parent.storeButton._visible = false;
Instance of Symbol 1242 MovieClip "buyIcon1" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1242 MovieClip "buyIcon2" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 1242 MovieClip "buyIcon3" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 1242 MovieClip "buyIcon4" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 1242 MovieClip "buyIcon5" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 1278 MovieClip "sub1" in Symbol 1328 MovieClip Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (mySubType == 0) {
_parent.subButton1._visible = false;
} else {
_parent.subButton1._visible = true;
}
}
Instance of Symbol 1281 MovieClip in Symbol 1328 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((((_parent.sub1.mySubType == 0) && (_parent.sub2.mySubType == 0)) && (_parent.sub3.mySubType == 0)) && (_parent.sub4.mySubType == 0)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1278 MovieClip "sub2" in Symbol 1328 MovieClip Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (mySubType == 0) {
_parent.subButton2._visible = false;
} else {
_parent.subButton2._visible = true;
}
}
Instance of Symbol 1278 MovieClip "sub3" in Symbol 1328 MovieClip Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (mySubType == 0) {
_parent.subButton3._visible = false;
} else {
_parent.subButton3._visible = true;
}
}
Instance of Symbol 1278 MovieClip "sub4" in Symbol 1328 MovieClip Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (mySubType == 0) {
_parent.subButton4._visible = false;
} else {
_parent.subButton4._visible = true;
}
}
Instance of Symbol 1290 MovieClip "colorOption11" in Symbol 1328 MovieClip Frame 7
onClipEvent (load) {
}
Symbol 1328 MovieClip Frame 8
_root.playSound("scene", "Stuff_Buy");
Instance of Symbol 67 MovieClip "WATCHER" in Symbol 1331 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.myCash = "$" + String(_root.myCash);
}
Symbol 1332 MovieClip Frame 20
stop();
Symbol 1338 Button
on (press) {
_root.gotoAndStop("game");
}
Symbol 1344 Button
on (press) {
if (_root.myStore._currentframe == 1) {
_root.myStore.gotoAndStop(2);
_root.myInventory2.gotoAndStop(1);
}
}
Symbol 1350 Button
on (press) {
_root.myStore.gotoAndStop(1);
_root.myInventory2.gotoAndStop(2);
}
Symbol 1379 Button
on (press) {
BasicInventory.changeFishAppearance(invFish, "prev");
adjustText(invFish);
}
Symbol 1380 Button
on (press) {
BasicInventory.changeFishAppearance(invFish, "next");
adjustText(invFish);
}
Symbol 1381 Button
on (press) {
_root.gotoAndStop("game");
}
Symbol 1384 Button
on (rollOver) {
shelfStats._visible = true;
}
on (rollOut) {
shelfStats._visible = false;
}
Symbol 1399 MovieClip Frame 1
_visible = false;
var statFishCaught = _root.statFishCaught;
var statFishLost = _root.statFishLost;
var statSharksCaught = _root.statSharksCaught;
var statLegendsCaught = _root.statLegendsCaught;
var statTotalCash = ("$" + String(_root.statTotalCash));
var statShortestFight = ((Math.floor((_root.statShortestFight / 30) * 100) / 100) + " seconds");
var statBiggestFish = (((_root.statBiggestFish.myName + " (") + _root.statBiggestFish.mySizeDisplay) + ")");
if (_root.statBiggestFish == undefined) {
statBiggestFish = "None";
}
var statSmallestFish = (((_root.statSmallestFish.myName + " (") + _root.statSmallestFish.mySizeDisplay) + ")");
if (_root.statSmallestFish == undefined) {
statSmallestFish = "None";
}
var mySeconds = Math.floor(_root.statTotalTime / 30);
var myMinutes = Math.floor(mySeconds / 60);
mySeconds = mySeconds - (myMinutes * 60);
var myHours = Math.floor(myMinutes / 60);
myMinutes = myMinutes - (myHours * 60);
var statTotalTime = (((((myHours + "h ") + myMinutes) + "m ") + mySeconds) + "s");
var statTotalCasts = _root.statTotalCasts;