Frame 1
_fglv = new LoadVars();
_fglv.gid = 1000194 /* 0x0F4302 */;
_fglv.url = _root._url;
_fglv.sendAndLoad("http://www.freegamesforyourwebsite.com/stats.php", _fglv, "POST");
delete _fglv;
var debug = false;
var gameID = 86;
var gameName = "cursedwinds";
stop();
fscommand ("showmenu", "false");
prel.onEnterFrame = function () {
prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) >= 100) {
play();
delete this.onEnterFrame;
}
};
Frame 2
stop();
Frame 3
if (!okToPlay) {
gotoAndStop (2);
}
Frame 4
var _cm = new ContextMenu();
_cm.hideBuiltInItems();
this.menu = _cm;
Frame 5
mcScoreboard1._visible = false;
mcScoreboard2._visible = false;
Frame 6
this.main = new com.gameInABottle.games.cursedWinds.Main(this);
Frame 7
function updateScoreboard(sNum) {
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
_root["mcScoreboard" + sNum].mcLoading._visible = false;
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = _root["mcScoreboard" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.item = myPlayer.length;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.speedy = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.desty = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
if (sNum == 1) {
updateScoreboard(2);
}
};
if (sNum == 1) {
xmlPlayer.load((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999));
} else if (sNum == 2) {
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999)) + "&filt=1");
}
}
stop();
mcScoreboard1.sboard.dir = "stop";
mcScoreboard2.sboard.dir = "stop";
mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false;
mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false;
Frame 8
Symbol 12 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=1000194&area=loader", "_blank");
}
Instance of Symbol 20 MovieClip "mcNotice" in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 57 MovieClip Frame 120
stop();
if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
} else if (_root.debug) {
_root.okToPlay = true;
_root.play();
} else {
_root.mcTaglines._visible = false;
mcNotice._visible = true;
}
Symbol 58 MovieClip Frame 71
stop();
var fogsound = new Sound();
fogsound.attachSound("fogaudio");
fogsound.start(0, 1);
Symbol 119 MovieClip Frame 1
stop();
var tagctr = (random(55) + 1);
gotoAndStop(tagctr);
Symbol 120 MovieClip Frame 105
stop();
Symbol 124 MovieClip Frame 1
_root.earl223 = function (val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
};
Symbol 133 MovieClip Frame 1
stop();
Symbol 780 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.Main] Frame 0
class com.gameInABottle.games.cursedWinds.Main
{
var isIntroOver, mcRoot, mcwRoot, btnOptions, mcOptions, optStep, isOptionsDragging, isPaused, preferences, vfxEngine, staticData, player, zCurrSoundMc, ctrlUpgrades, ctrlLoadSave, ctrlIngame, ctrlTutorial, ctrlModeSelector, ctrlMainMenu, ctrlCredits, ctrlMap, ctrlHighScores, ctrlEndGame, ctrlStartup, nextScreen, currentScreen, sounds, sndAmbient, sndBlast1, sndBlast2, sndBlast3, sndBlastBig, sndCannon1, sndCannon2, sndCannon3, sndCannon4, sndCannon5, sndCannon6, sndCannon7, sndCannon8, sndCannon9, sndCannon10, sndCannon11, sndCannon12, sndCloseCombat, sndTickOver, sndTickPress, sndPlunder, sndUpgrade, sndIngameDoorOpen, sndIngameDoorClose, sndIngameDoorCloseEnd, sndVoiceOfCalypso, sndFireworksImpact1, sndFireworksImpact2, sndFireworksImpact3, sndFireworksImpact4, sndFireworksImpact5, sndFireworksImpact6, sndFireworksImpact7, sndFireworksLaunch, sndCursedWind, sndSupportFire;
function Main (pMcRoot) {
var vThis = this;
isIntroOver = false;
var _local3 = _root.createEmptyMovieClip("mainLoop", com.gameInABottle.games.cursedWinds.constants.Z.MAIN_LOOP);
_local3.onEnterFrame = function () {
vThis.doEnterFrame();
};
mcRoot = pMcRoot;
mcwRoot = new com.gameInABottle.games.cursedWinds.mcw.McwRoot(mcRoot);
btnOptions = mcRoot.attachMovie("btnOptions", "btnOptions", com.gameInABottle.games.cursedWinds.constants.Z.BTN_OPTIONS);
btnOptions._y = -480;
mcOptions = mcRoot.attachMovie("mcOptions", "mcOptions", com.gameInABottle.games.cursedWinds.constants.Z.MC_OPTIONS);
mcOptions._visible = false;
mcOptions._y = -480;
optStep = 10;
isOptionsDragging = false;
isPaused = false;
initiateOptionsPanel();
preferences = new com.gameInABottle.games.cursedWinds.entity.Preferences();
vfxEngine = new com.gameInABottle.games.cursedWinds.util.VfxEngine(preferences);
staticData = new com.gameInABottle.games.cursedWinds.constants.StaticData(this);
player = new com.gameInABottle.games.cursedWinds.entity.Player();
zCurrSoundMc = com.gameInABottle.games.cursedWinds.constants.Z.SOUNDS_MIN;
initiateSoundObjects();
ctrlUpgrades = new com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades(mcwRoot.mcwUpgrades, this);
ctrlLoadSave = new com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave(mcwRoot.mcwLoadSave, this);
ctrlIngame = new com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame(mcwRoot.mcwIngame, this);
ctrlTutorial = new com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial(mcwRoot.mcwTutorial, this);
ctrlModeSelector = new com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector(mcwRoot.mcwModeSelector, this);
ctrlMainMenu = new com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu(mcwRoot.mcwMainMenu, this);
ctrlCredits = new com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits(mcwRoot.mcwCredits, this);
ctrlMap = new com.gameInABottle.games.cursedWinds.ctrl.CtrlMap(mcwRoot.mcwMap, this);
ctrlHighScores = new com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores(mcwRoot.mcwHighScores, this);
ctrlEndGame = new com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame(mcwRoot.mcwEndGame, this);
ctrlStartup = new com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup(mcwRoot.mcwStartup, this);
nextScreen = SCR_STARTUP;
switchScreenVisibility();
renderOptions();
setAllSoundsVolume();
}
function doEnterFrame() {
if (isPaused) {
if (isOptionsDragging) {
renderOptions();
}
} else {
var _local3 = (640 - _root._xmouse) + _root._ymouse;
if (_local3 > 110) {
optStep = Math.min(10, optStep + 1);
}
if (_local3 < 80) {
optStep = Math.max(0, optStep - 1);
}
if (isIntroOver) {
btnOptions._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - optStep, 585, -72, 10);
btnOptions._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - optStep, -37, 20, 10);
btnOptions.mcTf._xscale = (btnOptions.mcTf._yscale = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - optStep, 40, 60, 10));
btnOptions.mcTf._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - optStep, 8, 9, 10);
}
if (currentScreen == SCR_MAINMENU) {
ctrlMainMenu.doEnterFrame();
} else if (currentScreen == SCR_MODESELECTOR) {
ctrlModeSelector.doEnterFrame();
} else if (currentScreen == SCR_CREDITS) {
ctrlCredits.doEnterFrame();
} else if (currentScreen == SCR_MAP) {
ctrlMap.doEnterFrame();
} else if (currentScreen == SCR_TUTORIAL) {
ctrlTutorial.doEnterFrame();
} else if (currentScreen == SCR_INGAME) {
ctrlIngame.doEnterFrame();
} else if (currentScreen == SCR_UPGRADES) {
ctrlUpgrades.doEnterFrame();
} else if (currentScreen == SCR_HIGHSCORES) {
ctrlHighScores.doEnterFrame();
} else if ((currentScreen == SCR_LOADSAVE_LOAD) || (currentScreen == SCR_LOADSAVE_SAVE)) {
ctrlLoadSave.doEnterFrame();
} else if (currentScreen == SCR_ENDGAME) {
ctrlEndGame.doEnterFrame();
} else if (currentScreen == SCR_STARTUP) {
ctrlStartup.doEnterFrame();
}
}
}
function switchScreenVisibility() {
vfxEngine.removeAllVfx();
Key.removeListener(ctrlIngame.keyListener);
ctrlIngame.mcTexts.removeMovieClip();
ctrlIngame.pnlOutcome.removeMovieClip();
ctrlIngame.pnlLevelInfo.removeMovieClip();
currentScreen = nextScreen;
mcwRoot.mcEndGame._visible = false;
mcwRoot.mcMainMenu._visible = false;
mcwRoot.mcMap._visible = false;
mcwRoot.mcTutorial._visible = false;
mcwRoot.mcUpgrades._visible = false;
mcwRoot.mcIngame._visible = false;
mcwRoot.mcCredits._visible = false;
mcwRoot.mcModeSelector._visible = false;
mcwRoot.mcLoadSave._visible = false;
mcwRoot.mcHighScores._visible = false;
mcwRoot.mcStartup._visible = false;
mcwRoot.mcIngameDoor._visible = false;
if (currentScreen == SCR_ENDGAME) {
ctrlEndGame.initiate();
} else if (currentScreen == SCR_MAINMENU) {
ctrlMainMenu.initiate();
} else if (currentScreen == SCR_MAP) {
ctrlMap.initiate();
} else if (currentScreen == SCR_TUTORIAL) {
ctrlTutorial.initiate();
} else if (currentScreen == SCR_UPGRADES) {
ctrlUpgrades.initiate();
} else if (currentScreen == SCR_INGAME) {
ctrlIngame.initiate();
} else if (currentScreen == SCR_CREDITS) {
ctrlCredits.initiate();
} else if (currentScreen == SCR_MODESELECTOR) {
ctrlModeSelector.initiate();
} else if ((currentScreen == SCR_LOADSAVE_LOAD) || (currentScreen == SCR_LOADSAVE_SAVE)) {
ctrlLoadSave.initiate();
} else if (currentScreen == SCR_HIGHSCORES) {
ctrlHighScores.initiate();
} else if (currentScreen == SCR_STARTUP) {
ctrlStartup.initiate();
}
}
function initiateSoundObjects() {
sounds = new Array();
sndAmbient = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndAmbient", zCurrSoundMc++));
pushSound(sndAmbient, "ambient.wav");
sndBlast1 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndBlast1", zCurrSoundMc++));
pushSound(sndBlast1, "blast1.wav");
sndBlast2 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndBlast2", zCurrSoundMc++));
pushSound(sndBlast2, "blast2.wav");
sndBlast3 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndBlast3", zCurrSoundMc++));
pushSound(sndBlast3, "blast3.wav");
sndBlastBig = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndBlastBig", zCurrSoundMc++));
pushSound(sndBlastBig, "blastBig.wav");
sndCannon1 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon1", zCurrSoundMc++));
pushSound(sndCannon1, "cannon1.wav");
sndCannon2 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon2", zCurrSoundMc++));
pushSound(sndCannon2, "cannon2.wav");
sndCannon3 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon3", zCurrSoundMc++));
pushSound(sndCannon3, "cannon3.wav");
sndCannon4 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon4", zCurrSoundMc++));
pushSound(sndCannon4, "cannon4.wav");
sndCannon5 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon5", zCurrSoundMc++));
pushSound(sndCannon5, "cannon5.wav");
sndCannon6 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon6", zCurrSoundMc++));
pushSound(sndCannon6, "cannon6.wav");
sndCannon7 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon7", zCurrSoundMc++));
pushSound(sndCannon7, "cannon7.wav");
sndCannon8 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon8", zCurrSoundMc++));
pushSound(sndCannon8, "cannon8.wav");
sndCannon9 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon9", zCurrSoundMc++));
pushSound(sndCannon9, "cannon9.wav");
sndCannon10 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon10", zCurrSoundMc++));
pushSound(sndCannon10, "cannon10.wav");
sndCannon11 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon11", zCurrSoundMc++));
pushSound(sndCannon11, "cannon11.wav");
sndCannon12 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCannon12", zCurrSoundMc++));
pushSound(sndCannon12, "cannon12.wav");
sndCloseCombat = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCloseCombat", zCurrSoundMc++));
pushSound(sndCloseCombat, "closecombat.wav");
sndTickOver = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndTickOver", zCurrSoundMc++));
pushSound(sndTickOver, "tickOver.wav");
sndTickPress = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndTickPress", zCurrSoundMc++));
pushSound(sndTickPress, "tickPress.wav");
sndPlunder = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndPlunder", zCurrSoundMc++));
pushSound(sndPlunder, "plunder.wav");
sndUpgrade = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndUpgrade", zCurrSoundMc++));
pushSound(sndUpgrade, "upgrade.wav");
sndIngameDoorOpen = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndIngameDoorOpen", zCurrSoundMc++));
pushSound(sndIngameDoorOpen, "ingameDoorOpen.wav");
sndIngameDoorClose = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndIngameDoorClose", zCurrSoundMc++));
pushSound(sndIngameDoorClose, "ingameDoorClose.wav");
sndIngameDoorCloseEnd = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndIngameDoorCloseEnd", zCurrSoundMc++));
pushSound(sndIngameDoorCloseEnd, "ingameDoorCloseEnd.wav");
sndVoiceOfCalypso = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndVoiceOfCalypso", zCurrSoundMc++));
pushSound(sndVoiceOfCalypso, "voice-of-calypso.wav");
sndFireworksImpact1 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksImpact1", zCurrSoundMc++));
pushSound(sndFireworksImpact1, "fireworks-impact-1.wav");
sndFireworksImpact2 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksImpact2", zCurrSoundMc++));
pushSound(sndFireworksImpact2, "fireworks-impact-2.wav");
sndFireworksImpact3 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksImpact3", zCurrSoundMc++));
pushSound(sndFireworksImpact3, "fireworks-impact-3.wav");
sndFireworksImpact4 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksImpact4", zCurrSoundMc++));
pushSound(sndFireworksImpact4, "fireworks-impact-4.wav");
sndFireworksImpact5 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksImpact5", zCurrSoundMc++));
pushSound(sndFireworksImpact5, "fireworks-impact-5.wav");
sndFireworksImpact6 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksImpact6", zCurrSoundMc++));
pushSound(sndFireworksImpact6, "fireworks-impact-6.wav");
sndFireworksImpact7 = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksImpact7", zCurrSoundMc++));
pushSound(sndFireworksImpact7, "fireworks-impact-7.wav");
sndFireworksLaunch = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndFireworksLaunch", zCurrSoundMc++));
pushSound(sndFireworksLaunch, "fireworks-launch.wav");
sndCursedWind = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndCursedWind", zCurrSoundMc++));
pushSound(sndCursedWind, "cursed-wind.wav");
sndSupportFire = new Sound(mcwRoot.mc.createEmptyMovieClip("mc_sndSupportFire", zCurrSoundMc++));
pushSound(sndSupportFire, "supportfire.wav");
}
function pushSound(pSnd, pId) {
pSnd.attachSound(pId);
Object(pSnd).id = pId;
sounds.push(pSnd);
}
function setAllSoundsVolume() {
if (!isPaused) {
var _local2 = 0;
while (_local2 < sounds.length) {
Sound(sounds[_local2]).setVolume(preferences.soundVolume);
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < sounds.length) {
Sound(sounds[_local2]).setVolume(0);
_local2++;
}
}
}
function switchOptions() {
if (isPaused) {
if (!isOptionsDragging) {
preferences.flush();
isPaused = false;
mcOptions._visible = false;
mcOptions._y = -500;
btnOptions._x = 630;
btnOptions._y = -52;
}
} else {
if (currentScreen == SCR_INGAME) {
mcOptions.mcTfPaused.gotoAndStop(1);
mcOptions.btnContinue._visible = true;
mcOptions.btnReturn._visible = true;
mcOptions.btnDone._visible = false;
} else {
mcOptions.mcTfPaused.gotoAndStop(2);
mcOptions.btnContinue._visible = false;
mcOptions.btnReturn._visible = false;
mcOptions.btnDone._visible = true;
}
isPaused = true;
renderOptions();
mcOptions._visible = true;
mcOptions._y = 0;
}
setAllSoundsVolume();
}
function initiateOptionsPanel() {
var vThis = this;
btnOptions.onPress = function () {
vThis.sndTickPress.start();
vThis.switchOptions();
};
mcOptions.btnDone.onPress = function () {
vThis.switchOptions();
vThis.sndTickPress.start();
};
mcOptions.btnContinue.onPress = function () {
vThis.switchOptions();
vThis.sndTickPress.start();
};
mcOptions.btnReturn.onPress = function () {
vThis.ctrlIngame.returnToMainMenu();
vThis.switchOptions();
vThis.sndTickPress.start();
};
mcOptions.btnQuality.onPress = function () {
MovieClip(this).startDrag(false, 94, MovieClip(this)._y, 544, MovieClip(this)._y);
vThis.isOptionsDragging = true;
};
mcOptions.btnQuality.onRelease = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
mcOptions.btnQuality.onReleaseOutside = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
mcOptions.btnVfxNum.onPress = function () {
MovieClip(this).startDrag(false, 94, MovieClip(this)._y, 544, MovieClip(this)._y);
vThis.isOptionsDragging = true;
};
mcOptions.btnVfxNum.onRelease = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
mcOptions.btnVfxNum.onReleaseOutside = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
mcOptions.btnVfxNumPerType.onPress = function () {
MovieClip(this).startDrag(false, 94, MovieClip(this)._y, 544, MovieClip(this)._y);
vThis.isOptionsDragging = true;
};
mcOptions.btnVfxNumPerType.onRelease = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
mcOptions.btnVfxNumPerType.onReleaseOutside = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
mcOptions.btnSoundVolume.onPress = function () {
MovieClip(this).startDrag(false, 94, MovieClip(this)._y, 544, MovieClip(this)._y);
vThis.isOptionsDragging = true;
};
mcOptions.btnSoundVolume.onRelease = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
mcOptions.btnSoundVolume.onReleaseOutside = function () {
MovieClip(this).stopDrag();
vThis.isOptionsDragging = false;
};
renderOptions();
}
function renderOptions() {
if (isOptionsDragging) {
preferences.soundVolumeBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, mcOptions.btnSoundVolume._x, 0, 100);
preferences.qualityBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, mcOptions.btnQuality._x, 0, 100);
preferences.vfxNumBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, mcOptions.btnVfxNum._x, 0, 100);
preferences.vfxNumPerTypeBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, mcOptions.btnVfxNumPerType._x, 0, 100);
} else {
mcOptions.btnSoundVolume._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, preferences.soundVolumeBase, 94, 544);
mcOptions.btnQuality._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, preferences.qualityBase, 94, 544);
mcOptions.btnVfxNum._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, preferences.vfxNumBase, 94, 544);
mcOptions.btnVfxNumPerType._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, preferences.vfxNumPerTypeBase, 94, 544);
}
preferences.soundVolume = Math.round(preferences.soundVolumeBase);
preferences.quality = ((preferences.qualityBase < 33) ? 0 : (((preferences.qualityBase < 66) ? 1 : (((preferences.qualityBase < 95) ? 2 : 3)))));
preferences.vfxNum = ((preferences.vfxNumBase > 99) ? 300 : (Math.round(preferences.vfxNumBase)));
preferences.vfxNumPerType = ((preferences.vfxNumPerTypeBase > 99) ? 300 : (Math.round(preferences.vfxNumPerTypeBase)));
mcOptions.tfSoundVolume.text = preferences.soundVolume.toString();
mcOptions.tfQuality.text = ((preferences.quality == 0) ? "low" : (((preferences.quality == 1) ? "medium" : (((preferences.quality == 2) ? "high" : "high+clouds")))));
_root._quality = ((preferences.quality == 0) ? "LOW" : (((preferences.quality == 1) ? "MEDIUM" : "HIGH")));
mcOptions.tfVfxNum.text = preferences.vfxNum.toString();
mcOptions.tfVfxNumPerType.text = preferences.vfxNumPerType.toString();
}
var SCR_STARTUP = "SCR_STARTUP";
var SCR_MAINMENU = "SCR_MAINMENU";
var SCR_ENDGAME = "SCR_ENDGAME";
var SCR_MAP = "SCR_MAP";
var SCR_INGAME = "SCR_INGAME";
var SCR_UPGRADES = "SCR_UPGRADES";
var SCR_TUTORIAL = "SCR_TUTORIAL";
var SCR_CREDITS = "SCR_CREDITS";
var SCR_MODESELECTOR = "SCR_MODESELECTOR";
var SCR_LOADSAVE_LOAD = "SCR_LOADSAVE_LOAD";
var SCR_LOADSAVE_SAVE = "SCR_LOADSAVE_SAVE";
var SCR_HIGHSCORES = "SCR_HIGHSCORES";
var URL_HIGHSCORELIST = "TODO";
var URL_MOREGAMES = "http://www.freeonlinegames.com/";
}
Symbol 781 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwRoot] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwRoot
{
var mc, mcwMainMenu, mcMainMenu, mcwEndGame, mcEndGame, mcwMap, mcMap, mcwTutorial, mcTutorial, mcwUpgrades, mcUpgrades, mcwCredits, mcCredits, mcwIngame, mcIngame, mcwModeSelector, mcModeSelector, mcwHighScores, mcHighScores, mcwLoadSave, mcLoadSave, mcwStartup, mcStartup, mcIngameDoor;
function McwRoot (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
mcwMainMenu = new com.gameInABottle.games.cursedWinds.mcw.McwMainMenu(mcMainMenu);
mcwEndGame = new com.gameInABottle.games.cursedWinds.mcw.McwEndGame(mcEndGame);
mcwMap = new com.gameInABottle.games.cursedWinds.mcw.McwMap(mcMap);
mcwTutorial = new com.gameInABottle.games.cursedWinds.mcw.McwTutorial(mcTutorial);
mcwUpgrades = new com.gameInABottle.games.cursedWinds.mcw.McwUpgrades(mcUpgrades);
mcwCredits = new com.gameInABottle.games.cursedWinds.mcw.McwCredits(mcCredits);
mcwIngame = new com.gameInABottle.games.cursedWinds.mcw.McwIngame(mcIngame);
mcwModeSelector = new com.gameInABottle.games.cursedWinds.mcw.McwModeSelector(mcModeSelector);
mcwHighScores = new com.gameInABottle.games.cursedWinds.mcw.McwHighScores(mcHighScores);
mcwLoadSave = new com.gameInABottle.games.cursedWinds.mcw.McwLoadSave(mcLoadSave);
mcwStartup = new com.gameInABottle.games.cursedWinds.mcw.McwStartup(mcStartup);
mcIngameDoor = mc.attachMovie("ingameDoor", "ingameDoor", com.gameInABottle.games.cursedWinds.constants.Z.INGAME_DOOR);
mcIngameDoor._visible = false;
mcIngameDoor._x = 320;
mcIngameDoor._y = 240;
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 782 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwMainMenu] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwMainMenu
{
var mc;
function McwMainMenu (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 783 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwEndGame] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwEndGame
{
var mc, tfName;
function McwEndGame (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
tfName.restrict = "A-Z a-z";
tfName.maxChars = 16;
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 784 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwMap] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwMap
{
var mc;
function McwMap (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 785 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwTutorial] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwTutorial
{
var mc;
function McwTutorial (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 786 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwUpgrades] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwUpgrades
{
var mc;
function McwUpgrades (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 787 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwCredits] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwCredits
{
var mc;
function McwCredits (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 788 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwIngame] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwIngame
{
var mc;
function McwIngame (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 789 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwModeSelector] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwModeSelector
{
var mc;
function McwModeSelector (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 790 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwHighScores] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwHighScores
{
var mc;
function McwHighScores (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 791 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwLoadSave] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwLoadSave
{
var mc;
function McwLoadSave (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 792 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.mcw.McwStartup] Frame 0
class com.gameInABottle.games.cursedWinds.mcw.McwStartup
{
var mc;
function McwStartup (pSource) {
mc = pSource;
for (var _local3 in pSource) {
this[_local3] = pSource[_local3];
}
for (var _local3 in this) {
if (((this[_local3] instanceof MovieClip) || (this[_local3] instanceof TextField)) || (this[_local3] instanceof Button)) {
this[_local3].useHandCursor = false;
this[_local3].tabEnabled = false;
this[_local3].tabChildren = false;
}
if (MovieClip(this[_local3])._name.indexOf("btn") == 0) {
this[_local3].useHandCursor = true;
}
}
adjustDepths();
}
function adjustDepths() {
}
}
Symbol 793 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.constants.Z] Frame 0
class com.gameInABottle.games.cursedWinds.constants.Z
{
function Z () {
}
static var CHEATPANEL_INGAME = 999301;
static var CHEATPANEL_LOADSAVE = 999300;
static var MC_OPTIONS = 999200;
static var BTN_OPTIONS = 999100;
static var INGAME_DOOR = 999000;
static var LEVELOUTCOMEPANEL = 510000;
static var LEVELINFOPANEL = 500000;
static var SEA_TEXTS = 400000;
static var INFOPANEL_MIN = 370000;
static var CURSEDWIND = 365000;
static var VFX_HIGH_MIN = 350000;
static var VFX_MIN = 300000;
static var CANNONBALL_MIN = 200000;
static var ENEMYSHIP_MIN = 102000;
static var PIRATESHIP = 100000;
static var CALYPSO = 90000;
static var VFX_DEEP_MIN = 50000;
static var BATTLEWHEEL_MIN = 40000;
static var MAPSHIP_MIN = 500;
static var SOUNDS_MIN = 10;
static var MAIN_LOOP = 1;
}
Symbol 794 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.util.VfxEngine] Frame 0
class com.gameInABottle.games.cursedWinds.util.VfxEngine
{
var z, zDeep, zHigh, blasts, blackSmokes, whiteSmokes, debris, splashes, infoPanelBlasts, clouds, totalVfxNum, preferences;
function VfxEngine (pPrefs) {
z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
zHigh = com.gameInABottle.games.cursedWinds.constants.Z.VFX_HIGH_MIN;
blasts = new Array();
blackSmokes = new Array();
whiteSmokes = new Array();
debris = new Array();
splashes = new Array();
infoPanelBlasts = new Array();
clouds = new Array();
totalVfxNum = 0;
preferences = pPrefs;
}
function doEnterFrame() {
var _local2 = 0;
while (_local2 < blackSmokes.length) {
blackSmokes[_local2]._alpha = blackSmokes[_local2]._alpha - ((Math.random() * 3) + 1.5);
blackSmokes[_local2]._xscale = blackSmokes[_local2]._xscale + 3;
blackSmokes[_local2]._yscale = blackSmokes[_local2]._yscale + 3;
if (blackSmokes[_local2]._alpha < 1) {
blackSmokes[_local2].removeMovieClip();
blackSmokes.splice(_local2, 1);
_local2--;
totalVfxNum--;
}
_local2++;
}
_local2 = 0;
while (_local2 < blasts.length) {
blasts[_local2]._alpha = blasts[_local2]._alpha - 10;
if (blasts[_local2]._alpha < 1) {
blasts[_local2].removeMovieClip();
blasts.splice(_local2, 1);
_local2--;
totalVfxNum--;
}
_local2++;
}
_local2 = 0;
while (_local2 < whiteSmokes.length) {
whiteSmokes[_local2]._alpha = whiteSmokes[_local2]._alpha - 5;
if (whiteSmokes[_local2]._alpha < 1) {
whiteSmokes[_local2].removeMovieClip();
whiteSmokes.splice(_local2, 1);
_local2--;
totalVfxNum--;
}
_local2++;
}
_local2 = 0;
while (_local2 < debris.length) {
debris[_local2]._alpha = debris[_local2]._alpha - 0.14;
debris[_local2].energy--;
if (debris[_local2].energy > 0) {
debris[_local2]._x = debris[_local2]._x + debris[_local2].speedX;
debris[_local2]._y = debris[_local2]._y + debris[_local2].speedY;
debris[_local2]._rotation = debris[_local2]._rotation + debris[_local2].spin;
} else if (debris[_local2].isSplashed != true) {
debris[_local2].isSplashed = true;
if (debris[_local2].isFirework) {
debris[_local2].removeMovieClip();
debris.splice(_local2, 1);
_local2--;
totalVfxNum--;
} else {
createSplash(debris[_local2]._x, debris[_local2]._y);
}
}
if (debris[_local2]._alpha < 1) {
debris[_local2].removeMovieClip();
debris.splice(_local2, 1);
_local2--;
totalVfxNum--;
}
_local2++;
}
_local2 = 0;
while (_local2 < splashes.length) {
splashes[_local2]._alpha = splashes[_local2]._alpha - 5;
splashes[_local2]._xscale = splashes[_local2]._xscale + 10;
splashes[_local2]._yscale = splashes[_local2]._yscale + 10;
if (splashes[_local2]._alpha < 1) {
splashes[_local2].removeMovieClip();
splashes.splice(_local2, 1);
_local2--;
totalVfxNum--;
}
_local2++;
}
_local2 = 0;
while (_local2 < infoPanelBlasts.length) {
infoPanelBlasts[_local2]._alpha = infoPanelBlasts[_local2]._alpha - 5;
infoPanelBlasts[_local2]._xscale = infoPanelBlasts[_local2]._xscale + 5;
infoPanelBlasts[_local2]._yscale = infoPanelBlasts[_local2]._yscale + 5;
if (infoPanelBlasts[_local2]._alpha < 1) {
infoPanelBlasts[_local2].removeMovieClip();
infoPanelBlasts.splice(_local2, 1);
_local2--;
}
_local2++;
}
_local2 = 0;
while (_local2 < clouds.length) {
clouds[_local2]._y = clouds[_local2]._y + clouds[_local2].speed;
if (clouds[_local2]._y > 700) {
clouds[_local2].removeMovieClip();
clouds.splice(_local2, 1);
_local2--;
totalVfxNum--;
}
_local2++;
}
}
function createBlast(pX, pY) {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.5)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((blackSmokes.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (blackSmokes.length / preferences.vfxNumPerType))) {
var _local7 = _root.attachMovie("mcVfxSmokeBlack", "vfx" + z, z++);
_local7._rotation = Math.random() * 360;
_local7._x = pX;
_local7._y = pY;
blackSmokes.push(_local7);
totalVfxNum++;
}
if ((blasts.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (blasts.length / preferences.vfxNumPerType))) {
var _local8 = _root.attachMovie("mcBlast", "vfx" + z, z++);
_local8._rotation = Math.random() * 360;
_local8._x = pX;
_local8._y = pY;
blasts.push(_local8);
totalVfxNum++;
if (z > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000)) {
z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
}
if ((debris.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (debris.length / preferences.vfxNumPerType))) {
var _local4 = 0;
while (_local4 < 1) {
var _local3 = _root.attachMovie("mcDebris", "vfxDeep" + zDeep, zDeep++);
_local3._rotation = Math.random() * 360;
_local3._x = pX;
_local3._y = pY;
_local3.speedX = (Math.random() * 6) - 3;
_local3.speedY = (Math.random() * 6) - 3;
_local3.energy = Math.floor(Math.random() * 20) + 20;
_local3.spin = (Math.random() * 60) - 30;
if (Math.random() > 0.5) {
_local3.gotoAndStop(2);
}
debris.push(_local3);
totalVfxNum++;
_local4++;
}
if (zDeep > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000)) {
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
}
function createBombardBlast(pX, pY) {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.5)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((blackSmokes.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (blackSmokes.length / preferences.vfxNumPerType))) {
var _local5 = _root.attachMovie("mcBombardBlast", "vfx" + z, z++);
_local5._rotation = Math.random() * 360;
_local5._xscale = 100;
_local5._yscale = 100;
_local5._x = pX;
_local5._y = pY;
blackSmokes.push(_local5);
totalVfxNum++;
}
if ((blasts.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (blasts.length / preferences.vfxNumPerType))) {
var _local8 = _root.attachMovie("mcBlast", "vfx" + z, z++);
_local8._rotation = Math.random() * 360;
_local8._x = pX;
_local8._y = pY;
blasts.push(_local8);
totalVfxNum++;
if (z > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000)) {
z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
}
if ((debris.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (debris.length / preferences.vfxNumPerType))) {
var _local4 = 0;
while (_local4 < 1) {
var _local3 = _root.attachMovie("mcDebris", "vfxDeep" + zDeep, zDeep++);
_local3._rotation = Math.random() * 360;
_local3._x = pX;
_local3._y = pY;
_local3.speedX = (Math.random() * 6) - 3;
_local3.speedY = (Math.random() * 6) - 3;
_local3.energy = Math.floor(Math.random() * 20) + 20;
_local3.spin = (Math.random() * 60) - 30;
if (Math.random() > 0.5) {
_local3.gotoAndStop(2);
}
debris.push(_local3);
totalVfxNum++;
_local4++;
}
if (zDeep > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000)) {
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
}
function createWhiteSmoke(pX, pY) {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.6)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((whiteSmokes.length < (preferences.vfxNumPerType * 0.6)) || (Math.round() > (whiteSmokes.length / preferences.vfxNumPerType))) {
if (Math.random() > 0.33) {
var _local3 = _root.attachMovie("mcVfxSmokeWhite", "vfx" + zDeep, zDeep++);
_local3._rotation = Math.random() * 360;
_local3._x = (pX + (Math.random() * 3)) - 1.5;
_local3._y = (pY + (Math.random() * 3)) - 1.5;
_local3._xscale = 125;
_local3._yscale = 125;
} else {
var _local3 = _root.attachMovie("mcVfxSmokeWhite", "vfx" + z, z++);
_local3._rotation = Math.random() * 360;
_local3._x = (pX + (Math.random() * 3)) - 1.5;
_local3._y = (pY + (Math.random() * 3)) - 1.5;
_local3._xscale = 125;
_local3._yscale = 125;
_local3._alpha = 65;
}
whiteSmokes.push(_local3);
if (zDeep > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000)) {
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
if (z > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000)) {
z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
}
}
}
}
function createSplash(pX, pY) {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.6)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((splashes.length < (preferences.vfxNumPerType * 0.6)) || (Math.round() > (splashes.length / preferences.vfxNumPerType))) {
var _local3 = _root.attachMovie("mcSplash", "vfx" + zDeep, zDeep++);
_local3._x = pX;
_local3._y = pY;
_local3._xscale = 10;
_local3._yscale = 10;
_local3._alpha = 70;
splashes.push(_local3);
if (zDeep > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000)) {
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
totalVfxNum++;
}
}
}
}
function createBombardSplash(pX, pY) {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.6)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((splashes.length < (preferences.vfxNumPerType * 0.6)) || (Math.round() > (splashes.length / preferences.vfxNumPerType))) {
var _local3 = _root.attachMovie("mcSplash", "vfx" + zDeep, zDeep++);
_local3._x = pX;
_local3._y = pY;
_local3._xscale = 60;
_local3._yscale = 60;
_local3._alpha = 80;
splashes.push(_local3);
if (zDeep > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000)) {
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
totalVfxNum++;
}
}
}
}
function createCloud() {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.6)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((clouds.length < (preferences.vfxNumPerType * 0.6)) || (Math.round() > (clouds.length / preferences.vfxNumPerType))) {
var _local3 = _root.attachMovie("cloud", "vfx" + zHigh, zHigh++);
if (Math.random() > 0.5) {
_local3._x = Math.random() * 100;
} else {
_local3._x = 540 + (Math.random() * 100);
}
_local3._y = -300;
var _local5 = (Math.random() * 80) + 80;
_local3.gotoAndStop(Math.floor(Math.random() * 4.99) + 1);
_local3._xscale = _local5;
_local3._yscale = _local5;
_local3._alpha = (Math.random() * 50) + 50;
_local3.speed = (Math.random() * 2) + 3.5;
_local3._rotation = Math.random() * 360;
var _local4 = new Array();
_local4.push(new flash.filters.DropShadowFilter(220, 45, 0, 250, 5, 5, 1, 1, false, false));
_local3.filters = _local4;
clouds.push(_local3);
if (zHigh > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_HIGH_MIN + 10000)) {
zHigh = com.gameInABottle.games.cursedWinds.constants.Z.VFX_HIGH_MIN;
}
totalVfxNum++;
}
}
}
}
function createInfoPanelBlast(pX, pY) {
var _local3 = _root.attachMovie("vfxInfoPanelBlast", "vfx" + z, z++);
_local3._x = pX + 21;
_local3._y = pY + 8.5;
infoPanelBlasts.push(_local3);
if (z > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000)) {
z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
}
function removeAllVfx() {
var _local2 = 0;
while (_local2 < blasts.length) {
MovieClip(blasts[_local2]).removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < blackSmokes.length) {
MovieClip(blackSmokes[_local2]).removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < whiteSmokes.length) {
MovieClip(whiteSmokes[_local2]).removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < debris.length) {
MovieClip(debris[_local2]).removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < splashes.length) {
MovieClip(splashes[_local2]).removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < infoPanelBlasts.length) {
MovieClip(infoPanelBlasts[_local2]).removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < clouds.length) {
MovieClip(clouds[_local2]).removeMovieClip();
_local2++;
}
blasts = new Array();
blackSmokes = new Array();
whiteSmokes = new Array();
debris = new Array();
splashes = new Array();
infoPanelBlasts = new Array();
clouds = new Array();
}
function createFireworkBlast(pX, pY) {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.5)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((blasts.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (blasts.length / preferences.vfxNumPerType))) {
var _local4 = 0;
while (_local4 < 3) {
var _local3 = _root.attachMovie("mcFireworkBlast", "vfxDeep" + zDeep, zDeep++);
_local3._rotation = Math.random() * 360;
_local3._x = pX;
_local3._y = pY;
_local3.speedX = 4 * Math.sin((_local3._rotation * Math.PI) / 180);
_local3.speedY = 4 * Math.cos((_local3._rotation * Math.PI) / 180);
_local3.energy = Math.floor(Math.random() * 20) + 20;
_local3.spin = 0;
_local3.isFirework = true;
if (Math.random() > 0.5) {
_local3.gotoAndStop(2);
}
debris.push(_local3);
totalVfxNum++;
_local4++;
}
}
if ((debris.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (debris.length / preferences.vfxNumPerType))) {
var _local4 = 0;
while (_local4 < 2) {
var _local3 = _root.attachMovie("mcDebris", "vfxDeep" + zDeep, zDeep++);
_local3._rotation = Math.random() * 360;
_local3._x = pX;
_local3._y = pY;
_local3.speedX = (Math.random() * 6) - 3;
_local3.speedY = (Math.random() * 6) - 3;
_local3.energy = Math.floor(Math.random() * 20) + 20;
_local3.spin = (Math.random() * 60) - 30;
if (Math.random() > 0.5) {
_local3.gotoAndStop(2);
}
debris.push(_local3);
totalVfxNum++;
_local4++;
}
if (zDeep > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000)) {
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
createBlast(pX, pY);
}
function createCalypsoDebris(pX, pY) {
if ((preferences.vfxNum > 0) && (preferences.vfxNumPerType > 0)) {
if ((totalVfxNum < (preferences.vfxNum * 0.5)) || (Math.round() > (totalVfxNum / preferences.vfxNum))) {
if ((debris.length < (preferences.vfxNumPerType * 0.5)) || (Math.round() > (debris.length / preferences.vfxNumPerType))) {
var _local4 = 0;
while (_local4 < 1) {
var _local3 = _root.attachMovie("mcDebris", "vfxDeep" + zDeep, zDeep++);
_local3._rotation = Math.random() * 360;
_local3._x = pX;
_local3._y = pY;
_local3.speedX = (Math.random() * 6) - 3;
_local3.speedY = (Math.random() * 6) - 3;
_local3.energy = Math.floor(Math.random() * 20) + 20;
_local3.spin = (Math.random() * 60) - 30;
if (Math.random() > 0.5) {
_local3.gotoAndStop(2);
}
debris.push(_local3);
totalVfxNum++;
_local4++;
}
if (zDeep > (com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000)) {
zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
}
}
Symbol 795 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.Preferences] Frame 0
class com.gameInABottle.games.cursedWinds.entity.Preferences
{
var so, soundVolumeBase, qualityBase, vfxNumBase, vfxNumPerTypeBase;
function Preferences () {
so = SharedObject.getLocal("preferences");
soundVolumeBase = ((so.data.soundVolumeBase == undefined) ? 70 : (so.data.soundVolumeBase));
qualityBase = ((so.data.qualityBase == undefined) ? 100 : (so.data.qualityBase));
vfxNumBase = ((so.data.vfxNumBase == undefined) ? 100 : (so.data.vfxNumBase));
vfxNumPerTypeBase = ((so.data.vfxNumPerTypeBase == undefined) ? 100 : (so.data.vfxNumPerTypeBase));
flush();
}
function flush() {
so.data.soundVolumeBase = soundVolumeBase;
so.data.qualityBase = qualityBase;
so.data.vfxNumBase = vfxNumBase;
so.data.vfxNumPerTypeBase = vfxNumPerTypeBase;
so.flush();
}
}
Symbol 796 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.Player] Frame 0
class com.gameInABottle.games.cursedWinds.entity.Player
{
var currentLevel, difficulty, levGunNum, levSchrapnelPower, levCannonballSpeed, levReloadSpeed, levCrew, levArmor, levShipMoveSpeed, levShipTurnSpeed, levVoiceOfCalypso, levSupportFire, levFireworkRockets, checksum, scoreKey, score, goldKey, gold;
function Player () {
setScore(0);
setGold(0);
currentLevel = 0;
difficulty = 0;
levGunNum = 0;
levSchrapnelPower = 0;
levCannonballSpeed = 0;
levReloadSpeed = 0;
levCrew = 0;
levArmor = 0;
levShipMoveSpeed = 0;
levShipTurnSpeed = 0;
levVoiceOfCalypso = 0;
levSupportFire = 0;
levFireworkRockets = 0;
}
function populateFromObject(pObj) {
setScore(pObj.score);
setGold(pObj.gold);
currentLevel = pObj.currentLevel;
difficulty = pObj.difficulty;
levArmor = pObj.levArmor;
levCannonballSpeed = pObj.levCannonballSpeed;
levFireworkRockets = pObj.levFireworkRockets;
levCrew = pObj.levCrew;
levGunNum = pObj.levGunNum;
levReloadSpeed = pObj.levReloadSpeed;
levSchrapnelPower = pObj.levSchrapnelPower;
levShipMoveSpeed = pObj.levShipMoveSpeed;
levShipTurnSpeed = pObj.levShipTurnSpeed;
levSupportFire = pObj.levSupportFire;
levVoiceOfCalypso = pObj.levVoiceOfCalypso;
checksum = pObj.checksum;
}
function createCloneObject() {
var _local2 = new Object();
_local2.score = getScore();
_local2.gold = getGold();
_local2.currentLevel = currentLevel;
_local2.difficulty = difficulty;
_local2.levArmor = levArmor;
_local2.levCannonballSpeed = levCannonballSpeed;
_local2.levFireworkRockets = levFireworkRockets;
_local2.levCrew = levCrew;
_local2.levGunNum = levGunNum;
_local2.levReloadSpeed = levReloadSpeed;
_local2.levSchrapnelPower = levSchrapnelPower;
_local2.levShipMoveSpeed = levShipMoveSpeed;
_local2.levShipTurnSpeed = levShipTurnSpeed;
_local2.levSupportFire = levSupportFire;
_local2.levVoiceOfCalypso = levVoiceOfCalypso;
_local2.checksum = checksum;
return(_local2);
}
function calculateSaveChecksum() {
var _local2 = 17382644 /* 0x1093CF4 */;
var _local4 = getScore().toString();
var _local3 = 0;
while (_local3 < _local4.length) {
_local2 = ((_local2 * _local4.charCodeAt(_local3)) % 91123214) + 901;
_local3++;
}
var _local5 = getGold().toString();
_local3 = 0;
while (_local3 < _local5.length) {
_local2 = ((_local2 * _local5.charCodeAt(_local3)) % 91133215) + 332;
_local3++;
}
var _local7 = currentLevel.toString();
_local3 = 0;
while (_local3 < _local7.length) {
_local2 = ((_local2 * _local7.charCodeAt(_local3)) % 93817482) + 222;
_local3++;
}
var _local6 = difficulty.toString();
_local3 = 0;
while (_local3 < _local6.length) {
_local2 = ((_local2 * _local6.charCodeAt(_local3)) % 91817482) + 122;
_local3++;
}
if (levArmor == undefined) {
return(_local2);
}
_local2 = ((_local2 * (levArmor + 123)) % 92817482) + 120000;
_local2 = ((_local2 * (levCannonballSpeed + 124)) % 92817472) + 121000;
_local2 = ((_local2 * (levFireworkRockets + 125)) % 92817462) + 122000;
_local2 = ((_local2 * (levCrew + 126)) % 92817452) + 123000;
_local2 = ((_local2 * (levGunNum + 127)) % 92817442) + 124000;
_local2 = ((_local2 * (levReloadSpeed + 128)) % 92817432) + 125000;
_local2 = ((_local2 * (levSchrapnelPower + 129)) % 92817422) + 126000;
_local2 = ((_local2 * (levShipMoveSpeed + 123)) % 92817482) + 120000;
_local2 = ((_local2 * (levShipTurnSpeed + 124)) % 92817472) + 121000;
_local2 = ((_local2 * (levSupportFire + 125)) % 92817462) + 122000;
_local2 = ((_local2 * (levVoiceOfCalypso + 126)) % 92817452) + 123000;
return(_local2);
}
function setScore(pScore) {
scoreKey = Math.floor(Math.random() * 1000000) - 500000;
score = pScore + scoreKey;
}
function getScore() {
return(score - scoreKey);
}
function setGold(pGold) {
goldKey = Math.floor(Math.random() * 1000000) - 500000;
gold = pGold + goldKey;
}
function getGold() {
return(gold - goldKey);
}
function calculateHighScoreChecksum(pName, pScore, pLevel, pDifficulty) {
var _local1 = 17196657 /* 0x1066671 */;
var _local2 = 0;
while (_local2 < pName.length) {
_local1 = ((_local1 * pName.charCodeAt(_local2)) % 93837482) + 222;
_local2++;
}
var _local3 = pScore.toString();
_local2 = 0;
while (_local2 < _local3.length) {
_local1 = ((_local1 * _local3.charCodeAt(_local2)) % 92133214) + 921;
_local2++;
}
_local1 = (_local1 * (pLevel + 513)) % 92135554;
_local1 = (_local1 * (pDifficulty + 408)) % 91835357;
return(_local1);
}
}
Symbol 797 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.constants.StaticData] Frame 0
class com.gameInABottle.games.cursedWinds.constants.StaticData
{
var main, levels;
function StaticData (pMain) {
main = pMain;
levels = new Array();
var _local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 205;
_local2.mapY = 363;
_local2.mapPirRelX = 46;
_local2.mapPirRelY = 11;
_local2.flagShipName = "Explorer";
var _local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.isWeakened = true;
_local3.goldCarried = 1400;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 250;
_local3.isWeakened = true;
_local3.goldCarried = 1200;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 120;
_local3.xMax = 520;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 4000;
_local3.isWeakened = true;
_local3.goldCarried = 1200;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 120;
_local3.xMax = 520;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 4300;
_local3.isWeakened = true;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 120;
_local3.xMax = 520;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5200;
_local3.isWeakened = true;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 8000;
_local3.isWeakened = true;
_local3.sailType = _local3.ST_BOSS;
_local3.goldCarried = 2400;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 236;
_local2.mapY = 289;
_local2.mapPirRelX = -19;
_local2.mapPirRelY = 33;
_local2.flagShipName = "Insane Buccaneer";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.15;
_local3.spawnTime = 200;
_local3.goldCarried = 1500;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 260;
_local3.goldCarried = 1400;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.2;
_local3.spawnTime = 280;
_local3.goldCarried = 1400;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 350;
_local3.deltaY = 0.3;
_local3.spawnTime = 2000;
_local3.goldCarried = 1600;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 150;
_local3.deltaY = 0.1;
_local3.spawnTime = 3800;
_local3.goldCarried = 1400;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 150;
_local3.deltaY = 0.05;
_local3.spawnTime = 4000;
_local3.goldCarried = 1400;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 540;
_local3.deltaY = 0.35;
_local3.spawnTime = 4000;
_local3.goldCarried = 1500;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 5400;
_local3.isWeakened = true;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 6000;
_local3.isWeakened = true;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 1;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 1;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 100;
_local3.xMax = 520;
_local3.x = 350;
_local3.deltaY = 0.3;
_local3.spawnTime = 15000;
_local3.goldCarried = 3000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 164;
_local2.mapY = 223;
_local2.mapPirRelX = 40;
_local2.mapPirRelY = 22;
_local2.flagShipName = "Dark Mermaid";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 220;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 250;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 2000;
_local3.goldCarried = 2000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 550;
_local3.deltaY = 0.2;
_local3.spawnTime = 2000;
_local3.goldCarried = 2000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 3200;
_local3.goldCarried = 2000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 4000;
_local3.goldCarried = 1500;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 500;
_local3.deltaY = 0.1;
_local3.spawnTime = 4050;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 320;
_local3.deltaY = 0.25;
_local3.spawnTime = 7000;
_local3.goldCarried = 1000;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 450;
_local3.deltaY = 0.05;
_local3.spawnTime = 7000;
_local3.goldCarried = 1100;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 3;
_local3.cannonsNumLevel = 3;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 3;
_local3.reloadSpeedLevel = 3;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 12000;
_local3.goldCarried = 6000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 167;
_local2.mapY = 139;
_local2.mapPirRelX = -32;
_local2.mapPirRelY = 22;
_local2.flagShipName = "Voyager";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 2200;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 250;
_local3.goldCarried = 2200;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 330;
_local3.goldCarried = 2200;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 1500;
_local3.goldCarried = 1900;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 250;
_local3.deltaY = 0.2;
_local3.spawnTime = 3050;
_local3.goldCarried = 1900;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 450;
_local3.deltaY = 0.15;
_local3.spawnTime = 3000;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 150;
_local3.deltaY = 0.1;
_local3.spawnTime = 6000;
_local3.goldCarried = 2100;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 470;
_local3.deltaY = 0.1;
_local3.spawnTime = 6000;
_local3.goldCarried = 1750;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 180;
_local3.deltaY = 0.1;
_local3.spawnTime = 8200;
_local3.goldCarried = 5150;
_local3.sailType = _local3.ST_DOWNRED_BLANK;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 11000;
_local3.goldCarried = 2200;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.35;
_local3.spawnTime = 14000;
_local3.goldCarried = 600;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.35;
_local3.spawnTime = 14200;
_local3.goldCarried = 600;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.35;
_local3.spawnTime = 14400;
_local3.goldCarried = 600;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.35;
_local3.spawnTime = 14600;
_local3.goldCarried = 600;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.35;
_local3.spawnTime = 14800;
_local3.goldCarried = 600;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 3;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 3;
_local3.cannonsNumLevel = 3;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 3;
_local3.reloadSpeedLevel = 3;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 15000;
_local3.goldCarried = 5000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 228;
_local2.mapY = 68;
_local2.mapPirRelX = -39;
_local2.mapPirRelY = 14;
_local2.flagShipName = "Lust of Tortuga";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 600;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 850;
_local3.goldCarried = 1600;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 200;
_local3.deltaY = 0.12;
_local3.spawnTime = 2000;
_local3.goldCarried = 1900;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 520;
_local3.deltaY = 0.1;
_local3.spawnTime = 2000;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 3600;
_local3.goldCarried = 2500;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 500;
_local3.deltaY = 0.05;
_local3.spawnTime = 3600;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 4200;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 6000;
_local3.goldCarried = 3300;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.4;
_local3.spawnTime = 6300;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.4;
_local3.spawnTime = 6500;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.4;
_local3.spawnTime = 6700;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 3;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 550;
_local3.deltaY = 0.08;
_local3.spawnTime = 7500;
_local3.goldCarried = 3900;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 3;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 200;
_local3.deltaY = 0.3;
_local3.spawnTime = 9400;
_local3.goldCarried = 1900;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 560;
_local3.deltaY = 0.25;
_local3.spawnTime = 9450;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 4;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 4;
_local3.reloadSpeedLevel = 4;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 11000;
_local3.sailType = _local3.ST_BOSS;
_local3.goldCarried = 8000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 310;
_local2.mapY = 117;
_local2.mapPirRelX = -25;
_local2.mapPirRelY = -31;
_local2.flagShipName = "Triton";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 400;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 1000;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 1500;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 2000;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 3000;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 4500;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 5;
_local3.crewNumLevel = 6;
_local3.firePowerLevel = 5;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_PIRATEHUNTER1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.35;
_local3.spawnTime = 4300;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 5;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_PIRATEHUNTER2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.32;
_local3.spawnTime = 4400;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 6;
_local3.crewNumLevel = 6;
_local3.firePowerLevel = 6;
_local3.cannonsNumLevel = 6;
_local3.speedMaxLevel = 6;
_local3.turnSpeedMaxLevel = 6;
_local3.reloadSpeedLevel = 6;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0;
_local3.spawnTime = 4500;
_local3.goldCarried = 6000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 362;
_local2.mapY = 165;
_local2.mapPirRelX = -28;
_local2.mapPirRelY = -30;
_local2.flagShipName = "Secret of Atlantis";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 3;
_local3.cannonsNumLevel = 3;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 3;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 50;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 4;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 6;
_local3.turnSpeedMaxLevel = 6;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 150;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 3;
_local3.cannonsNumLevel = 3;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 3;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 250;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 3;
_local3.cannonsNumLevel = 3;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 3;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 450;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 4;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 4;
_local3.reloadSpeedLevel = 4;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 1350;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 4;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 4;
_local3.reloadSpeedLevel = 4;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 1650;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 4;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 4;
_local3.reloadSpeedLevel = 4;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 3650;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 4;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 4;
_local3.reloadSpeedLevel = 4;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 3950;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 4;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 4;
_local3.reloadSpeedLevel = 4;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 4150;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 4;
_local3.armorLevel = 7;
_local3.crewNumLevel = 7;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 320;
_local3.deltaY = 0.2;
_local3.spawnTime = 7200;
_local3.goldCarried = 8000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
var _local4 = new com.gameInABottle.games.cursedWinds.constants.StaticDataExt1();
levels.push(_local4.levels[0]);
levels.push(_local4.levels[1]);
levels.push(_local4.levels[2]);
levels.push(_local4.levels[3]);
levels.push(_local4.levels[4]);
var _local5 = new com.gameInABottle.games.cursedWinds.constants.StaticDataExt2();
levels.push(_local5.levels[0]);
levels.push(_local5.levels[1]);
levels.push(_local5.levels[2]);
}
}
Symbol 798 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.LevelData] Frame 0
class com.gameInABottle.games.cursedWinds.entity.LevelData
{
var shipDatas;
function LevelData () {
shipDatas = new Array();
}
}
Symbol 799 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.ShipData] Frame 0
class com.gameInABottle.games.cursedWinds.entity.ShipData
{
function ShipData () {
}
var ST_BLANK = "ST_BLANK";
var ST_DOT1 = "ST_DOT1";
var ST_DOT2 = "ST_DOT2";
var ST_DOT3 = "ST_DOT3";
var ST_DOT4 = "ST_DOT4";
var ST_DOT5 = "ST_DOT5";
var ST_DOT6 = "ST_DOT6";
var ST_UPRED_BLANK = "ST_UPRED_BLANK";
var ST_UPRED_DOT1 = "ST_UPRED_DOT1";
var ST_UPRED_DOT2 = "ST_UPRED_DOT2";
var ST_UPRED_DOT3 = "ST_UPRED_DOT3";
var ST_DOWNRED_BLANK = "ST_DOWNRED_BLANK";
var ST_DOWNRED_DOT1 = "ST_DOWNRED_DOT1";
var ST_DOWNRED_DOT2 = "ST_DOWNRED_DOT2";
var ST_DOWNRED_DOT3 = "ST_DOWNRED_DOT3";
var ST_PIRATEHUNTER1 = "ST_PIRATEHUNTER1";
var ST_PIRATEHUNTER2 = "ST_PIRATEHUNTER2";
var ST_PIRATEHUNTER3 = "ST_PIRATEHUNTER3";
var ST_PIRATEHUNTER4 = "ST_PIRATEHUNTER4";
var ST_BOSS = "ST_BOSS";
var ST_FINAL_MINION = "ST_FINAL_MINION";
}
Symbol 800 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.constants.StaticDataExt1] Frame 0
class com.gameInABottle.games.cursedWinds.constants.StaticDataExt1
{
var levels;
function StaticDataExt1 () {
levels = new Array();
vLevelData = new com.gameInABottle.games.cursedWinds.entity.LevelData();
vLevelData.mapX = 377;
vLevelData.mapY = 219;
vLevelData.mapPirRelX = -41;
vLevelData.mapPirRelY = -6;
vLevelData.flagShipName = "Fearful Raider";
var _local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 100;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 150;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 200;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 800;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.1;
_local2.spawnTime = 1100;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 1200;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 1250;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOT5;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 1;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 1;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 1;
_local2.turnSpeedMaxLevel = 1;
_local2.reloadSpeedLevel = 1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1000;
_local2.deltaY = 0.1;
_local2.spawnTime = 2000;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 1;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 1;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 1;
_local2.turnSpeedMaxLevel = 1;
_local2.reloadSpeedLevel = 1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.4;
_local2.spawnTime = 2100;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 1;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 1;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 1;
_local2.turnSpeedMaxLevel = 1;
_local2.reloadSpeedLevel = 1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.27;
_local2.spawnTime = 2200;
_local2.goldCarried = 3000;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 900;
_local2.deltaY = 0.2;
_local2.spawnTime = 5200;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.3;
_local2.spawnTime = 5400;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.sailType = _local2.ST_BLANK;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 5450;
_local2.goldCarried = 1000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.sailType = _local2.ST_BLANK;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.1;
_local2.spawnTime = 5500;
_local2.goldCarried = 1000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.sailType = _local2.ST_BLANK;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 5550;
_local2.goldCarried = 1000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.sailType = _local2.ST_BLANK;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 5600;
_local2.goldCarried = 1000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.sailType = _local2.ST_BLANK;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 900;
_local2.deltaY = 0.1;
_local2.spawnTime = 5650;
_local2.goldCarried = 1000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 4;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 10;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_BOSS;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 320;
_local2.deltaY = 0.2;
_local2.spawnTime = 10000;
_local2.goldCarried = 9000;
vLevelData.shipDatas.push(_local2);
levels.push(vLevelData);
vLevelData = new com.gameInABottle.games.cursedWinds.entity.LevelData();
vLevelData.mapX = 401;
vLevelData.mapY = 279;
vLevelData.mapPirRelX = -42;
vLevelData.mapPirRelY = -7;
vLevelData.flagShipName = "Retaliator";
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.25;
_local2.spawnTime = 100;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.25;
_local2.spawnTime = 400;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.25;
_local2.spawnTime = 700;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.25;
_local2.spawnTime = 1000;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.25;
_local2.spawnTime = 1300;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_UPRED_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.25;
_local2.spawnTime = 1600;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_UPRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1000;
_local2.deltaY = 0.25;
_local2.spawnTime = 1900;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.25;
_local2.spawnTime = 2200;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_UPRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.25;
_local2.spawnTime = 2500;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_UPRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1000;
_local2.deltaY = 0.25;
_local2.spawnTime = 2800;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 3200;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 4000;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.2;
_local2.spawnTime = 5000;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 5200;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 5300;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 5400;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1000;
_local2.deltaY = 0.2;
_local2.spawnTime = 5600;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 5700;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 9600;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 2;
_local2.cannonsNumLevel = 2;
_local2.speedMaxLevel = 2;
_local2.turnSpeedMaxLevel = 2;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 9800;
_local2.goldCarried = 4500;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 4;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_BOSS;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 320;
_local2.deltaY = 0.2;
_local2.spawnTime = 10000;
_local2.goldCarried = 10000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 10100;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(_local2);
levels.push(vLevelData);
vLevelData = new com.gameInABottle.games.cursedWinds.entity.LevelData();
vLevelData.mapX = 448;
vLevelData.mapY = 337;
vLevelData.mapPirRelX = -28;
vLevelData.mapPirRelY = -27;
vLevelData.flagShipName = "Black Anger";
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 6;
_local2.crewNumLevel = 6;
_local2.firePowerLevel = 6;
_local2.cannonsNumLevel = 6;
_local2.speedMaxLevel = 6;
_local2.turnSpeedMaxLevel = 6;
_local2.reloadSpeedLevel = 6;
_local2.sailType = _local2.ST_PIRATEHUNTER4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 120;
_local2.deltaY = 0.1;
_local2.spawnTime = 100;
_local2.goldCarried = 5000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER2;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.23;
_local2.spawnTime = 500;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 6;
_local2.crewNumLevel = 6;
_local2.firePowerLevel = 6;
_local2.cannonsNumLevel = 6;
_local2.speedMaxLevel = 6;
_local2.turnSpeedMaxLevel = 6;
_local2.reloadSpeedLevel = 6;
_local2.sailType = _local2.ST_PIRATEHUNTER1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 270;
_local2.deltaY = 0.1;
_local2.spawnTime = 100;
_local2.goldCarried = 5000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 6;
_local2.crewNumLevel = 6;
_local2.firePowerLevel = 6;
_local2.cannonsNumLevel = 6;
_local2.speedMaxLevel = 6;
_local2.turnSpeedMaxLevel = 6;
_local2.reloadSpeedLevel = 6;
_local2.sailType = _local2.ST_PIRATEHUNTER3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 420;
_local2.deltaY = 0.1;
_local2.spawnTime = 100;
_local2.goldCarried = 5000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 570;
_local2.deltaY = 0.1;
_local2.spawnTime = 100;
_local2.goldCarried = 5000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 200;
_local2.deltaY = 0.1;
_local2.spawnTime = 3000;
_local2.goldCarried = 6000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 350;
_local2.deltaY = 0.1;
_local2.spawnTime = 3100;
_local2.goldCarried = 6000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 500;
_local2.deltaY = 0.4;
_local2.spawnTime = 3200;
_local2.goldCarried = 6000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1000;
_local2.deltaY = 0.4;
_local2.spawnTime = 5200;
_local2.goldCarried = 6000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.4;
_local2.spawnTime = 5400;
_local2.goldCarried = 6000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.4;
_local2.spawnTime = 5600;
_local2.goldCarried = 6000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 5;
_local2.firePowerLevel = 5;
_local2.cannonsNumLevel = 5;
_local2.speedMaxLevel = 5;
_local2.turnSpeedMaxLevel = 5;
_local2.reloadSpeedLevel = 5;
_local2.sailType = _local2.ST_DOT5;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 5900;
_local2.goldCarried = 6000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.25;
_local2.spawnTime = 9700;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER2;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.23;
_local2.spawnTime = 11500;
_local2.goldCarried = 1000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 900;
_local2.deltaY = 0.23;
_local2.spawnTime = 12000;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 4;
_local2.armorLevel = 9;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 9;
_local2.cannonsNumLevel = 9;
_local2.speedMaxLevel = 6;
_local2.turnSpeedMaxLevel = 6;
_local2.reloadSpeedLevel = 9;
_local2.sailType = _local2.ST_BOSS;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 320;
_local2.deltaY = 0.2;
_local2.spawnTime = 13000;
_local2.goldCarried = 12000;
vLevelData.shipDatas.push(_local2);
levels.push(vLevelData);
vLevelData = new com.gameInABottle.games.cursedWinds.entity.LevelData();
vLevelData.mapX = 536;
vLevelData.mapY = 322;
vLevelData.mapPirRelX = -23;
vLevelData.mapPirRelY = 26;
vLevelData.flagShipName = "Marauder";
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 7;
_local2.crewNumLevel = 7;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 100;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 9;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 9;
_local2.cannonsNumLevel = 9;
_local2.speedMaxLevel = 9;
_local2.turnSpeedMaxLevel = 9;
_local2.reloadSpeedLevel = 9;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 1500;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 11;
_local2.crewNumLevel = 11;
_local2.firePowerLevel = 11;
_local2.cannonsNumLevel = 11;
_local2.speedMaxLevel = 11;
_local2.turnSpeedMaxLevel = 11;
_local2.reloadSpeedLevel = 11;
_local2.sailType = _local2.ST_PIRATEHUNTER4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.3;
_local2.spawnTime = 1700;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 11;
_local2.crewNumLevel = 11;
_local2.firePowerLevel = 11;
_local2.cannonsNumLevel = 11;
_local2.speedMaxLevel = 11;
_local2.turnSpeedMaxLevel = 11;
_local2.reloadSpeedLevel = 11;
_local2.sailType = _local2.ST_PIRATEHUNTER2;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.3;
_local2.spawnTime = 1900;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 9;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 9;
_local2.cannonsNumLevel = 9;
_local2.speedMaxLevel = 9;
_local2.turnSpeedMaxLevel = 9;
_local2.reloadSpeedLevel = 9;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 3000;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 9;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 9;
_local2.cannonsNumLevel = 9;
_local2.speedMaxLevel = 9;
_local2.turnSpeedMaxLevel = 9;
_local2.reloadSpeedLevel = 9;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 4500;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 5;
_local2.crewNumLevel = 11;
_local2.firePowerLevel = 11;
_local2.cannonsNumLevel = 11;
_local2.speedMaxLevel = 11;
_local2.turnSpeedMaxLevel = 11;
_local2.reloadSpeedLevel = 11;
_local2.sailType = _local2.ST_PIRATEHUNTER1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 900;
_local2.deltaY = 0.3;
_local2.spawnTime = 4600;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 7;
_local2.crewNumLevel = 7;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 6000;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 7;
_local2.crewNumLevel = 7;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.2;
_local2.spawnTime = 7500;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 7;
_local2.crewNumLevel = 7;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_DOWNRED_DOT2;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 8200;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 9;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 9;
_local2.cannonsNumLevel = 9;
_local2.speedMaxLevel = 9;
_local2.turnSpeedMaxLevel = 9;
_local2.reloadSpeedLevel = 9;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 15000;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 9;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 9;
_local2.cannonsNumLevel = 9;
_local2.speedMaxLevel = 9;
_local2.turnSpeedMaxLevel = 9;
_local2.reloadSpeedLevel = 9;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 3000;
_local2.goldCarried = 16000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 9;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 9;
_local2.cannonsNumLevel = 9;
_local2.speedMaxLevel = 9;
_local2.turnSpeedMaxLevel = 9;
_local2.reloadSpeedLevel = 9;
_local2.sailType = _local2.ST_DOWNRED_DOT3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 16300;
_local2.goldCarried = 4000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 11;
_local2.crewNumLevel = 11;
_local2.firePowerLevel = 11;
_local2.cannonsNumLevel = 11;
_local2.speedMaxLevel = 11;
_local2.turnSpeedMaxLevel = 11;
_local2.reloadSpeedLevel = 11;
_local2.sailType = _local2.ST_PIRATEHUNTER4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 900;
_local2.deltaY = 0.3;
_local2.spawnTime = 19000;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 11;
_local2.crewNumLevel = 11;
_local2.firePowerLevel = 11;
_local2.cannonsNumLevel = 11;
_local2.speedMaxLevel = 11;
_local2.turnSpeedMaxLevel = 11;
_local2.reloadSpeedLevel = 11;
_local2.sailType = _local2.ST_PIRATEHUNTER4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.3;
_local2.spawnTime = 19500;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 11;
_local2.crewNumLevel = 11;
_local2.firePowerLevel = 11;
_local2.cannonsNumLevel = 11;
_local2.speedMaxLevel = 11;
_local2.turnSpeedMaxLevel = 11;
_local2.reloadSpeedLevel = 11;
_local2.sailType = _local2.ST_PIRATEHUNTER4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.3;
_local2.spawnTime = 20500;
_local2.goldCarried = 1000;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 4;
_local2.armorLevel = 11;
_local2.crewNumLevel = 11;
_local2.firePowerLevel = 11;
_local2.cannonsNumLevel = 11;
_local2.speedMaxLevel = 6;
_local2.turnSpeedMaxLevel = 6;
_local2.reloadSpeedLevel = 11;
_local2.sailType = _local2.ST_BOSS;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 320;
_local2.deltaY = 0.2;
_local2.spawnTime = 20000;
_local2.goldCarried = 10000;
vLevelData.shipDatas.push(_local2);
levels.push(vLevelData);
var vLevelData = (new com.gameInABottle.games.cursedWinds.entity.LevelData());
vLevelData.mapX = 565;
vLevelData.mapY = 249;
vLevelData.mapPirRelX = 14;
vLevelData.mapPirRelY = 35;
vLevelData.flagShipName = "Devastator";
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 200;
_local2.isWeakened = true;
_local2.goldCarried = 1400;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 250;
_local2.isWeakened = true;
_local2.goldCarried = 1200;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 300;
_local2.isWeakened = true;
_local2.goldCarried = 1400;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 120;
_local2.xMax = 520;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 4000;
_local2.isWeakened = true;
_local2.goldCarried = 1200;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 120;
_local2.xMax = 520;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 4200;
_local2.isWeakened = true;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 120;
_local2.xMax = 520;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 4300;
_local2.isWeakened = true;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 120;
_local2.xMax = 520;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 5200;
_local2.isWeakened = true;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 120;
_local2.xMax = 520;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 6300;
_local2.isWeakened = true;
_local2.goldCarried = 150;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 2;
_local2.firePowerLevel = 1;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 1;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 200;
_local2.goldCarried = 2200;
_local2.sailType = _local2.ST_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 2;
_local2.firePowerLevel = 1;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 1;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 250;
_local2.goldCarried = 2200;
_local2.sailType = _local2.ST_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 2;
_local2.firePowerLevel = 1;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 1;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 330;
_local2.goldCarried = 2200;
_local2.sailType = _local2.ST_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.1;
_local2.spawnTime = 1500;
_local2.goldCarried = 1900;
_local2.sailType = _local2.ST_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 250;
_local2.deltaY = 0.2;
_local2.spawnTime = 3050;
_local2.goldCarried = 1900;
_local2.sailType = _local2.ST_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 450;
_local2.deltaY = 0.15;
_local2.spawnTime = 3000;
_local2.goldCarried = 2000;
_local2.sailType = _local2.ST_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -250;
_local2.deltaY = 0.1;
_local2.spawnTime = 6000;
_local2.goldCarried = 2100;
_local2.sailType = _local2.ST_DOT2;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 470;
_local2.deltaY = 0.1;
_local2.spawnTime = 6000;
_local2.goldCarried = 1750;
_local2.sailType = _local2.ST_DOT1;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 180;
_local2.deltaY = 0.1;
_local2.spawnTime = 8200;
_local2.goldCarried = 5150;
_local2.sailType = _local2.ST_DOWNRED_BLANK;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 1;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1200;
_local2.deltaY = 0.1;
_local2.spawnTime = 11000;
_local2.goldCarried = 2200;
_local2.sailType = _local2.ST_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.isWeakened = true;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.35;
_local2.spawnTime = 14000;
_local2.goldCarried = 600;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.isWeakened = true;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.35;
_local2.spawnTime = 14200;
_local2.goldCarried = 600;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.isWeakened = true;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -400;
_local2.deltaY = 0.35;
_local2.spawnTime = 14400;
_local2.goldCarried = 600;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.isWeakened = true;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.35;
_local2.spawnTime = 14600;
_local2.goldCarried = 600;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 0;
_local2.crewNumLevel = 0;
_local2.firePowerLevel = 0;
_local2.cannonsNumLevel = 0;
_local2.speedMaxLevel = 0;
_local2.turnSpeedMaxLevel = 0;
_local2.reloadSpeedLevel = 0;
_local2.isWeakened = true;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.35;
_local2.spawnTime = 14800;
_local2.goldCarried = 600;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 3;
_local2.cannonsNumLevel = 3;
_local2.speedMaxLevel = 3;
_local2.turnSpeedMaxLevel = 3;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 50;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT3;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 4;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 6;
_local2.turnSpeedMaxLevel = 6;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER2;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 150;
_local2.goldCarried = 800;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 3;
_local2.cannonsNumLevel = 3;
_local2.speedMaxLevel = 3;
_local2.turnSpeedMaxLevel = 3;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -200;
_local2.deltaY = 0.2;
_local2.spawnTime = 250;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT5;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 1;
_local2.armorLevel = 3;
_local2.crewNumLevel = 3;
_local2.firePowerLevel = 3;
_local2.cannonsNumLevel = 3;
_local2.speedMaxLevel = 3;
_local2.turnSpeedMaxLevel = 3;
_local2.reloadSpeedLevel = 3;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 450;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT5;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 4;
_local2.crewNumLevel = 4;
_local2.firePowerLevel = 4;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 4;
_local2.turnSpeedMaxLevel = 4;
_local2.reloadSpeedLevel = 4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 1350;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT4;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 4;
_local2.crewNumLevel = 4;
_local2.firePowerLevel = 4;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 4;
_local2.turnSpeedMaxLevel = 4;
_local2.reloadSpeedLevel = 4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1000;
_local2.deltaY = 0.2;
_local2.spawnTime = 1650;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT5;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 4;
_local2.crewNumLevel = 4;
_local2.firePowerLevel = 4;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 4;
_local2.turnSpeedMaxLevel = 4;
_local2.reloadSpeedLevel = 4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 3650;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT5;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 4;
_local2.crewNumLevel = 4;
_local2.firePowerLevel = 4;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 4;
_local2.turnSpeedMaxLevel = 4;
_local2.reloadSpeedLevel = 4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 3950;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT5;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 2;
_local2.armorLevel = 4;
_local2.crewNumLevel = 4;
_local2.firePowerLevel = 4;
_local2.cannonsNumLevel = 4;
_local2.speedMaxLevel = 4;
_local2.turnSpeedMaxLevel = 4;
_local2.reloadSpeedLevel = 4;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.2;
_local2.spawnTime = 4150;
_local2.goldCarried = 4000;
_local2.sailType = _local2.ST_DOT5;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = -300;
_local2.deltaY = 0.23;
_local2.spawnTime = 10000;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 3;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_PIRATEHUNTER1;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 1000;
_local2.deltaY = 0.23;
_local2.spawnTime = 10500;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local2.hullType = 4;
_local2.armorLevel = 8;
_local2.crewNumLevel = 9;
_local2.firePowerLevel = 7;
_local2.cannonsNumLevel = 7;
_local2.speedMaxLevel = 7;
_local2.turnSpeedMaxLevel = 7;
_local2.reloadSpeedLevel = 7;
_local2.sailType = _local2.ST_BOSS;
_local2.xMin = 80;
_local2.xMax = 560;
_local2.x = 0;
_local2.deltaY = 0.23;
_local2.spawnTime = 11000;
_local2.goldCarried = 900;
vLevelData.shipDatas.push(_local2);
levels.push(vLevelData);
}
}
Symbol 801 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.constants.StaticDataExt2] Frame 0
class com.gameInABottle.games.cursedWinds.constants.StaticDataExt2
{
var levels;
function StaticDataExt2 () {
levels = new Array();
var _local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 557;
_local2.mapY = 164;
_local2.mapPirRelX = 16;
_local2.mapPirRelY = 32;
_local2.flagShipName = "Destroyer";
var _local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.15;
_local3.spawnTime = 200;
_local3.goldCarried = 1500;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 260;
_local3.goldCarried = 1400;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -300;
_local3.deltaY = 0.2;
_local3.spawnTime = 280;
_local3.goldCarried = 1400;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 340;
_local3.deltaY = 0.15;
_local3.spawnTime = 400;
_local3.isWeakened = true;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -350;
_local3.deltaY = 0.3;
_local3.spawnTime = 2000;
_local3.goldCarried = 1600;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 150;
_local3.deltaY = 0.1;
_local3.spawnTime = 3800;
_local3.goldCarried = 1400;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.05;
_local3.spawnTime = 4000;
_local3.goldCarried = 1400;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 540;
_local3.deltaY = 0.35;
_local3.spawnTime = 4000;
_local3.goldCarried = 1500;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 4800;
_local3.isWeakened = true;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 5400;
_local3.isWeakened = true;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 6000;
_local3.isWeakened = true;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 600;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 850;
_local3.goldCarried = 1600;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.12;
_local3.spawnTime = 2000;
_local3.goldCarried = 1900;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 1;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 520;
_local3.deltaY = 0.1;
_local3.spawnTime = 2000;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 3600;
_local3.goldCarried = 2500;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 500;
_local3.deltaY = 0.05;
_local3.spawnTime = 3600;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.25;
_local3.spawnTime = 4200;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 6000;
_local3.goldCarried = 3300;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.4;
_local3.spawnTime = 6300;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.4;
_local3.spawnTime = 6500;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.4;
_local3.spawnTime = 6700;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT4;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 3;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 550;
_local3.deltaY = 0.08;
_local3.spawnTime = 7500;
_local3.goldCarried = 3900;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 2;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 3;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 200;
_local3.deltaY = 0.3;
_local3.spawnTime = 9400;
_local3.goldCarried = 1900;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 3;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 560;
_local3.deltaY = 0.25;
_local3.spawnTime = 9450;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 100;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOWNRED_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 150;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOWNRED_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOWNRED_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 800;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOWNRED_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.1;
_local3.spawnTime = 1100;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 1200;
_local3.goldCarried = 4000;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 1250;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 1;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.1;
_local3.spawnTime = 2000;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 1;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.4;
_local3.spawnTime = 2100;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 1;
_local3.crewNumLevel = 1;
_local3.firePowerLevel = 1;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.27;
_local3.spawnTime = 2200;
_local3.goldCarried = 3000;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5200;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.3;
_local3.spawnTime = 5400;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.sailType = _local3.ST_BLANK;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 5450;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.sailType = _local3.ST_BLANK;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 5500;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.sailType = _local3.ST_BLANK;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 5550;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.sailType = _local3.ST_BLANK;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.1;
_local3.spawnTime = 5600;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.sailType = _local3.ST_BLANK;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 5650;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.23;
_local3.spawnTime = 10000;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.23;
_local3.spawnTime = 10500;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.23;
_local3.spawnTime = 11000;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 4;
_local3.armorLevel = 10;
_local3.crewNumLevel = 10;
_local3.firePowerLevel = 10;
_local3.cannonsNumLevel = 10;
_local3.speedMaxLevel = 10;
_local3.turnSpeedMaxLevel = 10;
_local3.reloadSpeedLevel = 10;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.3;
_local3.spawnTime = 12000;
_local3.goldCarried = 4000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 509;
_local2.mapY = 86;
_local2.mapPirRelX = 41;
_local2.mapPirRelY = 13;
_local2.flagShipName = "The Wanderer";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 220;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 250;
_local3.goldCarried = 1800;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 400;
_local3.deltaY = 0.1;
_local3.spawnTime = 1900;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 2000;
_local3.goldCarried = 2000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.2;
_local3.spawnTime = 2000;
_local3.goldCarried = 2000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 1;
_local3.turnSpeedMaxLevel = 0;
_local3.reloadSpeedLevel = 1;
_local3.isWeakened = true;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.2;
_local3.spawnTime = 3200;
_local3.goldCarried = 2000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 300;
_local3.deltaY = 0.1;
_local3.spawnTime = 4000;
_local3.goldCarried = 1500;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 500;
_local3.deltaY = 0.1;
_local3.spawnTime = 4050;
_local3.goldCarried = 2000;
_local3.sailType = _local3.ST_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 0;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 0;
_local3.speedMaxLevel = 0;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 320;
_local3.deltaY = 0.25;
_local3.spawnTime = 7000;
_local3.goldCarried = 1000;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 0;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 0;
_local3.cannonsNumLevel = 1;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 1;
_local3.reloadSpeedLevel = 0;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -450;
_local3.deltaY = 0.05;
_local3.spawnTime = 7000;
_local3.goldCarried = 1100;
_local3.sailType = _local3.ST_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 200;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.1;
_local3.spawnTime = 400;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 1000;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 1500;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 2000;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 3000;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 4;
_local3.firePowerLevel = 4;
_local3.cannonsNumLevel = 4;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 4500;
_local3.goldCarried = 5500;
_local3.sailType = _local3.ST_DOT5;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 5;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_PIRATEHUNTER1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.35;
_local3.spawnTime = 4300;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 5;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 4;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_PIRATEHUNTER2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.32;
_local3.spawnTime = 4400;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 100;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 400;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.25;
_local3.spawnTime = 700;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 1000;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 1300;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_UPRED_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 1600;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_UPRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.25;
_local3.spawnTime = 1900;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT1;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 2200;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_UPRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 2500;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_UPRED_DOT3;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.25;
_local3.spawnTime = 2800;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 3200;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.2;
_local3.spawnTime = 4000;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5000;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5200;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5300;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5400;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5600;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5700;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.2;
_local3.spawnTime = 9600;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 3;
_local3.crewNumLevel = 3;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 9800;
_local3.goldCarried = 4500;
_local3.sailType = _local3.ST_DOWNRED_DOT2;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 900;
_local3.deltaY = 0.23;
_local3.spawnTime = 10000;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 3;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.23;
_local3.spawnTime = 10400;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 8;
_local3.crewNumLevel = 9;
_local3.firePowerLevel = 7;
_local3.cannonsNumLevel = 7;
_local3.speedMaxLevel = 7;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 7;
_local3.sailType = _local3.ST_PIRATEHUNTER4;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.23;
_local3.spawnTime = 10800;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 4;
_local3.armorLevel = 11;
_local3.crewNumLevel = 11;
_local3.firePowerLevel = 11;
_local3.cannonsNumLevel = 11;
_local3.speedMaxLevel = 11;
_local3.turnSpeedMaxLevel = 11;
_local3.reloadSpeedLevel = 11;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.23;
_local3.spawnTime = 12000;
_local3.goldCarried = 900;
_local2.shipDatas.push(_local3);
levels.push(_local2);
_local2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
_local2.mapX = 429;
_local2.mapY = 68;
_local2.mapPirRelX = 47;
_local2.mapPirRelY = 0;
_local2.flagShipName = "Ketos";
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 5;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -800;
_local3.deltaY = 0.1;
_local3.spawnTime = 10;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 5;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -650;
_local3.deltaY = 0.1;
_local3.spawnTime = 10;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 5;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 10;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 5;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 2000;
_local3.deltaY = 0.1;
_local3.spawnTime = 10;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 5;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 1200;
_local3.deltaY = 0.1;
_local3.spawnTime = 10;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 5;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 950;
_local3.deltaY = 0.1;
_local3.spawnTime = 2500;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 1;
_local3.armorLevel = 5;
_local3.crewNumLevel = 5;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 5;
_local3.speedMaxLevel = 5;
_local3.turnSpeedMaxLevel = 5;
_local3.reloadSpeedLevel = 5;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.1;
_local3.spawnTime = 2600;
_local3.goldCarried = 800;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 6;
_local3.crewNumLevel = 6;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 6;
_local3.speedMaxLevel = 6;
_local3.turnSpeedMaxLevel = 6;
_local3.reloadSpeedLevel = 6;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -1000;
_local3.deltaY = 0.15;
_local3.spawnTime = 2700;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 6;
_local3.crewNumLevel = 6;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 6;
_local3.speedMaxLevel = 6;
_local3.turnSpeedMaxLevel = 6;
_local3.reloadSpeedLevel = 6;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.2;
_local3.spawnTime = 5500;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 6;
_local3.crewNumLevel = 6;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 6;
_local3.speedMaxLevel = 6;
_local3.turnSpeedMaxLevel = 6;
_local3.reloadSpeedLevel = 6;
_local3.sailType = _local3.ST_DOWNRED_DOT3;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.25;
_local3.spawnTime = 5500;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 2;
_local3.crewNumLevel = 2;
_local3.firePowerLevel = 2;
_local3.cannonsNumLevel = 2;
_local3.speedMaxLevel = 2;
_local3.turnSpeedMaxLevel = 2;
_local3.reloadSpeedLevel = 2;
_local3.sailType = _local3.ST_BLANK;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 1000;
_local3.deltaY = 0.25;
_local3.spawnTime = 5550;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 4;
_local3.armorLevel = 12;
_local3.crewNumLevel = 12;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 12;
_local3.speedMaxLevel = 12;
_local3.turnSpeedMaxLevel = 12;
_local3.reloadSpeedLevel = 12;
_local3.sailType = _local3.ST_PIRATEHUNTER1;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.3;
_local3.spawnTime = 10000;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 4;
_local3.armorLevel = 12;
_local3.crewNumLevel = 12;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 12;
_local3.speedMaxLevel = 12;
_local3.turnSpeedMaxLevel = 12;
_local3.reloadSpeedLevel = 12;
_local3.sailType = _local3.ST_PIRATEHUNTER2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 0;
_local3.deltaY = 0.3;
_local3.spawnTime = 10500;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 4;
_local3.armorLevel = 12;
_local3.crewNumLevel = 12;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 12;
_local3.speedMaxLevel = 12;
_local3.turnSpeedMaxLevel = 12;
_local3.reloadSpeedLevel = 12;
_local3.sailType = _local3.ST_PIRATEHUNTER2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = 1000;
_local3.deltaY = 0.3;
_local3.spawnTime = 11000;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 4;
_local3.armorLevel = 12;
_local3.crewNumLevel = 12;
_local3.firePowerLevel = 12;
_local3.cannonsNumLevel = 12;
_local3.speedMaxLevel = 12;
_local3.turnSpeedMaxLevel = 12;
_local3.reloadSpeedLevel = 12;
_local3.sailType = _local3.ST_PIRATEHUNTER2;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -200;
_local3.deltaY = 0.3;
_local3.spawnTime = 11200;
_local3.goldCarried = 1000;
_local2.shipDatas.push(_local3);
_local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 5;
_local3.armorLevel = 15;
_local3.crewNumLevel = 15;
_local3.firePowerLevel = 15;
_local3.cannonsNumLevel = 15;
_local3.speedMaxLevel = 11;
_local3.turnSpeedMaxLevel = 7;
_local3.reloadSpeedLevel = 15;
_local3.sailType = _local3.ST_BOSS;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -300;
_local3.deltaY = -100;
_local3.spawnTime = 16000;
_local3.goldCarried = 15000;
_local2.shipDatas.push(_local3);
levels.push(_local2);
}
}
Symbol 802 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades
{
var mcw, main, prcsArmor, prcsGunNum, prcsCrew, prcsSchrapnelPower, prcsShipMoveSpeed, prcsReloadSpeed, prcsShipTurnSpeed, prcsCannonballSpeed, prcsFireworkRockets, prcsSupportFire, prcsVoiceOfCalypso, screenStatus, screenStep, levGunNumInitial, levShipMoveSpeedInitial, levShipTurnSpeedInitial, levReloadSpeedInitial, levCannonballSpeedInitial, levSchrapnelPowerInitial, levArmorInitial, levCrewInitial, levVoiceOfCalypsoInitial, levSupportFireInitial, levFireworkRocketsInitial, isChangeMade, btnUndoStep, goldInitialKey, goldInitial;
function CtrlUpgrades (pMcw, pMain) {
mcw = pMcw;
main = pMain;
prcsArmor = new Array(1000, 1300, 1600, 2000, 2600, 4000, 6000, 8000, 10000, 12000);
prcsGunNum = new Array(1000, 1500, 2200, 3200, 4500, 6000, 8000, 10000, 12000, 14000);
prcsCrew = new Array(1200, 1800, 2400, 3600, 5000, 7000, 9000, 12000, 14000, 16000);
prcsSchrapnelPower = new Array(1000, 1400, 2000, 2800, 3800, 5000, 7000, 9000, 11000, 13000);
prcsShipMoveSpeed = new Array(1400, 2000, 2800, 4400, 6400, 8000, 10000, 12500, 15000, 17500);
prcsReloadSpeed = new Array(1400, 2000, 2800, 4400, 6400, 8000, 10000, 12500, 15000, 17500);
prcsShipTurnSpeed = new Array(1600, 2400, 3200, 4800, 7200, 9600, 12000, 14000, 16000, 18000);
prcsCannonballSpeed = new Array(1000, 1300, 1600, 2000, 2600, 4000, 6000, 8000, 10000, 12000);
prcsFireworkRockets = new Array(3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000);
prcsSupportFire = new Array(3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000);
prcsVoiceOfCalypso = new Array(5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000);
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.btnArmor.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeArmor();
};
mcw.btnGunNum.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeGunNum();
};
mcw.btnCrew.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeCrew();
};
mcw.btnSchrapnelPower.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeSchrapnelPower();
};
mcw.btnShipMoveSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeShipMoveSpeed();
};
mcw.btnReloadSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeReloadSpeed();
};
mcw.btnShipTurnSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeShipTurnSpeed();
};
mcw.btnCannonballSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeCannonballSpeed();
};
mcw.btnFireworkRockets.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeFireworkRockets();
};
mcw.btnSupportFire.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeSupportFire();
};
mcw.btnVoiceOfCalypso.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeVoiceOfCalypso();
};
mcw.btnUndo.onPress = function () {
vThis.undoChanges();
};
mcw.btnArmor.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnGunNum.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnCrew.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnSchrapnelPower.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnShipMoveSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnReloadSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnShipTurnSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnCannonballSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnFireworkRockets.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnSupportFire.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnVoiceOfCalypso.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnUndo.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnSave.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_LOADSAVE_SAVE;
vThis.main.sndTickPress.start();
}
};
mcw.btnSave.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnSave.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_LOADSAVE_SAVE;
vThis.main.sndTickPress.start();
}
};
mcw.btnSave.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnDone.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_MAP;
vThis.main.sndTickPress.start();
}
};
mcw.btnDone.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mc._visible = true;
mcw.mc._y = -480;
mcw.btnDone._y = -600;
mcw.btnSave._y = -600;
mcw.mcGold._y = -600;
levGunNumInitial = main.player.levGunNum;
levShipMoveSpeedInitial = main.player.levShipMoveSpeed;
levShipTurnSpeedInitial = main.player.levShipTurnSpeed;
levReloadSpeedInitial = main.player.levReloadSpeed;
levCannonballSpeedInitial = main.player.levCannonballSpeed;
levSchrapnelPowerInitial = main.player.levSchrapnelPower;
levArmorInitial = main.player.levArmor;
levCrewInitial = main.player.levCrew;
levVoiceOfCalypsoInitial = main.player.levVoiceOfCalypso;
levSupportFireInitial = main.player.levSupportFire;
levFireworkRocketsInitial = main.player.levFireworkRockets;
setGoldInitial(main.player.getGold());
isChangeMade = false;
renderUpgrades();
btnUndoStep = 0;
mcw.btnUndo._x = -50;
}
function renderUpgrades() {
mcw.mcLevelArmor.gotoAndStop(main.player.levArmor + 1);
mcw.mcLevelCrew.gotoAndStop(main.player.levCrew + 1);
mcw.mcLevelGunNum.gotoAndStop(main.player.levGunNum + 1);
mcw.mcLevelReloadSpeed.gotoAndStop(main.player.levReloadSpeed + 1);
mcw.mcLevelShipMoveSpeed.gotoAndStop(main.player.levShipMoveSpeed + 1);
mcw.mcLevelShipTurnSpeed.gotoAndStop(main.player.levShipTurnSpeed + 1);
mcw.mcLevelCannonballSpeed.gotoAndStop(main.player.levCannonballSpeed + 1);
mcw.mcLevelSchrapnelPower.gotoAndStop(main.player.levSchrapnelPower + 1);
mcw.mcLevelVoiceOfCalypso.gotoAndStop(main.player.levVoiceOfCalypso);
mcw.mcLevelSupportFire.gotoAndStop(main.player.levSupportFire);
mcw.mcLevelFireworkRockets.gotoAndStop(main.player.levFireworkRockets);
if (main.player.levVoiceOfCalypso < 1) {
mcw.mcLevelVoiceOfCalypso._visible = false;
} else {
mcw.mcLevelVoiceOfCalypso._visible = true;
}
if (main.player.levSupportFire < 1) {
mcw.mcLevelSupportFire._visible = false;
} else {
mcw.mcLevelSupportFire._visible = true;
}
if (main.player.levFireworkRockets < 1) {
mcw.mcLevelFireworkRockets._visible = false;
} else {
mcw.mcLevelFireworkRockets._visible = true;
}
mcw.mcGold.tf.text = main.player.getGold() + " Gold";
if (main.player.levArmor > (6 + main.player.difficulty)) {
mcw.tfArmor.text = "FULL UPGRADE";
mcw.tfArmor.textColor = 8674878 /* 0x845E3E */;
mcw.btnArmor._visible = false;
} else if (main.player.getGold() < prcsArmor[main.player.levArmor + 1]) {
mcw.tfArmor.text = ("Not enough gold\n(" + prcsArmor[main.player.levArmor + 1]) + " needed)";
mcw.tfArmor.textColor = 11149344 /* 0xAA2020 */;
mcw.btnArmor._visible = false;
} else {
mcw.tfArmor.text = ("Upgrade Ship Armor:\n" + prcsArmor[main.player.levArmor + 1]) + " gold";
mcw.tfArmor.textColor = 0;
mcw.btnArmor._visible = true;
}
if (main.player.levCrew > (6 + main.player.difficulty)) {
mcw.tfCrew.text = "FULL UPGRADE";
mcw.tfCrew.textColor = 8674878 /* 0x845E3E */;
mcw.btnCrew._visible = false;
} else if (main.player.getGold() < prcsCrew[main.player.levCrew + 1]) {
mcw.tfCrew.text = ("Not enough gold\n(" + prcsCrew[main.player.levCrew + 1]) + " needed)";
mcw.tfCrew.textColor = 11149344 /* 0xAA2020 */;
mcw.btnCrew._visible = false;
} else {
mcw.tfCrew.text = ("Hire more Crew:\n" + prcsCrew[main.player.levCrew + 1]) + " gold";
mcw.tfCrew.textColor = 0;
mcw.btnCrew._visible = true;
}
if (main.player.levSchrapnelPower > (6 + main.player.difficulty)) {
mcw.tfSchrapnelPower.text = "FULL UPGRADE";
mcw.tfSchrapnelPower.textColor = 8674878 /* 0x845E3E */;
mcw.btnSchrapnelPower._visible = false;
} else if (main.player.getGold() < prcsSchrapnelPower[main.player.levSchrapnelPower + 1]) {
mcw.tfSchrapnelPower.text = ("Not enough gold\n(" + prcsSchrapnelPower[main.player.levSchrapnelPower + 1]) + " needed)";
mcw.tfSchrapnelPower.textColor = 11149344 /* 0xAA2020 */;
mcw.btnSchrapnelPower._visible = false;
} else {
mcw.tfSchrapnelPower.text = ("Increase Damage:\n" + prcsSchrapnelPower[main.player.levSchrapnelPower + 1]) + " gold";
mcw.tfSchrapnelPower.textColor = 0;
mcw.btnSchrapnelPower._visible = true;
}
if (main.player.levGunNum > (6 + main.player.difficulty)) {
mcw.tfGunNum.text = "FULL UPGRADE";
mcw.tfGunNum.textColor = 8674878 /* 0x845E3E */;
mcw.btnGunNum._visible = false;
} else if (main.player.getGold() < prcsGunNum[main.player.levGunNum + 1]) {
mcw.tfGunNum.text = ("Not enough gold\n(" + prcsGunNum[main.player.levGunNum + 1]) + " needed)";
mcw.tfGunNum.textColor = 11149344 /* 0xAA2020 */;
mcw.btnGunNum._visible = false;
} else {
mcw.tfGunNum.text = ("Add Canons:\n" + prcsGunNum[main.player.levGunNum + 1]) + " gold";
mcw.tfGunNum.textColor = 0;
mcw.btnGunNum._visible = true;
}
if (main.player.levReloadSpeed > (6 + main.player.difficulty)) {
mcw.tfReloadSpeed.text = "FULL UPGRADE";
mcw.tfReloadSpeed.textColor = 8674878 /* 0x845E3E */;
mcw.btnReloadSpeed._visible = false;
} else if (main.player.getGold() < prcsReloadSpeed[main.player.levReloadSpeed + 1]) {
mcw.tfReloadSpeed.text = ("Not enough gold\n(" + prcsReloadSpeed[main.player.levReloadSpeed + 1]) + " needed)";
mcw.tfReloadSpeed.textColor = 11149344 /* 0xAA2020 */;
mcw.btnReloadSpeed._visible = false;
} else {
mcw.tfReloadSpeed.text = ("Faster Reload:\n" + prcsReloadSpeed[main.player.levReloadSpeed + 1]) + " gold";
mcw.tfReloadSpeed.textColor = 0;
mcw.btnReloadSpeed._visible = true;
}
if (main.player.levShipMoveSpeed > (6 + main.player.difficulty)) {
mcw.tfShipMoveSpeed.text = "FULL UPGRADE";
mcw.tfShipMoveSpeed.textColor = 8674878 /* 0x845E3E */;
mcw.btnShipMoveSpeed._visible = false;
} else if (main.player.getGold() < prcsShipMoveSpeed[main.player.levShipMoveSpeed + 1]) {
mcw.tfShipMoveSpeed.text = ("Not enough gold\n(" + prcsShipMoveSpeed[main.player.levShipMoveSpeed + 1]) + " needed)";
mcw.tfShipMoveSpeed.textColor = 11149344 /* 0xAA2020 */;
mcw.btnShipMoveSpeed._visible = false;
} else {
mcw.tfShipMoveSpeed.text = ("Ship Speed:\n" + prcsShipMoveSpeed[main.player.levShipMoveSpeed + 1]) + " gold";
mcw.tfShipMoveSpeed.textColor = 0;
mcw.btnShipMoveSpeed._visible = true;
}
if (main.player.levShipTurnSpeed > (6 + main.player.difficulty)) {
mcw.tfShipTurnSpeed.text = "FULL UPGRADE";
mcw.tfShipTurnSpeed.textColor = 8674878 /* 0x845E3E */;
mcw.btnShipTurnSpeed._visible = false;
} else if (main.player.getGold() < prcsShipTurnSpeed[main.player.levShipTurnSpeed + 1]) {
mcw.tfShipTurnSpeed.text = ("Not enough gold\n(" + prcsShipTurnSpeed[main.player.levShipTurnSpeed + 1]) + " needed)";
mcw.tfShipTurnSpeed.textColor = 11149344 /* 0xAA2020 */;
mcw.btnShipTurnSpeed._visible = false;
} else {
mcw.tfShipTurnSpeed.text = ("Bow Thrusters:\n" + prcsShipTurnSpeed[main.player.levShipTurnSpeed + 1]) + " gold";
mcw.tfShipTurnSpeed.textColor = 0;
mcw.btnShipTurnSpeed._visible = true;
}
if (main.player.levCannonballSpeed > (6 + main.player.difficulty)) {
mcw.tfCannonballSpeed.text = "FULL UPGRADE";
mcw.tfCannonballSpeed.textColor = 8674878 /* 0x845E3E */;
mcw.btnCannonballSpeed._visible = false;
} else if (main.player.getGold() < prcsCannonballSpeed[main.player.levCannonballSpeed + 1]) {
mcw.tfCannonballSpeed.text = ("Not enough gold\n(" + prcsCannonballSpeed[main.player.levCannonballSpeed + 1]) + " needed)";
mcw.tfCannonballSpeed.textColor = 11149344 /* 0xAA2020 */;
mcw.btnCannonballSpeed._visible = false;
} else {
mcw.tfCannonballSpeed.text = ("Canonball Speed:\n" + prcsCannonballSpeed[main.player.levCannonballSpeed + 1]) + " gold";
mcw.tfCannonballSpeed.textColor = 0;
mcw.btnCannonballSpeed._visible = true;
}
if (main.player.levVoiceOfCalypso > (7 + main.player.difficulty)) {
mcw.tfVoiceOfCalypso.text = "FULL UPGRADE";
mcw.tfVoiceOfCalypso.textColor = 8674878 /* 0x845E3E */;
mcw.btnVoiceOfCalypso._visible = false;
} else if (main.player.getGold() < prcsVoiceOfCalypso[main.player.levVoiceOfCalypso + 1]) {
mcw.tfVoiceOfCalypso.text = ("Not enough gold\n(" + prcsVoiceOfCalypso[main.player.levVoiceOfCalypso + 1]) + " needed)";
mcw.tfVoiceOfCalypso.textColor = 11149344 /* 0xAA2020 */;
mcw.btnVoiceOfCalypso._visible = false;
} else {
mcw.tfVoiceOfCalypso.text = ("Voice of Calypso:\n" + prcsVoiceOfCalypso[main.player.levVoiceOfCalypso + 1]) + " gold";
mcw.tfVoiceOfCalypso.textColor = 0;
mcw.btnVoiceOfCalypso._visible = true;
}
if (main.player.levFireworkRockets > (7 + main.player.difficulty)) {
mcw.tfFireworkRockets.text = "FULL UPGRADE";
mcw.tfFireworkRockets.textColor = 8674878 /* 0x845E3E */;
mcw.btnFireworkRockets._visible = false;
} else if (main.player.getGold() < prcsFireworkRockets[main.player.levFireworkRockets + 1]) {
mcw.tfFireworkRockets.text = ("Not enough gold\n(" + prcsFireworkRockets[main.player.levFireworkRockets + 1]) + " needed)";
mcw.tfFireworkRockets.textColor = 11149344 /* 0xAA2020 */;
mcw.btnFireworkRockets._visible = false;
} else {
mcw.tfFireworkRockets.text = ("Rockets:\n" + prcsFireworkRockets[main.player.levFireworkRockets + 1]) + " gold";
mcw.tfFireworkRockets.textColor = 0;
mcw.btnFireworkRockets._visible = true;
}
if (main.player.levSupportFire > (7 + main.player.difficulty)) {
mcw.tfSupportFire.text = "FULL UPGRADE";
mcw.tfSupportFire.textColor = 8674878 /* 0x845E3E */;
mcw.btnSupportFire._visible = false;
} else if (main.player.getGold() < prcsSupportFire[main.player.levSupportFire + 1]) {
mcw.tfSupportFire.text = ("Not enough gold\n(" + prcsSupportFire[main.player.levSupportFire + 1]) + " needed)";
mcw.tfSupportFire.textColor = 11149344 /* 0xAA2020 */;
mcw.btnSupportFire._visible = false;
} else {
mcw.tfSupportFire.text = ("Artillery Support:\n" + prcsSupportFire[main.player.levSupportFire + 1]) + " gold";
mcw.tfSupportFire.textColor = 0;
mcw.btnSupportFire._visible = true;
}
}
function upgradeArmor() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsArmor[main.player.levArmor + 1]);
main.player.levArmor++;
renderUpgrades();
}
function upgradeReloadSpeed() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsReloadSpeed[main.player.levReloadSpeed + 1]);
main.player.levReloadSpeed++;
renderUpgrades();
}
function upgradeCrew() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsCrew[main.player.levCrew + 1]);
main.player.levCrew++;
renderUpgrades();
}
function upgradeGunNum() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsGunNum[main.player.levGunNum + 1]);
main.player.levGunNum++;
renderUpgrades();
}
function upgradeSchrapnelPower() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsSchrapnelPower[main.player.levSchrapnelPower + 1]);
main.player.levSchrapnelPower++;
renderUpgrades();
}
function upgradeShipMoveSpeed() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsShipMoveSpeed[main.player.levShipMoveSpeed + 1]);
main.player.levShipMoveSpeed++;
renderUpgrades();
}
function upgradeShipTurnSpeed() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsShipTurnSpeed[main.player.levShipTurnSpeed + 1]);
main.player.levShipTurnSpeed++;
renderUpgrades();
}
function upgradeCannonballSpeed() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsCannonballSpeed[main.player.levCannonballSpeed + 1]);
main.player.levCannonballSpeed++;
renderUpgrades();
}
function upgradeVoiceOfCalypso() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsVoiceOfCalypso[main.player.levVoiceOfCalypso + 1]);
main.player.levVoiceOfCalypso++;
renderUpgrades();
}
function upgradeSupportFire() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsSupportFire[main.player.levSupportFire + 1]);
main.player.levSupportFire++;
renderUpgrades();
}
function upgradeFireworkRockets() {
main.sndUpgrade.start();
main.player.setGold(main.player.getGold() - prcsFireworkRockets[main.player.levFireworkRockets + 1]);
main.player.levFireworkRockets++;
renderUpgrades();
}
function undoChanges() {
main.player.levArmor = levArmorInitial;
main.player.levCrew = levCrewInitial;
main.player.levSchrapnelPower = levSchrapnelPowerInitial;
main.player.levGunNum = levGunNumInitial;
main.player.levReloadSpeed = levReloadSpeedInitial;
main.player.levShipMoveSpeed = levShipMoveSpeedInitial;
main.player.levShipTurnSpeed = levShipTurnSpeedInitial;
main.player.levCannonballSpeed = levCannonballSpeedInitial;
main.player.levSupportFire = levSupportFireInitial;
main.player.levFireworkRockets = levFireworkRocketsInitial;
main.player.levVoiceOfCalypso = levVoiceOfCalypsoInitial;
main.player.setGold(getGoldInitial());
isChangeMade = false;
renderUpgrades();
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
if (screenStep < 30) {
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -480, 480, 30);
} else if (screenStep < 50) {
mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep - 30, 521, -100, 20);
mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep - 30, 521, -100, 20);
mcw.mcGold._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep - 30, 521, -100, 20);
} else {
screenStep = 0;
mcw.btnUndo._y = 404;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
if (screenStep < 20) {
mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 421, 100, 20);
mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 421, 100, 20);
mcw.mcGold._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 421, 100, 20);
mcw.btnUndo._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 404, 100, 20);
} else if (screenStep < 50) {
mcw.btnDone._y = -600;
mcw.btnSave._y = -600;
mcw.mcGold._y = -600;
mcw.btnUndo._y = -600;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep - 20, 0, -480, 30);
} else {
screenStep = 0;
main.switchScreenVisibility();
}
}
if (isChangeMade) {
btnUndoStep = Math.min(15, btnUndoStep + 1);
} else {
btnUndoStep = Math.max(0, btnUndoStep - 1);
}
mcw.btnUndo._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(btnUndoStep, -50, 96, 15);
}
function setGoldInitial(pNum) {
goldInitialKey = Math.floor(Math.random() * 1000000) - 500000;
goldInitial = pNum + goldInitialKey;
}
function getGoldInitial() {
return(goldInitial - goldInitialKey);
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 803 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.util.Strong2] Frame 0
class com.gameInABottle.games.cursedWinds.util.Strong2
{
function Strong2 () {
}
static function easeIn(elapsedTime, initialValue, targetMinusInitial, duration) {
elapsedTime = elapsedTime / duration;
return((((targetMinusInitial * elapsedTime) * elapsedTime) * elapsedTime) + initialValue);
}
static function easeOut(elapsedTime, initialValue, targetMinusInitial, duration) {
elapsedTime = (elapsedTime / duration) - 1;
return((targetMinusInitial * (((elapsedTime * elapsedTime) * elapsedTime) + 1)) + initialValue);
}
static function easeInOut(elapsedTime, initialValue, targetMinusInitial, duration) {
elapsedTime = elapsedTime / (duration / 2);
if (elapsedTime < 1) {
return(((((targetMinusInitial / 2) * elapsedTime) * elapsedTime) * elapsedTime) + initialValue);
}
elapsedTime = elapsedTime - 2;
return(((targetMinusInitial / 2) * (((elapsedTime * elapsedTime) * elapsedTime) + 2)) + initialValue);
}
}
Symbol 804 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave
{
var playerSlotDatas, mcw, main, so, screenStatus, screenStep, btnBackStep, selectedSlotNum;
function CtrlLoadSave (pMcw, pMain) {
playerSlotDatas = new Array();
var vThis = this;
mcw = pMcw;
main = pMain;
mcw.btnBack.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
if (vThis.main.currentScreen == vThis.main.SCR_LOADSAVE_LOAD) {
vThis.main.nextScreen = vThis.main.SCR_MAINMENU;
} else {
vThis.main.nextScreen = vThis.main.SCR_UPGRADES;
}
}
};
mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.mcSlot0.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.selectSlot(0);
}
};
mcw.mcSlot0.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.mcSlot1.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.selectSlot(1);
}
};
mcw.mcSlot1.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.mcSlot2.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.selectSlot(2);
}
};
mcw.mcSlot2.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnLoad.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.loadFromSlot();
}
};
mcw.btnLoad.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnSave.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.saveToSlot();
}
};
mcw.btnSave.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
so = SharedObject.getLocal("saveData");
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mc._visible = true;
mcw.mc._y = -480;
renderInit();
}
function renderInit() {
mcw.btnBack._x = 275;
mcw.btnLoad._x = 700;
mcw.btnSave._x = 700;
btnBackStep = 0;
if (main.currentScreen == main.SCR_LOADSAVE_LOAD) {
mcw.mcTitle.gotoAndStop(1);
mcw.tfInfo.text = "Select a saved game to load.";
} else {
mcw.mcTitle.gotoAndStop(2);
mcw.tfInfo.text = "Select a slot to save the game in.";
}
var _local2 = 0;
while (_local2 < 3) {
mcw["mcSlot" + _local2].selectGlare._visible = false;
_local2++;
}
if (so.data.slotContents == undefined) {
so.data.slotContents = new Array();
so.data.slotContents[0] = new Object();
so.data.slotContents[1] = new Object();
so.data.slotContents[2] = new Object();
}
_local2 = 0;
while (_local2 < 3) {
mcw["mcSlot" + _local2].content._visible = false;
mcw["mcSlot" + _local2].selectGlare._visible = false;
var _local3 = new com.gameInABottle.games.cursedWinds.entity.Player();
_local3.populateFromObject(so.data.slotContents[_local2]);
if (_local3.calculateSaveChecksum() == _local3.checksum) {
playerSlotDatas[_local2] = _local3;
mcw["mcSlot" + _local2].content._visible = true;
mcw["mcSlot" + _local2].content.tfGold.text = _local3.getGold().toString();
mcw["mcSlot" + _local2].content.tfLevel.text = (_local3.currentLevel + 1).toString();
mcw["mcSlot" + _local2].content.tfDiff.text = ((_local3.difficulty == 0) ? "Captain" : (((_local3.difficulty == 1) ? "Colonel" : "Admiral")));
}
playerSlotDatas[_local2] = _local3;
_local2++;
}
mcw.btnLoad._visible = false;
mcw.btnSave._visible = false;
}
function selectSlot(pSlotNum) {
if (((main.currentScreen == main.SCR_LOADSAVE_LOAD) && (MovieClip(mcw["mcSlot" + pSlotNum]).content._visible == true)) || (main.currentScreen == main.SCR_LOADSAVE_SAVE)) {
MovieClip(mcw.mcSlot0.selectGlare)._visible = false;
MovieClip(mcw.mcSlot1.selectGlare)._visible = false;
MovieClip(mcw.mcSlot2.selectGlare)._visible = false;
MovieClip(mcw["mcSlot" + pSlotNum]).selectGlare._visible = true;
mcw.tfInfo.text = "";
if ((main.currentScreen == main.SCR_LOADSAVE_SAVE) && (MovieClip(mcw["mcSlot" + pSlotNum]).content._visible == true)) {
mcw.tfInfo.text = "(The game previously saved in the slot will be overwritten.)";
}
selectedSlotNum = pSlotNum;
if (main.currentScreen == main.SCR_LOADSAVE_LOAD) {
mcw.btnLoad._visible = true;
} else {
mcw.btnSave._visible = true;
}
}
}
function saveToSlot() {
playerSlotDatas[selectedSlotNum] = main.player;
com.gameInABottle.games.cursedWinds.entity.Player(playerSlotDatas[selectedSlotNum]).checksum = com.gameInABottle.games.cursedWinds.entity.Player(playerSlotDatas[selectedSlotNum]).calculateSaveChecksum();
so.data.slotContents[selectedSlotNum] = com.gameInABottle.games.cursedWinds.entity.Player(playerSlotDatas[selectedSlotNum]).createCloneObject();
so.flush();
screenStatus = SCRST_DISAPPEARING;
main.nextScreen = main.SCR_UPGRADES;
}
function loadFromSlot() {
main.player = playerSlotDatas[selectedSlotNum];
screenStatus = SCRST_DISAPPEARING;
main.nextScreen = main.SCR_UPGRADES;
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -480, 480, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 1097, -680, 20);
mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 1097, -680, 20);
mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 1097, -680, 20);
if (screenStep > 19) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 0, -480, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 417, 680, 20);
mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 417, 680, 20);
mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 417, 680, 20);
if (screenStep > 19) {
screenStep = 0;
main.switchScreenVisibility();
}
}
if (mcw.btnLoad._visible || (mcw.btnSave._visible)) {
btnBackStep = Math.min(20, btnBackStep + 1);
mcw.btnBack._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(btnBackStep, 275, -77, 20);
mcw.btnLoad._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(btnBackStep, 700, -350, 20);
mcw.btnSave._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(btnBackStep, 700, -350, 20);
}
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 805 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector
{
var main, mcw, screenStatus, screenStep;
function CtrlModeSelector (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.btnDiff0.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.player.difficulty = 0;
vThis.main.nextScreen = vThis.main.SCR_MAP;
vThis.main.sndTickPress.start();
}
};
mcw.btnDiff0.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnDiff1.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.player.difficulty = 1;
vThis.main.nextScreen = vThis.main.SCR_MAP;
vThis.main.sndTickPress.start();
}
};
mcw.btnDiff1.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnDiff2.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.player.difficulty = 2;
vThis.main.nextScreen = vThis.main.SCR_MAP;
vThis.main.sndTickPress.start();
}
};
mcw.btnDiff2.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnBack.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_MAINMENU;
vThis.main.sndTickPress.start();
}
};
mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.btnBack._y = 572;
mcw.btnDiff0._y = 572;
mcw.btnDiff1._y = 572;
mcw.btnDiff2._y = 572;
mcw.mcSelectDiff._y = 572;
mcw.mc._visible = true;
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
mcw.mcSelectDiff._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -140, 220, 20);
mcw.btnDiff0._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -100, 220, 20);
mcw.btnDiff1._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -100, 220, 20);
mcw.btnDiff2._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -100, 220, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 630, -300, 20);
if (screenStep > 19) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mcSelectDiff._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 80, -220, 20);
mcw.btnDiff0._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 120, -220, 20);
mcw.btnDiff1._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 120, -220, 20);
mcw.btnDiff2._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 120, -220, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 330, 300, 20);
if (screenStep > 19) {
screenStep = 0;
main.switchScreenVisibility();
}
}
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 806 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu
{
var main, mcw, screenStatus, screenStep;
function CtrlMainMenu (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.btnTutorial.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_TUTORIAL;
vThis.main.sndTickPress.start();
}
};
mcw.btnTutorial.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnHighScores.onRelease = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_HIGHSCORES;
vThis.main.sndTickPress.start();
vThis.main.mcRoot.updateScoreboard(1);
vThis.main.mcRoot.mcScoreboard1._visible = true;
vThis.main.mcRoot.mcScoreboard2._visible = true;
}
};
mcw.btnHighScores.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnNewGame.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_MODESELECTOR;
vThis.main.sndTickPress.start();
vThis.main.player = new com.gameInABottle.games.cursedWinds.entity.Player();
}
};
mcw.btnNewGame.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnLoad.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_LOADSAVE_LOAD;
vThis.main.sndTickPress.start();
}
};
mcw.btnLoad.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnCredits.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.mcRoot.getURL("http://www.freegamesforyourwebsite.com/?cursedwinds", "_blank");
}
};
mcw.btnCredits.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnMoreGames.onRelease = function () {
vThis.main.mcRoot.getURL("http://www.freeonlinegames.com/?cursedwinds", "_blank");
};
mcw.btnMoreGames.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mc._visible = true;
mcw.mcTitle._y = -400;
mcw.btnLoad._y = 630;
mcw.btnNewGame._y = 630;
mcw.btnTutorial._y = 630;
mcw.btnHighScores._y = 690;
mcw.btnMoreGames._y = 690;
mcw.btnCredits._y = 690;
mcw.mcBottomTexts._y = 760;
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
mcw.mcTitle._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -400, 400, 20);
mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 630, -300, 20);
mcw.btnNewGame._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 630, -300, 20);
mcw.btnTutorial._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 630, -300, 20);
mcw.btnHighScores._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 690, -300, 20);
mcw.btnMoreGames._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 690, -300, 20);
mcw.btnCredits._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 690, -300, 20);
mcw.mcBottomTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 760, -300, 20);
if (screenStep > 19) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mcTitle._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 0, -400, 20);
mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 330, 300, 20);
mcw.btnNewGame._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 330, 300, 20);
mcw.btnTutorial._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 330, 300, 20);
mcw.btnHighScores._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 390, 300, 20);
mcw.btnMoreGames._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 390, 300, 20);
mcw.btnCredits._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 390, 300, 20);
mcw.mcBottomTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 460, 300, 20);
if (screenStep > 19) {
screenStep = 0;
main.switchScreenVisibility();
}
}
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 807 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits
{
var main, mcw, screenStatus, screenStep;
function CtrlCredits (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.btnBack.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_MAINMENU;
vThis.main.sndTickPress.start();
}
};
mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.mcCreditsPlate.btnLink.onRelease = function () {
_root.getURL("http://www.gameinabottle.com/", "_blank");
};
mcw.mcCreditsPlate.btnLink.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
function initiate() {
mcw.btnBack._y = 572;
mcw.mcCreditsPlate._y = -400;
mcw.mc._visible = true;
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mc._visible = true;
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
mcw.mcCreditsPlate._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -400, 476, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 572, -200, 20);
if (screenStep > 19) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mcCreditsPlate._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 76, -476, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 372, 200, 20);
if (screenStep > 19) {
screenStep = 0;
main.switchScreenVisibility();
}
}
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 808 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame
{
var main, mcw, levsGunNum, levsShipMoveSpeed, levsShipTurnSpeed, levsReloadSpeed, levsFirepower, levsCannonballspeed, levsArmor, levsCrew, levsSupportFire, levsCalypso, screenStatus, screenStep, isEngagedSoundPlaying, mcTexts, currentCannonballZ, pirateCannonballs, enemyCannonballs, keyListener, shipDatas, pirateShip, calypsoWave, fireworkRockets, bombardShells, enemyShips, cursedWind, isPirateshipShootingUp, goldPlunderedOnLevel, pirateCannonballsShot, pirateCannonballsHit, pirateShipEngagementLevel, timer, enemyShipZCount, flagMakeCannonSound, status, voiceOfCalypsoLoadedLevel, supportFireLoadedLevel, fireworkRocketsLoadedLevel, voiceOfCalypsoLoadSpeed, supportFireLoadSpeed, fireworkRocketsLoadSpeed, isOutcomeVictory, pnlLevelInfo, fireworkBlastSoundStep, pnlOutcome;
function CtrlIngame (pMcw, pMain) {
main = pMain;
mcw = pMcw;
levsGunNum = new Array(24, 30, 36, 42, 48, 60, 72, 80, 88, 100, 104, 108, 116, 180, 360, 360, 360);
levsShipMoveSpeed = new Array(1.1, 1.2, 1.3, 1.4, 1.5, 1.55, 1.8, 2, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3, 5, 5);
levsShipTurnSpeed = new Array(1.4, 1.5, 1.6, 1.7, 1.8, 2, 2.2, 2.4, 2.45, 2.48, 2.5, 2.6, 2.7, 3, 5, 5, 5);
levsReloadSpeed = new Array(3, 4, 5, 6, 7, 8, 9, 12, 14, 16, 16, 16, 17, 18, 19, 60, 100);
levsFirepower = new Array(1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2, 2.2, 2.4, 2.4, 2.4, 2.5, 2.6, 2.7, 12, 16);
levsCannonballspeed = new Array(2.2, 2.35, 2.5, 2.8, 3, 3.2, 3.4, 3.6, 3.8, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6, 3.6);
levsArmor = new Array(10, 11, 12, 13, 14, 15, 16, 18, 21, 22, 23, 24, 25, 26, 27, 100, 120);
levsCrew = new Array(48, 56, 64, 72, 80, 96, 120, 140, 160, 180, 210, 240, 300, 360, 480, 600, 600);
levsSupportFire = new Array(0, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39);
levsCalypso = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
}
function initiate() {
mcw.mcSea.gotoAndStop((main.player.currentLevel % 4) + 1);
screenStatus = SCRST_APPEARING;
screenStep = 0;
isEngagedSoundPlaying = false;
mcTexts = _root.attachMovie("mcTexts", "mcTexts", com.gameInABottle.games.cursedWinds.constants.Z.SEA_TEXTS);
mcTexts._x = 16;
mcTexts._y = 428;
mcTexts._visible = false;
removeAllMovieClips();
currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
pirateCannonballs = new Array();
enemyCannonballs = new Array();
var vThis = this;
keyListener = new Object();
keyListener.onKeyDown = function () {
if ((Key.getAscii() == 80) || (Key.getAscii() == 112)) {
vThis.main.switchOptions();
}
if ((Key.getAscii() == 86) || (Key.getAscii() == 118)) {
vThis.isPirateshipShootingUp = !vThis.isPirateshipShootingUp;
}
};
Key.addListener(keyListener);
resetGame();
shipDatas = new Array();
var _local3 = 0;
while (_local3 < com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[main.player.currentLevel]).shipDatas.length) {
shipDatas.push(com.gameInABottle.games.cursedWinds.entity.ShipData(com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[main.player.currentLevel]).shipDatas[_local3]));
_local3++;
}
mcw.mc._visible = true;
main.mcwRoot.mcIngameDoor._visible = true;
main.mcwRoot.mcIngameDoor.gotoAndPlay(2);
main.sndIngameDoorOpen.start();
}
function removeAllMovieClips() {
pirateShip.mc.removeMovieClip();
pirateShip.battleWheel.removeMovieClip();
calypsoWave.mc.removeMovieClip();
var _local2 = 0;
while (_local2 < pirateCannonballs.length) {
com.gameInABottle.games.cursedWinds.entity.Cannonball(pirateCannonballs[_local2]).mc.removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < enemyCannonballs.length) {
com.gameInABottle.games.cursedWinds.entity.Cannonball(enemyCannonballs[_local2]).mc.removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < fireworkRockets.length) {
com.gameInABottle.games.cursedWinds.entity.FireworkRocket(fireworkRockets[_local2]).mc.removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < bombardShells.length) {
com.gameInABottle.games.cursedWinds.entity.BombardShell(bombardShells[_local2]).mc.removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < enemyShips.length) {
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).infoPanel.removeMovieClip();
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).battleWheel.removeMovieClip();
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).mc.removeMovieClip();
_local2++;
}
}
function resetGame() {
calypsoWave = null;
cursedWind = null;
mcw.mcSupportFire._visible = false;
fireworkRockets = new Array();
bombardShells = new Array();
isPirateshipShootingUp = true;
goldPlunderedOnLevel = 0;
pirateCannonballsShot = 0;
pirateCannonballsHit = 0;
pirateShipEngagementLevel = 0;
timer = 0;
enemyShipZCount = 0;
pirateShip = new com.gameInABottle.games.cursedWinds.entity.Ship(this);
pirateShip.isOwnedByPlayer = true;
pirateShip.mc = _root.attachMovie("mcShip2", "pirateShip", com.gameInABottle.games.cursedWinds.constants.Z.PIRATESHIP);
pirateShip.x = 320;
pirateShip.y = 400;
pirateShip.mc._x = -320;
pirateShip.mc._y = -400;
pirateShip.isRotating = false;
pirateShip.rotation = 0;
var _local3 = new Array();
_local3.push(new flash.filters.DropShadowFilter(30, 45, 0, 100, 20, 20, 0.6, 1, false, false));
pirateShip.mc.filters = _local3;
pirateShip.mc.sailFront.gotoAndStop(2);
pirateShip.mc.sailRear.gotoAndStop(2);
pirateShip.mc.mast1.sail1.gotoAndStop(2);
pirateShip.mc.mast1.sail2.gotoAndStop(2);
pirateShip.mc.mast2.sail1.gotoAndStop(2);
pirateShip.mc.mast2.sail2.gotoAndStop(2);
pirateShip.mc.mast3.sail1.gotoAndStop(2);
pirateShip.mc.mast3.sail2.gotoAndStop(2);
var _local4 = new Color(pirateShip.mc.mast1.flag);
_local4.setRGB(0);
_local4 = new Color(pirateShip.mc.mast2.flag);
_local4.setRGB(0);
_local4 = new Color(pirateShip.mc.mast3.flag);
_local4.setRGB(0);
pirateShip.mc.mast1.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
pirateShip.mc.mast2.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
pirateShip.mc.mast3.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
pirateShip.hpMax = 100 * levsArmor[main.player.levArmor];
pirateShip.hp = pirateShip.hpMax;
pirateShip.armor = levsArmor[main.player.levArmor];
pirateShip.cannonsNum = levsGunNum[main.player.levGunNum];
pirateShip.speedMax = levsShipMoveSpeed[main.player.levShipMoveSpeed];
pirateShip.turnSpeedMax = levsShipTurnSpeed[main.player.levShipTurnSpeed];
pirateShip.reloadSpeed = levsReloadSpeed[main.player.levReloadSpeed];
pirateShip.firePower = levsFirepower[main.player.levSchrapnelPower];
pirateShip.crewNum = levsCrew[main.player.levCrew];
pirateShip.cannonballSpeed = levsCannonballspeed[main.player.levCannonballSpeed];
pirateShip.battleWheel = _root.attachMovie("pirateWheelShell", ("battleWheel" + com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN) + enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN + (enemyShipZCount++));
pirateShip.battleWheel._alpha = 0;
pirateShip.battleWheel._x = -400;
pirateShip.battleWheel._width = 80;
pirateShip.battleWheel._height = 80;
pirateShip.cannonsLoadedNum = pirateShip.cannonsNum;
enemyShips = new Array();
flagMakeCannonSound = true;
main.sndAmbient.start(0, 9999);
status = ST_PLAYING;
mcTexts.tfGold.text = "";
mcTexts.tfCrew.text = "";
mcTexts.tfCannons.text = "";
mcTexts.tfShip.text = "";
if (main.player.levFireworkRockets > 0) {
mcTexts.mcFirework.tfPercent.text = "0%";
mcTexts.mcFirework.image._alpha = 100;
} else {
mcTexts.mcFirework.tfPercent.text = "";
mcTexts.mcFirework.image._alpha = 20;
}
if (main.player.levVoiceOfCalypso > 0) {
mcTexts.mcCalypso.tfPercent.text = "0%";
mcTexts.mcCalypso.image._alpha = 100;
} else {
mcTexts.mcCalypso.tfPercent.text = "";
mcTexts.mcCalypso.image._alpha = 20;
}
if (main.player.levSupportFire > 0) {
mcTexts.mcSupportFire.tfPercent.text = "0%";
mcTexts.mcSupportFire.image._alpha = 100;
} else {
mcTexts.mcSupportFire.tfPercent.text = "";
mcTexts.mcSupportFire.image._alpha = 20;
}
mcTexts.mcSupportFire.image.gotoAndStop(3);
mcTexts.mcFirework.image.gotoAndStop(2);
mcTexts._visible = true;
voiceOfCalypsoLoadedLevel = 0;
supportFireLoadedLevel = 0;
fireworkRocketsLoadedLevel = 0;
voiceOfCalypsoLoadSpeed = 0.3;
supportFireLoadSpeed = 0.45;
fireworkRocketsLoadSpeed = 0.6;
}
function createShip(pShipData) {
var _local3 = new com.gameInABottle.games.cursedWinds.entity.Ship(this);
_local3.hp = 100 * levsArmor[pShipData.armorLevel];
_local3.hpMax = _local3.hp;
_local3.armor = levsArmor[pShipData.armorLevel];
_local3.crewNum = levsCrew[pShipData.crewNumLevel];
_local3.firePower = levsFirepower[pShipData.firePowerLevel];
_local3.cannonballSpeed = levsCannonballspeed[pShipData.firePowerLevel];
_local3.cannonsNum = levsGunNum[pShipData.cannonsNumLevel];
_local3.cannonsLoadedNum = levsGunNum[pShipData.cannonsNumLevel];
_local3.speed = 0;
_local3.speedMax = levsShipMoveSpeed[pShipData.speedMaxLevel];
_local3.speedMaxOriginal = _local3.speedMax;
_local3.turnSpeed = 0;
_local3.turnSpeedMax = levsShipTurnSpeed[pShipData.turnSpeedMaxLevel];
if (pShipData.isWeakened) {
_local3.crewNum = Math.floor(_local3.crewNum / 2);
_local3.hpMax = Math.floor(_local3.hpMax / 2);
_local3.hp = Math.floor(_local3.hp / 2);
_local3.cannonsNum = Math.floor(_local3.cannonsNum / 2);
_local3.cannonsLoadedNum = Math.floor(_local3.cannonsLoadedNum / 2);
}
_local3.goldCarried = pShipData.goldCarried;
_local3.reloadSpeed = levsReloadSpeed[pShipData.reloadSpeedLevel];
_local3.status = _local3.ST_AI_INCOMING;
_local3.rotation = 90;
_local3.isRotating = true;
_local3.isFiring = false;
_local3.isEngaged = false;
_local3.isOwnedByPlayer = false;
_local3.x = ((pShipData.x == 0) ? ((Math.random() * 400) + 120) : (pShipData.x));
if (pShipData.sailType == pShipData.ST_FINAL_MINION) {
_local3.y = 190;
} else {
_local3.y = -150;
}
_local3.data = pShipData;
_local3.mc = _root.attachMovie("mcShip" + pShipData.hullType, ("enemyShip" + com.gameInABottle.games.cursedWinds.constants.Z.ENEMYSHIP_MIN) + enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.ENEMYSHIP_MIN + (enemyShipZCount++));
_local3.mc._y = -600;
_local3.infoPanel = _root.attachMovie("shipInfoPanel", ("shipInfoPanel" + com.gameInABottle.games.cursedWinds.constants.Z.INFOPANEL_MIN) + enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.INFOPANEL_MIN + (enemyShipZCount++));
_local3.infoPanel._y = -600;
_local3.infoPanel.tfGold.text = _local3.goldCarried;
_local3.infoPanel.tfCannons.text = _local3.cannonsNum;
_local3.infoPanel.tfCrew.text = _local3.crewNum;
_local3.infoPanel.tfShip.text = _local3.hp;
_local3.battleWheel = _root.attachMovie("pirateWheelShell", ("battleWheel" + com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN) + enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN + (enemyShipZCount++));
_local3.battleWheel._x = -400;
var _local5 = new Array(60, 80, 100, 120, 150);
_local3.battleWheel._width = _local5[pShipData.hullType - 1];
_local3.battleWheel._height = _local5[pShipData.hullType - 1];
var _local6 = new Array();
_local6.push(new flash.filters.DropShadowFilter(30, 45, 0, 100, 20, 20, 0.6, 1, false, false));
_local3.mc.filters = _local6;
if (pShipData.sailType == pShipData.ST_DOT1) {
_local3.mc.mast1.sail1.gotoAndStop("reg1");
_local3.mc.mast2.sail1.gotoAndStop("reg1");
_local3.mc.mast3.sail1.gotoAndStop("reg1");
} else if (pShipData.sailType == pShipData.ST_DOT2) {
_local3.mc.mast1.sail1.gotoAndStop("reg1");
_local3.mc.mast1.sail2.gotoAndStop("reg1");
_local3.mc.mast2.sail1.gotoAndStop("reg1");
_local3.mc.mast2.sail2.gotoAndStop("reg1");
_local3.mc.mast3.sail1.gotoAndStop("reg1");
_local3.mc.mast3.sail2.gotoAndStop("reg1");
} else if (pShipData.sailType == pShipData.ST_DOT3) {
_local3.mc.mast1.sail1.gotoAndStop("reg2");
_local3.mc.mast1.sail2.gotoAndStop("reg1");
_local3.mc.mast2.sail1.gotoAndStop("reg2");
_local3.mc.mast2.sail2.gotoAndStop("reg1");
_local3.mc.mast3.sail1.gotoAndStop("reg2");
_local3.mc.mast3.sail2.gotoAndStop("reg1");
} else if (pShipData.sailType == pShipData.ST_DOT4) {
_local3.mc.mast1.sail1.gotoAndStop("reg2");
_local3.mc.mast1.sail2.gotoAndStop("reg2");
_local3.mc.mast2.sail1.gotoAndStop("reg2");
_local3.mc.mast2.sail2.gotoAndStop("reg2");
_local3.mc.mast3.sail1.gotoAndStop("reg2");
_local3.mc.mast3.sail2.gotoAndStop("reg2");
} else if (pShipData.sailType == pShipData.ST_DOT5) {
_local3.mc.mast1.sail1.gotoAndStop("reg3");
_local3.mc.mast1.sail2.gotoAndStop("reg2");
_local3.mc.mast2.sail1.gotoAndStop("reg3");
_local3.mc.mast2.sail2.gotoAndStop("reg2");
_local3.mc.mast3.sail1.gotoAndStop("reg3");
_local3.mc.mast3.sail2.gotoAndStop("reg2");
} else if (pShipData.sailType == pShipData.ST_DOT6) {
_local3.mc.mast1.sail1.gotoAndStop("reg3");
_local3.mc.mast1.sail2.gotoAndStop("reg3");
_local3.mc.mast2.sail1.gotoAndStop("reg3");
_local3.mc.mast2.sail2.gotoAndStop("reg3");
_local3.mc.mast3.sail1.gotoAndStop("reg3");
_local3.mc.mast3.sail2.gotoAndStop("reg3");
} else if (pShipData.sailType == pShipData.ST_DOWNRED_BLANK) {
_local3.mc.mast1.sail1.gotoAndStop("red");
_local3.mc.mast2.sail1.gotoAndStop("red");
_local3.mc.mast3.sail1.gotoAndStop("red");
} else if (pShipData.sailType == pShipData.ST_DOWNRED_DOT1) {
_local3.mc.mast1.sail1.gotoAndStop("red");
_local3.mc.mast2.sail1.gotoAndStop("red");
_local3.mc.mast3.sail1.gotoAndStop("red");
_local3.mc.mast1.sail2.gotoAndStop("reg1");
_local3.mc.mast2.sail2.gotoAndStop("reg1");
_local3.mc.mast3.sail2.gotoAndStop("reg1");
} else if (pShipData.sailType == pShipData.ST_DOWNRED_DOT2) {
_local3.mc.mast1.sail1.gotoAndStop("red");
_local3.mc.mast2.sail1.gotoAndStop("red");
_local3.mc.mast3.sail1.gotoAndStop("red");
_local3.mc.mast1.sail2.gotoAndStop("reg2");
_local3.mc.mast2.sail2.gotoAndStop("reg2");
_local3.mc.mast3.sail2.gotoAndStop("reg2");
} else if (pShipData.sailType == pShipData.ST_DOWNRED_DOT3) {
_local3.mc.mast1.sail1.gotoAndStop("red");
_local3.mc.mast2.sail1.gotoAndStop("red");
_local3.mc.mast3.sail1.gotoAndStop("red");
_local3.mc.mast1.sail2.gotoAndStop("reg3");
_local3.mc.mast2.sail2.gotoAndStop("reg3");
_local3.mc.mast3.sail2.gotoAndStop("reg3");
} else if (pShipData.sailType == pShipData.ST_UPRED_BLANK) {
_local3.mc.mast1.sail2.gotoAndStop("red");
_local3.mc.mast2.sail2.gotoAndStop("red");
_local3.mc.mast3.sail2.gotoAndStop("red");
} else if (pShipData.sailType == pShipData.ST_UPRED_DOT1) {
_local3.mc.mast1.sail2.gotoAndStop("red");
_local3.mc.mast2.sail2.gotoAndStop("red");
_local3.mc.mast3.sail2.gotoAndStop("red");
_local3.mc.mast1.sail1.gotoAndStop("reg1");
_local3.mc.mast2.sail1.gotoAndStop("reg1");
_local3.mc.mast3.sail1.gotoAndStop("reg1");
} else if (pShipData.sailType == pShipData.ST_UPRED_DOT2) {
_local3.mc.mast1.sail2.gotoAndStop("red");
_local3.mc.mast2.sail2.gotoAndStop("red");
_local3.mc.mast3.sail2.gotoAndStop("red");
_local3.mc.mast1.sail1.gotoAndStop("reg2");
_local3.mc.mast2.sail1.gotoAndStop("reg2");
_local3.mc.mast3.sail1.gotoAndStop("reg2");
} else if (pShipData.sailType == pShipData.ST_UPRED_DOT3) {
_local3.mc.mast1.sail2.gotoAndStop("red");
_local3.mc.mast2.sail2.gotoAndStop("red");
_local3.mc.mast3.sail2.gotoAndStop("red");
_local3.mc.mast1.sail1.gotoAndStop("reg3");
_local3.mc.mast2.sail1.gotoAndStop("reg3");
_local3.mc.mast3.sail1.gotoAndStop("reg3");
} else if (pShipData.sailType == pShipData.ST_PIRATEHUNTER1) {
_local3.mc.mast1.sail1.gotoAndStop("black");
_local3.mc.mast1.sail2.gotoAndStop("black");
_local3.mc.mast2.sail1.gotoAndStop("red");
_local3.mc.mast2.sail2.gotoAndStop("red");
_local3.mc.mast3.sail1.gotoAndStop("black");
_local3.mc.mast3.sail2.gotoAndStop("black");
_local3.mc.sailFront.gotoAndStop(2);
_local3.mc.sailRear.gotoAndStop(2);
} else if (pShipData.sailType == pShipData.ST_PIRATEHUNTER2) {
_local3.mc.mast2.sail1.gotoAndStop("black");
_local3.mc.mast2.sail2.gotoAndStop("black");
_local3.mc.sailFront.gotoAndStop(2);
_local3.mc.sailRear.gotoAndStop(2);
} else if (pShipData.sailType == pShipData.ST_PIRATEHUNTER3) {
_local3.mc.mast1.sail1.gotoAndStop("black");
_local3.mc.mast1.sail2.gotoAndStop("black");
_local3.mc.mast2.sail1.gotoAndStop("red");
_local3.mc.mast2.sail2.gotoAndStop("red");
_local3.mc.mast3.sail1.gotoAndStop("red");
_local3.mc.mast3.sail2.gotoAndStop("red");
_local3.mc.sailFront.gotoAndStop(2);
_local3.mc.sailRear.gotoAndStop(2);
} else if (pShipData.sailType == pShipData.ST_PIRATEHUNTER4) {
_local3.mc.mast1.sail1.gotoAndStop("red");
_local3.mc.mast1.sail2.gotoAndStop("red");
_local3.mc.mast2.sail1.gotoAndStop("black");
_local3.mc.mast2.sail2.gotoAndStop("black");
_local3.mc.mast3.sail1.gotoAndStop("red");
_local3.mc.mast3.sail2.gotoAndStop("red");
_local3.mc.sailFront.gotoAndStop(2);
_local3.mc.sailRear.gotoAndStop(2);
} else if (pShipData.sailType == pShipData.ST_FINAL_MINION) {
_local3.mc.mast1.sail1.gotoAndStop("red");
_local3.mc.mast1.sail2.gotoAndStop("red");
_local3.mc.mast2.sail1.gotoAndStop("red");
_local3.mc.mast2.sail2.gotoAndStop("red");
_local3.mc.mast3.sail1.gotoAndStop("red");
_local3.mc.mast3.sail2.gotoAndStop("red");
_local3.mc.sailFront.gotoAndStop(3);
} else if (pShipData.sailType == pShipData.ST_BOSS) {
_local3.mc.mast1.sail1.gotoAndStop("boss" + (main.player.currentLevel + 1));
_local3.mc.mast1.sail2.gotoAndStop("boss" + (main.player.currentLevel + 1));
_local3.mc.mast2.sail1.gotoAndStop("boss" + (main.player.currentLevel + 1));
_local3.mc.mast2.sail2.gotoAndStop("boss" + (main.player.currentLevel + 1));
_local3.mc.mast3.sail1.gotoAndStop("boss" + (main.player.currentLevel + 1));
_local3.mc.mast3.sail2.gotoAndStop("boss" + (main.player.currentLevel + 1));
_local3.mc.sailFront.gotoAndStop(3);
if ((((((((main.player.currentLevel == 1) || (main.player.currentLevel == 2)) || (main.player.currentLevel == 4)) || (main.player.currentLevel == 6)) || (main.player.currentLevel == 7)) || (main.player.currentLevel == 9)) || (main.player.currentLevel == 13)) || (main.player.currentLevel == 14)) {
_local3.mc.sailFront.gotoAndStop(2);
_local3.mc.sailRear.gotoAndStop(2);
}
} else {
_local3.mc.mast1.flag._visible = false;
_local3.mc.mast2.flag._visible = false;
_local3.mc.mast3.flag._visible = false;
}
if ((((pShipData.sailType == pShipData.ST_PIRATEHUNTER1) || (pShipData.sailType == pShipData.ST_PIRATEHUNTER2)) || (pShipData.sailType == pShipData.ST_PIRATEHUNTER3)) || (pShipData.sailType == pShipData.ST_PIRATEHUNTER4)) {
var _local7 = new Color(_local3.mc.mast1.flag);
_local7.setRGB(0);
_local7 = new Color(_local3.mc.mast2.flag);
_local7.setRGB(0);
_local7 = new Color(_local3.mc.mast3.flag);
_local7.setRGB(0);
} else {
_local3.mc.mast1.flag._alpha = 80;
_local3.mc.mast2.flag._alpha = 80;
_local3.mc.mast3.flag._alpha = 80;
if (pShipData.sailType == pShipData.ST_BOSS) {
_local3.mc.mast1.flag._xscale = 110;
_local3.mc.mast1.flag._yscale = 110;
_local3.mc.mast2.flag._xscale = 110;
_local3.mc.mast2.flag._yscale = 110;
_local3.mc.mast3.flag._xscale = 110;
_local3.mc.mast3.flag._yscale = 110;
} else {
_local3.mc.mast1.flag._xscale = 80;
_local3.mc.mast1.flag._yscale = 80;
_local3.mc.mast2.flag._xscale = 80;
_local3.mc.mast2.flag._yscale = 80;
_local3.mc.mast3.flag._xscale = 80;
_local3.mc.mast3.flag._yscale = 80;
}
}
_local3.mc.mast1.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
_local3.mc.mast2.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
_local3.mc.mast3.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
enemyShips.push(_local3);
}
function endGameWithDefeat() {
isOutcomeVictory = false;
status = ST_OVER_PANEL_APPEARING;
timer = 0;
main.sndCloseCombat.stop();
Key.removeListener(keyListener);
}
function endGameWithVictory() {
isOutcomeVictory = true;
status = ST_OVER_PANEL_APPEARING;
timer = 0;
Key.removeListener(keyListener);
}
function doEnterFrame() {
main.vfxEngine.doEnterFrame();
if (screenStatus == SCRST_APPEARING) {
screenStep++;
if (screenStep > 40) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
if (screenStep == 39) {
stopAllSounds();
main.sndIngameDoorCloseEnd.start();
}
if (screenStep > 40) {
screenStep = 0;
removeAllMovieClips();
main.switchScreenVisibility();
}
}
timer++;
if (status == ST_PLAYING) {
setEngagementLevel(-1);
if (timer == 10) {
pnlLevelInfo = main.mcRoot.attachMovie("mcLevelInfoPanel", "mcLevelInfoPanel", com.gameInABottle.games.cursedWinds.constants.Z.LEVELINFOPANEL);
pnlLevelInfo._y = 150;
pnlLevelInfo._x = 700;
pnlLevelInfo.tfShipNum.text = shipDatas.length + " enemy ships approaching...";
pnlLevelInfo.tfFlagshipName.text = com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[main.player.currentLevel]).flagShipName;
} else if (timer < 41) {
} else if (timer < 71) {
pnlLevelInfo._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(timer - 41, 660, -560, 30);
} else if (timer < 131) {
} else if (timer < 161) {
pnlLevelInfo._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(timer - 131, 100, -560, 30);
} else if (timer == 161) {
pnlLevelInfo.removeMovieClip();
}
var _local7 = 0;
while (_local7 < enemyShips.length) {
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).doEnterFrame();
_local7++;
}
avoidShipCollision();
}
if (main.preferences.quality == 3) {
if (Math.random() > 0.992) {
main.vfxEngine.createCloud();
}
}
if (main.player.currentLevel > 10) {
if (Math.random() > (0.999 - (0.0005 * (main.player.currentLevel - 10)))) {
summonCursedWind();
}
}
var _local7 = 0;
while (_local7 < pirateCannonballs.length) {
var _local3 = pirateCannonballs[_local7];
_local3.fly();
if ((((_local3.x < 0) || (_local3.x > 640)) || (_local3.y < 0)) || (_local3.y > 480)) {
_local3.mc.removeMovieClip();
pirateCannonballs.splice(_local7, 1);
_local7--;
} else {
var _local4 = 0;
while (_local4 < enemyShips.length) {
if (((com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_WRECK) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_PLUNDERED)) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_DISAPPEARING)) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).mc.hitTest(_local3.x, _local3.y, true)) {
_local3.mc.removeMovieClip();
main.vfxEngine.createBlast(_local3.x, _local3.y);
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).sufferDamage(_local3.firepower);
pirateCannonballsHit++;
pirateCannonballs.splice(_local7, 1);
_local7--;
break;
}
}
_local4++;
}
}
_local7++;
}
_local7 = 0;
while (_local7 < bombardShells.length) {
var _local6 = bombardShells[_local7];
_local6.fly();
if (_local6.y <= _local6.targetY) {
var _local9 = false;
var _local4 = 0;
while (_local4 < enemyShips.length) {
if (((com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_WRECK) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_PLUNDERED)) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_DISAPPEARING)) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).mc.hitTest(_local6.x, _local6.y, true)) {
main.vfxEngine.createBombardBlast(_local6.x, _local6.y);
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).sufferDamage(_local6.firepower);
break;
}
}
_local4++;
}
if (_local9 == false) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(pirateShip).mc.hitTest(_local6.x, _local6.y, true)) {
main.vfxEngine.createBombardBlast(_local6.x, _local6.y);
com.gameInABottle.games.cursedWinds.entity.Ship(pirateShip).sufferDamage(_local6.firepower);
}
}
if (_local9 == false) {
main.vfxEngine.createBombardSplash(_local6.x, _local6.y);
}
_local6.mc.removeMovieClip();
bombardShells.splice(_local7, 1);
_local7--;
}
_local7++;
}
_local7 = 0;
while (_local7 < fireworkRockets.length) {
var _local5 = fireworkRockets[_local7];
_local5.fly();
if ((((_local5.x < 0) || (_local5.x > 640)) || (_local5.y < 0)) || (_local5.y > 480)) {
_local5.mc.removeMovieClip();
fireworkRockets.splice(_local7, 1);
_local7--;
} else if (_local5.fuel < 1) {
_local5.mc.removeMovieClip();
fireworkRockets.splice(_local7, 1);
main.vfxEngine.createSplash(_local5.x, _local5.y);
_local7--;
} else {
var _local4 = 0;
while (_local4 < enemyShips.length) {
if (((com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_WRECK) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_PLUNDERED)) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_DISAPPEARING)) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).mc.hitTest(_local5.x, _local5.y, true)) {
_local5.mc.removeMovieClip();
main.vfxEngine.createFireworkBlast(_local5.x, _local5.y);
if (fireworkBlastSoundStep == 0) {
main["sndFireworksImpact" + (Math.floor(Math.random() * 6.99) + 1)].start();
}
fireworkBlastSoundStep++;
if (fireworkBlastSoundStep > 2) {
fireworkBlastSoundStep = 0;
}
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).sufferDamage(_local5.firepower);
fireworkRockets.splice(_local7, 1);
_local7--;
break;
}
}
_local4++;
}
}
_local7++;
}
_local7 = 0;
while (_local7 < enemyCannonballs.length) {
var _local3 = enemyCannonballs[_local7];
_local3.fly();
if ((((_local3.x < 0) || (_local3.x > 640)) || (_local3.y < 0)) || (_local3.y > 480)) {
_local3.mc.removeMovieClip();
enemyCannonballs.splice(_local7, 1);
_local7--;
} else if (status == ST_PLAYING) {
if (pirateShip.mc.hitTest(_local3.x, _local3.y, true)) {
_local3.mc.removeMovieClip();
main.vfxEngine.createBlast(_local3.x, _local3.y);
pirateShip.sufferDamage(_local3.firepower);
enemyCannonballs.splice(_local7, 1);
_local7--;
}
var _local4 = 0;
while (_local4 < enemyShips.length) {
if (com.gameInABottle.games.cursedWinds.entity.Cannonball(enemyCannonballs[_local7]).originShip != enemyShips[_local4]) {
if (((com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_WRECK) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_PLUNDERED)) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).ST_AI_DISAPPEARING)) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).mc.hitTest(_local3.x, _local3.y, true)) {
_local3.mc.removeMovieClip();
main.vfxEngine.createBlast(_local3.x, _local3.y);
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local4]).sufferDamage(_local3.firepower / 8);
enemyCannonballs.splice(_local7, 1);
_local7--;
break;
}
}
}
_local4++;
}
}
_local7++;
}
if (calypsoWave != null) {
calypsoWave.doEnterFrame();
if (calypsoWave.mc._alpha < 1) {
calypsoWave.mc.removeMovieClip();
calypsoWave = null;
} else {
_local7 = 0;
while (_local7 < enemyShips.length) {
var _local13 = Math.sqrt(Math.pow(calypsoWave.x - enemyShips[_local7].x, 2) + Math.pow(calypsoWave.y - enemyShips[_local7].y, 2));
if (Math.abs(_local13 - calypsoWave.r) < 30) {
var _local8 = Math.atan2(enemyShips[_local7].y - calypsoWave.y, enemyShips[_local7].x - calypsoWave.x);
enemyShips[_local7].x = enemyShips[_local7].x + ((Math.cos(_local8) * 0.2) * (30 - Math.abs(_local13 - calypsoWave.r)));
enemyShips[_local7].y = enemyShips[_local7].y + ((Math.sin(_local8) * 0.2) * (30 - Math.abs(_local13 - calypsoWave.r)));
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).sufferCalypsoDamage(main.player.levVoiceOfCalypso);
}
_local7++;
}
}
}
if (cursedWind != null) {
cursedWind.doEnterFrame();
var _local13 = Math.sqrt(Math.pow(cursedWind.x - pirateShip.x, 2) + Math.pow(cursedWind.y - pirateShip.y, 2));
if (_local13 < 80) {
if (cursedWind.isSoundPlayed == false) {
cursedWind.isSoundPlayed = true;
main.sndCursedWind.start();
}
pirateShip.y = Math.min(480, pirateShip.y + (((80 - _local13) / 80) * 7));
pirateShip.hp = pirateShip.hp - Math.floor(((80 - _local13) / 80) * 4);
}
if (cursedWind.y > 700) {
cursedWind.mc.removeMovieClip();
cursedWind = null;
}
}
if (status == ST_PLAYING) {
if (timer < 20) {
mcTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(timer, 508, -80, 20);
}
pirateShip.doEnterFrame();
mcTexts.tfCannons.text = (pirateShip.cannonsLoadedNum + "/") + pirateShip.cannonsNum;
if (isPirateshipShootingUp) {
mcTexts.mcArrow._yscale = 100;
} else {
mcTexts.mcArrow._yscale = -100;
}
if (pirateShip.isFiring) {
TextField(mcTexts.tfCannons).textColor = 16711680 /* 0xFF0000 */;
} else {
TextField(mcTexts.tfCannons).textColor = 16777215 /* 0xFFFFFF */;
}
mcTexts.tfGold.text = main.player.getGold();
mcTexts.tfCrew.text = pirateShip.crewNum;
mcTexts.tfShip.text = pirateShip.hp;
mcTexts.mcSupportFire.tfPercent.text = ((main.player.levSupportFire < 1) ? "" : (((supportFireLoadedLevel == 100) ? "Ready!" : (Math.floor(supportFireLoadedLevel) + "%"))));
mcTexts.mcCalypso.tfPercent.text = ((main.player.levVoiceOfCalypso < 1) ? "" : (((voiceOfCalypsoLoadedLevel == 100) ? "Ready!" : (Math.floor(voiceOfCalypsoLoadedLevel) + "%"))));
mcTexts.mcFirework.tfPercent.text = ((main.player.levFireworkRockets < 1) ? "" : (((fireworkRocketsLoadedLevel == 100) ? "Ready!" : (Math.floor(fireworkRocketsLoadedLevel) + "%"))));
_local7 = 0;
while (_local7 < shipDatas.length) {
if (com.gameInABottle.games.cursedWinds.entity.ShipData(shipDatas[_local7]).spawnTime <= timer) {
createShip(shipDatas[_local7]);
shipDatas.splice(_local7, 1);
}
_local7++;
}
} else if (status == ST_OVER_PANEL_APPEARING) {
if (timer < 20) {
mcTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(timer, 428, 80, 20);
} else if (timer == 20) {
var vThis = this;
if (isOutcomeVictory) {
var _local14 = pirateCannonballsHit / pirateCannonballsShot;
pnlOutcome = main.mcRoot.attachMovie("outcomePanelVictory", "pnlOutcome", com.gameInABottle.games.cursedWinds.constants.Z.LEVELOUTCOMEPANEL);
pnlOutcome.tfGoldPlundered.text = goldPlunderedOnLevel;
pnlOutcome.tfCannonballs.text = ((pirateCannonballsHit + " / ") + pirateCannonballsShot) + ((pirateCannonballsShot == 0) ? "" : ((" (" + Math.round(_local14 * 100)) + "%)"));
var _local11 = 0;
if (pirateCannonballsShot == 0) {
_local11 = 2500;
pnlOutcome.tfAccuracyBonusTtl.text = "All ammo saved:";
pnlOutcome.tfAccuracyBonus.text = "**2500**";
} else if (_local14 >= 0.7) {
_local11 = Math.round(((main.player.currentLevel + 1) * 1000) * _local14);
pnlOutcome.tfAccuracyBonusTtl.text = "Accuracy bonus:";
pnlOutcome.tfAccuracyBonus.text = _local11.toString();
} else {
_local11 = 0;
pnlOutcome.tfAccuracyBonusTtl.text = "No accuracy bonus.";
pnlOutcome.tfAccuracyBonus.text = "0";
}
pnlOutcome.tfGoldEarned.text = goldPlunderedOnLevel + _local11;
main.player.setScore(main.player.getScore() + _local11);
main.player.setGold(main.player.getGold() + _local11);
pnlOutcome.tfTotalScore.text = main.player.getScore().toString();
pnlOutcome.btnOk.onPress = function () {
if (vThis.status == vThis.ST_OVER_IDLE) {
vThis.status = vThis.ST_CLOSING;
vThis.timer = 0;
if (vThis.main.player.currentLevel == (vThis.main.staticData.levels.length - 1)) {
vThis.main.nextScreen = vThis.main.SCR_ENDGAME;
} else {
vThis.main.nextScreen = vThis.main.SCR_UPGRADES;
}
vThis.main.player.currentLevel++;
}
};
} else {
pnlOutcome = main.mcRoot.attachMovie("outcomePanelDefeat", "pnlOutcome", com.gameInABottle.games.cursedWinds.constants.Z.LEVELOUTCOMEPANEL);
pnlOutcome.tfCause.text = ((pirateShip.hp < 1) ? "Your ship has been destroyed." : "You have been killed.");
pnlOutcome.btnOk.onPress = function () {
if (vThis.status == vThis.ST_OVER_IDLE) {
vThis.status = vThis.ST_CLOSING;
vThis.timer = 0;
vThis.main.nextScreen = vThis.main.SCR_MAINMENU;
}
};
pnlOutcome.tfFinalScore.text = main.player.getScore().toString();
pnlOutcome.creditbtn.onRelease = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_CREDITS;
vThis.main.sndTickPress.start();
}
};
pnlOutcome.creditbtn.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
pnlOutcome.btnSubmit.onRelease = function () {
if (vThis.status == vThis.ST_OVER_IDLE) {
if (vThis.pnlOutcome.tfName.text != "") {
vThis.main.sndTickPress.start();
var _local3 = new LoadVars();
var _local4 = new LoadVars();
var _local2 = new LoadVars();
_local2.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
_local4.onHTTPStatus = function (pStatus) {
vThis.pnlOutcome.mcServerStatus.gotoAndStop(3);
};
_local3.name = vThis.pnlOutcome.tfName.text;
_local3.score = vThis.main.player.getScore();
_local3.chk = vThis.main.player.calculateHighScoreChecksum(vThis.pnlOutcome.tfName.text, vThis.main.player.getScore(), vThis.main.player.currentLevel, vThis.main.player.difficulty);
_local3.level = vThis.main.player.currentLevel;
_local3.difficulty = vThis.main.player.difficulty;
_local2.score = _local3.score;
_local2.score2 = _root.earl223(String(_local3.score));
_local2.gamer = _root.gameID;
_local2.id = random(9999999);
_local2.toString();
_local2.sendAndLoad("http://www0.freeonlinegames.com/scoreboard/score_c.php", _local2, "POST");
}
}
};
pnlOutcome.btnSubmit.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
pnlOutcome._x = 133;
pnlOutcome._y = -500;
} else if (timer < 50) {
pnlOutcome._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(timer - 20, -250, 408, 30);
} else if (timer == 50) {
status = ST_OVER_IDLE;
}
} else if (status == ST_CLOSING) {
pnlOutcome._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(timer, 158, -408, 30);
if (timer > 30) {
status = ST_IDLE;
main.mcwRoot.mcIngameDoor.gotoAndPlay(42);
main.sndIngameDoorClose.start();
screenStatus = SCRST_DISAPPEARING;
}
} else if (status == ST_OVER_IDLE) {
}
}
function returnToMainMenu() {
status = ST_IDLE;
main.mcwRoot.mcIngameDoor.gotoAndPlay(42);
main.sndIngameDoorClose.start();
screenStatus = SCRST_DISAPPEARING;
main.nextScreen = main.SCR_MAINMENU;
}
function destroyShip(pShip) {
var _local2 = 0;
while (_local2 < enemyShips.length) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]) == pShip) {
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).infoPanel.removeMovieClip();
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).battleWheel.removeMovieClip();
enemyShips[_local2].mc.removeMovieClip();
enemyShips.splice(_local2, 1);
checkForGameContinuity();
}
_local2++;
}
}
function checkForGameContinuity() {
var _local4 = true;
var _local6 = true;
var _local2 = 0;
while (_local2 < enemyShips.length) {
if (((com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).ST_AI_PLUNDERED) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).ST_AI_WRECK)) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).ST_AI_DISAPPEARING)) {
_local4 = false;
if (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).hp > (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).hpMax * 0.3)) {
_local6 = false;
}
}
_local2++;
}
if (shipDatas.length < 1) {
if (_local4) {
var _local5 = false;
_local2 = 0;
while (_local2 < enemyShips.length) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).status == com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).ST_AI_WRECK) {
com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).status = com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local2]).ST_AI_PLUNDERED;
_local5 = true;
}
_local2++;
}
if (_local5) {
main.sndPlunder.start();
}
}
if (enemyShips.length < 1) {
endGameWithVictory();
}
} else if (_local4 || (_local6)) {
var _local3 = 999999999 /* 0x3B9AC9FF */;
_local2 = 0;
while (_local2 < shipDatas.length) {
if (com.gameInABottle.games.cursedWinds.entity.ShipData(shipDatas[_local2]).spawnTime < _local3) {
_local3 = com.gameInABottle.games.cursedWinds.entity.ShipData(shipDatas[_local2]).spawnTime;
}
_local2++;
}
timer = _local3;
}
}
function createPirateCannonball(pX, pY, pSpeedX, pSpeedY, pFirepower) {
var _local3 = new com.gameInABottle.games.cursedWinds.entity.Cannonball(pX, pY, pSpeedX, pSpeedY, _root.attachMovie("mcCannonball", "cannonball" + currentCannonballZ, currentCannonballZ, null), pFirepower, pirateShip);
currentCannonballZ++;
if (currentCannonballZ > (com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000)) {
currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
pirateCannonballs.push(_local3);
main.vfxEngine.createWhiteSmoke(pX, pY);
if (flagMakeCannonSound) {
flagMakeCannonSound = false;
main["sndCannon" + (Math.floor(Math.random() * 12) + 1)].start();
} else {
flagMakeCannonSound = true;
}
pirateCannonballsShot++;
}
function createEnemyCannonball(pX, pY, pSpeedX, pSpeedY, pFirepower, pOrigin) {
var _local3 = new com.gameInABottle.games.cursedWinds.entity.Cannonball(pX, pY, pSpeedX, pSpeedY, _root.attachMovie("mcCannonball", "cannonball" + currentCannonballZ, currentCannonballZ, null), pFirepower, pOrigin);
currentCannonballZ++;
if (currentCannonballZ > (com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000)) {
currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
enemyCannonballs.push(_local3);
main.vfxEngine.createWhiteSmoke(pX, pY);
if (flagMakeCannonSound) {
flagMakeCannonSound = false;
main["sndCannon" + (Math.floor(Math.random() * 6) + 7)].start();
} else {
flagMakeCannonSound = true;
}
}
function createFireworkRocket(pX, pY, pRotation) {
var _local3 = new com.gameInABottle.games.cursedWinds.entity.FireworkRocket(pX, pY, pRotation, _root.attachMovie("mcFireworkRocket", "mcFireworkRocket" + currentCannonballZ, currentCannonballZ));
currentCannonballZ++;
if (currentCannonballZ > (com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000)) {
currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
fireworkRockets.push(_local3);
main.vfxEngine.createWhiteSmoke(pX, pY);
}
function setEngagementLevel(pNum) {
pirateShipEngagementLevel = Math.max(0, Math.min(5, pirateShipEngagementLevel + pNum));
if ((pirateShipEngagementLevel > 0) && (!isEngagedSoundPlaying)) {
isEngagedSoundPlaying = true;
main.sndCloseCombat.start(0, 9999);
} else if ((pirateShipEngagementLevel == 0) && (isEngagedSoundPlaying)) {
isEngagedSoundPlaying = false;
main.sndCloseCombat.stop();
}
}
function avoidShipCollision() {
var _local3 = 0;
while (_local3 < enemyShips.length) {
var _local2 = 0;
while (_local2 < enemyShips.length) {
if (_local3 != _local2) {
var _local5 = Math.sqrt(((enemyShips[_local3].x - enemyShips[_local2].x) * (enemyShips[_local3].x - enemyShips[_local2].x)) + ((2.5 * (enemyShips[_local3].y - enemyShips[_local2].y)) * (enemyShips[_local3].y - enemyShips[_local2].y)));
var _local4 = ((_local5 > 60) ? 0 : (((60 - _local5) / 60) * 1.5));
if (_local4 > 0) {
if (enemyShips[_local3].y > enemyShips[_local2].y) {
enemyShips[_local3].y = enemyShips[_local3].y + _local4;
enemyShips[_local2].y = enemyShips[_local2].y - _local4;
} else {
enemyShips[_local3].y = enemyShips[_local3].y - _local4;
enemyShips[_local2].y = enemyShips[_local2].y + _local4;
}
}
}
_local2++;
}
_local3++;
}
}
function activateFireworkRockets() {
if (fireworkRocketsLoadedLevel == 100) {
fireworkRocketsLoadedLevel = 0;
fireworkRocketsLoadSpeed = fireworkRocketsLoadSpeed * 0.7;
pirateShip.isFiringFireworkRockets = true;
pirateShip.fireworkRocketPacketsToFire = 6;
main.sndFireworksLaunch.start();
fireworkBlastSoundStep = 0;
}
}
function activateVoiceOfCalypso() {
if (voiceOfCalypsoLoadedLevel == 100) {
voiceOfCalypsoLoadedLevel = 0;
voiceOfCalypsoLoadSpeed = voiceOfCalypsoLoadSpeed * 0.8;
main.sndVoiceOfCalypso.start();
calypsoWave = new com.gameInABottle.games.cursedWinds.entity.CalypsoWave(pirateShip.x, pirateShip.y, _root.attachMovie("calypso", "calypso", com.gameInABottle.games.cursedWinds.constants.Z.CALYPSO));
}
}
function activateSupportFire() {
if (supportFireLoadedLevel == 100) {
var _local4 = new Array();
var _local7 = 0;
while (_local7 < enemyShips.length) {
if ((((com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).ST_AI_DISAPPEARING) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).ST_AI_ENGAGED)) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).ST_AI_PLUNDERED)) && (com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).status != com.gameInABottle.games.cursedWinds.entity.Ship(enemyShips[_local7]).ST_AI_WRECK)) {
_local4.push(enemyShips[_local7]);
}
_local7++;
}
if (_local4.length < 1) {
return(undefined);
}
supportFireLoadedLevel = 0;
supportFireLoadSpeed = supportFireLoadSpeed * 0.73;
main.sndSupportFire.start();
var _local3 = 0;
_local7 = 0;
while (_local7 < levsSupportFire[main.player.levSupportFire]) {
var _local5 = 0;
var _local6 = 0;
if (Math.random() > 0.3) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(_local4[_local3]).rotation == 0) {
_local5 = ((_local4[_local3].x + (Math.random() * 140)) - 70) + 140;
} else if (com.gameInABottle.games.cursedWinds.entity.Ship(_local4[_local3]).rotation == 180) {
_local5 = ((_local4[_local3].x + (Math.random() * 140)) - 70) - 140;
} else {
_local5 = (_local4[_local3].x + (Math.random() * 220)) - 110;
}
} else {
_local5 = (_local4[_local3].x + (Math.random() * 260)) - 130;
}
if (Math.random() > 0.7) {
_local6 = (_local4[_local3].y + (Math.random() * 160)) - 80;
} else {
_local6 = (_local4[_local3].y + (Math.random() * 120)) - 60;
}
if ((_local5 > 620) || (_local5 < 20)) {
_local5 = (Math.random() * 600) + 20;
}
var _local8 = new com.gameInABottle.games.cursedWinds.entity.BombardShell(_local5, _local6, _root.attachMovie("mcBombardShell", "mcBombardShell" + currentCannonballZ, currentCannonballZ));
currentCannonballZ++;
if (currentCannonballZ > (com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000)) {
currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
bombardShells.push(_local8);
_local3++;
if (_local3 > (_local4.length - 1)) {
_local3 = 0;
}
_local7++;
}
}
}
function summonCursedWind() {
if ((cursedWind == null) && (status == ST_PLAYING)) {
cursedWind = new com.gameInABottle.games.cursedWinds.entity.CursedWind((pirateShip.x + (Math.random() * 150)) - 75, _root.attachMovie("cursedWind", "cursedWind", com.gameInABottle.games.cursedWinds.constants.Z.CURSEDWIND));
}
}
function loadSpecials() {
if (main.player.levVoiceOfCalypso > 0) {
voiceOfCalypsoLoadedLevel = Math.min(100, voiceOfCalypsoLoadedLevel + voiceOfCalypsoLoadSpeed);
}
if (main.player.levFireworkRockets > 0) {
fireworkRocketsLoadedLevel = Math.min(100, fireworkRocketsLoadedLevel + fireworkRocketsLoadSpeed);
}
if (main.player.levSupportFire > 0) {
supportFireLoadedLevel = Math.min(100, supportFireLoadedLevel + supportFireLoadSpeed);
}
}
var ST_PLAYING = "ST_PLAYING";
var ST_OVER_PANEL_APPEARING = "ST_OVER_PANEL_APPEARING";
var ST_OVER_IDLE = "ST_OVER_IDLE";
var ST_CLOSING = "ST_CLOSING";
var ST_IDLE = "ST_IDLE";
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 809 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.Ship] Frame 0
class com.gameInABottle.games.cursedWinds.entity.Ship
{
var ctrl, speed, turnSpeed, reloadedness, isOwnedByPlayer, cannonsLoadedNum, isFiring, turnSpeedMax, speedMax, rotation, x, y, isFiringFireworkRockets, mc, fireworkRocketPacketsToFire, cannonballSpeed, firePower, reloadSpeed, crewNum, cannonsNum, data, status, infoPanel, goldCarried, battleWheel, hp, armor, speedMaxOriginal, hpMax;
function Ship (pCtrl) {
ctrl = pCtrl;
speed = 0;
turnSpeed = 0;
reloadedness = 120;
}
function doEnterFrame() {
if (isOwnedByPlayer) {
if ((Key.isDown(32) || (Key.isDown(17))) || (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.F))) {
if (cannonsLoadedNum > 0) {
isFiring = true;
} else {
isFiring = false;
}
} else {
isFiring = false;
}
if (Key.isDown(37) || (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.A))) {
turnSpeed = Math.max(-turnSpeedMax, turnSpeed - 0.08);
} else if (Key.isDown(39) || (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.D))) {
turnSpeed = Math.min(turnSpeedMax, turnSpeed + 0.08);
} else {
var _local9 = Math.abs(Math.max(0, turnSpeed - 0.08));
if (turnSpeed < 0) {
turnSpeed = -_local9;
} else {
turnSpeed = _local9;
}
}
if (Key.isDown(38) || (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.W))) {
speed = Math.min(speedMax, speed + 0.08);
} else {
speed = Math.max(0, speed - 0.08);
}
if (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.NUM_1)) {
ctrl.activateSupportFire();
}
if (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.NUM_2)) {
ctrl.activateVoiceOfCalypso();
}
if (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.NUM_3)) {
ctrl.activateFireworkRockets();
}
rotation = rotation + turnSpeed;
if (rotation > 180) {
rotation = rotation - 360;
} else if (rotation < -180) {
rotation = rotation + 360;
}
x = x + (speed * Math.cos((rotation * Math.PI) / 180));
y = y + (speed * Math.sin((rotation * Math.PI) / 180));
if (x > 550) {
x = x - ((x - 550) * 0.08);
}
if (x < 90) {
x = x + ((90 - x) * 0.08);
}
if (y > 420) {
y = y - ((y - 420) * 0.12);
}
if (y < 180) {
y = y + ((180 - y) * 0.007);
}
if (y < 40) {
y = y + ((40 - y) * 0.08);
}
if (isFiringFireworkRockets) {
var _local2 = 0;
while (_local2 < ctrl.main.player.levFireworkRockets) {
var _local8 = 0;
var _local7 = 0;
var _local3 = 0;
var _local10 = (Math.random() * 0.6) - 0.3;
var _local4 = (ctrl.isPirateshipShootingUp ? 1 : -1);
if (rotation < -90) {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
_local3 = (ctrl.isPirateshipShootingUp ? (rotation + 90) : (rotation - 90));
} else if (rotation < 0) {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
_local3 = (ctrl.isPirateshipShootingUp ? (rotation - 90) : (rotation + 90));
} else if (rotation < 90) {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
_local3 = (ctrl.isPirateshipShootingUp ? (rotation - 90) : (rotation + 90));
} else {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
_local3 = (ctrl.isPirateshipShootingUp ? (rotation + 90) : (rotation - 90));
}
ctrl.createFireworkRocket(_local8, _local7, _local3);
_local2++;
}
fireworkRocketPacketsToFire--;
if (fireworkRocketPacketsToFire < 1) {
isFiringFireworkRockets = false;
}
}
if (isFiring) {
var _local8 = 0;
var _local7 = 0;
var _local12 = 0;
var _local11 = 0;
var _local10 = (Math.random() * 0.6) - 0.3;
var _local4 = (ctrl.isPirateshipShootingUp ? 1 : -1);
if (rotation < -90) {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
vSpeedX = (-1 * (cannonballSpeed + 0.5)) * Math.sin((rotation * Math.PI) / 180);
vSpeedY = (cannonballSpeed + 0.5) * Math.cos((rotation * Math.PI) / 180);
} else if (rotation < 0) {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
vSpeedX = (cannonballSpeed + 0.5) * Math.sin((rotation * Math.PI) / 180);
vSpeedY = (-(cannonballSpeed + 0.5)) * Math.cos((rotation * Math.PI) / 180);
} else if (rotation < 90) {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) + (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
vSpeedX = (cannonballSpeed + 0.5) * Math.sin((rotation * Math.PI) / 180);
vSpeedY = (-(cannonballSpeed + 0.5)) * Math.cos((rotation * Math.PI) / 180);
} else {
_local8 = (x + ((((mc._xscale / 100) * mc._width) * _local10) * Math.cos((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = (y + ((((mc._xscale / 100) * mc._width) * _local10) * Math.sin((rotation * Math.PI) / 180))) - (((((mc._xscale / 100) * _local4) * mc.hull._height) / 2) * (-Math.cos((rotation * Math.PI) / 180)));
vSpeedX = (-(cannonballSpeed + 0.5)) * Math.sin((rotation * Math.PI) / 180);
vSpeedY = (cannonballSpeed + 0.5) * Math.cos((rotation * Math.PI) / 180);
}
vSpeedX = vSpeedX * _local4;
vSpeedY = vSpeedY * _local4;
ctrl.createPirateCannonball(_local8, _local7, vSpeedX, vSpeedY, firePower);
cannonsLoadedNum--;
} else if (Math.random() < 0.4) {
if ((Math.random() * 1000) < (crewNum * reloadSpeed)) {
cannonsLoadedNum = Math.min(cannonsLoadedNum + 1, cannonsNum);
}
}
} else {
if (y < 0) {
y = y + 0.4;
}
y = y + Math.max(0.07, (y / 480) * data.deltaY);
if (status == ST_AI_DISAPPEARING) {
mc._alpha = mc._alpha - 0.65;
if (mc._alpha < 1) {
ctrl.destroyShip(this);
}
}
if (status == ST_AI_PLUNDERED) {
infoPanel.goldenFrame._visible = true;
var _local6 = Math.max(0, Math.floor(goldCarried * 0.2));
if (_local6 < 10) {
_local6 = goldCarried;
}
goldCarried = goldCarried - _local6;
infoPanel.tfGold.text = goldCarried;
ctrl.main.player.setScore(ctrl.main.player.getScore() + _local6);
ctrl.main.player.setGold(ctrl.main.player.getGold() + _local6);
ctrl.goldPlunderedOnLevel = ctrl.goldPlunderedOnLevel + _local6;
if (goldCarried == 0) {
status = ST_AI_DISAPPEARING;
mc.hull.gotoAndStop(6);
mc.mast1._visible = false;
mc.mast2._visible = false;
mc.mast3._visible = false;
mc.sailFront._visible = false;
mc.sailRear._visible = false;
if (data.hullType == 1) {
var _local2 = 0;
while (_local2 < 5) {
ctrl.main.vfxEngine.createBlast((x + (Math.random() * 20)) - 10, (y + (Math.random() * 20)) - 10);
_local2++;
}
} else if (data.hullType == 2) {
var _local2 = 0;
while (_local2 < 6) {
ctrl.main.vfxEngine.createBlast((x + (Math.random() * 28)) - 14, (y + (Math.random() * 28)) - 14);
_local2++;
}
} else if (data.hullType == 3) {
var _local2 = 0;
while (_local2 < 7) {
ctrl.main.vfxEngine.createBlast((x + (Math.random() * 34)) - 17, (y + (Math.random() * 34)) - 17);
_local2++;
}
} else if (data.hullType == 4) {
var _local2 = 0;
while (_local2 < 9) {
ctrl.main.vfxEngine.createBlast((x + (Math.random() * 40)) - 20, (y + (Math.random() * 40)) - 20);
_local2++;
}
} else if (data.hullType == 5) {
var _local2 = 0;
while (_local2 < 15) {
ctrl.main.vfxEngine.createBlast((x + (Math.random() * 60)) - 30, (y + (Math.random() * 60)) - 30);
_local2++;
}
}
ctrl.main.vfxEngine.createInfoPanelBlast(infoPanel._x, infoPanel._y);
ctrl.main.sndBlastBig.start();
infoPanel.removeMovieClip();
}
}
if ((y > 480) && (status != ST_AI_DISAPPEARING)) {
status = ST_AI_DISAPPEARING;
ctrl.main.vfxEngine.createInfoPanelBlast(infoPanel._x, infoPanel._y);
infoPanel.removeMovieClip();
}
if (Math.sqrt(((x - ctrl.pirateShip.x) * (x - ctrl.pirateShip.x)) + ((y - ctrl.pirateShip.y) * (y - ctrl.pirateShip.y))) < 70) {
if ((status == ST_AI_PLUNDERED) || (status == ST_AI_DISAPPEARING)) {
} else if (status == ST_AI_WRECK) {
ctrl.main.sndPlunder.start();
status = ST_AI_PLUNDERED;
} else if (status != ST_AI_ENGAGED) {
status = ST_AI_ENGAGED;
ctrl.setEngagementLevel(1);
infoPanel.redFrame._visible = true;
}
}
if (status == ST_AI_ENGAGED) {
ctrl.setEngagementLevel(2);
if (Math.sqrt(((x - ctrl.pirateShip.x) * (x - ctrl.pirateShip.x)) + ((y - ctrl.pirateShip.y) * (y - ctrl.pirateShip.y))) > 110) {
if (((rotation == 0) || (rotation == 180)) || (rotation == -180)) {
status = ST_AI_MOVING;
} else {
status = ST_AI_TURNING;
}
ctrl.setEngagementLevel(-1);
infoPanel.redFrame._visible = false;
} else {
x = x + Math.max(-0.9, Math.min(0.9, 0.025 * (ctrl.pirateShip.x - x)));
sufferEngagedDamage();
ctrl.pirateShip.sufferEngagedDamage();
}
}
if (((status != ST_AI_WRECK) && (status != ST_AI_PLUNDERED)) && (status != ST_AI_DISAPPEARING)) {
if (y > (ctrl.pirateShip.y - 50)) {
y = y - Math.min((50 - (ctrl.pirateShip.y - y)) / 500, 0.4);
}
}
if ((data.sailType == data.ST_BOSS) && (ctrl.main.player.currentLevel == 14)) {
y = Math.min(110, y);
}
if (status == ST_AI_INCOMING) {
y = y + speedMax;
if (y > 75) {
status = ST_AI_TURNING_TO_H;
}
}
if (status == ST_AI_SHOOTING) {
reloadedness = 0;
var _local10 = 0.6 * (Math.random() - 0.3);
var _local8 = 0;
var _local7 = 0;
if ((rotation < 90) && (rotation > -90)) {
_local8 = (x + ((mc._width * Math.cos((rotation * Math.PI) / 180)) * _local10)) - ((mc.hull._height / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = y + ((mc.hull._height / 2) * Math.cos((rotation * Math.PI) / 180));
var vSpeedX = (cannonballSpeed * Math.sin((rotation * Math.PI) / 180));
var vSpeedY = (cannonballSpeed * Math.cos((rotation * Math.PI) / 180));
} else {
_local8 = (x + ((mc._width * Math.cos((rotation * Math.PI) / 180)) * _local10)) - ((mc.hull._height / 2) * Math.sin((rotation * Math.PI) / 180));
_local7 = y - ((mc.hull._height / 2) * Math.cos((rotation * Math.PI) / 180));
var vSpeedX = (cannonballSpeed * Math.sin((rotation * Math.PI) / 180));
var vSpeedY = (cannonballSpeed * (-Math.cos((rotation * Math.PI) / 180)));
}
ctrl.createEnemyCannonball(_local8, _local7, vSpeedX, vSpeedY, firePower, this);
cannonsLoadedNum--;
if (cannonsLoadedNum < 1) {
status = ST_AI_MOVING;
}
} else {
reloadedness++;
if ((Math.random() * 1000) < (crewNum * reloadSpeed)) {
if (Math.random() < 0.4) {
cannonsLoadedNum = Math.min(cannonsLoadedNum + 1, cannonsNum);
}
}
}
if ((status == ST_AI_MOVING) || (status == ST_AI_SHOOTING)) {
speed = Math.min(speed + 0.04, speedMax);
} else {
speed = Math.max(speed - 0.05, 0);
}
if ((((status == ST_AI_MOVING) || (status == ST_AI_SHOOTING)) || (status == ST_AI_TURNING)) || (status == ST_AI_ENGAGED)) {
if (rotation > 90) {
x = x - speed;
if (x < data.xMin) {
status = ST_AI_TURNING;
}
} else {
x = x + speed;
if (x > data.xMax) {
status = ST_AI_TURNING;
}
}
}
if (status == ST_AI_MOVING) {
if ((Math.random() < 0.055) || ((data.sailType == data.ST_BOSS) && (ctrl.main.player.currentLevel == 14))) {
if ((((reloadedness > 119) && (cannonsLoadedNum > 0)) && (cannonsLoadedNum == cannonsNum)) && (Math.abs(x - ctrl.pirateShip.x) < Math.min(55, (ctrl.pirateShip.y - y) + 10))) {
if (y < ctrl.pirateShip.y) {
var _local5 = true;
var _local2 = 0;
while (_local2 < ctrl.enemyShips.length) {
if ((ctrl.enemyShips[_local2] != this) && (Math.abs(x - ctrl.enemyShips[_local2].x) < Math.min(55, (ctrl.enemyShips[_local2].y - y) + 10))) {
_local5 = false;
}
_local2++;
}
if (_local5) {
status = ST_AI_SHOOTING;
}
}
}
}
}
if (status == ST_AI_TURNING) {
turnSpeed = Math.min(turnSpeed + 1, turnSpeedMax);
if (x < data.xMin) {
rotation = rotation - turnSpeed;
if (rotation < 0) {
rotation = 0;
turnSpeed = 0;
status = ST_AI_MOVING;
}
} else {
rotation = rotation + turnSpeed;
if (rotation > 180) {
rotation = 180;
turnSpeed = 0;
status = ST_AI_MOVING;
}
}
}
if (status == ST_AI_TURNING_TO_H) {
turnSpeed = Math.min(turnSpeed + 1, turnSpeedMax);
if ((rotation < 0) && (rotation > -90)) {
rotation = rotation + turnSpeed;
if (rotation > 0) {
rotation = 0;
turnSpeed = 0;
status = ST_AI_MOVING;
}
} else if (rotation < 90) {
rotation = rotation - turnSpeed;
if (rotation < 0) {
rotation = 0;
turnSpeed = 0;
status = ST_AI_MOVING;
}
} else {
rotation = rotation + turnSpeed;
if (rotation > 180) {
rotation = 180;
turnSpeed = 0;
status = ST_AI_MOVING;
}
}
}
}
render();
}
function render() {
mc._x = x;
mc._y = y;
mc._rotation = rotation;
if ((rotation >= 0) && (rotation < 90)) {
mc.sailFront._yscale = -(90 - rotation);
} else if ((rotation >= 90) && (rotation <= 180)) {
mc.sailFront._yscale = -90 + rotation;
} else if ((rotation > -90) && (rotation < 0)) {
mc.sailFront._yscale = (-(-90 + (rotation + 90))) - 90;
} else {
mc.sailFront._yscale = 90 - (90 + (rotation + 90));
}
if ((rotation > -165) && (rotation < -15)) {
mc.mast1.sail1._xscale = 40;
mc.mast1.sail2._xscale = 40;
mc.mast2.sail1._xscale = 40;
mc.mast2.sail2._xscale = 40;
mc.mast3.sail1._xscale = 40;
mc.mast3.sail2._xscale = 40;
}
if ((rotation <= 0) && (rotation >= -15)) {
mc.mast1._rotation = rotation + 15;
mc.mast2._rotation = rotation + 15;
mc.mast3._rotation = rotation + 15;
mc.mast1.sail1._xscale = 100 + (4 * rotation);
mc.mast1.sail2._xscale = 100 + (4 * rotation);
mc.mast2.sail1._xscale = 100 + (4 * rotation);
mc.mast2.sail2._xscale = 100 + (4 * rotation);
mc.mast3.sail1._xscale = 100 + (4 * rotation);
mc.mast3.sail2._xscale = 100 + (4 * rotation);
} else if ((rotation >= 0) && (rotation <= 15)) {
mc.mast1._rotation = 15 - rotation;
mc.mast2._rotation = 15 - rotation;
mc.mast3._rotation = 15 - rotation;
} else if ((rotation >= 165) && (rotation <= 180)) {
mc.mast1._rotation = 165 - rotation;
mc.mast2._rotation = 165 - rotation;
mc.mast3._rotation = 165 - rotation;
} else if ((rotation <= -165) && (rotation >= -180)) {
mc.mast1._rotation = 165 + rotation;
mc.mast2._rotation = 165 + rotation;
mc.mast3._rotation = 165 + rotation;
mc.mast1.sail1._xscale = 100 - (4 * (rotation + 180));
mc.mast1.sail2._xscale = 100 - (4 * (rotation + 180));
mc.mast2.sail1._xscale = 100 - (4 * (rotation + 180));
mc.mast2.sail2._xscale = 100 - (4 * (rotation + 180));
mc.mast3.sail1._xscale = 100 - (4 * (rotation + 180));
mc.mast3.sail2._xscale = 100 - (4 * (rotation + 180));
} else {
mc.mast1._rotation = 0;
mc.mast2._rotation = 0;
mc.mast3._rotation = 0;
}
mc.mast1.flag._rotation = (-mc.mast1._rotation) - mc._rotation;
mc.mast2.flag._rotation = (-mc.mast1._rotation) - mc._rotation;
mc.mast3.flag._rotation = (-mc.mast1._rotation) - mc._rotation;
infoPanel._x = Math.floor(mc._x + infoPanelDistancesX[data.hullType]);
infoPanel._y = Math.floor(mc._y + infoPanelDistancesY[data.hullType]);
battleWheel._x = x;
battleWheel._y = y;
if ((isOwnedByPlayer && (ctrl.pirateShipEngagementLevel > 0)) || ((!isOwnedByPlayer) && (status == ST_AI_ENGAGED))) {
battleWheel._visible = true;
battleWheel._alpha = Math.min(100, battleWheel._alpha + 5);
} else {
battleWheel._alpha = Math.max(0, battleWheel._alpha - 5);
if (battleWheel._alpha < 1) {
battleWheel._visible = false;
}
}
}
function sufferDamage(pFirepower) {
if (isOwnedByPlayer) {
if (ctrl.main.player.difficulty == 0) {
hp = Math.max(0, hp - Math.max(3, Math.floor((((Math.random() * 9) + 4) + (3 * pFirepower)) - (5 * armor))));
} else if (ctrl.main.player.difficulty == 0) {
hp = Math.max(0, hp - Math.max(4, Math.floor((((Math.random() * 12) + 5) + (4 * pFirepower)) - (4 * armor))));
} else {
hp = Math.max(0, hp - Math.max(5, Math.floor((((Math.random() * 15) + 6) + (5 * pFirepower)) - (3 * armor))));
}
} else {
ctrl.loadSpecials();
if (ctrl.main.player.difficulty == 0) {
hp = Math.max(0, hp - Math.max(14, Math.floor((((Math.random() * 31) + 15) + (9 * pFirepower)) - (2 * armor))));
} else if (ctrl.main.player.difficulty == 0) {
hp = Math.max(0, hp - Math.max(11, Math.floor((((Math.random() * 28) + 12) + (7 * pFirepower)) - (2 * armor))));
} else {
hp = Math.max(0, hp - Math.max(8, Math.floor((((Math.random() * 25) + 9) + (5 * pFirepower)) - (2 * armor))));
}
}
if (isOwnedByPlayer) {
if (ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.94) {
crewNum = Math.max(0, crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.98) {
cannonsNum = Math.max(0, cannonsNum - 1);
cannonsLoadedNum = Math.max(0, cannonsLoadedNum - 1);
}
} else if (ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.89) {
crewNum = Math.max(0, crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.96) {
cannonsNum = Math.max(0, cannonsNum - 1);
cannonsLoadedNum = Math.max(0, cannonsLoadedNum - 1);
}
} else {
if (Math.random() > 0.83) {
crewNum = Math.max(0, crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.93) {
cannonsNum = Math.max(0, cannonsNum - 1);
cannonsLoadedNum = Math.max(0, cannonsLoadedNum - 1);
}
}
} else {
if (Math.random() > 0.67) {
if (crewNum > 20) {
crewNum = Math.max(0, crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
} else if (crewNum > 7) {
crewNum = Math.max(0, crewNum - 1);
}
}
if (Math.random() > 0.92) {
cannonsNum = Math.max(0, cannonsNum - 1);
cannonsLoadedNum = Math.max(0, cannonsLoadedNum - 1);
}
}
if (!isOwnedByPlayer) {
if (Math.random() > 0.7) {
goldCarried = Math.max(0, goldCarried - Math.round(Math.random() * 6));
}
if (Math.random() > 0.7) {
if ((data.sailType == data.ST_BOSS) && (ctrl.main.player.currentLevel == 14)) {
} else {
speedMax = speedMax * 0.982;
turnSpeedMax = turnSpeedMax * 0.993;
if ((speedMax <= (0.8 * speedMaxOriginal)) && (mc.mast3._currentframe == 1)) {
mc.mast3.gotoAndPlay(2);
}
if ((speedMax <= (0.6 * speedMaxOriginal)) && (mc.sailFront._visible == true)) {
mc.sailFront._visible = false;
}
if ((speedMax <= (0.46 * speedMaxOriginal)) && (mc.mast2._currentframe == 1)) {
mc.mast2.gotoAndPlay(2);
}
}
}
}
if (hp < 1) {
if (status == ST_AI_ENGAGED) {
infoPanel.redFrame._visible = false;
ctrl.setEngagementLevel(-1);
}
infoPanel.plate.gotoAndStop(2);
infoPanel.tfCrew._visible = false;
infoPanel.tfCannons._visible = false;
infoPanel.tfShip._visible = false;
hp = 0;
goldCarried = Math.round(goldCarried * 0.95);
mc.hull.gotoAndStop(6);
mc.sailFront._visible = false;
mc.sailRear._visible = false;
mc.mast1._visible = false;
mc.mast2._visible = false;
mc.mast3._visible = false;
var _local2 = 0;
while (_local2 < 7) {
ctrl.main.vfxEngine.createBlast((x + (Math.random() * 30)) - 15, (y + (Math.random() * 30)) - 15);
_local2++;
}
if (isOwnedByPlayer) {
ctrl.endGameWithDefeat();
} else {
status = ST_AI_WRECK;
ctrl.main.sndBlastBig.start();
ctrl.checkForGameContinuity();
}
} else if (hp < (hpMax * 0.2)) {
mc.hull.gotoAndStop(5);
} else if (hp < (hpMax * 0.4)) {
mc.hull.gotoAndStop(4);
} else if (hp < (hpMax * 0.6)) {
mc.hull.gotoAndStop(3);
} else if (hp < (hpMax * 0.8)) {
mc.hull.gotoAndStop(2);
}
if ((hp > 0) && (hp < (hpMax * 0.3))) {
ctrl.checkForGameContinuity();
}
if (!isOwnedByPlayer) {
infoPanel.tfGold.text = goldCarried;
infoPanel.tfCrew.text = crewNum;
infoPanel.tfCannons.text = cannonsNum;
infoPanel.tfShip.text = hp;
if (hp < (hpMax * 0.3)) {
infoPanel.tfShip.textColor = 16711680 /* 0xFF0000 */;
}
}
if (isOwnedByPlayer) {
if (crewNum < 1) {
ctrl.endGameWithDefeat();
}
}
ctrl.main["sndBlast" + Math.floor(Math.random() * 3)].start();
if ((((data.sailType == data.ST_BOSS) && (ctrl.main.player.currentLevel == 14)) && (hp > 2000)) && (hp < 9900)) {
if ((ctrl.enemyShips.length < 2) || ((ctrl.enemyShips.length < 3) && (Math.random() < 0.005))) {
var _local3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
_local3.hullType = 2;
_local3.armorLevel = 6;
_local3.crewNumLevel = 6;
_local3.firePowerLevel = 6;
_local3.cannonsNumLevel = 6;
_local3.speedMaxLevel = 6;
_local3.turnSpeedMaxLevel = 6;
_local3.reloadSpeedLevel = 6;
_local3.sailType = _local3.ST_FINAL_MINION;
_local3.xMin = 80;
_local3.xMax = 560;
_local3.x = -300;
_local3.deltaY = 0.35;
_local3.goldCarried = 1000;
ctrl.createShip(_local3);
}
}
}
function sufferEngagedDamage() {
if (isOwnedByPlayer) {
if (Math.random() > 0.972) {
crewNum--;
if (crewNum < 1) {
ctrl.endGameWithDefeat();
}
}
} else if (Math.random() > 0.8) {
crewNum--;
infoPanel.tfCrew.text = crewNum;
if (crewNum < 1) {
ctrl.main.sndPlunder.start();
status = ST_AI_PLUNDERED;
ctrl.setEngagementLevel(-1);
infoPanel.redFrame._visible = false;
infoPanel.plate.gotoAndStop(2);
infoPanel.tfCrew._visible = false;
infoPanel.tfCannons._visible = false;
infoPanel.tfShip._visible = false;
}
}
}
function sufferCalypsoDamage(pFirepower) {
if (hp > 0) {
ctrl.main.vfxEngine.createCalypsoDebris(x, y);
if (ctrl.main.player.difficulty == 0) {
hp = Math.max(0, hp - Math.max(14, Math.floor(((Math.random() * 5) + 10) + (9 * pFirepower))));
} else if (ctrl.main.player.difficulty == 0) {
hp = Math.max(0, hp - Math.max(11, Math.floor(((Math.random() * 4) + 8) + (7 * pFirepower))));
} else {
hp = Math.max(0, hp - Math.max(8, Math.floor(((Math.random() * 3) + 6) + (5 * pFirepower))));
}
if (ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.94) {
crewNum = Math.max(0, crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.98) {
cannonsNum = Math.max(0, cannonsNum - 1);
cannonsLoadedNum = Math.max(0, cannonsLoadedNum - 1);
}
} else if (ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.89) {
crewNum = Math.max(0, crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.96) {
cannonsNum = Math.max(0, cannonsNum - 1);
cannonsLoadedNum = Math.max(0, cannonsLoadedNum - 1);
}
} else {
if (Math.random() > 0.83) {
crewNum = Math.max(0, crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.93) {
cannonsNum = Math.max(0, cannonsNum - 1);
cannonsLoadedNum = Math.max(0, cannonsLoadedNum - 1);
}
}
if (Math.random() > 0.7) {
if ((data.sailType == data.ST_BOSS) && (ctrl.main.player.currentLevel == 14)) {
} else {
speedMax = speedMax * 0.982;
turnSpeedMax = turnSpeedMax * 0.993;
if ((speedMax <= (0.8 * speedMaxOriginal)) && (mc.mast3._currentframe == 1)) {
mc.mast3.gotoAndPlay(2);
}
if ((speedMax <= (0.6 * speedMaxOriginal)) && (mc.sailFront._visible == true)) {
mc.sailFront._visible = false;
}
if ((speedMax <= (0.46 * speedMaxOriginal)) && (mc.mast2._currentframe == 1)) {
mc.mast2.gotoAndPlay(2);
}
}
}
if (hp < 1) {
if (status == ST_AI_ENGAGED) {
infoPanel.redFrame._visible = false;
ctrl.setEngagementLevel(-1);
}
infoPanel.plate.gotoAndStop(2);
infoPanel.tfCrew._visible = false;
infoPanel.tfCannons._visible = false;
infoPanel.tfShip._visible = false;
hp = 0;
goldCarried = Math.round(goldCarried * 0.95);
mc.hull.gotoAndStop(6);
mc.sailFront._visible = false;
mc.sailRear._visible = false;
mc.mast1._visible = false;
mc.mast2._visible = false;
mc.mast3._visible = false;
var _local2 = 0;
while (_local2 < 7) {
ctrl.main.vfxEngine.createBlast((x + (Math.random() * 30)) - 15, (y + (Math.random() * 30)) - 15);
_local2++;
}
status = ST_AI_WRECK;
ctrl.main.sndBlastBig.start();
ctrl.checkForGameContinuity();
} else if (hp < (hpMax * 0.2)) {
mc.hull.gotoAndStop(5);
} else if (hp < (hpMax * 0.4)) {
mc.hull.gotoAndStop(4);
} else if (hp < (hpMax * 0.6)) {
mc.hull.gotoAndStop(3);
} else if (hp < (hpMax * 0.8)) {
mc.hull.gotoAndStop(2);
}
if ((hp > 0) && (hp < (hpMax * 0.3))) {
ctrl.checkForGameContinuity();
}
infoPanel.tfGold.text = goldCarried;
infoPanel.tfCrew.text = crewNum;
infoPanel.tfCannons.text = cannonsNum;
infoPanel.tfShip.text = hp;
if (hp < (hpMax * 0.3)) {
infoPanel.tfShip.textColor = 16711680 /* 0xFF0000 */;
}
}
}
var infoPanelDistancesX = new Array(0, 40, 50, 60, 75, 90);
var infoPanelDistancesY = new Array(0, -40, -50, -60, -75, -90);
var ST_AI_ENGAGED = "ST_ENGAGED";
var ST_AI_MOVING = "ST_MOVING";
var ST_AI_TURNING = "ST_TURNING";
var ST_AI_TURNING_TO_H = "ST_TURNING_TO_H";
var ST_AI_INCOMING = "ST_AI_INCOMING";
var ST_AI_SHOOTING = "ST_AI_SHOOTING";
var ST_AI_WRECK = "ST_AI_WRECK";
var ST_AI_PLUNDERED = "ST_AI_PLUNDERED";
var ST_AI_DISAPPEARING = "ST_AI_DISAPPEARING";
}
Symbol 810 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.util.KeyCode] Frame 0
class com.gameInABottle.games.cursedWinds.util.KeyCode
{
function KeyCode () {
}
static var A = 65;
static var B = 66;
static var C = 67;
static var D = 68;
static var E = 69;
static var F = 70;
static var G = 71;
static var H = 72;
static var I = 73;
static var J = 74;
static var K = 75;
static var L = 76;
static var M = 77;
static var N = 78;
static var O = 79;
static var P = 80;
static var Q = 81;
static var R = 82;
static var S = 83;
static var T = 84;
static var U = 85;
static var V = 86;
static var W = 87;
static var X = 88;
static var Y = 89;
static var Z = 90;
static var NUM_0 = 48;
static var NUM_1 = 49;
static var NUM_2 = 50;
static var NUM_3 = 51;
static var NUM_4 = 52;
static var NUM_5 = 53;
static var NUM_6 = 54;
static var NUM_7 = 55;
static var NUM_8 = 56;
static var NUM_9 = 57;
}
Symbol 811 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.CursedWind] Frame 0
class com.gameInABottle.games.cursedWinds.entity.CursedWind
{
var x, y, mc, isSoundPlayed;
function CursedWind (pX, pMc) {
x = pX;
y = -200;
mc = pMc;
mc._x = x;
mc._y = y;
isSoundPlayed = false;
}
function doEnterFrame() {
y = y + 7;
mc._y = y;
}
}
Symbol 812 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.Whirlpool] Frame 0
class com.gameInABottle.games.cursedWinds.entity.Whirlpool
{
function Whirlpool () {
}
}
Symbol 813 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.CalypsoWave] Frame 0
class com.gameInABottle.games.cursedWinds.entity.CalypsoWave
{
var x, y, mc, r;
function CalypsoWave (pX, pY, pMc) {
x = pX;
y = pY;
mc = pMc;
mc._x = x;
mc._y = y;
mc.ring._xscale = 40;
mc.ring._yscale = 40;
}
function doEnterFrame() {
mc._alpha = mc._alpha - 1.3;
mc.ring._xscale = mc.ring._xscale + 7;
mc.ring._yscale = mc.ring._yscale + 7;
r = mc.ring._xscale / 2;
}
}
Symbol 814 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.Cannonball] Frame 0
class com.gameInABottle.games.cursedWinds.entity.Cannonball
{
var x, y, speedX, speedY, firepower, mc, originShip;
function Cannonball (pX, pY, pSpeedX, pSpeedY, pMc, pFirepower, pOrigin) {
x = pX;
y = pY;
speedX = pSpeedX;
speedY = pSpeedY;
firepower = pFirepower;
mc = pMc;
originShip = pOrigin;
}
function fly() {
x = x + speedX;
y = y + speedY;
mc._x = x;
mc._y = y;
}
}
Symbol 815 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.FireworkRocket] Frame 0
class com.gameInABottle.games.cursedWinds.entity.FireworkRocket
{
var x, y, rotation, speed, firepower, mc, fuel;
function FireworkRocket (pX, pY, pRotation, pMc) {
x = pX;
y = pY;
rotation = pRotation;
speed = (Math.random() * 3) + 2;
firepower = 15;
mc = pMc;
fuel = (Math.random() * 50) + 40;
}
function fly() {
fuel--;
rotation = rotation + ((Math.random() * 10) - 5);
y = y + (speed * Math.sin((rotation * Math.PI) / 180));
x = x + (speed * Math.cos((rotation * Math.PI) / 180));
mc._rotation = rotation + 90;
mc._x = x;
mc._y = y;
}
}
Symbol 816 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.entity.BombardShell] Frame 0
class com.gameInABottle.games.cursedWinds.entity.BombardShell
{
var x, y, targetY, speedY, firepower, mc;
function BombardShell (pTargetX, pTargetY, pMc) {
x = pTargetX;
y = (Math.random() * 400) + 700;
targetY = pTargetY;
speedY = -((Math.random() * 4) + 4);
firepower = 70;
mc = pMc;
}
function fly() {
y = y + speedY;
mc._x = x;
mc._y = y;
}
}
Symbol 817 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial
{
var main, mcw, screenStatus, screenStep, currentPage, turnPageDirection, turnPageStep, btnBackOutStep, btnNextOutStep, panelIn, panelOut;
function CtrlTutorial (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.btnDone.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_MAINMENU;
vThis.main.sndTickPress.start();
}
};
mcw.btnDone.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnNext.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
if ((vThis.turnPageDirection == 0) && (vThis.currentPage < vThis.PAGES_NUM)) {
vThis.turnPage(1);
vThis.main.sndTickPress.start();
}
}
};
mcw.btnNext.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnBack.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
if ((vThis.turnPageDirection == 0) && (vThis.currentPage > 1)) {
vThis.turnPage(-1);
vThis.main.sndTickPress.start();
}
}
};
mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mcPanelA._y = -480;
mcw.mcPanelB._y = -480;
mcw.btnBack._y = 600;
mcw.btnDone._y = 600;
mcw.btnNext._y = 600;
mcw.btnDone._y = 500;
mcw.mc._visible = true;
mcw.mcPanelA._x = 50;
mcw.mcPanelB._x = 690;
mcw.mcPanelA.gotoAndStop(1);
mcw.mcPanelB.gotoAndStop(1);
currentPage = 1;
turnPageDirection = 0;
turnPageStep = 0;
btnBackOutStep = 15;
btnNextOutStep = 0;
panelIn = mcw.mcPanelA;
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
mcw.mcPanelA._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -426, 480, 20);
mcw.mcPanelB._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -426, 480, 20);
mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 602, -200, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 602, -200, 20);
mcw.btnNext._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 602, -200, 20);
if (screenStep > 19) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mcPanelA._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 54, -480, 20);
mcw.mcPanelB._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 54, -480, 20);
mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 402, 200, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 402, 200, 20);
mcw.btnNext._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 402, 200, 20);
if (screenStep > 19) {
screenStep = 0;
main.switchScreenVisibility();
}
} else if (Key.isDown(27)) {
if (screenStatus == SCRST_IDLE) {
mcw.btnDone.onPress();
}
}
if (turnPageDirection != 0) {
turnPageStep++;
if (turnPageDirection == 1) {
panelIn._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(turnPageStep, 690, -640, 20);
panelOut._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(turnPageStep, 50, -640, 20);
} else if (turnPageDirection == -1) {
panelIn._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(turnPageStep, -590, 640, 20);
panelOut._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(turnPageStep, 50, 640, 20);
}
if (turnPageStep > 19) {
turnPageDirection = 0;
turnPageStep = 0;
}
}
if (currentPage < 2) {
btnBackOutStep = Math.min(15, btnBackOutStep + 1);
} else {
btnBackOutStep = Math.max(0, btnBackOutStep - 1);
}
mcw.btnBack._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(btnBackOutStep, 28, -150, 15);
if (currentPage > (PAGES_NUM - 1)) {
btnNextOutStep = Math.min(15, btnNextOutStep + 1);
} else {
btnNextOutStep = Math.max(0, btnNextOutStep - 1);
}
mcw.btnNext._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(btnNextOutStep, 501, 150, 15);
if ((Key.isDown(32) || (Key.isDown(13))) || (Key.isDown(17))) {
mcw.btnNext.onPress();
}
}
function turnPage(pDirection) {
turnPageDirection = pDirection;
currentPage = currentPage + pDirection;
if (panelIn == mcw.mcPanelA) {
panelOut = mcw.mcPanelA;
panelIn = mcw.mcPanelB;
} else {
panelOut = mcw.mcPanelB;
panelIn = mcw.mcPanelA;
}
panelIn.gotoAndStop(currentPage);
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
var PAGES_NUM = 10;
}
Symbol 818 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlMap] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlMap
{
var main, mcw, screenStatus, screenStep, mapShips;
function CtrlMap (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.btnStartBattle.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_INGAME;
vThis.main.sndTickPress.start();
}
};
mcw.btnStartBattle.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mc._visible = true;
mcw.mc._y = -480;
var _local2 = 0;
while (_local2 < mapShips.length) {
MovieClip(mapShips[_local2]).removeMovieClip();
_local2++;
}
mapShips = new Array();
_local2 = 0;
while (_local2 <= main.player.currentLevel) {
var _local3 = mcw.mc.attachMovie("mcMapShip", "mapShip" + _local2, com.gameInABottle.games.cursedWinds.constants.Z.MAPSHIP_MIN + _local2);
_local3._x = com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapX;
_local3._y = com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapY;
_local3._xscale = ((com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapPirRelX > 0) ? 100 : -100);
_local3.baseY = com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapY;
if (_local2 == main.player.currentLevel) {
var _local4 = mcw.mc.attachMovie("mcMapShip", "pirateMapShip", com.gameInABottle.games.cursedWinds.constants.Z.MAPSHIP_MIN - 1);
_local4._x = com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapX + com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapPirRelX;
_local4._y = com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapY + com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapPirRelY;
_local4.baseY = com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapY + com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapPirRelY;
_local4._xscale = ((com.gameInABottle.games.cursedWinds.entity.LevelData(main.staticData.levels[_local2]).mapPirRelX > 0) ? -100 : 100);
_local4.gotoAndStop(2);
_local3.gotoAndStop(3);
mapShips.push(_local4);
} else {
_local3._alpha = 35;
}
mapShips.push(_local3);
_local2++;
}
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
if (screenStep < 20) {
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -480, 480, 20);
mcw.btnStartBattle._y = -100;
}
if ((screenStep < 30) && (screenStep > 9)) {
mcw.btnStartBattle._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep - 10, -100, 100, 20);
}
if (screenStep > 29) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 0, -480, 20);
if (screenStep > 19) {
screenStep = 0;
main.switchScreenVisibility();
}
} else if ((Key.isDown(32) || (Key.isDown(13))) || (Key.isDown(17))) {
mcw.btnStartBattle.onPress();
}
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 819 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores
{
var main, mcw, screenStatus, screenStep;
function CtrlHighScores (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.btnBack.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.main.mcRoot.mcScoreboard1._visible = false;
vThis.main.mcRoot.mcScoreboard2._visible = false;
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_MAINMENU;
}
};
mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnScroll.onPress = function () {
MovieClip(this).startDrag(false, MovieClip(this)._x, 141, MovieClip(this)._x, 341);
};
mcw.btnScroll.onRelease = function () {
MovieClip(this).stopDrag();
};
mcw.btnScroll.onReleaseOutside = function () {
MovieClip(this).stopDrag();
};
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mc._visible = true;
mcw.mc._y = -480;
mcw.mc._visible = true;
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -480, 480, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, 1097, -680, 20);
if (screenStep > 19) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 0, -480, 20);
mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 417, 680, 20);
if (screenStep > 19) {
screenStep = 0;
main.switchScreenVisibility();
}
}
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 820 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame
{
var main, mcw, screenStatus, screenStep;
function CtrlEndGame (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
}
function buttonsInit() {
var vThis = this;
mcw.creditbtn.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_CREDITS;
vThis.main.sndTickPress.start();
}
};
mcw.creditbtn.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnOk.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.screenStatus = vThis.SCRST_DISAPPEARING;
vThis.main.nextScreen = vThis.main.SCR_MAINMENU;
}
};
mcw.btnOk.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
mcw.btnSubmit.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
if (vThis.mcw.tfName.text != "") {
vThis.main.sndTickPress.start();
var _local4 = new LoadVars();
var _local5 = new LoadVars();
var _local3 = new LoadVars();
_local3.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
_local5.onHTTPStatus = function (pStatus) {
};
_local4.score = vThis.main.player.getScore();
_local4.chk = vThis.main.player.calculateHighScoreChecksum(vThis.mcw.tfName.text, vThis.main.player.getScore(), vThis.main.player.currentLevel, vThis.main.player.difficulty);
_local4.level = vThis.main.player.currentLevel;
_local4.difficulty = vThis.main.player.difficulty;
_local3.score = _local4.score;
_local3.score2 = _root.earl223(String(_local4.score));
_local3.gamer = _root.gameID;
_local3.id = random(9999999);
_local3.toString();
_local3.sendAndLoad("http://www0.freeonlinegames.com/scoreboard/score_c.php", _local3, "POST");
this.mcw.btnSubmit.enabled = false;
this.mcw.btnSubmit._alpha = 50;
}
}
};
mcw.btnSubmit.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
function initiate() {
screenStatus = SCRST_APPEARING;
screenStep = 0;
mcw.mc._visible = true;
mcw.mc._y = -480;
mcw.tfFinalScore.text = main.player.getScore().toString();
mcw.tfEpilogue.text = ((main.player.difficulty == 0) ? "You have made it! You defeated the main ship of the enemy, the curse disappeared. All the sailing is safe for the moment... Can you break the curse as a Colonel or Admiral? More upgrades and even more heated battles await you!" : (((main.player.difficulty == 1) ? "You have made it! As you wrecked the main ship of the enemy, the curse disappeared. All the sailing is safe for the moment... You are promoted to Admiral! Do you have what it takes to destroy the toughest armada ever seen? More upgrades and even more heated battles await you!" : "You have made it! As you wrecked the main ship of the enemy, the curse disappeared. All the sailing is safe for the moment... Your name will be remembered as one of the greatest pirates of history!")));
}
function doEnterFrame() {
if (screenStatus == SCRST_APPEARING) {
screenStep++;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(screenStep, -480, 480, 40);
if (screenStep > 39) {
screenStep = 0;
screenStatus = SCRST_IDLE;
}
} else if (screenStatus == SCRST_DISAPPEARING) {
screenStep++;
mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(screenStep, 0, -480, 40);
if (screenStep > 39) {
screenStep = 0;
main.switchScreenVisibility();
}
}
}
function processHighScoreResponse(pLv) {
mcw.mcServerStatus.gotoAndStop(3);
}
var SCRST_APPEARING = "SCRST_APPEARING";
var SCRST_DISAPPEARING = "SCRST_DISAPPEARING";
var SCRST_IDLE = "SCRST_IDLE";
}
Symbol 821 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup] Frame 0
class com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup
{
var main, mcw, timer;
function CtrlStartup (pMcw, pMain) {
main = pMain;
mcw = pMcw;
var _local2 = this;
buttonsInit();
mcw.mcStartupSponsor._visible = false;
mcw.mcStartupGiab._visible = false;
}
function buttonsInit() {
var _local2 = this;
}
function initiate() {
timer = 0;
mcw.mc._visible = true;
}
function doEnterFrame() {
timer++;
if (timer > 1) {
main.isIntroOver = true;
main.nextScreen = main.SCR_MAINMENU;
main.switchScreenVisibility();
}
}
}
Symbol 822 MovieClip [__Packages.com.gameInABottle.games.cursedWinds.util.MathToolbox] Frame 0
class com.gameInABottle.games.cursedWinds.util.MathToolbox
{
function MathToolbox () {
}
static function convertCoord(pFromMin, pFromMax, pFrom, pToMin, pToMax) {
return(pToMin + (((pFrom - pFromMin) / (pFromMax - pFromMin)) * (pToMax - pToMin)));
}
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 178 MovieClip [pirateWheelShell] Frame 60
gotoAndPlay (1);
Symbol 188 MovieClip [mcMapShip] Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 212 MovieClip [mcShipSailFront] Frame 1
stop();
Symbol 217 MovieClip [mcSailRear] Frame 1
stop();
Symbol 243 MovieClip [mcShipSailNormal] Frame 1
stop();
Symbol 261 MovieClip [mcMast] Frame 1
stop();
Symbol 261 MovieClip [mcMast] Frame 76
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 325 MovieClip [mcDebris] Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
this._visible = false;
Symbol 342 MovieClip Frame 1
this._visible = false;
Symbol 359 MovieClip Frame 1
stop();
Symbol 385 MovieClip [ingameDoor] Frame 1
stop();
Symbol 385 MovieClip [ingameDoor] Frame 41
stop();
Symbol 385 MovieClip [ingameDoor] Frame 81
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 1
stop();
Symbol 460 MovieClip [cloud] Frame 1
stop();
Instance of Symbol 546 MovieClip in Symbol 547 MovieClip Frame 1
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=1000194&area=minilogo", "_blank");
}
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 2
stop();
Symbol 573 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 574 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 583 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 708 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 10
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 80
stop();
Symbol 756 MovieClip Frame 1
stop();
Symbol 772 MovieClip [cheatPanelLoadSave] Frame 1
this.bigContent._visible = false;
Instance of Symbol 771 MovieClip in Symbol 772 MovieClip [cheatPanelLoadSave] Frame 1
on (press) {
if (this._parent.bigContent._visible) {
this._parent.bigContent._visible = false;
} else {
this._parent.bigContent._visible = true;
}
}
Symbol 779 MovieClip [cheatPanelInGame] Frame 1
this.bigContent._visible = false;
Instance of Symbol 771 MovieClip in Symbol 779 MovieClip [cheatPanelInGame] Frame 1
on (press) {
if (this._parent.bigContent._visible) {
this._parent.bigContent._visible = false;
} else {
this._parent.bigContent._visible = true;
}
}