Combined Code
movieClip 2 LogoFly {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
frame 1 {
FOG.AS2.FogServices.Connect({'id': 117, 'fogid': 20819, 'name': 'cursed-winds', 'title': 'Cursed Winds', 'category': 'shooting-games'});
FOG.AS2.FogPreloader.Start();
}
movieClip 5 {
}
movieClip 12 {
frame 1 {
stop();
}
}
movieClip 54 {
}
instance of movieClip 54 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
movieClip 57 {
}
button 59 {
on (release) {
FOG.AS2.FogServices.TrackClick();
}
}
movieClip 701 __Packages.FOG.AS2.FogServices {
#initclip
if (!_global.FOG) {
_global.FOG = new Object();
}
if (!_global.FOG.AS2) {
_global.FOG.AS2 = new Object();
}
if (!_global.FOG.AS2.FogServices) {
var v1 = function () {};
FOG.AS2.FogServices = v1;
var v2 = v1.prototype;
v1.Connect = function (D) {
FOG.AS2.FogServices.Data = D;
FOG.AS2.FogServices.Data.domain = FOG.AS2.FogServices.GetHostedDomain();
FOG.AS2.FogUtils.Debug(D, 'Game Data');
};
v1.TrackClick = function (Url) {
if (!Url) {
Url = 'www.freeonlinegames.com';
}
var v1 = '?utm_source=' + FOG.AS2.FogServices.Data.domain + '&utm_medium=api-game' + '&utm_campaign=' + FOG.AS2.FogServices.Data.name;
FOG.AS2.FogUtils.Debug('Tracking: ' + v1);
getURL('http://' + Url + '/' + v1, '_blank');
};
v1.TrackPlay = function () {
FOG.AS2.FogUtils.Debug('Track Play Using FogDev');
FOG.AS2.FogDev.TrackPlay();
};
v1.GetHostedDomain = function () {
var v2 = _url.indexOf('://') + 3;
var v4 = _url.indexOf('/', v2);
var v1 = _url.substring(v2, v4);
var v3 = v1.lastIndexOf('.') - 1;
var v5 = v1.lastIndexOf('.', v3) + 1;
if (!v1) {
v1 = 'local';
}
return v1;
};
v1.Version = '1.3';
v1.Data = new Object();
ASSetPropFlags(FOG.AS2.FogServices.prototype, null, 1);
}
#endinitclip
}
movieClip 702 __Packages.FOG.AS2.FogUtils {
#initclip
if (!_global.FOG) {
_global.FOG = new Object();
}
if (!_global.FOG.AS2) {
_global.FOG.AS2 = new Object();
}
if (!_global.FOG.AS2.FogUtils) {
var v1 = function () {};
FOG.AS2.FogUtils = v1;
var v2 = v1.prototype;
v1.Debug = function (S, N) {
if (typeof S == 'object') {
if (N) {
FOG.AS2.FogUtils.Debug(N);
} else {
FOG.AS2.FogUtils.Debug('Object');
}
for (var v2 in S) {
FOG.AS2.FogUtils.Debug('> ' + v2 + ': ' + S[v2]);
}
return undefined;
}
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call('fog.debug', S);
}
if (S.indexOf('>') != 0) {
}
};
ASSetPropFlags(FOG.AS2.FogUtils.prototype, null, 1);
}
#endinitclip
}
movieClip 703 __Packages.FOG.AS2.FogDev {
#initclip
if (!_global.FOG) {
_global.FOG = new Object();
}
if (!_global.FOG.AS2) {
_global.FOG.AS2 = new Object();
}
if (!_global.FOG.AS2.FogDev) {
var v1 = function () {};
FOG.AS2.FogDev = v1;
var v2 = v1.prototype;
v1.Connect = function () {
System.security.allowDomain('*');
FOG.AS2.FogUtils.Debug('> Connecting');
FOG.AS2.FogUtils.Debug('> http://' + FOG.AS2.FogDev.Server + '/' + FOG.AS2.FogDev.LibFile + '?as=2&v=' + FOG.AS2.FogServices.Version);
var v2 = new Object();
v2.onLoadInit = function (Clip) {
FOG.AS2.FogDev.Remote = Clip;
if (!FOG.AS2.FogDev.Remote.CanAccess) {
FOG.AS2.FogUtils.Debug('> Corrupt Library');
return undefined;
}
FOG.AS2.FogDev.Remote.Connect(FOG.AS2.FogServices.Data.name, FOG.AS2.FogServices.Data.domain);
};
v2.onLoadError = function (c, e) {
FOG.AS2.FogUtils.Debug('> Can\'t Load Library');
};
_root.createEmptyMovieClip('conn_remote', _root.getNextHighestDepth());
var v3 = new MovieClipLoader();
v3.addListener(v2);
v3.loadClip('http://' + FOG.AS2.FogDev.Server + '/' + FOG.AS2.FogDev.LibFile + '?as=2&v=' + FOG.AS2.FogServices.Version + '&c=' + Math.random(), _root.conn_remote);
};
v1.TrackPlay = function () {
FOG.AS2.FogUtils.Debug('> Tracking');
FOG.AS2.FogDev.Connect();
};
v1.Server = 'x.fogdev.com';
v1.LibFile = 'api/library-as2.swf';
v1.LibPath = '';
ASSetPropFlags(FOG.AS2.FogDev.prototype, null, 1);
}
#endinitclip
}
movieClip 704 __Packages.FOG.AS2.FogPreloader {
#initclip
if (!_global.FOG) {
_global.FOG = new Object();
}
if (!_global.FOG.AS2) {
_global.FOG.AS2 = new Object();
}
if (!_global.FOG.AS2.FogPreloader) {
var v1 = function () {};
FOG.AS2.FogPreloader = v1;
var v2 = v1.prototype;
v1.Start = function () {
FOG.AS2.FogUtils.Debug('Preloader Initialized');
_root.stop();
var v5 = _root.mcTaglines;
var v4 = _root.btnFoggy;
var mcLogo = _root.mcLogo;
var prel = _root.prel;
var fogNo = 0;
var GameDura = 3000;
var percent = 0;
var percentGame = 0;
var percentDura = 0;
var stagewidth = Stage.width;
var stageheight = Stage.height;
var startTimer = getTimer();
v4._width = stagewidth;
v4._height = stageheight;
v5.swapDepths(99996);
prel.swapDepths(99997);
mcLogo.swapDepths(99998);
v4.swapDepths(99999);
prel.onEnterFrame = function () {
var v4 = Math.random();
if (v4 < _root.getBytesLoaded() / _root.getBytesTotal() / 5) {
if (fogNo > 999) {
fogNo = 0;
}
var v5 = random(2) + 1;
var v3 = _root.attachMovie('LogoFly', 'fog' + fogNo++, fogNo);
v3.cacheAsBitmap = true;
v3._x = stagewidth / 2;
v3._y = stageheight / 2;
v3._yscale = 0;
v3._xscale = 0;
v3.gotoAndStop(random(10) + 1);
v3.speed = 100;
v3._alpha = 0;
v3.grow = Math.random();
v3.fade = false;
v3.targetX = random(10);
if (v3.targetX < 5) {
v3.targetX = random(10);
if (v3.targetX < 5) {
v3.targetX = -100;
} else {
v3.targetX = stagewidth + 100;
}
v3.targetY = random(stageheight);
} else {
v3.targetY = random(10);
if (v3.targetY < 5) {
v3.targetY = -100;
} else {
v3.targetY = stageheight + 100;
}
v3.targetX = random(stagewidth);
}
v3.onEnterFrame = function () {
this._x += ((this.targetX - this._x) / this.speed) * 0.5;
this._y += ((this.targetY - this._y) / this.speed) * 0.5;
this.speed *= 0.99;
this._yscale += this.grow * 2;
this._xscale = this._yscale;
if (this._alpha < 100 && !this.fade) {
this._alpha += 2;
}
if (this._x < -50 || this._y < -50 || this._x > stagewidth + 50 || this._y > stageheight + 50 || this._xscale > 200) {
this.fade = true;
}
if (this.fade) {
this._alpha -= 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
percentGame = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
percentDura = ((getTimer() - startTimer) / GameDura) * 100;
percent = Math.round(Math.min(percentGame, percentDura, 100));
prel.gotoAndStop(percent);
prel.procent.text = percent;
if (percent > 99) {
FOG.AS2.FogPreloader.onLoaded();
mcLogo.removeMovieClip();
delete this.onEnterFrame;
play();
}
};
};
v1.onLoaded = FOG.AS2.FogServices.TrackPlay;
v2.onComplete = function () {};
ASSetPropFlags(FOG.AS2.FogPreloader.prototype, null, 1);
}
#endinitclip
}
movieClip 705 __Packages.com.gameInABottle.games.cursedWinds.Main {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.Main) {
var v1 = function (pMcRoot) {
var vThis = this;
this.isIntroOver = false;
var v3 = _root.createEmptyMovieClip('mainLoop', com.gameInABottle.games.cursedWinds.constants.Z.MAIN_LOOP);
v3.onEnterFrame = function () {
vThis.doEnterFrame();
};
this.mcRoot = pMcRoot;
this.mcwRoot = new com.gameInABottle.games.cursedWinds.mcw.McwRoot(this.mcRoot);
this.btnOptions = this.mcRoot.attachMovie('btnOptions', 'btnOptions', com.gameInABottle.games.cursedWinds.constants.Z.BTN_OPTIONS);
this.btnOptions._y = -480;
this.mcOptions = this.mcRoot.attachMovie('mcOptions', 'mcOptions', com.gameInABottle.games.cursedWinds.constants.Z.MC_OPTIONS);
this.mcOptions._visible = false;
this.mcOptions._y = -480;
this.optStep = 10;
this.isOptionsDragging = false;
this.isPaused = false;
this.initiateOptionsPanel();
this.preferences = new com.gameInABottle.games.cursedWinds.entity.Preferences();
this.vfxEngine = new com.gameInABottle.games.cursedWinds.util.VfxEngine(this.preferences);
this.staticData = new com.gameInABottle.games.cursedWinds.constants.StaticData(this);
this.player = new com.gameInABottle.games.cursedWinds.entity.Player();
this.zCurrSoundMc = com.gameInABottle.games.cursedWinds.constants.Z.SOUNDS_MIN;
this.initiateSoundObjects();
this.ctrlUpgrades = new com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades(this.mcwRoot.mcwUpgrades, this);
this.ctrlLoadSave = new com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave(this.mcwRoot.mcwLoadSave, this);
this.ctrlIngame = new com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame(this.mcwRoot.mcwIngame, this);
this.ctrlTutorial = new com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial(this.mcwRoot.mcwTutorial, this);
this.ctrlModeSelector = new com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector(this.mcwRoot.mcwModeSelector, this);
this.ctrlMainMenu = new com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu(this.mcwRoot.mcwMainMenu, this);
this.ctrlCredits = new com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits(this.mcwRoot.mcwCredits, this);
this.ctrlMap = new com.gameInABottle.games.cursedWinds.ctrl.CtrlMap(this.mcwRoot.mcwMap, this);
this.ctrlHighScores = new com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores(this.mcwRoot.mcwHighScores, this);
this.ctrlEndGame = new com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame(this.mcwRoot.mcwEndGame, this);
this.ctrlStartup = new com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup(this.mcwRoot.mcwStartup, this);
this.nextScreen = this.SCR_STARTUP;
this.switchScreenVisibility();
this.renderOptions();
this.setAllSoundsVolume();
};
com.gameInABottle.games.cursedWinds.Main = v1;
var v2 = v1.prototype;
v2.doEnterFrame = function () {
if (this.isPaused) {
if (this.isOptionsDragging) {
this.renderOptions();
}
} else {
var v3 = 640 - _root._xmouse + _root._ymouse;
if (v3 > 110) {
this.optStep = Math.min(10, this.optStep + 1);
}
if (v3 < 80) {
this.optStep = Math.max(0, this.optStep - 1);
}
if (this.isIntroOver) {
this.btnOptions._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - this.optStep, 585, -72, 10);
this.btnOptions._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - this.optStep, -37, 20, 10);
this.btnOptions.mcTf._yscale = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - this.optStep, 40, 60, 10);
this.btnOptions.mcTf._xscale = this.btnOptions.mcTf._yscale;
this.btnOptions.mcTf._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(10 - this.optStep, 8, 9, 10);
}
if (this.currentScreen == this.SCR_MAINMENU) {
this.ctrlMainMenu.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_MODESELECTOR) {
this.ctrlModeSelector.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_CREDITS) {
this.ctrlCredits.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_MAP) {
this.ctrlMap.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_TUTORIAL) {
this.ctrlTutorial.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_INGAME) {
this.ctrlIngame.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_UPGRADES) {
this.ctrlUpgrades.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_HIGHSCORES) {
this.ctrlHighScores.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_LOADSAVE_LOAD || this.currentScreen == this.SCR_LOADSAVE_SAVE) {
this.ctrlLoadSave.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_ENDGAME) {
this.ctrlEndGame.doEnterFrame();
} else {
if (this.currentScreen == this.SCR_STARTUP) {
this.ctrlStartup.doEnterFrame();
}
}
}
}
}
}
}
}
}
}
}
}
};
v2.switchScreenVisibility = function () {
this.vfxEngine.removeAllVfx();
Key.removeListener(this.ctrlIngame.keyListener);
this.ctrlIngame.mcTexts.removeMovieClip();
this.ctrlIngame.pnlOutcome.removeMovieClip();
this.ctrlIngame.pnlLevelInfo.removeMovieClip();
this.currentScreen = this.nextScreen;
this.mcwRoot.mcEndGame._visible = false;
this.mcwRoot.mcMainMenu._visible = false;
this.mcwRoot.mcMap._visible = false;
this.mcwRoot.mcTutorial._visible = false;
this.mcwRoot.mcUpgrades._visible = false;
this.mcwRoot.mcIngame._visible = false;
this.mcwRoot.mcCredits._visible = false;
this.mcwRoot.mcModeSelector._visible = false;
this.mcwRoot.mcLoadSave._visible = false;
this.mcwRoot.mcHighScores._visible = false;
this.mcwRoot.mcStartup._visible = false;
this.mcwRoot.mcIngameDoor._visible = false;
if (this.currentScreen == this.SCR_ENDGAME) {
this.ctrlEndGame.initiate();
} else {
if (this.currentScreen == this.SCR_MAINMENU) {
this.ctrlMainMenu.initiate();
} else {
if (this.currentScreen == this.SCR_MAP) {
this.ctrlMap.initiate();
} else {
if (this.currentScreen == this.SCR_TUTORIAL) {
this.ctrlTutorial.initiate();
} else {
if (this.currentScreen == this.SCR_UPGRADES) {
this.ctrlUpgrades.initiate();
} else {
if (this.currentScreen == this.SCR_INGAME) {
this.ctrlIngame.initiate();
} else {
if (this.currentScreen == this.SCR_CREDITS) {
this.ctrlCredits.initiate();
} else {
if (this.currentScreen == this.SCR_MODESELECTOR) {
this.ctrlModeSelector.initiate();
} else {
if (this.currentScreen == this.SCR_LOADSAVE_LOAD || this.currentScreen == this.SCR_LOADSAVE_SAVE) {
this.ctrlLoadSave.initiate();
} else {
if (this.currentScreen == this.SCR_HIGHSCORES) {
this.ctrlHighScores.initiate();
} else {
if (this.currentScreen == this.SCR_STARTUP) {
this.ctrlStartup.initiate();
}
}
}
}
}
}
}
}
}
}
}
};
v2.initiateSoundObjects = function () {
this.sounds = new Array();
this.sndAmbient = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndAmbient', this.zCurrSoundMc++));
this.pushSound(this.sndAmbient, 'ambient.wav');
this.sndBlast1 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndBlast1', this.zCurrSoundMc++));
this.pushSound(this.sndBlast1, 'blast1.wav');
this.sndBlast2 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndBlast2', this.zCurrSoundMc++));
this.pushSound(this.sndBlast2, 'blast2.wav');
this.sndBlast3 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndBlast3', this.zCurrSoundMc++));
this.pushSound(this.sndBlast3, 'blast3.wav');
this.sndBlastBig = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndBlastBig', this.zCurrSoundMc++));
this.pushSound(this.sndBlastBig, 'blastBig.wav');
this.sndCannon1 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon1', this.zCurrSoundMc++));
this.pushSound(this.sndCannon1, 'cannon1.wav');
this.sndCannon2 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon2', this.zCurrSoundMc++));
this.pushSound(this.sndCannon2, 'cannon2.wav');
this.sndCannon3 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon3', this.zCurrSoundMc++));
this.pushSound(this.sndCannon3, 'cannon3.wav');
this.sndCannon4 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon4', this.zCurrSoundMc++));
this.pushSound(this.sndCannon4, 'cannon4.wav');
this.sndCannon5 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon5', this.zCurrSoundMc++));
this.pushSound(this.sndCannon5, 'cannon5.wav');
this.sndCannon6 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon6', this.zCurrSoundMc++));
this.pushSound(this.sndCannon6, 'cannon6.wav');
this.sndCannon7 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon7', this.zCurrSoundMc++));
this.pushSound(this.sndCannon7, 'cannon7.wav');
this.sndCannon8 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon8', this.zCurrSoundMc++));
this.pushSound(this.sndCannon8, 'cannon8.wav');
this.sndCannon9 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon9', this.zCurrSoundMc++));
this.pushSound(this.sndCannon9, 'cannon9.wav');
this.sndCannon10 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon10', this.zCurrSoundMc++));
this.pushSound(this.sndCannon10, 'cannon10.wav');
this.sndCannon11 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon11', this.zCurrSoundMc++));
this.pushSound(this.sndCannon11, 'cannon11.wav');
this.sndCannon12 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCannon12', this.zCurrSoundMc++));
this.pushSound(this.sndCannon12, 'cannon12.wav');
this.sndCloseCombat = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCloseCombat', this.zCurrSoundMc++));
this.pushSound(this.sndCloseCombat, 'closecombat.wav');
this.sndTickOver = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndTickOver', this.zCurrSoundMc++));
this.pushSound(this.sndTickOver, 'tickOver.wav');
this.sndTickPress = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndTickPress', this.zCurrSoundMc++));
this.pushSound(this.sndTickPress, 'tickPress.wav');
this.sndPlunder = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndPlunder', this.zCurrSoundMc++));
this.pushSound(this.sndPlunder, 'plunder.wav');
this.sndUpgrade = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndUpgrade', this.zCurrSoundMc++));
this.pushSound(this.sndUpgrade, 'upgrade.wav');
this.sndIngameDoorOpen = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndIngameDoorOpen', this.zCurrSoundMc++));
this.pushSound(this.sndIngameDoorOpen, 'ingameDoorOpen.wav');
this.sndIngameDoorClose = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndIngameDoorClose', this.zCurrSoundMc++));
this.pushSound(this.sndIngameDoorClose, 'ingameDoorClose.wav');
this.sndIngameDoorCloseEnd = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndIngameDoorCloseEnd', this.zCurrSoundMc++));
this.pushSound(this.sndIngameDoorCloseEnd, 'ingameDoorCloseEnd.wav');
this.sndVoiceOfCalypso = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndVoiceOfCalypso', this.zCurrSoundMc++));
this.pushSound(this.sndVoiceOfCalypso, 'voice-of-calypso.wav');
this.sndFireworksImpact1 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksImpact1', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksImpact1, 'fireworks-impact-1.wav');
this.sndFireworksImpact2 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksImpact2', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksImpact2, 'fireworks-impact-2.wav');
this.sndFireworksImpact3 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksImpact3', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksImpact3, 'fireworks-impact-3.wav');
this.sndFireworksImpact4 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksImpact4', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksImpact4, 'fireworks-impact-4.wav');
this.sndFireworksImpact5 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksImpact5', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksImpact5, 'fireworks-impact-5.wav');
this.sndFireworksImpact6 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksImpact6', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksImpact6, 'fireworks-impact-6.wav');
this.sndFireworksImpact7 = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksImpact7', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksImpact7, 'fireworks-impact-7.wav');
this.sndFireworksLaunch = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndFireworksLaunch', this.zCurrSoundMc++));
this.pushSound(this.sndFireworksLaunch, 'fireworks-launch.wav');
this.sndCursedWind = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndCursedWind', this.zCurrSoundMc++));
this.pushSound(this.sndCursedWind, 'cursed-wind.wav');
this.sndSupportFire = new Sound(this.mcwRoot.mc.createEmptyMovieClip('mc_sndSupportFire', this.zCurrSoundMc++));
this.pushSound(this.sndSupportFire, 'supportfire.wav');
};
v2.pushSound = function (pSnd, pId) {
pSnd.attachSound(pId);
(Object(pSnd)).id = pId;
this.sounds.push(pSnd);
};
v2.setAllSoundsVolume = function () {
if (!this.isPaused) {
var v2 = 0;
while (v2 < this.sounds.length) {
(Sound(this.sounds[v2])).setVolume(this.preferences.soundVolume);
++v2;
}
} else {
var v2 = 0;
while (v2 < this.sounds.length) {
(Sound(this.sounds[v2])).setVolume(0);
++v2;
}
}
};
v2.switchOptions = function () {
if (this.isPaused) {
if (!this.isOptionsDragging) {
this.preferences.flush();
this.isPaused = false;
this.mcOptions._visible = false;
this.mcOptions._y = -500;
this.btnOptions._x = 630;
this.btnOptions._y = -52;
}
} else {
if (this.currentScreen == this.SCR_INGAME) {
this.mcOptions.mcTfPaused.gotoAndStop(1);
this.mcOptions.btnContinue._visible = true;
this.mcOptions.btnReturn._visible = true;
this.mcOptions.btnDone._visible = false;
} else {
this.mcOptions.mcTfPaused.gotoAndStop(2);
this.mcOptions.btnContinue._visible = false;
this.mcOptions.btnReturn._visible = false;
this.mcOptions.btnDone._visible = true;
}
this.isPaused = true;
this.renderOptions();
this.mcOptions._visible = true;
this.mcOptions._y = 0;
}
this.setAllSoundsVolume();
};
v2.initiateOptionsPanel = function () {
var vThis = this;
this.btnOptions.onPress = function () {
vThis.sndTickPress.start();
vThis.switchOptions();
};
this.mcOptions.btnDone.onPress = function () {
vThis.switchOptions();
vThis.sndTickPress.start();
};
this.mcOptions.btnContinue.onPress = function () {
vThis.switchOptions();
vThis.sndTickPress.start();
};
this.mcOptions.btnReturn.onPress = function () {
vThis.ctrlIngame.returnToMainMenu();
vThis.switchOptions();
vThis.sndTickPress.start();
};
this.mcOptions.btnQuality.onPress = function () {
(MovieClip(this)).startDrag(false, 94, (MovieClip(this))._y, 544, (MovieClip(this))._y);
vThis.isOptionsDragging = true;
};
this.mcOptions.btnQuality.onRelease = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.mcOptions.btnQuality.onReleaseOutside = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.mcOptions.btnVfxNum.onPress = function () {
(MovieClip(this)).startDrag(false, 94, (MovieClip(this))._y, 544, (MovieClip(this))._y);
vThis.isOptionsDragging = true;
};
this.mcOptions.btnVfxNum.onRelease = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.mcOptions.btnVfxNum.onReleaseOutside = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.mcOptions.btnVfxNumPerType.onPress = function () {
(MovieClip(this)).startDrag(false, 94, (MovieClip(this))._y, 544, (MovieClip(this))._y);
vThis.isOptionsDragging = true;
};
this.mcOptions.btnVfxNumPerType.onRelease = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.mcOptions.btnVfxNumPerType.onReleaseOutside = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.mcOptions.btnSoundVolume.onPress = function () {
(MovieClip(this)).startDrag(false, 94, (MovieClip(this))._y, 544, (MovieClip(this))._y);
vThis.isOptionsDragging = true;
};
this.mcOptions.btnSoundVolume.onRelease = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.mcOptions.btnSoundVolume.onReleaseOutside = function () {
(MovieClip(this)).stopDrag();
vThis.isOptionsDragging = false;
};
this.renderOptions();
};
v2.renderOptions = function () {
if (this.isOptionsDragging) {
this.preferences.soundVolumeBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, this.mcOptions.btnSoundVolume._x, 0, 100);
this.preferences.qualityBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, this.mcOptions.btnQuality._x, 0, 100);
this.preferences.vfxNumBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, this.mcOptions.btnVfxNum._x, 0, 100);
this.preferences.vfxNumPerTypeBase = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(94, 544, this.mcOptions.btnVfxNumPerType._x, 0, 100);
} else {
this.mcOptions.btnSoundVolume._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, this.preferences.soundVolumeBase, 94, 544);
this.mcOptions.btnQuality._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, this.preferences.qualityBase, 94, 544);
this.mcOptions.btnVfxNum._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, this.preferences.vfxNumBase, 94, 544);
this.mcOptions.btnVfxNumPerType._x = com.gameInABottle.games.cursedWinds.util.MathToolbox.convertCoord(0, 100, this.preferences.vfxNumPerTypeBase, 94, 544);
}
this.preferences.soundVolume = Math.round(this.preferences.soundVolumeBase);
this.preferences.quality = this.preferences.qualityBase < 33 ? 0 : (this.preferences.qualityBase < 66 ? 1 : (this.preferences.qualityBase < 95 ? 2 : 3));
this.preferences.vfxNum = this.preferences.vfxNumBase > 99 ? 300 : Math.round(this.preferences.vfxNumBase);
this.preferences.vfxNumPerType = this.preferences.vfxNumPerTypeBase > 99 ? 300 : Math.round(this.preferences.vfxNumPerTypeBase);
this.mcOptions.tfSoundVolume.text = this.preferences.soundVolume.toString();
this.mcOptions.tfQuality.text = (this.preferences.quality == 0) ? 'low' : ((this.preferences.quality == 1) ? 'medium' : ((this.preferences.quality == 2) ? 'high' : 'high+clouds'));
_root._quality = (this.preferences.quality == 0) ? 'LOW' : ((this.preferences.quality == 1) ? 'MEDIUM' : 'HIGH');
this.mcOptions.tfVfxNum.text = this.preferences.vfxNum.toString();
this.mcOptions.tfVfxNumPerType.text = this.preferences.vfxNumPerType.toString();
};
v2.SCR_STARTUP = 'SCR_STARTUP';
v2.SCR_MAINMENU = 'SCR_MAINMENU';
v2.SCR_ENDGAME = 'SCR_ENDGAME';
v2.SCR_MAP = 'SCR_MAP';
v2.SCR_INGAME = 'SCR_INGAME';
v2.SCR_UPGRADES = 'SCR_UPGRADES';
v2.SCR_TUTORIAL = 'SCR_TUTORIAL';
v2.SCR_CREDITS = 'SCR_CREDITS';
v2.SCR_MODESELECTOR = 'SCR_MODESELECTOR';
v2.SCR_LOADSAVE_LOAD = 'SCR_LOADSAVE_LOAD';
v2.SCR_LOADSAVE_SAVE = 'SCR_LOADSAVE_SAVE';
v2.SCR_HIGHSCORES = 'SCR_HIGHSCORES';
v2.URL_HIGHSCORELIST = 'TODO';
v2.URL_MOREGAMES = 'http://www.freeonlinegames.com/';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.Main.prototype, null, 1);
}
#endinitclip
}
movieClip 706 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwRoot {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwRoot) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.mcwMainMenu = new com.gameInABottle.games.cursedWinds.mcw.McwMainMenu(this.mcMainMenu);
this.mcwEndGame = new com.gameInABottle.games.cursedWinds.mcw.McwEndGame(this.mcEndGame);
this.mcwMap = new com.gameInABottle.games.cursedWinds.mcw.McwMap(this.mcMap);
this.mcwTutorial = new com.gameInABottle.games.cursedWinds.mcw.McwTutorial(this.mcTutorial);
this.mcwUpgrades = new com.gameInABottle.games.cursedWinds.mcw.McwUpgrades(this.mcUpgrades);
this.mcwCredits = new com.gameInABottle.games.cursedWinds.mcw.McwCredits(this.mcCredits);
this.mcwIngame = new com.gameInABottle.games.cursedWinds.mcw.McwIngame(this.mcIngame);
this.mcwModeSelector = new com.gameInABottle.games.cursedWinds.mcw.McwModeSelector(this.mcModeSelector);
this.mcwHighScores = new com.gameInABottle.games.cursedWinds.mcw.McwHighScores(this.mcHighScores);
this.mcwLoadSave = new com.gameInABottle.games.cursedWinds.mcw.McwLoadSave(this.mcLoadSave);
this.mcwStartup = new com.gameInABottle.games.cursedWinds.mcw.McwStartup(this.mcStartup);
this.mcIngameDoor = this.mc.attachMovie('ingameDoor', 'ingameDoor', com.gameInABottle.games.cursedWinds.constants.Z.INGAME_DOOR);
this.mcIngameDoor._visible = false;
this.mcIngameDoor._x = 320;
this.mcIngameDoor._y = 240;
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwRoot = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwRoot.prototype, null, 1);
}
#endinitclip
}
movieClip 707 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwMainMenu {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwMainMenu) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwMainMenu = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwMainMenu.prototype, null, 1);
}
#endinitclip
}
movieClip 708 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwEndGame {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwEndGame) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.tfName.restrict = 'A-Z a-z';
this.tfName.maxChars = 16;
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwEndGame = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwEndGame.prototype, null, 1);
}
#endinitclip
}
movieClip 709 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwMap {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwMap) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwMap = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwMap.prototype, null, 1);
}
#endinitclip
}
movieClip 710 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwTutorial {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwTutorial) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwTutorial = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwTutorial.prototype, null, 1);
}
#endinitclip
}
movieClip 711 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwUpgrades {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwUpgrades) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwUpgrades = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwUpgrades.prototype, null, 1);
}
#endinitclip
}
movieClip 712 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwCredits {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwCredits) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwCredits = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwCredits.prototype, null, 1);
}
#endinitclip
}
movieClip 713 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwIngame {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwIngame) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwIngame = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwIngame.prototype, null, 1);
}
#endinitclip
}
movieClip 714 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwModeSelector {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwModeSelector) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwModeSelector = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwModeSelector.prototype, null, 1);
}
#endinitclip
}
movieClip 715 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwHighScores {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwHighScores) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwHighScores = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwHighScores.prototype, null, 1);
}
#endinitclip
}
movieClip 716 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwLoadSave {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwLoadSave) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwLoadSave = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwLoadSave.prototype, null, 1);
}
#endinitclip
}
movieClip 717 __Packages.com.gameInABottle.games.cursedWinds.mcw.McwStartup {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw) {
_global.com.gameInABottle.games.cursedWinds.mcw = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.mcw.McwStartup) {
var v1 = function (pSource) {
this.mc = pSource;
for (var v3 in pSource) {
this[v3] = pSource[v3];
}
for (v3 in this) {
if (this[v3] instanceof MovieClip || this[v3] instanceof TextField || this[v3] instanceof Button) {
this[v3].useHandCursor = false;
this[v3].tabEnabled = false;
this[v3].tabChildren = false;
}
if ((MovieClip(this[v3]))._name.indexOf('btn') == 0) {
this[v3].useHandCursor = true;
}
}
this.adjustDepths();
};
com.gameInABottle.games.cursedWinds.mcw.McwStartup = v1;
var v2 = v1.prototype;
v2.adjustDepths = function () {};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.mcw.McwStartup.prototype, null, 1);
}
#endinitclip
}
movieClip 718 __Packages.com.gameInABottle.games.cursedWinds.constants.Z {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants) {
_global.com.gameInABottle.games.cursedWinds.constants = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants.Z) {
var v1 = function () {};
com.gameInABottle.games.cursedWinds.constants.Z = v1;
var v2 = v1.prototype;
v1.CHEATPANEL_INGAME = 999301;
v1.CHEATPANEL_LOADSAVE = 999300;
v1.MC_OPTIONS = 999200;
v1.BTN_OPTIONS = 999100;
v1.INGAME_DOOR = 999000;
v1.LEVELOUTCOMEPANEL = 510000;
v1.LEVELINFOPANEL = 500000;
v1.SEA_TEXTS = 400000;
v1.INFOPANEL_MIN = 370000;
v1.CURSEDWIND = 365000;
v1.VFX_HIGH_MIN = 350000;
v1.VFX_MIN = 300000;
v1.CANNONBALL_MIN = 200000;
v1.ENEMYSHIP_MIN = 102000;
v1.PIRATESHIP = 100000;
v1.CALYPSO = 90000;
v1.VFX_DEEP_MIN = 50000;
v1.BATTLEWHEEL_MIN = 40000;
v1.MAPSHIP_MIN = 500;
v1.SOUNDS_MIN = 10;
v1.MAIN_LOOP = 1;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.constants.Z.prototype, null, 1);
}
#endinitclip
}
movieClip 719 __Packages.com.gameInABottle.games.cursedWinds.util.VfxEngine {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util) {
_global.com.gameInABottle.games.cursedWinds.util = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util.VfxEngine) {
var v1 = function (pPrefs) {
this.z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
this.zHigh = com.gameInABottle.games.cursedWinds.constants.Z.VFX_HIGH_MIN;
this.blasts = new Array();
this.blackSmokes = new Array();
this.whiteSmokes = new Array();
this.debris = new Array();
this.splashes = new Array();
this.infoPanelBlasts = new Array();
this.clouds = new Array();
this.totalVfxNum = 0;
this.preferences = pPrefs;
};
com.gameInABottle.games.cursedWinds.util.VfxEngine = v1;
var v2 = v1.prototype;
v2.doEnterFrame = function () {
var v2 = 0;
while (v2 < this.blackSmokes.length) {
this.blackSmokes[v2]._alpha -= Math.random() * 3 + 1.5;
this.blackSmokes[v2]._xscale += 3;
this.blackSmokes[v2]._yscale += 3;
if (this.blackSmokes[v2]._alpha < 1) {
this.blackSmokes[v2].removeMovieClip();
this.blackSmokes.splice(v2, 1);
--v2;
--this.totalVfxNum;
}
++v2;
}
v2 = 0;
while (v2 < this.blasts.length) {
this.blasts[v2]._alpha -= 10;
if (this.blasts[v2]._alpha < 1) {
this.blasts[v2].removeMovieClip();
this.blasts.splice(v2, 1);
--v2;
--this.totalVfxNum;
}
++v2;
}
v2 = 0;
while (v2 < this.whiteSmokes.length) {
this.whiteSmokes[v2]._alpha -= 5;
if (this.whiteSmokes[v2]._alpha < 1) {
this.whiteSmokes[v2].removeMovieClip();
this.whiteSmokes.splice(v2, 1);
--v2;
--this.totalVfxNum;
}
++v2;
}
v2 = 0;
while (v2 < this.debris.length) {
this.debris[v2]._alpha -= 0.14;
--this.debris[v2].energy;
if (this.debris[v2].energy > 0) {
this.debris[v2]._x += this.debris[v2].speedX;
this.debris[v2]._y += this.debris[v2].speedY;
this.debris[v2]._rotation += this.debris[v2].spin;
} else {
if (this.debris[v2].isSplashed != true) {
this.debris[v2].isSplashed = true;
if (this.debris[v2].isFirework) {
this.debris[v2].removeMovieClip();
this.debris.splice(v2, 1);
--v2;
--this.totalVfxNum;
} else {
this.createSplash(this.debris[v2]._x, this.debris[v2]._y);
}
}
}
if (this.debris[v2]._alpha < 1) {
this.debris[v2].removeMovieClip();
this.debris.splice(v2, 1);
--v2;
--this.totalVfxNum;
}
++v2;
}
v2 = 0;
while (v2 < this.splashes.length) {
this.splashes[v2]._alpha -= 5;
this.splashes[v2]._xscale += 10;
this.splashes[v2]._yscale += 10;
if (this.splashes[v2]._alpha < 1) {
this.splashes[v2].removeMovieClip();
this.splashes.splice(v2, 1);
--v2;
--this.totalVfxNum;
}
++v2;
}
v2 = 0;
while (v2 < this.infoPanelBlasts.length) {
this.infoPanelBlasts[v2]._alpha -= 5;
this.infoPanelBlasts[v2]._xscale += 5;
this.infoPanelBlasts[v2]._yscale += 5;
if (this.infoPanelBlasts[v2]._alpha < 1) {
this.infoPanelBlasts[v2].removeMovieClip();
this.infoPanelBlasts.splice(v2, 1);
--v2;
}
++v2;
}
v2 = 0;
while (v2 < this.clouds.length) {
this.clouds[v2]._y += this.clouds[v2].speed;
if (this.clouds[v2]._y > 700) {
this.clouds[v2].removeMovieClip();
this.clouds.splice(v2, 1);
--v2;
--this.totalVfxNum;
}
++v2;
}
};
v2.createBlast = function (pX, pY) {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.5 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.blackSmokes.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.blackSmokes.length / this.preferences.vfxNumPerType) {
var v7 = _root.attachMovie('mcVfxSmokeBlack', 'vfx' + this.z, this.z++);
v7._rotation = Math.random() * 360;
v7._x = pX;
v7._y = pY;
this.blackSmokes.push(v7);
++this.totalVfxNum;
}
if (this.blasts.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.blasts.length / this.preferences.vfxNumPerType) {
var v8 = _root.attachMovie('mcBlast', 'vfx' + this.z, this.z++);
v8._rotation = Math.random() * 360;
v8._x = pX;
v8._y = pY;
this.blasts.push(v8);
++this.totalVfxNum;
if (this.z > com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000) {
this.z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
}
if (this.debris.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.debris.length / this.preferences.vfxNumPerType) {
var v4 = 0;
while (v4 < 1) {
var v3 = _root.attachMovie('mcDebris', 'vfxDeep' + this.zDeep, this.zDeep++);
v3._rotation = Math.random() * 360;
v3._x = pX;
v3._y = pY;
v3.speedX = Math.random() * 6 - 3;
v3.speedY = Math.random() * 6 - 3;
v3.energy = Math.floor(Math.random() * 20) + 20;
v3.spin = Math.random() * 60 - 30;
if (Math.random() > 0.5) {
v3.gotoAndStop(2);
}
this.debris.push(v3);
++this.totalVfxNum;
++v4;
}
if (this.zDeep > com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000) {
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
};
v2.createBombardBlast = function (pX, pY) {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.5 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.blackSmokes.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.blackSmokes.length / this.preferences.vfxNumPerType) {
var v5 = _root.attachMovie('mcBombardBlast', 'vfx' + this.z, this.z++);
v5._rotation = Math.random() * 360;
v5._xscale = 100;
v5._yscale = 100;
v5._x = pX;
v5._y = pY;
this.blackSmokes.push(v5);
++this.totalVfxNum;
}
if (this.blasts.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.blasts.length / this.preferences.vfxNumPerType) {
var v8 = _root.attachMovie('mcBlast', 'vfx' + this.z, this.z++);
v8._rotation = Math.random() * 360;
v8._x = pX;
v8._y = pY;
this.blasts.push(v8);
++this.totalVfxNum;
if (this.z > com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000) {
this.z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
}
if (this.debris.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.debris.length / this.preferences.vfxNumPerType) {
var v4 = 0;
while (v4 < 1) {
var v3 = _root.attachMovie('mcDebris', 'vfxDeep' + this.zDeep, this.zDeep++);
v3._rotation = Math.random() * 360;
v3._x = pX;
v3._y = pY;
v3.speedX = Math.random() * 6 - 3;
v3.speedY = Math.random() * 6 - 3;
v3.energy = Math.floor(Math.random() * 20) + 20;
v3.spin = Math.random() * 60 - 30;
if (Math.random() > 0.5) {
v3.gotoAndStop(2);
}
this.debris.push(v3);
++this.totalVfxNum;
++v4;
}
if (this.zDeep > com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000) {
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
};
v2.createWhiteSmoke = function (pX, pY) {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.6 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.whiteSmokes.length < this.preferences.vfxNumPerType * 0.6 || Math.round() > this.whiteSmokes.length / this.preferences.vfxNumPerType) {
if (Math.random() > 0.33) {
var v3 = _root.attachMovie('mcVfxSmokeWhite', 'vfx' + this.zDeep, this.zDeep++);
v3._rotation = Math.random() * 360;
v3._x = pX + Math.random() * 3 - 1.5;
v3._y = pY + Math.random() * 3 - 1.5;
v3._xscale = 125;
v3._yscale = 125;
} else {
var v3 = _root.attachMovie('mcVfxSmokeWhite', 'vfx' + this.z, this.z++);
v3._rotation = Math.random() * 360;
v3._x = pX + Math.random() * 3 - 1.5;
v3._y = pY + Math.random() * 3 - 1.5;
v3._xscale = 125;
v3._yscale = 125;
v3._alpha = 65;
}
this.whiteSmokes.push(v3);
if (this.zDeep > com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000) {
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
if (this.z > com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000) {
this.z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
}
}
}
};
v2.createSplash = function (pX, pY) {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.6 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.splashes.length < this.preferences.vfxNumPerType * 0.6 || Math.round() > this.splashes.length / this.preferences.vfxNumPerType) {
var v3 = _root.attachMovie('mcSplash', 'vfx' + this.zDeep, this.zDeep++);
v3._x = pX;
v3._y = pY;
v3._xscale = 10;
v3._yscale = 10;
v3._alpha = 70;
this.splashes.push(v3);
if (this.zDeep > com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000) {
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
++this.totalVfxNum;
}
}
}
};
v2.createBombardSplash = function (pX, pY) {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.6 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.splashes.length < this.preferences.vfxNumPerType * 0.6 || Math.round() > this.splashes.length / this.preferences.vfxNumPerType) {
var v3 = _root.attachMovie('mcSplash', 'vfx' + this.zDeep, this.zDeep++);
v3._x = pX;
v3._y = pY;
v3._xscale = 60;
v3._yscale = 60;
v3._alpha = 80;
this.splashes.push(v3);
if (this.zDeep > com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000) {
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
++this.totalVfxNum;
}
}
}
};
v2.createCloud = function () {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.6 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.clouds.length < this.preferences.vfxNumPerType * 0.6 || Math.round() > this.clouds.length / this.preferences.vfxNumPerType) {
var v3 = _root.attachMovie('cloud', 'vfx' + this.zHigh, this.zHigh++);
if (Math.random() > 0.5) {
v3._x = Math.random() * 100;
} else {
v3._x = 540 + Math.random() * 100;
}
v3._y = -300;
var v5 = Math.random() * 80 + 80;
v3.gotoAndStop(Math.floor(Math.random() * 4.99) + 1);
v3._xscale = v5;
v3._yscale = v5;
v3._alpha = Math.random() * 50 + 50;
v3.speed = Math.random() * 2 + 3.5;
v3._rotation = Math.random() * 360;
var v4 = new Array();
v4.push(new flash.filters.DropShadowFilter(220, 45, 0, 250, 5, 5, 1, 1, false, false));
v3.filters = v4;
this.clouds.push(v3);
if (this.zHigh > com.gameInABottle.games.cursedWinds.constants.Z.VFX_HIGH_MIN + 10000) {
this.zHigh = com.gameInABottle.games.cursedWinds.constants.Z.VFX_HIGH_MIN;
}
++this.totalVfxNum;
}
}
}
};
v2.createInfoPanelBlast = function (pX, pY) {
var v3 = _root.attachMovie('vfxInfoPanelBlast', 'vfx' + this.z, this.z++);
v3._x = pX + 21;
v3._y = pY + 8.5;
this.infoPanelBlasts.push(v3);
if (this.z > com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN + 10000) {
this.z = com.gameInABottle.games.cursedWinds.constants.Z.VFX_MIN;
}
};
v2.removeAllVfx = function () {
var v2 = 0;
while (v2 < this.blasts.length) {
(MovieClip(this.blasts[v2])).removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.blackSmokes.length) {
(MovieClip(this.blackSmokes[v2])).removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.whiteSmokes.length) {
(MovieClip(this.whiteSmokes[v2])).removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.debris.length) {
(MovieClip(this.debris[v2])).removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.splashes.length) {
(MovieClip(this.splashes[v2])).removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.infoPanelBlasts.length) {
(MovieClip(this.infoPanelBlasts[v2])).removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.clouds.length) {
(MovieClip(this.clouds[v2])).removeMovieClip();
++v2;
}
this.blasts = new Array();
this.blackSmokes = new Array();
this.whiteSmokes = new Array();
this.debris = new Array();
this.splashes = new Array();
this.infoPanelBlasts = new Array();
this.clouds = new Array();
};
v2.createFireworkBlast = function (pX, pY) {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.5 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.blasts.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.blasts.length / this.preferences.vfxNumPerType) {
var v4 = 0;
while (v4 < 3) {
var v3 = _root.attachMovie('mcFireworkBlast', 'vfxDeep' + this.zDeep, this.zDeep++);
v3._rotation = Math.random() * 360;
v3._x = pX;
v3._y = pY;
v3.speedX = 4 * Math.sin(v3._rotation * Math.PI / 180);
v3.speedY = 4 * Math.cos(v3._rotation * Math.PI / 180);
v3.energy = Math.floor(Math.random() * 20) + 20;
v3.spin = 0;
v3.isFirework = true;
if (Math.random() > 0.5) {
v3.gotoAndStop(2);
}
this.debris.push(v3);
++this.totalVfxNum;
++v4;
}
}
if (this.debris.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.debris.length / this.preferences.vfxNumPerType) {
v4 = 0;
while (v4 < 2) {
v3 = _root.attachMovie('mcDebris', 'vfxDeep' + this.zDeep, this.zDeep++);
v3._rotation = Math.random() * 360;
v3._x = pX;
v3._y = pY;
v3.speedX = Math.random() * 6 - 3;
v3.speedY = Math.random() * 6 - 3;
v3.energy = Math.floor(Math.random() * 20) + 20;
v3.spin = Math.random() * 60 - 30;
if (Math.random() > 0.5) {
v3.gotoAndStop(2);
}
this.debris.push(v3);
++this.totalVfxNum;
++v4;
}
if (this.zDeep > com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000) {
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
this.createBlast(pX, pY);
};
v2.createCalypsoDebris = function (pX, pY) {
if (this.preferences.vfxNum > 0 && this.preferences.vfxNumPerType > 0) {
if (this.totalVfxNum < this.preferences.vfxNum * 0.5 || Math.round() > this.totalVfxNum / this.preferences.vfxNum) {
if (this.debris.length < this.preferences.vfxNumPerType * 0.5 || Math.round() > this.debris.length / this.preferences.vfxNumPerType) {
var v4 = 0;
while (v4 < 1) {
var v3 = _root.attachMovie('mcDebris', 'vfxDeep' + this.zDeep, this.zDeep++);
v3._rotation = Math.random() * 360;
v3._x = pX;
v3._y = pY;
v3.speedX = Math.random() * 6 - 3;
v3.speedY = Math.random() * 6 - 3;
v3.energy = Math.floor(Math.random() * 20) + 20;
v3.spin = Math.random() * 60 - 30;
if (Math.random() > 0.5) {
v3.gotoAndStop(2);
}
this.debris.push(v3);
++this.totalVfxNum;
++v4;
}
if (this.zDeep > com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN + 10000) {
this.zDeep = com.gameInABottle.games.cursedWinds.constants.Z.VFX_DEEP_MIN;
}
}
}
}
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.util.VfxEngine.prototype, null, 1);
}
#endinitclip
}
movieClip 720 __Packages.com.gameInABottle.games.cursedWinds.entity.Preferences {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.Preferences) {
var v1 = function () {
this.so = SharedObject.getLocal('preferences');
this.soundVolumeBase = (this.so.data.soundVolumeBase == undefined) ? 70 : this.so.data.soundVolumeBase;
this.qualityBase = (this.so.data.qualityBase == undefined) ? 100 : this.so.data.qualityBase;
this.vfxNumBase = (this.so.data.vfxNumBase == undefined) ? 100 : this.so.data.vfxNumBase;
this.vfxNumPerTypeBase = (this.so.data.vfxNumPerTypeBase == undefined) ? 100 : this.so.data.vfxNumPerTypeBase;
this.flush();
};
com.gameInABottle.games.cursedWinds.entity.Preferences = v1;
var v2 = v1.prototype;
v2.flush = function () {
this.so.data.soundVolumeBase = this.soundVolumeBase;
this.so.data.qualityBase = this.qualityBase;
this.so.data.vfxNumBase = this.vfxNumBase;
this.so.data.vfxNumPerTypeBase = this.vfxNumPerTypeBase;
this.so.flush();
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.Preferences.prototype, null, 1);
}
#endinitclip
}
movieClip 721 __Packages.com.gameInABottle.games.cursedWinds.entity.Player {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.Player) {
var v1 = function () {
this.setScore(0);
this.setGold(0);
this.currentLevel = 0;
this.difficulty = 0;
this.levGunNum = 0;
this.levSchrapnelPower = 0;
this.levCannonballSpeed = 0;
this.levReloadSpeed = 0;
this.levCrew = 0;
this.levArmor = 0;
this.levShipMoveSpeed = 0;
this.levShipTurnSpeed = 0;
this.levVoiceOfCalypso = 0;
this.levSupportFire = 0;
this.levFireworkRockets = 0;
};
com.gameInABottle.games.cursedWinds.entity.Player = v1;
var v2 = v1.prototype;
v2.populateFromObject = function (pObj) {
this.setScore(pObj.score);
this.setGold(pObj.gold);
this.currentLevel = pObj.currentLevel;
this.difficulty = pObj.difficulty;
this.levArmor = pObj.levArmor;
this.levCannonballSpeed = pObj.levCannonballSpeed;
this.levFireworkRockets = pObj.levFireworkRockets;
this.levCrew = pObj.levCrew;
this.levGunNum = pObj.levGunNum;
this.levReloadSpeed = pObj.levReloadSpeed;
this.levSchrapnelPower = pObj.levSchrapnelPower;
this.levShipMoveSpeed = pObj.levShipMoveSpeed;
this.levShipTurnSpeed = pObj.levShipTurnSpeed;
this.levSupportFire = pObj.levSupportFire;
this.levVoiceOfCalypso = pObj.levVoiceOfCalypso;
this.checksum = pObj.checksum;
};
v2.createCloneObject = function () {
var v2 = new Object();
v2.score = this.getScore();
v2.gold = this.getGold();
v2.currentLevel = this.currentLevel;
v2.difficulty = this.difficulty;
v2.levArmor = this.levArmor;
v2.levCannonballSpeed = this.levCannonballSpeed;
v2.levFireworkRockets = this.levFireworkRockets;
v2.levCrew = this.levCrew;
v2.levGunNum = this.levGunNum;
v2.levReloadSpeed = this.levReloadSpeed;
v2.levSchrapnelPower = this.levSchrapnelPower;
v2.levShipMoveSpeed = this.levShipMoveSpeed;
v2.levShipTurnSpeed = this.levShipTurnSpeed;
v2.levSupportFire = this.levSupportFire;
v2.levVoiceOfCalypso = this.levVoiceOfCalypso;
v2.checksum = this.checksum;
return v2;
};
v2.calculateSaveChecksum = function () {
var v2 = 17382644;
var v4 = (this.getScore()).toString();
var v3 = 0;
while (v3 < v4.length) {
v2 = v2 * v4.charCodeAt(v3) % 91123214 + 901;
++v3;
}
var v5 = (this.getGold()).toString();
v3 = 0;
while (v3 < v5.length) {
v2 = v2 * v5.charCodeAt(v3) % 91133215 + 332;
++v3;
}
var v7 = this.currentLevel.toString();
v3 = 0;
while (v3 < v7.length) {
v2 = v2 * v7.charCodeAt(v3) % 93817482 + 222;
++v3;
}
var v6 = this.difficulty.toString();
v3 = 0;
while (v3 < v6.length) {
v2 = v2 * v6.charCodeAt(v3) % 91817482 + 122;
++v3;
}
if (this.levArmor == undefined) {
return v2;
}
v2 = v2 * (this.levArmor + 123) % 92817482 + 120000;
v2 = v2 * (this.levCannonballSpeed + 124) % 92817472 + 121000;
v2 = v2 * (this.levFireworkRockets + 125) % 92817462 + 122000;
v2 = v2 * (this.levCrew + 126) % 92817452 + 123000;
v2 = v2 * (this.levGunNum + 127) % 92817442 + 124000;
v2 = v2 * (this.levReloadSpeed + 128) % 92817432 + 125000;
v2 = v2 * (this.levSchrapnelPower + 129) % 92817422 + 126000;
v2 = v2 * (this.levShipMoveSpeed + 123) % 92817482 + 120000;
v2 = v2 * (this.levShipTurnSpeed + 124) % 92817472 + 121000;
v2 = v2 * (this.levSupportFire + 125) % 92817462 + 122000;
v2 = v2 * (this.levVoiceOfCalypso + 126) % 92817452 + 123000;
return v2;
};
v2.setScore = function (pScore) {
this.scoreKey = Math.floor(Math.random() * 1000000) - 500000;
this.score = pScore + this.scoreKey;
};
v2.getScore = function () {
return this.score - this.scoreKey;
};
v2.setGold = function (pGold) {
this.goldKey = Math.floor(Math.random() * 1000000) - 500000;
this.gold = pGold + this.goldKey;
};
v2.getGold = function () {
return this.gold - this.goldKey;
};
v2.calculateHighScoreChecksum = function (pName, pScore, pLevel, pDifficulty) {
var v1 = 17196657;
var v2 = 0;
while (v2 < pName.length) {
v1 = v1 * pName.charCodeAt(v2) % 93837482 + 222;
++v2;
}
var v3 = pScore.toString();
v2 = 0;
while (v2 < v3.length) {
v1 = v1 * v3.charCodeAt(v2) % 92133214 + 921;
++v2;
}
v1 = v1 * (pLevel + 513) % 92135554;
v1 = v1 * (pDifficulty + 408) % 91835357;
return v1;
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.Player.prototype, null, 1);
}
#endinitclip
}
movieClip 722 __Packages.com.gameInABottle.games.cursedWinds.constants.StaticData {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants) {
_global.com.gameInABottle.games.cursedWinds.constants = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants.StaticData) {
var v1 = function (pMain) {
this.main = pMain;
this.levels = new Array();
var v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 205;
v2.mapY = 363;
v2.mapPirRelX = 46;
v2.mapPirRelY = 11;
v2.flagShipName = 'Explorer';
var v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.isWeakened = true;
v3.goldCarried = 1400;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 250;
v3.isWeakened = true;
v3.goldCarried = 1200;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 120;
v3.xMax = 520;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 4000;
v3.isWeakened = true;
v3.goldCarried = 1200;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 120;
v3.xMax = 520;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 4300;
v3.isWeakened = true;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 120;
v3.xMax = 520;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5200;
v3.isWeakened = true;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 8000;
v3.isWeakened = true;
v3.sailType = v3.ST_BOSS;
v3.goldCarried = 2400;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 236;
v2.mapY = 289;
v2.mapPirRelX = -19;
v2.mapPirRelY = 33;
v2.flagShipName = 'Insane Buccaneer';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.15;
v3.spawnTime = 200;
v3.goldCarried = 1500;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 260;
v3.goldCarried = 1400;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.2;
v3.spawnTime = 280;
v3.goldCarried = 1400;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 350;
v3.deltaY = 0.3;
v3.spawnTime = 2000;
v3.goldCarried = 1600;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 150;
v3.deltaY = 0.1;
v3.spawnTime = 3800;
v3.goldCarried = 1400;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 150;
v3.deltaY = 0.05;
v3.spawnTime = 4000;
v3.goldCarried = 1400;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 540;
v3.deltaY = 0.35;
v3.spawnTime = 4000;
v3.goldCarried = 1500;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 5400;
v3.isWeakened = true;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 6000;
v3.isWeakened = true;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 1;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 1;
v3.sailType = v3.ST_BOSS;
v3.xMin = 100;
v3.xMax = 520;
v3.x = 350;
v3.deltaY = 0.3;
v3.spawnTime = 15000;
v3.goldCarried = 3000;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 164;
v2.mapY = 223;
v2.mapPirRelX = 40;
v2.mapPirRelY = 22;
v2.flagShipName = 'Dark Mermaid';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 220;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 250;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 2000;
v3.goldCarried = 2000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 550;
v3.deltaY = 0.2;
v3.spawnTime = 2000;
v3.goldCarried = 2000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 4;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 3200;
v3.goldCarried = 2000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 4000;
v3.goldCarried = 1500;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 500;
v3.deltaY = 0.1;
v3.spawnTime = 4050;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 320;
v3.deltaY = 0.25;
v3.spawnTime = 7000;
v3.goldCarried = 1000;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 450;
v3.deltaY = 0.05;
v3.spawnTime = 7000;
v3.goldCarried = 1100;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 3;
v3.cannonsNumLevel = 3;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 3;
v3.reloadSpeedLevel = 3;
v3.sailType = v3.ST_BOSS;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 12000;
v3.goldCarried = 6000;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 167;
v2.mapY = 139;
v2.mapPirRelX = -32;
v2.mapPirRelY = 22;
v2.flagShipName = 'Voyager';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 2200;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 250;
v3.goldCarried = 2200;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 330;
v3.goldCarried = 2200;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 1500;
v3.goldCarried = 1900;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 250;
v3.deltaY = 0.2;
v3.spawnTime = 3050;
v3.goldCarried = 1900;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 450;
v3.deltaY = 0.15;
v3.spawnTime = 3000;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 150;
v3.deltaY = 0.1;
v3.spawnTime = 6000;
v3.goldCarried = 2100;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 470;
v3.deltaY = 0.1;
v3.spawnTime = 6000;
v3.goldCarried = 1750;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 180;
v3.deltaY = 0.1;
v3.spawnTime = 8200;
v3.goldCarried = 5150;
v3.sailType = v3.ST_DOWNRED_BLANK;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 11000;
v3.goldCarried = 2200;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.35;
v3.spawnTime = 14000;
v3.goldCarried = 600;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.35;
v3.spawnTime = 14200;
v3.goldCarried = 600;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.35;
v3.spawnTime = 14400;
v3.goldCarried = 600;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.35;
v3.spawnTime = 14600;
v3.goldCarried = 600;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.35;
v3.spawnTime = 14800;
v3.goldCarried = 600;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 3;
v3.crewNumLevel = 4;
v3.firePowerLevel = 3;
v3.cannonsNumLevel = 3;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 3;
v3.reloadSpeedLevel = 3;
v3.sailType = v3.ST_BOSS;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 15000;
v3.goldCarried = 5000;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 228;
v2.mapY = 68;
v2.mapPirRelX = -39;
v2.mapPirRelY = 14;
v2.flagShipName = 'Lust of Tortuga';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 600;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 850;
v3.goldCarried = 1600;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 200;
v3.deltaY = 0.12;
v3.spawnTime = 2000;
v3.goldCarried = 1900;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 520;
v3.deltaY = 0.1;
v3.spawnTime = 2000;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 3600;
v3.goldCarried = 2500;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 500;
v3.deltaY = 0.05;
v3.spawnTime = 3600;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 4200;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 6000;
v3.goldCarried = 3300;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.4;
v3.spawnTime = 6300;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.4;
v3.spawnTime = 6500;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.4;
v3.spawnTime = 6700;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 3;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 550;
v3.deltaY = 0.08;
v3.spawnTime = 7500;
v3.goldCarried = 3900;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 3;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 200;
v3.deltaY = 0.3;
v3.spawnTime = 9400;
v3.goldCarried = 1900;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 560;
v3.deltaY = 0.25;
v3.spawnTime = 9450;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 4;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 4;
v3.reloadSpeedLevel = 4;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 11000;
v3.sailType = v3.ST_BOSS;
v3.goldCarried = 8000;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 310;
v2.mapY = 117;
v2.mapPirRelX = -25;
v2.mapPirRelY = -31;
v2.flagShipName = 'Triton';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 400;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 1000;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 1500;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 2000;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 3000;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 4500;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 5;
v3.crewNumLevel = 6;
v3.firePowerLevel = 5;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_PIRATEHUNTER1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.35;
v3.spawnTime = 4300;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 5;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_PIRATEHUNTER2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.32;
v3.spawnTime = 4400;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 6;
v3.crewNumLevel = 6;
v3.firePowerLevel = 6;
v3.cannonsNumLevel = 6;
v3.speedMaxLevel = 6;
v3.turnSpeedMaxLevel = 6;
v3.reloadSpeedLevel = 6;
v3.sailType = v3.ST_BOSS;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0;
v3.spawnTime = 4500;
v3.goldCarried = 6000;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 362;
v2.mapY = 165;
v2.mapPirRelX = -28;
v2.mapPirRelY = -30;
v2.flagShipName = 'Secret of Atlantis';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 3;
v3.cannonsNumLevel = 3;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 3;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 50;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 4;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 6;
v3.turnSpeedMaxLevel = 6;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 150;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 3;
v3.cannonsNumLevel = 3;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 3;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 250;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 3;
v3.cannonsNumLevel = 3;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 3;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 450;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 4;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 4;
v3.reloadSpeedLevel = 4;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 1350;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 4;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 4;
v3.reloadSpeedLevel = 4;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 1650;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 4;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 4;
v3.reloadSpeedLevel = 4;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 3650;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 4;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 4;
v3.reloadSpeedLevel = 4;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 3950;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 4;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 4;
v3.reloadSpeedLevel = 4;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 4150;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 4;
v3.armorLevel = 7;
v3.crewNumLevel = 7;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_BOSS;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 320;
v3.deltaY = 0.2;
v3.spawnTime = 7200;
v3.goldCarried = 8000;
v2.shipDatas.push(v3);
this.levels.push(v2);
var v4 = new com.gameInABottle.games.cursedWinds.constants.StaticDataExt1();
this.levels.push(v4.levels[0]);
this.levels.push(v4.levels[1]);
this.levels.push(v4.levels[2]);
this.levels.push(v4.levels[3]);
this.levels.push(v4.levels[4]);
var v5 = new com.gameInABottle.games.cursedWinds.constants.StaticDataExt2();
this.levels.push(v5.levels[0]);
this.levels.push(v5.levels[1]);
this.levels.push(v5.levels[2]);
};
com.gameInABottle.games.cursedWinds.constants.StaticData = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.constants.StaticData.prototype, null, 1);
}
#endinitclip
}
movieClip 723 __Packages.com.gameInABottle.games.cursedWinds.entity.LevelData {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.LevelData) {
var v1 = function () {
this.shipDatas = new Array();
};
com.gameInABottle.games.cursedWinds.entity.LevelData = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.LevelData.prototype, null, 1);
}
#endinitclip
}
movieClip 724 __Packages.com.gameInABottle.games.cursedWinds.entity.ShipData {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.ShipData) {
var v1 = function () {};
com.gameInABottle.games.cursedWinds.entity.ShipData = v1;
var v2 = v1.prototype;
v2.ST_BLANK = 'ST_BLANK';
v2.ST_DOT1 = 'ST_DOT1';
v2.ST_DOT2 = 'ST_DOT2';
v2.ST_DOT3 = 'ST_DOT3';
v2.ST_DOT4 = 'ST_DOT4';
v2.ST_DOT5 = 'ST_DOT5';
v2.ST_DOT6 = 'ST_DOT6';
v2.ST_UPRED_BLANK = 'ST_UPRED_BLANK';
v2.ST_UPRED_DOT1 = 'ST_UPRED_DOT1';
v2.ST_UPRED_DOT2 = 'ST_UPRED_DOT2';
v2.ST_UPRED_DOT3 = 'ST_UPRED_DOT3';
v2.ST_DOWNRED_BLANK = 'ST_DOWNRED_BLANK';
v2.ST_DOWNRED_DOT1 = 'ST_DOWNRED_DOT1';
v2.ST_DOWNRED_DOT2 = 'ST_DOWNRED_DOT2';
v2.ST_DOWNRED_DOT3 = 'ST_DOWNRED_DOT3';
v2.ST_PIRATEHUNTER1 = 'ST_PIRATEHUNTER1';
v2.ST_PIRATEHUNTER2 = 'ST_PIRATEHUNTER2';
v2.ST_PIRATEHUNTER3 = 'ST_PIRATEHUNTER3';
v2.ST_PIRATEHUNTER4 = 'ST_PIRATEHUNTER4';
v2.ST_BOSS = 'ST_BOSS';
v2.ST_FINAL_MINION = 'ST_FINAL_MINION';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.ShipData.prototype, null, 1);
}
#endinitclip
}
movieClip 725 __Packages.com.gameInABottle.games.cursedWinds.constants.StaticDataExt1 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants) {
_global.com.gameInABottle.games.cursedWinds.constants = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants.StaticDataExt1) {
var v1 = function () {
this.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 v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 100;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 150;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 200;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 800;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.1;
v2.spawnTime = 1100;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 1200;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 1250;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOT5;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 1;
v2.crewNumLevel = 1;
v2.firePowerLevel = 1;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 1;
v2.turnSpeedMaxLevel = 1;
v2.reloadSpeedLevel = 1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1000;
v2.deltaY = 0.1;
v2.spawnTime = 2000;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 1;
v2.crewNumLevel = 1;
v2.firePowerLevel = 1;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 1;
v2.turnSpeedMaxLevel = 1;
v2.reloadSpeedLevel = 1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.4;
v2.spawnTime = 2100;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 1;
v2.crewNumLevel = 1;
v2.firePowerLevel = 1;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 1;
v2.turnSpeedMaxLevel = 1;
v2.reloadSpeedLevel = 1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.27;
v2.spawnTime = 2200;
v2.goldCarried = 3000;
v2.sailType = v2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 900;
v2.deltaY = 0.2;
v2.spawnTime = 5200;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.3;
v2.spawnTime = 5400;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.sailType = v2.ST_BLANK;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 5450;
v2.goldCarried = 1000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.sailType = v2.ST_BLANK;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.1;
v2.spawnTime = 5500;
v2.goldCarried = 1000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.sailType = v2.ST_BLANK;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 5550;
v2.goldCarried = 1000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.sailType = v2.ST_BLANK;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 5600;
v2.goldCarried = 1000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.sailType = v2.ST_BLANK;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 900;
v2.deltaY = 0.1;
v2.spawnTime = 5650;
v2.goldCarried = 1000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 4;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 10;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_BOSS;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 320;
v2.deltaY = 0.2;
v2.spawnTime = 10000;
v2.goldCarried = 9000;
vLevelData.shipDatas.push(v2);
this.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';
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.25;
v2.spawnTime = 100;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.25;
v2.spawnTime = 400;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.25;
v2.spawnTime = 700;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.25;
v2.spawnTime = 1000;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.25;
v2.spawnTime = 1300;
v2.goldCarried = 4500;
v2.sailType = v2.ST_UPRED_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.25;
v2.spawnTime = 1600;
v2.goldCarried = 4500;
v2.sailType = v2.ST_UPRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1000;
v2.deltaY = 0.25;
v2.spawnTime = 1900;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.25;
v2.spawnTime = 2200;
v2.goldCarried = 4500;
v2.sailType = v2.ST_UPRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.25;
v2.spawnTime = 2500;
v2.goldCarried = 4500;
v2.sailType = v2.ST_UPRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1000;
v2.deltaY = 0.25;
v2.spawnTime = 2800;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 3200;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 4000;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.2;
v2.spawnTime = 5000;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 5200;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 5300;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 5400;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1000;
v2.deltaY = 0.2;
v2.spawnTime = 5600;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 5700;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 9600;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 2;
v2.cannonsNumLevel = 2;
v2.speedMaxLevel = 2;
v2.turnSpeedMaxLevel = 2;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 9800;
v2.goldCarried = 4500;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 4;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_BOSS;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 320;
v2.deltaY = 0.2;
v2.spawnTime = 10000;
v2.goldCarried = 10000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 10100;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOWNRED_DOT2;
vLevelData.shipDatas.push(v2);
this.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';
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 6;
v2.crewNumLevel = 6;
v2.firePowerLevel = 6;
v2.cannonsNumLevel = 6;
v2.speedMaxLevel = 6;
v2.turnSpeedMaxLevel = 6;
v2.reloadSpeedLevel = 6;
v2.sailType = v2.ST_PIRATEHUNTER4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 120;
v2.deltaY = 0.1;
v2.spawnTime = 100;
v2.goldCarried = 5000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER2;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.23;
v2.spawnTime = 500;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 6;
v2.crewNumLevel = 6;
v2.firePowerLevel = 6;
v2.cannonsNumLevel = 6;
v2.speedMaxLevel = 6;
v2.turnSpeedMaxLevel = 6;
v2.reloadSpeedLevel = 6;
v2.sailType = v2.ST_PIRATEHUNTER1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 270;
v2.deltaY = 0.1;
v2.spawnTime = 100;
v2.goldCarried = 5000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 6;
v2.crewNumLevel = 6;
v2.firePowerLevel = 6;
v2.cannonsNumLevel = 6;
v2.speedMaxLevel = 6;
v2.turnSpeedMaxLevel = 6;
v2.reloadSpeedLevel = 6;
v2.sailType = v2.ST_PIRATEHUNTER3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 420;
v2.deltaY = 0.1;
v2.spawnTime = 100;
v2.goldCarried = 5000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 570;
v2.deltaY = 0.1;
v2.spawnTime = 100;
v2.goldCarried = 5000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 200;
v2.deltaY = 0.1;
v2.spawnTime = 3000;
v2.goldCarried = 6000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 350;
v2.deltaY = 0.1;
v2.spawnTime = 3100;
v2.goldCarried = 6000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 500;
v2.deltaY = 0.4;
v2.spawnTime = 3200;
v2.goldCarried = 6000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1000;
v2.deltaY = 0.4;
v2.spawnTime = 5200;
v2.goldCarried = 6000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.4;
v2.spawnTime = 5400;
v2.goldCarried = 6000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.4;
v2.spawnTime = 5600;
v2.goldCarried = 6000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 5;
v2.firePowerLevel = 5;
v2.cannonsNumLevel = 5;
v2.speedMaxLevel = 5;
v2.turnSpeedMaxLevel = 5;
v2.reloadSpeedLevel = 5;
v2.sailType = v2.ST_DOT5;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 5900;
v2.goldCarried = 6000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.25;
v2.spawnTime = 9700;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER2;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.23;
v2.spawnTime = 11500;
v2.goldCarried = 1000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 900;
v2.deltaY = 0.23;
v2.spawnTime = 12000;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 4;
v2.armorLevel = 9;
v2.crewNumLevel = 9;
v2.firePowerLevel = 9;
v2.cannonsNumLevel = 9;
v2.speedMaxLevel = 6;
v2.turnSpeedMaxLevel = 6;
v2.reloadSpeedLevel = 9;
v2.sailType = v2.ST_BOSS;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 320;
v2.deltaY = 0.2;
v2.spawnTime = 13000;
v2.goldCarried = 12000;
vLevelData.shipDatas.push(v2);
this.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';
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 7;
v2.crewNumLevel = 7;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 100;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOWNRED_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 9;
v2.crewNumLevel = 9;
v2.firePowerLevel = 9;
v2.cannonsNumLevel = 9;
v2.speedMaxLevel = 9;
v2.turnSpeedMaxLevel = 9;
v2.reloadSpeedLevel = 9;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 1500;
v2.sailType = v2.ST_DOWNRED_DOT3;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 11;
v2.crewNumLevel = 11;
v2.firePowerLevel = 11;
v2.cannonsNumLevel = 11;
v2.speedMaxLevel = 11;
v2.turnSpeedMaxLevel = 11;
v2.reloadSpeedLevel = 11;
v2.sailType = v2.ST_PIRATEHUNTER4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.3;
v2.spawnTime = 1700;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 11;
v2.crewNumLevel = 11;
v2.firePowerLevel = 11;
v2.cannonsNumLevel = 11;
v2.speedMaxLevel = 11;
v2.turnSpeedMaxLevel = 11;
v2.reloadSpeedLevel = 11;
v2.sailType = v2.ST_PIRATEHUNTER2;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.3;
v2.spawnTime = 1900;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 9;
v2.crewNumLevel = 9;
v2.firePowerLevel = 9;
v2.cannonsNumLevel = 9;
v2.speedMaxLevel = 9;
v2.turnSpeedMaxLevel = 9;
v2.reloadSpeedLevel = 9;
v2.sailType = v2.ST_DOWNRED_DOT3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 3000;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 9;
v2.crewNumLevel = 9;
v2.firePowerLevel = 9;
v2.cannonsNumLevel = 9;
v2.speedMaxLevel = 9;
v2.turnSpeedMaxLevel = 9;
v2.reloadSpeedLevel = 9;
v2.sailType = v2.ST_DOWNRED_DOT3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 4500;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 5;
v2.crewNumLevel = 11;
v2.firePowerLevel = 11;
v2.cannonsNumLevel = 11;
v2.speedMaxLevel = 11;
v2.turnSpeedMaxLevel = 11;
v2.reloadSpeedLevel = 11;
v2.sailType = v2.ST_PIRATEHUNTER1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 900;
v2.deltaY = 0.3;
v2.spawnTime = 4600;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 7;
v2.crewNumLevel = 7;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_DOWNRED_DOT2;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 6000;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 7;
v2.crewNumLevel = 7;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_DOWNRED_DOT2;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.2;
v2.spawnTime = 7500;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 7;
v2.crewNumLevel = 7;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_DOWNRED_DOT2;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 8200;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 9;
v2.crewNumLevel = 9;
v2.firePowerLevel = 9;
v2.cannonsNumLevel = 9;
v2.speedMaxLevel = 9;
v2.turnSpeedMaxLevel = 9;
v2.reloadSpeedLevel = 9;
v2.sailType = v2.ST_DOWNRED_DOT3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 15000;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 9;
v2.crewNumLevel = 9;
v2.firePowerLevel = 9;
v2.cannonsNumLevel = 9;
v2.speedMaxLevel = 9;
v2.turnSpeedMaxLevel = 9;
v2.reloadSpeedLevel = 9;
v2.sailType = v2.ST_DOWNRED_DOT3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 3000;
v2.goldCarried = 16000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 9;
v2.crewNumLevel = 9;
v2.firePowerLevel = 9;
v2.cannonsNumLevel = 9;
v2.speedMaxLevel = 9;
v2.turnSpeedMaxLevel = 9;
v2.reloadSpeedLevel = 9;
v2.sailType = v2.ST_DOWNRED_DOT3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 16300;
v2.goldCarried = 4000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 11;
v2.crewNumLevel = 11;
v2.firePowerLevel = 11;
v2.cannonsNumLevel = 11;
v2.speedMaxLevel = 11;
v2.turnSpeedMaxLevel = 11;
v2.reloadSpeedLevel = 11;
v2.sailType = v2.ST_PIRATEHUNTER4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 900;
v2.deltaY = 0.3;
v2.spawnTime = 19000;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 11;
v2.crewNumLevel = 11;
v2.firePowerLevel = 11;
v2.cannonsNumLevel = 11;
v2.speedMaxLevel = 11;
v2.turnSpeedMaxLevel = 11;
v2.reloadSpeedLevel = 11;
v2.sailType = v2.ST_PIRATEHUNTER4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.3;
v2.spawnTime = 19500;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 11;
v2.crewNumLevel = 11;
v2.firePowerLevel = 11;
v2.cannonsNumLevel = 11;
v2.speedMaxLevel = 11;
v2.turnSpeedMaxLevel = 11;
v2.reloadSpeedLevel = 11;
v2.sailType = v2.ST_PIRATEHUNTER4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.3;
v2.spawnTime = 20500;
v2.goldCarried = 1000;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 4;
v2.armorLevel = 11;
v2.crewNumLevel = 11;
v2.firePowerLevel = 11;
v2.cannonsNumLevel = 11;
v2.speedMaxLevel = 6;
v2.turnSpeedMaxLevel = 6;
v2.reloadSpeedLevel = 11;
v2.sailType = v2.ST_BOSS;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 320;
v2.deltaY = 0.2;
v2.spawnTime = 20000;
v2.goldCarried = 10000;
vLevelData.shipDatas.push(v2);
this.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';
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 200;
v2.isWeakened = true;
v2.goldCarried = 1400;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 250;
v2.isWeakened = true;
v2.goldCarried = 1200;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 300;
v2.isWeakened = true;
v2.goldCarried = 1400;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 120;
v2.xMax = 520;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 4000;
v2.isWeakened = true;
v2.goldCarried = 1200;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 120;
v2.xMax = 520;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 4200;
v2.isWeakened = true;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 120;
v2.xMax = 520;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 4300;
v2.isWeakened = true;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 120;
v2.xMax = 520;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 5200;
v2.isWeakened = true;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 120;
v2.xMax = 520;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 6300;
v2.isWeakened = true;
v2.goldCarried = 150;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 2;
v2.firePowerLevel = 1;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 1;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 200;
v2.goldCarried = 2200;
v2.sailType = v2.ST_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 2;
v2.firePowerLevel = 1;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 1;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 250;
v2.goldCarried = 2200;
v2.sailType = v2.ST_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 2;
v2.firePowerLevel = 1;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 1;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 330;
v2.goldCarried = 2200;
v2.sailType = v2.ST_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 1;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.1;
v2.spawnTime = 1500;
v2.goldCarried = 1900;
v2.sailType = v2.ST_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 1;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 250;
v2.deltaY = 0.2;
v2.spawnTime = 3050;
v2.goldCarried = 1900;
v2.sailType = v2.ST_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 1;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 450;
v2.deltaY = 0.15;
v2.spawnTime = 3000;
v2.goldCarried = 2000;
v2.sailType = v2.ST_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 1;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -250;
v2.deltaY = 0.1;
v2.spawnTime = 6000;
v2.goldCarried = 2100;
v2.sailType = v2.ST_DOT2;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 1;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 470;
v2.deltaY = 0.1;
v2.spawnTime = 6000;
v2.goldCarried = 1750;
v2.sailType = v2.ST_DOT1;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 1;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 180;
v2.deltaY = 0.1;
v2.spawnTime = 8200;
v2.goldCarried = 5150;
v2.sailType = v2.ST_DOWNRED_BLANK;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 1;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1200;
v2.deltaY = 0.1;
v2.spawnTime = 11000;
v2.goldCarried = 2200;
v2.sailType = v2.ST_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.isWeakened = true;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.35;
v2.spawnTime = 14000;
v2.goldCarried = 600;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.isWeakened = true;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.35;
v2.spawnTime = 14200;
v2.goldCarried = 600;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.isWeakened = true;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -400;
v2.deltaY = 0.35;
v2.spawnTime = 14400;
v2.goldCarried = 600;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.isWeakened = true;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.35;
v2.spawnTime = 14600;
v2.goldCarried = 600;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 0;
v2.crewNumLevel = 0;
v2.firePowerLevel = 0;
v2.cannonsNumLevel = 0;
v2.speedMaxLevel = 0;
v2.turnSpeedMaxLevel = 0;
v2.reloadSpeedLevel = 0;
v2.isWeakened = true;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.35;
v2.spawnTime = 14800;
v2.goldCarried = 600;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 3;
v2.cannonsNumLevel = 3;
v2.speedMaxLevel = 3;
v2.turnSpeedMaxLevel = 3;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 50;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT3;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 4;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 6;
v2.turnSpeedMaxLevel = 6;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER2;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 150;
v2.goldCarried = 800;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 3;
v2.cannonsNumLevel = 3;
v2.speedMaxLevel = 3;
v2.turnSpeedMaxLevel = 3;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -200;
v2.deltaY = 0.2;
v2.spawnTime = 250;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT5;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 1;
v2.armorLevel = 3;
v2.crewNumLevel = 3;
v2.firePowerLevel = 3;
v2.cannonsNumLevel = 3;
v2.speedMaxLevel = 3;
v2.turnSpeedMaxLevel = 3;
v2.reloadSpeedLevel = 3;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 450;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT5;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 4;
v2.crewNumLevel = 4;
v2.firePowerLevel = 4;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 4;
v2.turnSpeedMaxLevel = 4;
v2.reloadSpeedLevel = 4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 1350;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT4;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 4;
v2.crewNumLevel = 4;
v2.firePowerLevel = 4;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 4;
v2.turnSpeedMaxLevel = 4;
v2.reloadSpeedLevel = 4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1000;
v2.deltaY = 0.2;
v2.spawnTime = 1650;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT5;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 4;
v2.crewNumLevel = 4;
v2.firePowerLevel = 4;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 4;
v2.turnSpeedMaxLevel = 4;
v2.reloadSpeedLevel = 4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 3650;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT5;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 4;
v2.crewNumLevel = 4;
v2.firePowerLevel = 4;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 4;
v2.turnSpeedMaxLevel = 4;
v2.reloadSpeedLevel = 4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 3950;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT5;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 2;
v2.armorLevel = 4;
v2.crewNumLevel = 4;
v2.firePowerLevel = 4;
v2.cannonsNumLevel = 4;
v2.speedMaxLevel = 4;
v2.turnSpeedMaxLevel = 4;
v2.reloadSpeedLevel = 4;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.2;
v2.spawnTime = 4150;
v2.goldCarried = 4000;
v2.sailType = v2.ST_DOT5;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = -300;
v2.deltaY = 0.23;
v2.spawnTime = 10000;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 3;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_PIRATEHUNTER1;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 1000;
v2.deltaY = 0.23;
v2.spawnTime = 10500;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v2.hullType = 4;
v2.armorLevel = 8;
v2.crewNumLevel = 9;
v2.firePowerLevel = 7;
v2.cannonsNumLevel = 7;
v2.speedMaxLevel = 7;
v2.turnSpeedMaxLevel = 7;
v2.reloadSpeedLevel = 7;
v2.sailType = v2.ST_BOSS;
v2.xMin = 80;
v2.xMax = 560;
v2.x = 0;
v2.deltaY = 0.23;
v2.spawnTime = 11000;
v2.goldCarried = 900;
vLevelData.shipDatas.push(v2);
this.levels.push(vLevelData);
};
com.gameInABottle.games.cursedWinds.constants.StaticDataExt1 = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.constants.StaticDataExt1.prototype, null, 1);
}
#endinitclip
}
movieClip 726 __Packages.com.gameInABottle.games.cursedWinds.constants.StaticDataExt2 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants) {
_global.com.gameInABottle.games.cursedWinds.constants = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.constants.StaticDataExt2) {
var v1 = function () {
this.levels = new Array();
var v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 557;
v2.mapY = 164;
v2.mapPirRelX = 16;
v2.mapPirRelY = 32;
v2.flagShipName = 'Destroyer';
var v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.15;
v3.spawnTime = 200;
v3.goldCarried = 1500;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 260;
v3.goldCarried = 1400;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -300;
v3.deltaY = 0.2;
v3.spawnTime = 280;
v3.goldCarried = 1400;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 340;
v3.deltaY = 0.15;
v3.spawnTime = 400;
v3.isWeakened = true;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -350;
v3.deltaY = 0.3;
v3.spawnTime = 2000;
v3.goldCarried = 1600;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 150;
v3.deltaY = 0.1;
v3.spawnTime = 3800;
v3.goldCarried = 1400;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.05;
v3.spawnTime = 4000;
v3.goldCarried = 1400;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 540;
v3.deltaY = 0.35;
v3.spawnTime = 4000;
v3.goldCarried = 1500;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 4800;
v3.isWeakened = true;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 5400;
v3.isWeakened = true;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 6000;
v3.isWeakened = true;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 600;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 850;
v3.goldCarried = 1600;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.12;
v3.spawnTime = 2000;
v3.goldCarried = 1900;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 1;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 520;
v3.deltaY = 0.1;
v3.spawnTime = 2000;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 3600;
v3.goldCarried = 2500;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 500;
v3.deltaY = 0.05;
v3.spawnTime = 3600;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.25;
v3.spawnTime = 4200;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 3;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 6000;
v3.goldCarried = 3300;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.4;
v3.spawnTime = 6300;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.4;
v3.spawnTime = 6500;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.4;
v3.spawnTime = 6700;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT4;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 3;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 550;
v3.deltaY = 0.08;
v3.spawnTime = 7500;
v3.goldCarried = 3900;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 2;
v3.crewNumLevel = 0;
v3.firePowerLevel = 3;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 200;
v3.deltaY = 0.3;
v3.spawnTime = 9400;
v3.goldCarried = 1900;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 1;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 3;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 560;
v3.deltaY = 0.25;
v3.spawnTime = 9450;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 100;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOWNRED_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 150;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOWNRED_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOWNRED_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 800;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOWNRED_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.1;
v3.spawnTime = 1100;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 1200;
v3.goldCarried = 4000;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 1250;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 1;
v3.crewNumLevel = 1;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.1;
v3.spawnTime = 2000;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOWNRED_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 1;
v3.crewNumLevel = 1;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.4;
v3.spawnTime = 2100;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOWNRED_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 1;
v3.crewNumLevel = 1;
v3.firePowerLevel = 1;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.27;
v3.spawnTime = 2200;
v3.goldCarried = 3000;
v3.sailType = v3.ST_DOWNRED_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5200;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.3;
v3.spawnTime = 5400;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.sailType = v3.ST_BLANK;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 5450;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.sailType = v3.ST_BLANK;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 5500;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.sailType = v3.ST_BLANK;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 5550;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.sailType = v3.ST_BLANK;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.1;
v3.spawnTime = 5600;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.sailType = v3.ST_BLANK;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 5650;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.23;
v3.spawnTime = 10000;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.23;
v3.spawnTime = 10500;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.23;
v3.spawnTime = 11000;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 4;
v3.armorLevel = 10;
v3.crewNumLevel = 10;
v3.firePowerLevel = 10;
v3.cannonsNumLevel = 10;
v3.speedMaxLevel = 10;
v3.turnSpeedMaxLevel = 10;
v3.reloadSpeedLevel = 10;
v3.sailType = v3.ST_BOSS;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.3;
v3.spawnTime = 12000;
v3.goldCarried = 4000;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 509;
v2.mapY = 86;
v2.mapPirRelX = 41;
v2.mapPirRelY = 13;
v2.flagShipName = 'The Wanderer';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 220;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 250;
v3.goldCarried = 1800;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 400;
v3.deltaY = 0.1;
v3.spawnTime = 1900;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 2000;
v3.goldCarried = 2000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.2;
v3.spawnTime = 2000;
v3.goldCarried = 2000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 1;
v3.turnSpeedMaxLevel = 0;
v3.reloadSpeedLevel = 1;
v3.isWeakened = true;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.2;
v3.spawnTime = 3200;
v3.goldCarried = 2000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 300;
v3.deltaY = 0.1;
v3.spawnTime = 4000;
v3.goldCarried = 1500;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 500;
v3.deltaY = 0.1;
v3.spawnTime = 4050;
v3.goldCarried = 2000;
v3.sailType = v3.ST_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 0;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 0;
v3.speedMaxLevel = 0;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 320;
v3.deltaY = 0.25;
v3.spawnTime = 7000;
v3.goldCarried = 1000;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 0;
v3.crewNumLevel = 2;
v3.firePowerLevel = 0;
v3.cannonsNumLevel = 1;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 1;
v3.reloadSpeedLevel = 0;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -450;
v3.deltaY = 0.05;
v3.spawnTime = 7000;
v3.goldCarried = 1100;
v3.sailType = v3.ST_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 200;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.1;
v3.spawnTime = 400;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 1000;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 1500;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 2000;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 3000;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 4;
v3.firePowerLevel = 4;
v3.cannonsNumLevel = 4;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 4500;
v3.goldCarried = 5500;
v3.sailType = v3.ST_DOT5;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 5;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_PIRATEHUNTER1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.35;
v3.spawnTime = 4300;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 5;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 4;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_PIRATEHUNTER2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.32;
v3.spawnTime = 4400;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 100;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 400;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.25;
v3.spawnTime = 700;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 1000;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 1300;
v3.goldCarried = 4500;
v3.sailType = v3.ST_UPRED_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 1600;
v3.goldCarried = 4500;
v3.sailType = v3.ST_UPRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.25;
v3.spawnTime = 1900;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT1;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 2200;
v3.goldCarried = 4500;
v3.sailType = v3.ST_UPRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 2500;
v3.goldCarried = 4500;
v3.sailType = v3.ST_UPRED_DOT3;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.25;
v3.spawnTime = 2800;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 3200;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.2;
v3.spawnTime = 4000;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5000;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5200;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5300;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5400;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5600;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5700;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.2;
v3.spawnTime = 9600;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 3;
v3.crewNumLevel = 3;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 9800;
v3.goldCarried = 4500;
v3.sailType = v3.ST_DOWNRED_DOT2;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 900;
v3.deltaY = 0.23;
v3.spawnTime = 10000;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 3;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.23;
v3.spawnTime = 10400;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 8;
v3.crewNumLevel = 9;
v3.firePowerLevel = 7;
v3.cannonsNumLevel = 7;
v3.speedMaxLevel = 7;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 7;
v3.sailType = v3.ST_PIRATEHUNTER4;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.23;
v3.spawnTime = 10800;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 4;
v3.armorLevel = 11;
v3.crewNumLevel = 11;
v3.firePowerLevel = 11;
v3.cannonsNumLevel = 11;
v3.speedMaxLevel = 11;
v3.turnSpeedMaxLevel = 11;
v3.reloadSpeedLevel = 11;
v3.sailType = v3.ST_BOSS;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.23;
v3.spawnTime = 12000;
v3.goldCarried = 900;
v2.shipDatas.push(v3);
this.levels.push(v2);
v2 = new com.gameInABottle.games.cursedWinds.entity.LevelData();
v2.mapX = 429;
v2.mapY = 68;
v2.mapPirRelX = 47;
v2.mapPirRelY = 0;
v2.flagShipName = 'Ketos';
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 5;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -800;
v3.deltaY = 0.1;
v3.spawnTime = 10;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 5;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -650;
v3.deltaY = 0.1;
v3.spawnTime = 10;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 5;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 10;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 5;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 2000;
v3.deltaY = 0.1;
v3.spawnTime = 10;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 5;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 1200;
v3.deltaY = 0.1;
v3.spawnTime = 10;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 5;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 950;
v3.deltaY = 0.1;
v3.spawnTime = 2500;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 1;
v3.armorLevel = 5;
v3.crewNumLevel = 5;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 5;
v3.speedMaxLevel = 5;
v3.turnSpeedMaxLevel = 5;
v3.reloadSpeedLevel = 5;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.1;
v3.spawnTime = 2600;
v3.goldCarried = 800;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 6;
v3.crewNumLevel = 6;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 6;
v3.speedMaxLevel = 6;
v3.turnSpeedMaxLevel = 6;
v3.reloadSpeedLevel = 6;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -1000;
v3.deltaY = 0.15;
v3.spawnTime = 2700;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 6;
v3.crewNumLevel = 6;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 6;
v3.speedMaxLevel = 6;
v3.turnSpeedMaxLevel = 6;
v3.reloadSpeedLevel = 6;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.2;
v3.spawnTime = 5500;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 6;
v3.crewNumLevel = 6;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 6;
v3.speedMaxLevel = 6;
v3.turnSpeedMaxLevel = 6;
v3.reloadSpeedLevel = 6;
v3.sailType = v3.ST_DOWNRED_DOT3;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.25;
v3.spawnTime = 5500;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 2;
v3.crewNumLevel = 2;
v3.firePowerLevel = 2;
v3.cannonsNumLevel = 2;
v3.speedMaxLevel = 2;
v3.turnSpeedMaxLevel = 2;
v3.reloadSpeedLevel = 2;
v3.sailType = v3.ST_BLANK;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 1000;
v3.deltaY = 0.25;
v3.spawnTime = 5550;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 4;
v3.armorLevel = 12;
v3.crewNumLevel = 12;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 12;
v3.speedMaxLevel = 12;
v3.turnSpeedMaxLevel = 12;
v3.reloadSpeedLevel = 12;
v3.sailType = v3.ST_PIRATEHUNTER1;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.3;
v3.spawnTime = 10000;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 4;
v3.armorLevel = 12;
v3.crewNumLevel = 12;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 12;
v3.speedMaxLevel = 12;
v3.turnSpeedMaxLevel = 12;
v3.reloadSpeedLevel = 12;
v3.sailType = v3.ST_PIRATEHUNTER2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 0;
v3.deltaY = 0.3;
v3.spawnTime = 10500;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 4;
v3.armorLevel = 12;
v3.crewNumLevel = 12;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 12;
v3.speedMaxLevel = 12;
v3.turnSpeedMaxLevel = 12;
v3.reloadSpeedLevel = 12;
v3.sailType = v3.ST_PIRATEHUNTER2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = 1000;
v3.deltaY = 0.3;
v3.spawnTime = 11000;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 4;
v3.armorLevel = 12;
v3.crewNumLevel = 12;
v3.firePowerLevel = 12;
v3.cannonsNumLevel = 12;
v3.speedMaxLevel = 12;
v3.turnSpeedMaxLevel = 12;
v3.reloadSpeedLevel = 12;
v3.sailType = v3.ST_PIRATEHUNTER2;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -200;
v3.deltaY = 0.3;
v3.spawnTime = 11200;
v3.goldCarried = 1000;
v2.shipDatas.push(v3);
v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 5;
v3.armorLevel = 15;
v3.crewNumLevel = 15;
v3.firePowerLevel = 15;
v3.cannonsNumLevel = 15;
v3.speedMaxLevel = 11;
v3.turnSpeedMaxLevel = 7;
v3.reloadSpeedLevel = 15;
v3.sailType = v3.ST_BOSS;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -300;
v3.deltaY = -100;
v3.spawnTime = 16000;
v3.goldCarried = 15000;
v2.shipDatas.push(v3);
this.levels.push(v2);
};
com.gameInABottle.games.cursedWinds.constants.StaticDataExt2 = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.constants.StaticDataExt2.prototype, null, 1);
}
#endinitclip
}
movieClip 727 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades) {
var v1 = function (pMcw, pMain) {
this.mcw = pMcw;
this.main = pMain;
this.prcsArmor = new Array(1000, 1300, 1600, 2000, 2600, 4000, 6000, 8000, 10000, 12000);
this.prcsGunNum = new Array(1000, 1500, 2200, 3200, 4500, 6000, 8000, 10000, 12000, 14000);
this.prcsCrew = new Array(1200, 1800, 2400, 3600, 5000, 7000, 9000, 12000, 14000, 16000);
this.prcsSchrapnelPower = new Array(1000, 1400, 2000, 2800, 3800, 5000, 7000, 9000, 11000, 13000);
this.prcsShipMoveSpeed = new Array(1400, 2000, 2800, 4400, 6400, 8000, 10000, 12500, 15000, 17500);
this.prcsReloadSpeed = new Array(1400, 2000, 2800, 4400, 6400, 8000, 10000, 12500, 15000, 17500);
this.prcsShipTurnSpeed = new Array(1600, 2400, 3200, 4800, 7200, 9600, 12000, 14000, 16000, 18000);
this.prcsCannonballSpeed = new Array(1000, 1300, 1600, 2000, 2600, 4000, 6000, 8000, 10000, 12000);
this.prcsFireworkRockets = new Array(3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000);
this.prcsSupportFire = new Array(3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000);
this.prcsVoiceOfCalypso = new Array(5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000);
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
this.mcw.btnArmor.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeArmor();
};
this.mcw.btnGunNum.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeGunNum();
};
this.mcw.btnCrew.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeCrew();
};
this.mcw.btnSchrapnelPower.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeSchrapnelPower();
};
this.mcw.btnShipMoveSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeShipMoveSpeed();
};
this.mcw.btnReloadSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeReloadSpeed();
};
this.mcw.btnShipTurnSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeShipTurnSpeed();
};
this.mcw.btnCannonballSpeed.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeCannonballSpeed();
};
this.mcw.btnFireworkRockets.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeFireworkRockets();
};
this.mcw.btnSupportFire.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeSupportFire();
};
this.mcw.btnVoiceOfCalypso.onPress = function () {
vThis.isChangeMade = true;
vThis.upgradeVoiceOfCalypso();
};
this.mcw.btnUndo.onPress = function () {
vThis.undoChanges();
};
this.mcw.btnArmor.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnGunNum.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnCrew.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnSchrapnelPower.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnShipMoveSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnReloadSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnShipTurnSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnCannonballSpeed.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnFireworkRockets.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnSupportFire.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnVoiceOfCalypso.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnUndo.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
};
this.mcw.btnSave.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
};
this.mcw.btnSave.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
};
this.mcw.btnDone.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
};
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mc._visible = true;
this.mcw.mc._y = -480;
this.mcw.btnDone._y = -600;
this.mcw.btnSave._y = -600;
this.mcw.mcGold._y = -600;
this.levGunNumInitial = this.main.player.levGunNum;
this.levShipMoveSpeedInitial = this.main.player.levShipMoveSpeed;
this.levShipTurnSpeedInitial = this.main.player.levShipTurnSpeed;
this.levReloadSpeedInitial = this.main.player.levReloadSpeed;
this.levCannonballSpeedInitial = this.main.player.levCannonballSpeed;
this.levSchrapnelPowerInitial = this.main.player.levSchrapnelPower;
this.levArmorInitial = this.main.player.levArmor;
this.levCrewInitial = this.main.player.levCrew;
this.levVoiceOfCalypsoInitial = this.main.player.levVoiceOfCalypso;
this.levSupportFireInitial = this.main.player.levSupportFire;
this.levFireworkRocketsInitial = this.main.player.levFireworkRockets;
this.setGoldInitial(this.main.player.getGold());
this.isChangeMade = false;
this.renderUpgrades();
this.btnUndoStep = 0;
this.mcw.btnUndo._x = -50;
};
v2.renderUpgrades = function () {
this.mcw.mcLevelArmor.gotoAndStop(this.main.player.levArmor + 1);
this.mcw.mcLevelCrew.gotoAndStop(this.main.player.levCrew + 1);
this.mcw.mcLevelGunNum.gotoAndStop(this.main.player.levGunNum + 1);
this.mcw.mcLevelReloadSpeed.gotoAndStop(this.main.player.levReloadSpeed + 1);
this.mcw.mcLevelShipMoveSpeed.gotoAndStop(this.main.player.levShipMoveSpeed + 1);
this.mcw.mcLevelShipTurnSpeed.gotoAndStop(this.main.player.levShipTurnSpeed + 1);
this.mcw.mcLevelCannonballSpeed.gotoAndStop(this.main.player.levCannonballSpeed + 1);
this.mcw.mcLevelSchrapnelPower.gotoAndStop(this.main.player.levSchrapnelPower + 1);
this.mcw.mcLevelVoiceOfCalypso.gotoAndStop(this.main.player.levVoiceOfCalypso);
this.mcw.mcLevelSupportFire.gotoAndStop(this.main.player.levSupportFire);
this.mcw.mcLevelFireworkRockets.gotoAndStop(this.main.player.levFireworkRockets);
if (this.main.player.levVoiceOfCalypso < 1) {
this.mcw.mcLevelVoiceOfCalypso._visible = false;
} else {
this.mcw.mcLevelVoiceOfCalypso._visible = true;
}
if (this.main.player.levSupportFire < 1) {
this.mcw.mcLevelSupportFire._visible = false;
} else {
this.mcw.mcLevelSupportFire._visible = true;
}
if (this.main.player.levFireworkRockets < 1) {
this.mcw.mcLevelFireworkRockets._visible = false;
} else {
this.mcw.mcLevelFireworkRockets._visible = true;
}
this.mcw.mcGold.tf.text = this.main.player.getGold() + ' Gold';
if (this.main.player.levArmor > 6 + this.main.player.difficulty) {
this.mcw.tfArmor.text = 'FULL UPGRADE';
this.mcw.tfArmor.textColor = 8674878;
this.mcw.btnArmor._visible = false;
} else {
if (this.main.player.getGold() < this.prcsArmor[this.main.player.levArmor + 1]) {
this.mcw.tfArmor.text = 'Not enough gold\n(' + this.prcsArmor[this.main.player.levArmor + 1] + ' needed)';
this.mcw.tfArmor.textColor = 11149344;
this.mcw.btnArmor._visible = false;
} else {
this.mcw.tfArmor.text = 'Upgrade Ship Armor:\n' + this.prcsArmor[this.main.player.levArmor + 1] + ' gold';
this.mcw.tfArmor.textColor = 0;
this.mcw.btnArmor._visible = true;
}
}
if (this.main.player.levCrew > 6 + this.main.player.difficulty) {
this.mcw.tfCrew.text = 'FULL UPGRADE';
this.mcw.tfCrew.textColor = 8674878;
this.mcw.btnCrew._visible = false;
} else {
if (this.main.player.getGold() < this.prcsCrew[this.main.player.levCrew + 1]) {
this.mcw.tfCrew.text = 'Not enough gold\n(' + this.prcsCrew[this.main.player.levCrew + 1] + ' needed)';
this.mcw.tfCrew.textColor = 11149344;
this.mcw.btnCrew._visible = false;
} else {
this.mcw.tfCrew.text = 'Hire more Crew:\n' + this.prcsCrew[this.main.player.levCrew + 1] + ' gold';
this.mcw.tfCrew.textColor = 0;
this.mcw.btnCrew._visible = true;
}
}
if (this.main.player.levSchrapnelPower > 6 + this.main.player.difficulty) {
this.mcw.tfSchrapnelPower.text = 'FULL UPGRADE';
this.mcw.tfSchrapnelPower.textColor = 8674878;
this.mcw.btnSchrapnelPower._visible = false;
} else {
if (this.main.player.getGold() < this.prcsSchrapnelPower[this.main.player.levSchrapnelPower + 1]) {
this.mcw.tfSchrapnelPower.text = 'Not enough gold\n(' + this.prcsSchrapnelPower[this.main.player.levSchrapnelPower + 1] + ' needed)';
this.mcw.tfSchrapnelPower.textColor = 11149344;
this.mcw.btnSchrapnelPower._visible = false;
} else {
this.mcw.tfSchrapnelPower.text = 'Increase Damage:\n' + this.prcsSchrapnelPower[this.main.player.levSchrapnelPower + 1] + ' gold';
this.mcw.tfSchrapnelPower.textColor = 0;
this.mcw.btnSchrapnelPower._visible = true;
}
}
if (this.main.player.levGunNum > 6 + this.main.player.difficulty) {
this.mcw.tfGunNum.text = 'FULL UPGRADE';
this.mcw.tfGunNum.textColor = 8674878;
this.mcw.btnGunNum._visible = false;
} else {
if (this.main.player.getGold() < this.prcsGunNum[this.main.player.levGunNum + 1]) {
this.mcw.tfGunNum.text = 'Not enough gold\n(' + this.prcsGunNum[this.main.player.levGunNum + 1] + ' needed)';
this.mcw.tfGunNum.textColor = 11149344;
this.mcw.btnGunNum._visible = false;
} else {
this.mcw.tfGunNum.text = 'Add Canons:\n' + this.prcsGunNum[this.main.player.levGunNum + 1] + ' gold';
this.mcw.tfGunNum.textColor = 0;
this.mcw.btnGunNum._visible = true;
}
}
if (this.main.player.levReloadSpeed > 6 + this.main.player.difficulty) {
this.mcw.tfReloadSpeed.text = 'FULL UPGRADE';
this.mcw.tfReloadSpeed.textColor = 8674878;
this.mcw.btnReloadSpeed._visible = false;
} else {
if (this.main.player.getGold() < this.prcsReloadSpeed[this.main.player.levReloadSpeed + 1]) {
this.mcw.tfReloadSpeed.text = 'Not enough gold\n(' + this.prcsReloadSpeed[this.main.player.levReloadSpeed + 1] + ' needed)';
this.mcw.tfReloadSpeed.textColor = 11149344;
this.mcw.btnReloadSpeed._visible = false;
} else {
this.mcw.tfReloadSpeed.text = 'Faster Reload:\n' + this.prcsReloadSpeed[this.main.player.levReloadSpeed + 1] + ' gold';
this.mcw.tfReloadSpeed.textColor = 0;
this.mcw.btnReloadSpeed._visible = true;
}
}
if (this.main.player.levShipMoveSpeed > 6 + this.main.player.difficulty) {
this.mcw.tfShipMoveSpeed.text = 'FULL UPGRADE';
this.mcw.tfShipMoveSpeed.textColor = 8674878;
this.mcw.btnShipMoveSpeed._visible = false;
} else {
if (this.main.player.getGold() < this.prcsShipMoveSpeed[this.main.player.levShipMoveSpeed + 1]) {
this.mcw.tfShipMoveSpeed.text = 'Not enough gold\n(' + this.prcsShipMoveSpeed[this.main.player.levShipMoveSpeed + 1] + ' needed)';
this.mcw.tfShipMoveSpeed.textColor = 11149344;
this.mcw.btnShipMoveSpeed._visible = false;
} else {
this.mcw.tfShipMoveSpeed.text = 'Ship Speed:\n' + this.prcsShipMoveSpeed[this.main.player.levShipMoveSpeed + 1] + ' gold';
this.mcw.tfShipMoveSpeed.textColor = 0;
this.mcw.btnShipMoveSpeed._visible = true;
}
}
if (this.main.player.levShipTurnSpeed > 6 + this.main.player.difficulty) {
this.mcw.tfShipTurnSpeed.text = 'FULL UPGRADE';
this.mcw.tfShipTurnSpeed.textColor = 8674878;
this.mcw.btnShipTurnSpeed._visible = false;
} else {
if (this.main.player.getGold() < this.prcsShipTurnSpeed[this.main.player.levShipTurnSpeed + 1]) {
this.mcw.tfShipTurnSpeed.text = 'Not enough gold\n(' + this.prcsShipTurnSpeed[this.main.player.levShipTurnSpeed + 1] + ' needed)';
this.mcw.tfShipTurnSpeed.textColor = 11149344;
this.mcw.btnShipTurnSpeed._visible = false;
} else {
this.mcw.tfShipTurnSpeed.text = 'Bow Thrusters:\n' + this.prcsShipTurnSpeed[this.main.player.levShipTurnSpeed + 1] + ' gold';
this.mcw.tfShipTurnSpeed.textColor = 0;
this.mcw.btnShipTurnSpeed._visible = true;
}
}
if (this.main.player.levCannonballSpeed > 6 + this.main.player.difficulty) {
this.mcw.tfCannonballSpeed.text = 'FULL UPGRADE';
this.mcw.tfCannonballSpeed.textColor = 8674878;
this.mcw.btnCannonballSpeed._visible = false;
} else {
if (this.main.player.getGold() < this.prcsCannonballSpeed[this.main.player.levCannonballSpeed + 1]) {
this.mcw.tfCannonballSpeed.text = 'Not enough gold\n(' + this.prcsCannonballSpeed[this.main.player.levCannonballSpeed + 1] + ' needed)';
this.mcw.tfCannonballSpeed.textColor = 11149344;
this.mcw.btnCannonballSpeed._visible = false;
} else {
this.mcw.tfCannonballSpeed.text = 'Canonball Speed:\n' + this.prcsCannonballSpeed[this.main.player.levCannonballSpeed + 1] + ' gold';
this.mcw.tfCannonballSpeed.textColor = 0;
this.mcw.btnCannonballSpeed._visible = true;
}
}
if (this.main.player.levVoiceOfCalypso > 7 + this.main.player.difficulty) {
this.mcw.tfVoiceOfCalypso.text = 'FULL UPGRADE';
this.mcw.tfVoiceOfCalypso.textColor = 8674878;
this.mcw.btnVoiceOfCalypso._visible = false;
} else {
if (this.main.player.getGold() < this.prcsVoiceOfCalypso[this.main.player.levVoiceOfCalypso + 1]) {
this.mcw.tfVoiceOfCalypso.text = 'Not enough gold\n(' + this.prcsVoiceOfCalypso[this.main.player.levVoiceOfCalypso + 1] + ' needed)';
this.mcw.tfVoiceOfCalypso.textColor = 11149344;
this.mcw.btnVoiceOfCalypso._visible = false;
} else {
this.mcw.tfVoiceOfCalypso.text = 'Voice of Calypso:\n' + this.prcsVoiceOfCalypso[this.main.player.levVoiceOfCalypso + 1] + ' gold';
this.mcw.tfVoiceOfCalypso.textColor = 0;
this.mcw.btnVoiceOfCalypso._visible = true;
}
}
if (this.main.player.levFireworkRockets > 7 + this.main.player.difficulty) {
this.mcw.tfFireworkRockets.text = 'FULL UPGRADE';
this.mcw.tfFireworkRockets.textColor = 8674878;
this.mcw.btnFireworkRockets._visible = false;
} else {
if (this.main.player.getGold() < this.prcsFireworkRockets[this.main.player.levFireworkRockets + 1]) {
this.mcw.tfFireworkRockets.text = 'Not enough gold\n(' + this.prcsFireworkRockets[this.main.player.levFireworkRockets + 1] + ' needed)';
this.mcw.tfFireworkRockets.textColor = 11149344;
this.mcw.btnFireworkRockets._visible = false;
} else {
this.mcw.tfFireworkRockets.text = 'Rockets:\n' + this.prcsFireworkRockets[this.main.player.levFireworkRockets + 1] + ' gold';
this.mcw.tfFireworkRockets.textColor = 0;
this.mcw.btnFireworkRockets._visible = true;
}
}
if (this.main.player.levSupportFire > 7 + this.main.player.difficulty) {
this.mcw.tfSupportFire.text = 'FULL UPGRADE';
this.mcw.tfSupportFire.textColor = 8674878;
this.mcw.btnSupportFire._visible = false;
} else {
if (this.main.player.getGold() < this.prcsSupportFire[this.main.player.levSupportFire + 1]) {
this.mcw.tfSupportFire.text = 'Not enough gold\n(' + this.prcsSupportFire[this.main.player.levSupportFire + 1] + ' needed)';
this.mcw.tfSupportFire.textColor = 11149344;
this.mcw.btnSupportFire._visible = false;
} else {
this.mcw.tfSupportFire.text = 'Artillery Support:\n' + this.prcsSupportFire[this.main.player.levSupportFire + 1] + ' gold';
this.mcw.tfSupportFire.textColor = 0;
this.mcw.btnSupportFire._visible = true;
}
}
};
v2.upgradeArmor = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsArmor[this.main.player.levArmor + 1]);
++this.main.player.levArmor;
this.renderUpgrades();
};
v2.upgradeReloadSpeed = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsReloadSpeed[this.main.player.levReloadSpeed + 1]);
++this.main.player.levReloadSpeed;
this.renderUpgrades();
};
v2.upgradeCrew = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsCrew[this.main.player.levCrew + 1]);
++this.main.player.levCrew;
this.renderUpgrades();
};
v2.upgradeGunNum = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsGunNum[this.main.player.levGunNum + 1]);
++this.main.player.levGunNum;
this.renderUpgrades();
};
v2.upgradeSchrapnelPower = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsSchrapnelPower[this.main.player.levSchrapnelPower + 1]);
++this.main.player.levSchrapnelPower;
this.renderUpgrades();
};
v2.upgradeShipMoveSpeed = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsShipMoveSpeed[this.main.player.levShipMoveSpeed + 1]);
++this.main.player.levShipMoveSpeed;
this.renderUpgrades();
};
v2.upgradeShipTurnSpeed = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsShipTurnSpeed[this.main.player.levShipTurnSpeed + 1]);
++this.main.player.levShipTurnSpeed;
this.renderUpgrades();
};
v2.upgradeCannonballSpeed = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsCannonballSpeed[this.main.player.levCannonballSpeed + 1]);
++this.main.player.levCannonballSpeed;
this.renderUpgrades();
};
v2.upgradeVoiceOfCalypso = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsVoiceOfCalypso[this.main.player.levVoiceOfCalypso + 1]);
++this.main.player.levVoiceOfCalypso;
this.renderUpgrades();
};
v2.upgradeSupportFire = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsSupportFire[this.main.player.levSupportFire + 1]);
++this.main.player.levSupportFire;
this.renderUpgrades();
};
v2.upgradeFireworkRockets = function () {
this.main.sndUpgrade.start();
this.main.player.setGold(this.main.player.getGold() - this.prcsFireworkRockets[this.main.player.levFireworkRockets + 1]);
++this.main.player.levFireworkRockets;
this.renderUpgrades();
};
v2.undoChanges = function () {
this.main.player.levArmor = this.levArmorInitial;
this.main.player.levCrew = this.levCrewInitial;
this.main.player.levSchrapnelPower = this.levSchrapnelPowerInitial;
this.main.player.levGunNum = this.levGunNumInitial;
this.main.player.levReloadSpeed = this.levReloadSpeedInitial;
this.main.player.levShipMoveSpeed = this.levShipMoveSpeedInitial;
this.main.player.levShipTurnSpeed = this.levShipTurnSpeedInitial;
this.main.player.levCannonballSpeed = this.levCannonballSpeedInitial;
this.main.player.levSupportFire = this.levSupportFireInitial;
this.main.player.levFireworkRockets = this.levFireworkRocketsInitial;
this.main.player.levVoiceOfCalypso = this.levVoiceOfCalypsoInitial;
this.main.player.setGold(this.getGoldInitial());
this.isChangeMade = false;
this.renderUpgrades();
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
if (this.screenStep < 30) {
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -480, 480, 30);
} else {
if (this.screenStep < 50) {
this.mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep - 30, 521, -100, 20);
this.mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep - 30, 521, -100, 20);
this.mcw.mcGold._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep - 30, 521, -100, 20);
} else {
this.screenStep = 0;
this.mcw.btnUndo._y = 404;
this.screenStatus = this.SCRST_IDLE;
}
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
if (this.screenStep < 20) {
this.mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 421, 100, 20);
this.mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 421, 100, 20);
this.mcw.mcGold._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 421, 100, 20);
this.mcw.btnUndo._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 404, 100, 20);
} else {
if (this.screenStep < 50) {
this.mcw.btnDone._y = -600;
this.mcw.btnSave._y = -600;
this.mcw.mcGold._y = -600;
this.mcw.btnUndo._y = -600;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep - 20, 0, -480, 30);
} else {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
}
}
}
if (this.isChangeMade) {
this.btnUndoStep = Math.min(15, this.btnUndoStep + 1);
} else {
this.btnUndoStep = Math.max(0, this.btnUndoStep - 1);
}
this.mcw.btnUndo._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.btnUndoStep, -50, 96, 15);
};
v2.setGoldInitial = function (pNum) {
this.goldInitialKey = Math.floor(Math.random() * 1000000) - 500000;
this.goldInitial = pNum + this.goldInitialKey;
};
v2.getGoldInitial = function () {
return this.goldInitial - this.goldInitialKey;
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlUpgrades.prototype, null, 1);
}
#endinitclip
}
movieClip 728 __Packages.com.gameInABottle.games.cursedWinds.util.Strong2 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util) {
_global.com.gameInABottle.games.cursedWinds.util = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util.Strong2) {
var v1 = function () {};
com.gameInABottle.games.cursedWinds.util.Strong2 = v1;
var v2 = v1.prototype;
v1.easeIn = function (elapsedTime, initialValue, targetMinusInitial, duration) {
elapsedTime /= duration;
return targetMinusInitial * elapsedTime * elapsedTime * elapsedTime + initialValue;
};
v1.easeOut = function (elapsedTime, initialValue, targetMinusInitial, duration) {
elapsedTime = elapsedTime / duration - 1;
return targetMinusInitial * (elapsedTime * elapsedTime * elapsedTime + 1) + initialValue;
};
v1.easeInOut = function (elapsedTime, initialValue, targetMinusInitial, duration) {
elapsedTime /= duration / 2;
if (elapsedTime < 1) {
return (targetMinusInitial / 2) * elapsedTime * elapsedTime * elapsedTime + initialValue;
}
elapsedTime -= 2;
return (targetMinusInitial / 2) * (elapsedTime * elapsedTime * elapsedTime + 2) + initialValue;
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.util.Strong2.prototype, null, 1);
}
#endinitclip
}
movieClip 729 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave) {
var v1 = function (pMcw, pMain) {
this.playerSlotDatas = new Array();
var vThis = this;
this.mcw = pMcw;
this.main = pMain;
this.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;
}
}
};
this.mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.mcSlot0.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.selectSlot(0);
}
};
this.mcw.mcSlot0.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.mcSlot1.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.selectSlot(1);
}
};
this.mcw.mcSlot1.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.mcSlot2.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.selectSlot(2);
}
};
this.mcw.mcSlot2.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnLoad.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.loadFromSlot();
}
};
this.mcw.btnLoad.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnSave.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickPress.start();
vThis.saveToSlot();
}
};
this.mcw.btnSave.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.so = SharedObject.getLocal('saveData');
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave = v1;
var v2 = v1.prototype;
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mc._visible = true;
this.mcw.mc._y = -480;
this.renderInit();
};
v2.renderInit = function () {
this.mcw.btnBack._x = 275;
this.mcw.btnLoad._x = 700;
this.mcw.btnSave._x = 700;
this.btnBackStep = 0;
if (this.main.currentScreen == this.main.SCR_LOADSAVE_LOAD) {
this.mcw.mcTitle.gotoAndStop(1);
this.mcw.tfInfo.text = 'Select a saved game to load.';
} else {
this.mcw.mcTitle.gotoAndStop(2);
this.mcw.tfInfo.text = 'Select a slot to save the game in.';
}
var v2 = 0;
while (v2 < 3) {
this.mcw['mcSlot' + v2].selectGlare._visible = false;
++v2;
}
if (this.so.data.slotContents == undefined) {
this.so.data.slotContents = new Array();
this.so.data.slotContents[0] = new Object();
this.so.data.slotContents[1] = new Object();
this.so.data.slotContents[2] = new Object();
}
v2 = 0;
while (v2 < 3) {
this.mcw['mcSlot' + v2].content._visible = false;
this.mcw['mcSlot' + v2].selectGlare._visible = false;
var v3 = new com.gameInABottle.games.cursedWinds.entity.Player();
v3.populateFromObject(this.so.data.slotContents[v2]);
if (v3.calculateSaveChecksum() == v3.checksum) {
this.playerSlotDatas[v2] = v3;
this.mcw['mcSlot' + v2].content._visible = true;
this.mcw['mcSlot' + v2].content.tfGold.text = (v3.getGold()).toString();
this.mcw['mcSlot' + v2].content.tfLevel.text = (v3.currentLevel + 1).toString();
this.mcw['mcSlot' + v2].content.tfDiff.text = (v3.difficulty == 0) ? 'Captain' : ((v3.difficulty == 1) ? 'Colonel' : 'Admiral');
}
this.playerSlotDatas[v2] = v3;
++v2;
}
this.mcw.btnLoad._visible = false;
this.mcw.btnSave._visible = false;
};
v2.selectSlot = function (pSlotNum) {
if (this.main.currentScreen == this.main.SCR_LOADSAVE_LOAD && (MovieClip(this.mcw['mcSlot' + pSlotNum])).content._visible == true || this.main.currentScreen == this.main.SCR_LOADSAVE_SAVE) {
(MovieClip(this.mcw.mcSlot0.selectGlare))._visible = false;
(MovieClip(this.mcw.mcSlot1.selectGlare))._visible = false;
(MovieClip(this.mcw.mcSlot2.selectGlare))._visible = false;
(MovieClip(this.mcw['mcSlot' + pSlotNum])).selectGlare._visible = true;
this.mcw.tfInfo.text = '';
if (this.main.currentScreen == this.main.SCR_LOADSAVE_SAVE && (MovieClip(this.mcw['mcSlot' + pSlotNum])).content._visible == true) {
this.mcw.tfInfo.text = '(The game previously saved in the slot will be overwritten.)';
}
this.selectedSlotNum = pSlotNum;
if (this.main.currentScreen == this.main.SCR_LOADSAVE_LOAD) {
this.mcw.btnLoad._visible = true;
} else {
this.mcw.btnSave._visible = true;
}
}
};
v2.saveToSlot = function () {
this.playerSlotDatas[this.selectedSlotNum] = this.main.player;
(com.gameInABottle.games.cursedWinds.entity.Player(this.playerSlotDatas[this.selectedSlotNum])).checksum = (com.gameInABottle.games.cursedWinds.entity.Player(this.playerSlotDatas[this.selectedSlotNum])).calculateSaveChecksum();
this.so.data.slotContents[this.selectedSlotNum] = (com.gameInABottle.games.cursedWinds.entity.Player(this.playerSlotDatas[this.selectedSlotNum])).createCloneObject();
this.so.flush();
this.screenStatus = this.SCRST_DISAPPEARING;
this.main.nextScreen = this.main.SCR_UPGRADES;
};
v2.loadFromSlot = function () {
this.main.player = this.playerSlotDatas[this.selectedSlotNum];
this.screenStatus = this.SCRST_DISAPPEARING;
this.main.nextScreen = this.main.SCR_UPGRADES;
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -480, 480, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 1097, -680, 20);
this.mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 1097, -680, 20);
this.mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 1097, -680, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 0, -480, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 417, 680, 20);
this.mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 417, 680, 20);
this.mcw.btnSave._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 417, 680, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
}
}
if (this.mcw.btnLoad._visible || this.mcw.btnSave._visible) {
this.btnBackStep = Math.min(20, this.btnBackStep + 1);
this.mcw.btnBack._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.btnBackStep, 275, -77, 20);
this.mcw.btnLoad._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.btnBackStep, 700, -350, 20);
this.mcw.btnSave._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.btnBackStep, 700, -350, 20);
}
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlLoadSave.prototype, null, 1);
}
#endinitclip
}
movieClip 730 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
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();
}
};
this.mcw.btnDiff0.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
};
this.mcw.btnDiff1.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
};
this.mcw.btnDiff2.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
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();
}
};
this.mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
};
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.btnBack._y = 572;
this.mcw.btnDiff0._y = 572;
this.mcw.btnDiff1._y = 572;
this.mcw.btnDiff2._y = 572;
this.mcw.mcSelectDiff._y = 572;
this.mcw.mc._visible = true;
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
this.mcw.mcSelectDiff._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -140, 220, 20);
this.mcw.btnDiff0._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -100, 220, 20);
this.mcw.btnDiff1._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -100, 220, 20);
this.mcw.btnDiff2._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -100, 220, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 630, -300, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mcSelectDiff._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 80, -220, 20);
this.mcw.btnDiff0._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 120, -220, 20);
this.mcw.btnDiff1._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 120, -220, 20);
this.mcw.btnDiff2._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 120, -220, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 330, 300, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
}
}
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlModeSelector.prototype, null, 1);
}
#endinitclip
}
movieClip 731 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
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();
}
};
this.mcw.btnTutorial.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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;
}
};
this.mcw.btnHighScores.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
};
this.mcw.btnNewGame.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
};
this.mcw.btnLoad.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnCredits.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com');
}
};
this.mcw.btnCredits.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnMoreGames.onRelease = function () {
FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com');
};
this.mcw.btnMoreGames.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
};
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mc._visible = true;
this.mcw.mcTitle._y = -400;
this.mcw.btnLoad._y = 630;
this.mcw.btnNewGame._y = 630;
this.mcw.btnTutorial._y = 630;
this.mcw.btnPlayMoreGames._y = 690;
this.mcw.btnMoreGames._y = 690;
this.mcw.btnCredits._y = 690;
this.mcw.mcBottomTexts._y = 760;
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
this.mcw.mcTitle._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -400, 400, 20);
this.mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 630, -300, 20);
this.mcw.btnNewGame._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 630, -300, 20);
this.mcw.btnTutorial._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 630, -300, 20);
this.mcw.btnPlayMoreGames._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 690, -300, 20);
this.mcw.btnMoreGames._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 690, -300, 20);
this.mcw.btnCredits._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 690, -300, 20);
this.mcw.mcBottomTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 760, -300, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mcTitle._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 0, -400, 20);
this.mcw.btnLoad._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 330, 300, 20);
this.mcw.btnNewGame._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 330, 300, 20);
this.mcw.btnTutorial._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 330, 300, 20);
this.mcw.btnPlayMoreGames._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 390, 300, 20);
this.mcw.btnMoreGames._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 390, 300, 20);
this.mcw.btnCredits._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 390, 300, 20);
this.mcw.mcBottomTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 460, 300, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
}
}
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlMainMenu.prototype, null, 1);
}
#endinitclip
}
movieClip 732 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
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();
}
};
this.mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.mcCreditsPlate.btnLink.onRelease = function () {
_root.getURL('http://www.gameinabottle.com/', '_blank');
};
this.mcw.mcCreditsPlate.btnLink.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
};
v2.initiate = function () {
this.mcw.btnBack._y = 572;
this.mcw.mcCreditsPlate._y = -400;
this.mcw.mc._visible = true;
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mc._visible = true;
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
this.mcw.mcCreditsPlate._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -400, 476, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 572, -200, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mcCreditsPlate._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 76, -476, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 372, 200, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
}
}
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlCredits.prototype, null, 1);
}
#endinitclip
}
movieClip 733 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
this.levsGunNum = new Array(24, 30, 36, 42, 48, 60, 72, 80, 88, 100, 104, 108, 116, 180, 360, 360, 360);
this.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);
this.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);
this.levsReloadSpeed = new Array(3, 4, 5, 6, 7, 8, 9, 12, 14, 16, 16, 16, 17, 18, 19, 60, 100);
this.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);
this.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);
this.levsArmor = new Array(10, 11, 12, 13, 14, 15, 16, 18, 21, 22, 23, 24, 25, 26, 27, 100, 120);
this.levsCrew = new Array(48, 56, 64, 72, 80, 96, 120, 140, 160, 180, 210, 240, 300, 360, 480, 600, 600);
this.levsSupportFire = new Array(0, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39);
this.levsCalypso = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame = v1;
var v2 = v1.prototype;
v2.initiate = function () {
this.mcw.mcSea.gotoAndStop(this.main.player.currentLevel % 4 + 1);
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.isEngagedSoundPlaying = false;
this.mcTexts = _root.attachMovie('mcTexts', 'mcTexts', com.gameInABottle.games.cursedWinds.constants.Z.SEA_TEXTS);
this.mcTexts._x = 16;
this.mcTexts._y = 428;
this.mcTexts._visible = false;
this.removeAllMovieClips();
this.currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
this.pirateCannonballs = new Array();
this.enemyCannonballs = new Array();
var vThis = this;
this.keyListener = new Object();
this.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(this.keyListener);
this.resetGame();
this.shipDatas = new Array();
var v3 = 0;
while (v3 < (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[this.main.player.currentLevel])).shipDatas.length) {
this.shipDatas.push(com.gameInABottle.games.cursedWinds.entity.ShipData((com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[this.main.player.currentLevel])).shipDatas[v3]));
++v3;
}
this.mcw.mc._visible = true;
this.main.mcwRoot.mcIngameDoor._visible = true;
this.main.mcwRoot.mcIngameDoor.gotoAndPlay(2);
this.main.sndIngameDoorOpen.start();
};
v2.removeAllMovieClips = function () {
this.pirateShip.mc.removeMovieClip();
this.pirateShip.battleWheel.removeMovieClip();
this.calypsoWave.mc.removeMovieClip();
var v2 = 0;
while (v2 < this.pirateCannonballs.length) {
(com.gameInABottle.games.cursedWinds.entity.Cannonball(this.pirateCannonballs[v2])).mc.removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.enemyCannonballs.length) {
(com.gameInABottle.games.cursedWinds.entity.Cannonball(this.enemyCannonballs[v2])).mc.removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.fireworkRockets.length) {
(com.gameInABottle.games.cursedWinds.entity.FireworkRocket(this.fireworkRockets[v2])).mc.removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.bombardShells.length) {
(com.gameInABottle.games.cursedWinds.entity.BombardShell(this.bombardShells[v2])).mc.removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.enemyShips.length) {
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).infoPanel.removeMovieClip();
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).battleWheel.removeMovieClip();
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).mc.removeMovieClip();
++v2;
}
};
v2.resetGame = function () {
this.calypsoWave = null;
this.cursedWind = null;
this.mcw.mcSupportFire._visible = false;
this.fireworkRockets = new Array();
this.bombardShells = new Array();
this.isPirateshipShootingUp = true;
this.goldPlunderedOnLevel = 0;
this.pirateCannonballsShot = 0;
this.pirateCannonballsHit = 0;
this.pirateShipEngagementLevel = 0;
this.timer = 0;
this.enemyShipZCount = 0;
this.pirateShip = new com.gameInABottle.games.cursedWinds.entity.Ship(this);
this.pirateShip.isOwnedByPlayer = true;
this.pirateShip.mc = _root.attachMovie('mcShip2', 'pirateShip', com.gameInABottle.games.cursedWinds.constants.Z.PIRATESHIP);
this.pirateShip.x = 320;
this.pirateShip.y = 400;
this.pirateShip.mc._x = -320;
this.pirateShip.mc._y = -400;
this.pirateShip.isRotating = false;
this.pirateShip.rotation = 0;
var v3 = new Array();
v3.push(new flash.filters.DropShadowFilter(30, 45, 0, 100, 20, 20, 0.6, 1, false, false));
this.pirateShip.mc.filters = v3;
this.pirateShip.mc.sailFront.gotoAndStop(2);
this.pirateShip.mc.sailRear.gotoAndStop(2);
this.pirateShip.mc.mast1.sail1.gotoAndStop(2);
this.pirateShip.mc.mast1.sail2.gotoAndStop(2);
this.pirateShip.mc.mast2.sail1.gotoAndStop(2);
this.pirateShip.mc.mast2.sail2.gotoAndStop(2);
this.pirateShip.mc.mast3.sail1.gotoAndStop(2);
this.pirateShip.mc.mast3.sail2.gotoAndStop(2);
var v4 = new Color(this.pirateShip.mc.mast1.flag);
v4.setRGB(0);
v4 = new Color(this.pirateShip.mc.mast2.flag);
v4.setRGB(0);
v4 = new Color(this.pirateShip.mc.mast3.flag);
v4.setRGB(0);
this.pirateShip.mc.mast1.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
this.pirateShip.mc.mast2.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
this.pirateShip.mc.mast3.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
this.pirateShip.hpMax = 100 * this.levsArmor[this.main.player.levArmor];
this.pirateShip.hp = this.pirateShip.hpMax;
this.pirateShip.armor = this.levsArmor[this.main.player.levArmor];
this.pirateShip.cannonsNum = this.levsGunNum[this.main.player.levGunNum];
this.pirateShip.speedMax = this.levsShipMoveSpeed[this.main.player.levShipMoveSpeed];
this.pirateShip.turnSpeedMax = this.levsShipTurnSpeed[this.main.player.levShipTurnSpeed];
this.pirateShip.reloadSpeed = this.levsReloadSpeed[this.main.player.levReloadSpeed];
this.pirateShip.firePower = this.levsFirepower[this.main.player.levSchrapnelPower];
this.pirateShip.crewNum = this.levsCrew[this.main.player.levCrew];
this.pirateShip.cannonballSpeed = this.levsCannonballspeed[this.main.player.levCannonballSpeed];
this.pirateShip.battleWheel = _root.attachMovie('pirateWheelShell', 'battleWheel' + com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN + this.enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN + this.enemyShipZCount++);
this.pirateShip.battleWheel._alpha = 0;
this.pirateShip.battleWheel._x = -400;
this.pirateShip.battleWheel._width = 80;
this.pirateShip.battleWheel._height = 80;
this.pirateShip.cannonsLoadedNum = this.pirateShip.cannonsNum;
this.enemyShips = new Array();
this.flagMakeCannonSound = true;
this.main.sndAmbient.start(0, 9999);
this.status = this.ST_PLAYING;
this.mcTexts.tfGold.text = '';
this.mcTexts.tfCrew.text = '';
this.mcTexts.tfCannons.text = '';
this.mcTexts.tfShip.text = '';
if (this.main.player.levFireworkRockets > 0) {
this.mcTexts.mcFirework.tfPercent.text = '0%';
this.mcTexts.mcFirework.image._alpha = 100;
} else {
this.mcTexts.mcFirework.tfPercent.text = '';
this.mcTexts.mcFirework.image._alpha = 20;
}
if (this.main.player.levVoiceOfCalypso > 0) {
this.mcTexts.mcCalypso.tfPercent.text = '0%';
this.mcTexts.mcCalypso.image._alpha = 100;
} else {
this.mcTexts.mcCalypso.tfPercent.text = '';
this.mcTexts.mcCalypso.image._alpha = 20;
}
if (this.main.player.levSupportFire > 0) {
this.mcTexts.mcSupportFire.tfPercent.text = '0%';
this.mcTexts.mcSupportFire.image._alpha = 100;
} else {
this.mcTexts.mcSupportFire.tfPercent.text = '';
this.mcTexts.mcSupportFire.image._alpha = 20;
}
this.mcTexts.mcSupportFire.image.gotoAndStop(3);
this.mcTexts.mcFirework.image.gotoAndStop(2);
this.mcTexts._visible = true;
this.voiceOfCalypsoLoadedLevel = 0;
this.supportFireLoadedLevel = 0;
this.fireworkRocketsLoadedLevel = 0;
this.voiceOfCalypsoLoadSpeed = 0.3;
this.supportFireLoadSpeed = 0.45;
this.fireworkRocketsLoadSpeed = 0.6;
};
v2.createShip = function (pShipData) {
var v3 = new com.gameInABottle.games.cursedWinds.entity.Ship(this);
v3.hp = 100 * this.levsArmor[pShipData.armorLevel];
v3.hpMax = v3.hp;
v3.armor = this.levsArmor[pShipData.armorLevel];
v3.crewNum = this.levsCrew[pShipData.crewNumLevel];
v3.firePower = this.levsFirepower[pShipData.firePowerLevel];
v3.cannonballSpeed = this.levsCannonballspeed[pShipData.firePowerLevel];
v3.cannonsNum = this.levsGunNum[pShipData.cannonsNumLevel];
v3.cannonsLoadedNum = this.levsGunNum[pShipData.cannonsNumLevel];
v3.speed = 0;
v3.speedMax = this.levsShipMoveSpeed[pShipData.speedMaxLevel];
v3.speedMaxOriginal = v3.speedMax;
v3.turnSpeed = 0;
v3.turnSpeedMax = this.levsShipTurnSpeed[pShipData.turnSpeedMaxLevel];
if (pShipData.isWeakened) {
v3.crewNum = Math.floor(v3.crewNum / 2);
v3.hpMax = Math.floor(v3.hpMax / 2);
v3.hp = Math.floor(v3.hp / 2);
v3.cannonsNum = Math.floor(v3.cannonsNum / 2);
v3.cannonsLoadedNum = Math.floor(v3.cannonsLoadedNum / 2);
}
v3.goldCarried = pShipData.goldCarried;
v3.reloadSpeed = this.levsReloadSpeed[pShipData.reloadSpeedLevel];
v3.status = v3.ST_AI_INCOMING;
v3.rotation = 90;
v3.isRotating = true;
v3.isFiring = false;
v3.isEngaged = false;
v3.isOwnedByPlayer = false;
v3.x = (pShipData.x == 0) ? Math.random() * 400 + 120 : pShipData.x;
if (pShipData.sailType == pShipData.ST_FINAL_MINION) {
v3.y = 190;
} else {
v3.y = -150;
}
v3.data = pShipData;
v3.mc = _root.attachMovie('mcShip' + pShipData.hullType, 'enemyShip' + com.gameInABottle.games.cursedWinds.constants.Z.ENEMYSHIP_MIN + this.enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.ENEMYSHIP_MIN + this.enemyShipZCount++);
v3.mc._y = -600;
v3.infoPanel = _root.attachMovie('shipInfoPanel', 'shipInfoPanel' + com.gameInABottle.games.cursedWinds.constants.Z.INFOPANEL_MIN + this.enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.INFOPANEL_MIN + this.enemyShipZCount++);
v3.infoPanel._y = -600;
v3.infoPanel.tfGold.text = v3.goldCarried;
v3.infoPanel.tfCannons.text = v3.cannonsNum;
v3.infoPanel.tfCrew.text = v3.crewNum;
v3.infoPanel.tfShip.text = v3.hp;
v3.battleWheel = _root.attachMovie('pirateWheelShell', 'battleWheel' + com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN + this.enemyShipZCount, com.gameInABottle.games.cursedWinds.constants.Z.BATTLEWHEEL_MIN + this.enemyShipZCount++);
v3.battleWheel._x = -400;
var v5 = new Array(60, 80, 100, 120, 150);
v3.battleWheel._width = v5[pShipData.hullType - 1];
v3.battleWheel._height = v5[pShipData.hullType - 1];
var v6 = new Array();
v6.push(new flash.filters.DropShadowFilter(30, 45, 0, 100, 20, 20, 0.6, 1, false, false));
v3.mc.filters = v6;
if (pShipData.sailType == pShipData.ST_DOT1) {
v3.mc.mast1.sail1.gotoAndStop('reg1');
v3.mc.mast2.sail1.gotoAndStop('reg1');
v3.mc.mast3.sail1.gotoAndStop('reg1');
} else {
if (pShipData.sailType == pShipData.ST_DOT2) {
v3.mc.mast1.sail1.gotoAndStop('reg1');
v3.mc.mast1.sail2.gotoAndStop('reg1');
v3.mc.mast2.sail1.gotoAndStop('reg1');
v3.mc.mast2.sail2.gotoAndStop('reg1');
v3.mc.mast3.sail1.gotoAndStop('reg1');
v3.mc.mast3.sail2.gotoAndStop('reg1');
} else {
if (pShipData.sailType == pShipData.ST_DOT3) {
v3.mc.mast1.sail1.gotoAndStop('reg2');
v3.mc.mast1.sail2.gotoAndStop('reg1');
v3.mc.mast2.sail1.gotoAndStop('reg2');
v3.mc.mast2.sail2.gotoAndStop('reg1');
v3.mc.mast3.sail1.gotoAndStop('reg2');
v3.mc.mast3.sail2.gotoAndStop('reg1');
} else {
if (pShipData.sailType == pShipData.ST_DOT4) {
v3.mc.mast1.sail1.gotoAndStop('reg2');
v3.mc.mast1.sail2.gotoAndStop('reg2');
v3.mc.mast2.sail1.gotoAndStop('reg2');
v3.mc.mast2.sail2.gotoAndStop('reg2');
v3.mc.mast3.sail1.gotoAndStop('reg2');
v3.mc.mast3.sail2.gotoAndStop('reg2');
} else {
if (pShipData.sailType == pShipData.ST_DOT5) {
v3.mc.mast1.sail1.gotoAndStop('reg3');
v3.mc.mast1.sail2.gotoAndStop('reg2');
v3.mc.mast2.sail1.gotoAndStop('reg3');
v3.mc.mast2.sail2.gotoAndStop('reg2');
v3.mc.mast3.sail1.gotoAndStop('reg3');
v3.mc.mast3.sail2.gotoAndStop('reg2');
} else {
if (pShipData.sailType == pShipData.ST_DOT6) {
v3.mc.mast1.sail1.gotoAndStop('reg3');
v3.mc.mast1.sail2.gotoAndStop('reg3');
v3.mc.mast2.sail1.gotoAndStop('reg3');
v3.mc.mast2.sail2.gotoAndStop('reg3');
v3.mc.mast3.sail1.gotoAndStop('reg3');
v3.mc.mast3.sail2.gotoAndStop('reg3');
} else {
if (pShipData.sailType == pShipData.ST_DOWNRED_BLANK) {
v3.mc.mast1.sail1.gotoAndStop('red');
v3.mc.mast2.sail1.gotoAndStop('red');
v3.mc.mast3.sail1.gotoAndStop('red');
} else {
if (pShipData.sailType == pShipData.ST_DOWNRED_DOT1) {
v3.mc.mast1.sail1.gotoAndStop('red');
v3.mc.mast2.sail1.gotoAndStop('red');
v3.mc.mast3.sail1.gotoAndStop('red');
v3.mc.mast1.sail2.gotoAndStop('reg1');
v3.mc.mast2.sail2.gotoAndStop('reg1');
v3.mc.mast3.sail2.gotoAndStop('reg1');
} else {
if (pShipData.sailType == pShipData.ST_DOWNRED_DOT2) {
v3.mc.mast1.sail1.gotoAndStop('red');
v3.mc.mast2.sail1.gotoAndStop('red');
v3.mc.mast3.sail1.gotoAndStop('red');
v3.mc.mast1.sail2.gotoAndStop('reg2');
v3.mc.mast2.sail2.gotoAndStop('reg2');
v3.mc.mast3.sail2.gotoAndStop('reg2');
} else {
if (pShipData.sailType == pShipData.ST_DOWNRED_DOT3) {
v3.mc.mast1.sail1.gotoAndStop('red');
v3.mc.mast2.sail1.gotoAndStop('red');
v3.mc.mast3.sail1.gotoAndStop('red');
v3.mc.mast1.sail2.gotoAndStop('reg3');
v3.mc.mast2.sail2.gotoAndStop('reg3');
v3.mc.mast3.sail2.gotoAndStop('reg3');
} else {
if (pShipData.sailType == pShipData.ST_UPRED_BLANK) {
v3.mc.mast1.sail2.gotoAndStop('red');
v3.mc.mast2.sail2.gotoAndStop('red');
v3.mc.mast3.sail2.gotoAndStop('red');
} else {
if (pShipData.sailType == pShipData.ST_UPRED_DOT1) {
v3.mc.mast1.sail2.gotoAndStop('red');
v3.mc.mast2.sail2.gotoAndStop('red');
v3.mc.mast3.sail2.gotoAndStop('red');
v3.mc.mast1.sail1.gotoAndStop('reg1');
v3.mc.mast2.sail1.gotoAndStop('reg1');
v3.mc.mast3.sail1.gotoAndStop('reg1');
} else {
if (pShipData.sailType == pShipData.ST_UPRED_DOT2) {
v3.mc.mast1.sail2.gotoAndStop('red');
v3.mc.mast2.sail2.gotoAndStop('red');
v3.mc.mast3.sail2.gotoAndStop('red');
v3.mc.mast1.sail1.gotoAndStop('reg2');
v3.mc.mast2.sail1.gotoAndStop('reg2');
v3.mc.mast3.sail1.gotoAndStop('reg2');
} else {
if (pShipData.sailType == pShipData.ST_UPRED_DOT3) {
v3.mc.mast1.sail2.gotoAndStop('red');
v3.mc.mast2.sail2.gotoAndStop('red');
v3.mc.mast3.sail2.gotoAndStop('red');
v3.mc.mast1.sail1.gotoAndStop('reg3');
v3.mc.mast2.sail1.gotoAndStop('reg3');
v3.mc.mast3.sail1.gotoAndStop('reg3');
} else {
if (pShipData.sailType == pShipData.ST_PIRATEHUNTER1) {
v3.mc.mast1.sail1.gotoAndStop('black');
v3.mc.mast1.sail2.gotoAndStop('black');
v3.mc.mast2.sail1.gotoAndStop('red');
v3.mc.mast2.sail2.gotoAndStop('red');
v3.mc.mast3.sail1.gotoAndStop('black');
v3.mc.mast3.sail2.gotoAndStop('black');
v3.mc.sailFront.gotoAndStop(2);
v3.mc.sailRear.gotoAndStop(2);
} else {
if (pShipData.sailType == pShipData.ST_PIRATEHUNTER2) {
v3.mc.mast2.sail1.gotoAndStop('black');
v3.mc.mast2.sail2.gotoAndStop('black');
v3.mc.sailFront.gotoAndStop(2);
v3.mc.sailRear.gotoAndStop(2);
} else {
if (pShipData.sailType == pShipData.ST_PIRATEHUNTER3) {
v3.mc.mast1.sail1.gotoAndStop('black');
v3.mc.mast1.sail2.gotoAndStop('black');
v3.mc.mast2.sail1.gotoAndStop('red');
v3.mc.mast2.sail2.gotoAndStop('red');
v3.mc.mast3.sail1.gotoAndStop('red');
v3.mc.mast3.sail2.gotoAndStop('red');
v3.mc.sailFront.gotoAndStop(2);
v3.mc.sailRear.gotoAndStop(2);
} else {
if (pShipData.sailType == pShipData.ST_PIRATEHUNTER4) {
v3.mc.mast1.sail1.gotoAndStop('red');
v3.mc.mast1.sail2.gotoAndStop('red');
v3.mc.mast2.sail1.gotoAndStop('black');
v3.mc.mast2.sail2.gotoAndStop('black');
v3.mc.mast3.sail1.gotoAndStop('red');
v3.mc.mast3.sail2.gotoAndStop('red');
v3.mc.sailFront.gotoAndStop(2);
v3.mc.sailRear.gotoAndStop(2);
} else {
if (pShipData.sailType == pShipData.ST_FINAL_MINION) {
v3.mc.mast1.sail1.gotoAndStop('red');
v3.mc.mast1.sail2.gotoAndStop('red');
v3.mc.mast2.sail1.gotoAndStop('red');
v3.mc.mast2.sail2.gotoAndStop('red');
v3.mc.mast3.sail1.gotoAndStop('red');
v3.mc.mast3.sail2.gotoAndStop('red');
v3.mc.sailFront.gotoAndStop(3);
} else {
if (pShipData.sailType == pShipData.ST_BOSS) {
v3.mc.mast1.sail1.gotoAndStop('boss' + (this.main.player.currentLevel + 1));
v3.mc.mast1.sail2.gotoAndStop('boss' + (this.main.player.currentLevel + 1));
v3.mc.mast2.sail1.gotoAndStop('boss' + (this.main.player.currentLevel + 1));
v3.mc.mast2.sail2.gotoAndStop('boss' + (this.main.player.currentLevel + 1));
v3.mc.mast3.sail1.gotoAndStop('boss' + (this.main.player.currentLevel + 1));
v3.mc.mast3.sail2.gotoAndStop('boss' + (this.main.player.currentLevel + 1));
v3.mc.sailFront.gotoAndStop(3);
if (this.main.player.currentLevel == 1 || this.main.player.currentLevel == 2 || this.main.player.currentLevel == 4 || this.main.player.currentLevel == 6 || this.main.player.currentLevel == 7 || this.main.player.currentLevel == 9 || this.main.player.currentLevel == 13 || this.main.player.currentLevel == 14) {
v3.mc.sailFront.gotoAndStop(2);
v3.mc.sailRear.gotoAndStop(2);
}
} else {
v3.mc.mast1.flag._visible = false;
v3.mc.mast2.flag._visible = false;
v3.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 v7 = new Color(v3.mc.mast1.flag);
v7.setRGB(0);
v7 = new Color(v3.mc.mast2.flag);
v7.setRGB(0);
v7 = new Color(v3.mc.mast3.flag);
v7.setRGB(0);
} else {
v3.mc.mast1.flag._alpha = 80;
v3.mc.mast2.flag._alpha = 80;
v3.mc.mast3.flag._alpha = 80;
if (pShipData.sailType == pShipData.ST_BOSS) {
v3.mc.mast1.flag._xscale = 110;
v3.mc.mast1.flag._yscale = 110;
v3.mc.mast2.flag._xscale = 110;
v3.mc.mast2.flag._yscale = 110;
v3.mc.mast3.flag._xscale = 110;
v3.mc.mast3.flag._yscale = 110;
} else {
v3.mc.mast1.flag._xscale = 80;
v3.mc.mast1.flag._yscale = 80;
v3.mc.mast2.flag._xscale = 80;
v3.mc.mast2.flag._yscale = 80;
v3.mc.mast3.flag._xscale = 80;
v3.mc.mast3.flag._yscale = 80;
}
}
v3.mc.mast1.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
v3.mc.mast2.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
v3.mc.mast3.flag.gotoAndPlay(Math.floor(Math.random() * 12) + 1);
this.enemyShips.push(v3);
};
v2.endGameWithDefeat = function () {
this.isOutcomeVictory = false;
this.status = this.ST_OVER_PANEL_APPEARING;
this.timer = 0;
this.main.sndCloseCombat.stop();
Key.removeListener(this.keyListener);
};
v2.endGameWithVictory = function () {
this.isOutcomeVictory = true;
this.status = this.ST_OVER_PANEL_APPEARING;
this.timer = 0;
Key.removeListener(this.keyListener);
};
v2.doEnterFrame = function () {
this.main.vfxEngine.doEnterFrame();
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
if (this.screenStep > 40) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
if (this.screenStep == 39) {
stopAllSounds();
this.main.sndIngameDoorCloseEnd.start();
}
if (this.screenStep > 40) {
this.screenStep = 0;
this.removeAllMovieClips();
this.main.switchScreenVisibility();
}
}
}
++this.timer;
if (this.status == this.ST_PLAYING) {
this.setEngagementLevel(-1);
if (this.timer == 10) {
this.pnlLevelInfo = this.main.mcRoot.attachMovie('mcLevelInfoPanel', 'mcLevelInfoPanel', com.gameInABottle.games.cursedWinds.constants.Z.LEVELINFOPANEL);
this.pnlLevelInfo._y = 150;
this.pnlLevelInfo._x = 700;
this.pnlLevelInfo.tfShipNum.text = this.shipDatas.length + ' enemy ships approaching...';
this.pnlLevelInfo.tfFlagshipName.text = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[this.main.player.currentLevel])).flagShipName;
} else {
if (this.timer < 41) {
} else {
if (this.timer < 71) {
this.pnlLevelInfo._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.timer - 41, 660, -560, 30);
} else {
if (this.timer < 131) {
} else {
if (this.timer < 161) {
this.pnlLevelInfo._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.timer - 131, 100, -560, 30);
} else {
if (this.timer == 161) {
this.pnlLevelInfo.removeMovieClip();
}
}
}
}
}
}
var v7 = 0;
while (v7 < this.enemyShips.length) {
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).doEnterFrame();
++v7;
}
this.avoidShipCollision();
}
if (this.main.preferences.quality == 3) {
if (Math.random() > 0.992) {
this.main.vfxEngine.createCloud();
}
}
if (this.main.player.currentLevel > 10) {
if (Math.random() > 0.999 - 0.0005 * (this.main.player.currentLevel - 10)) {
this.summonCursedWind();
}
}
v7 = 0;
while (v7 < this.pirateCannonballs.length) {
var v3 = this.pirateCannonballs[v7];
v3.fly();
if (v3.x < 0 || v3.x > 640 || v3.y < 0 || v3.y > 480) {
v3.mc.removeMovieClip();
this.pirateCannonballs.splice(v7, 1);
--v7;
} else {
var v4 = 0;
while (v4 < this.enemyShips.length) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_WRECK && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_PLUNDERED && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_DISAPPEARING) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).mc.hitTest(v3.x, v3.y, true)) {
v3.mc.removeMovieClip();
this.main.vfxEngine.createBlast(v3.x, v3.y);
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).sufferDamage(v3.firepower);
++this.pirateCannonballsHit;
this.pirateCannonballs.splice(v7, 1);
--v7;
break;
}
}
++v4;
}
}
++v7;
}
v7 = 0;
while (v7 < this.bombardShells.length) {
var v6 = this.bombardShells[v7];
v6.fly();
if (v6.y <= v6.targetY) {
var v9 = false;
v4 = 0;
while (v4 < this.enemyShips.length) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_WRECK && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_PLUNDERED && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_DISAPPEARING) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).mc.hitTest(v6.x, v6.y, true)) {
this.main.vfxEngine.createBombardBlast(v6.x, v6.y);
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).sufferDamage(v6.firepower);
break;
}
}
++v4;
}
if (v9 == false) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.pirateShip)).mc.hitTest(v6.x, v6.y, true)) {
this.main.vfxEngine.createBombardBlast(v6.x, v6.y);
(com.gameInABottle.games.cursedWinds.entity.Ship(this.pirateShip)).sufferDamage(v6.firepower);
}
}
if (v9 == false) {
this.main.vfxEngine.createBombardSplash(v6.x, v6.y);
}
v6.mc.removeMovieClip();
this.bombardShells.splice(v7, 1);
--v7;
}
++v7;
}
v7 = 0;
while (v7 < this.fireworkRockets.length) {
var v5 = this.fireworkRockets[v7];
v5.fly();
if (v5.x < 0 || v5.x > 640 || v5.y < 0 || v5.y > 480) {
v5.mc.removeMovieClip();
this.fireworkRockets.splice(v7, 1);
--v7;
} else {
if (v5.fuel < 1) {
v5.mc.removeMovieClip();
this.fireworkRockets.splice(v7, 1);
this.main.vfxEngine.createSplash(v5.x, v5.y);
--v7;
} else {
v4 = 0;
while (v4 < this.enemyShips.length) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_WRECK && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_PLUNDERED && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_DISAPPEARING) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).mc.hitTest(v5.x, v5.y, true)) {
v5.mc.removeMovieClip();
this.main.vfxEngine.createFireworkBlast(v5.x, v5.y);
if (this.fireworkBlastSoundStep == 0) {
this.main['sndFireworksImpact' + (Math.floor(Math.random() * 6.99) + 1)].start();
}
++this.fireworkBlastSoundStep;
if (this.fireworkBlastSoundStep > 2) {
this.fireworkBlastSoundStep = 0;
}
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).sufferDamage(v5.firepower);
this.fireworkRockets.splice(v7, 1);
--v7;
break;
}
}
++v4;
}
}
}
++v7;
}
v7 = 0;
while (v7 < this.enemyCannonballs.length) {
v3 = this.enemyCannonballs[v7];
v3.fly();
if (v3.x < 0 || v3.x > 640 || v3.y < 0 || v3.y > 480) {
v3.mc.removeMovieClip();
this.enemyCannonballs.splice(v7, 1);
--v7;
} else {
if (this.status == this.ST_PLAYING) {
if (this.pirateShip.mc.hitTest(v3.x, v3.y, true)) {
v3.mc.removeMovieClip();
this.main.vfxEngine.createBlast(v3.x, v3.y);
this.pirateShip.sufferDamage(v3.firepower);
this.enemyCannonballs.splice(v7, 1);
--v7;
}
v4 = 0;
while (v4 < this.enemyShips.length) {
if ((com.gameInABottle.games.cursedWinds.entity.Cannonball(this.enemyCannonballs[v7])).originShip != this.enemyShips[v4]) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_WRECK && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_PLUNDERED && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).ST_AI_DISAPPEARING) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).mc.hitTest(v3.x, v3.y, true)) {
v3.mc.removeMovieClip();
this.main.vfxEngine.createBlast(v3.x, v3.y);
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v4])).sufferDamage(v3.firepower / 8);
this.enemyCannonballs.splice(v7, 1);
--v7;
break;
}
}
}
++v4;
}
}
}
++v7;
}
if (this.calypsoWave != null) {
this.calypsoWave.doEnterFrame();
if (this.calypsoWave.mc._alpha < 1) {
this.calypsoWave.mc.removeMovieClip();
this.calypsoWave = null;
} else {
v7 = 0;
while (v7 < this.enemyShips.length) {
var v13 = Math.sqrt(Math.pow(this.calypsoWave.x - this.enemyShips[v7].x, 2) + Math.pow(this.calypsoWave.y - this.enemyShips[v7].y, 2));
if (Math.abs(v13 - this.calypsoWave.r) < 30) {
var v8 = Math.atan2(this.enemyShips[v7].y - this.calypsoWave.y, this.enemyShips[v7].x - this.calypsoWave.x);
this.enemyShips[v7].x += Math.cos(v8) * 0.2 * (30 - Math.abs(v13 - this.calypsoWave.r));
this.enemyShips[v7].y += Math.sin(v8) * 0.2 * (30 - Math.abs(v13 - this.calypsoWave.r));
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).sufferCalypsoDamage(this.main.player.levVoiceOfCalypso);
}
++v7;
}
}
}
if (this.cursedWind != null) {
this.cursedWind.doEnterFrame();
v13 = Math.sqrt(Math.pow(this.cursedWind.x - this.pirateShip.x, 2) + Math.pow(this.cursedWind.y - this.pirateShip.y, 2));
if (v13 < 80) {
if (this.cursedWind.isSoundPlayed == false) {
this.cursedWind.isSoundPlayed = true;
this.main.sndCursedWind.start();
}
this.pirateShip.y = Math.min(480, this.pirateShip.y + ((80 - v13) / 80) * 7);
this.pirateShip.hp -= Math.floor(((80 - v13) / 80) * 4);
}
if (this.cursedWind.y > 700) {
this.cursedWind.mc.removeMovieClip();
this.cursedWind = null;
}
}
if (this.status == this.ST_PLAYING) {
if (this.timer < 20) {
this.mcTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.timer, 508, -80, 20);
}
this.pirateShip.doEnterFrame();
this.mcTexts.tfCannons.text = this.pirateShip.cannonsLoadedNum + '/' + this.pirateShip.cannonsNum;
if (this.isPirateshipShootingUp) {
this.mcTexts.mcArrow._yscale = 100;
} else {
this.mcTexts.mcArrow._yscale = -100;
}
if (this.pirateShip.isFiring) {
(TextField(this.mcTexts.tfCannons)).textColor = 16711680;
} else {
(TextField(this.mcTexts.tfCannons)).textColor = 16777215;
}
this.mcTexts.tfGold.text = this.main.player.getGold();
this.mcTexts.tfCrew.text = this.pirateShip.crewNum;
this.mcTexts.tfShip.text = this.pirateShip.hp;
this.mcTexts.mcSupportFire.tfPercent.text = this.main.player.levSupportFire < 1 ? '' : ((this.supportFireLoadedLevel == 100) ? 'Ready!' : Math.floor(this.supportFireLoadedLevel) + '%');
this.mcTexts.mcCalypso.tfPercent.text = this.main.player.levVoiceOfCalypso < 1 ? '' : ((this.voiceOfCalypsoLoadedLevel == 100) ? 'Ready!' : Math.floor(this.voiceOfCalypsoLoadedLevel) + '%');
this.mcTexts.mcFirework.tfPercent.text = this.main.player.levFireworkRockets < 1 ? '' : ((this.fireworkRocketsLoadedLevel == 100) ? 'Ready!' : Math.floor(this.fireworkRocketsLoadedLevel) + '%');
v7 = 0;
while (v7 < this.shipDatas.length) {
if ((com.gameInABottle.games.cursedWinds.entity.ShipData(this.shipDatas[v7])).spawnTime <= this.timer) {
this.createShip(this.shipDatas[v7]);
this.shipDatas.splice(v7, 1);
}
++v7;
}
} else {
if (this.status == this.ST_OVER_PANEL_APPEARING) {
if (this.timer < 20) {
this.mcTexts._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.timer, 428, 80, 20);
} else {
if (this.timer == 20) {
var vThis = this;
if (this.isOutcomeVictory) {
var v14 = this.pirateCannonballsHit / this.pirateCannonballsShot;
this.pnlOutcome = this.main.mcRoot.attachMovie('outcomePanelVictory', 'pnlOutcome', com.gameInABottle.games.cursedWinds.constants.Z.LEVELOUTCOMEPANEL);
this.pnlOutcome.tfGoldPlundered.text = this.goldPlunderedOnLevel;
this.pnlOutcome.tfCannonballs.text = this.pirateCannonballsHit + ' / ' + this.pirateCannonballsShot + ((this.pirateCannonballsShot == 0) ? '' : ' (' + Math.round(v14 * 100) + '%)');
var v11 = 0;
if (this.pirateCannonballsShot == 0) {
v11 = 2500;
this.pnlOutcome.tfAccuracyBonusTtl.text = 'All ammo saved:';
this.pnlOutcome.tfAccuracyBonus.text = '**2500**';
} else {
if (v14 >= 0.7) {
v11 = Math.round((this.main.player.currentLevel + 1) * 1000 * v14);
this.pnlOutcome.tfAccuracyBonusTtl.text = 'Accuracy bonus:';
this.pnlOutcome.tfAccuracyBonus.text = v11.toString();
} else {
v11 = 0;
this.pnlOutcome.tfAccuracyBonusTtl.text = 'No accuracy bonus.';
this.pnlOutcome.tfAccuracyBonus.text = '0';
}
}
this.pnlOutcome.tfGoldEarned.text = this.goldPlunderedOnLevel + v11;
this.main.player.setScore(this.main.player.getScore() + v11);
this.main.player.setGold(this.main.player.getGold() + v11);
this.pnlOutcome.tfTotalScore.text = (this.main.player.getScore()).toString();
this.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 {
this.pnlOutcome = this.main.mcRoot.attachMovie('outcomePanelDefeat', 'pnlOutcome', com.gameInABottle.games.cursedWinds.constants.Z.LEVELOUTCOMEPANEL);
this.pnlOutcome.tfCause.text = this.pirateShip.hp < 1 ? 'Your ship has been destroyed.' : 'You have been killed.';
this.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;
}
};
this.pnlOutcome.tfFinalScore.text = (this.main.player.getScore()).toString();
this.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();
}
};
this.pnlOutcome.creditbtn.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.pnlOutcome.btnSubmit.onRelease = function () {
if (vThis.status == vThis.ST_OVER_IDLE) {
if (vThis.pnlOutcome.tfName.text != '') {
vThis.main.sndTickPress.start();
var v3 = new LoadVars();
var v4 = new LoadVars();
var v2 = new LoadVars();
v2.onLoad = function () {
getURL('http://www.freeonlinegames.com/scoreboard.php?', '_blank');
};
v4.onHTTPStatus = function (pStatus) {
vThis.pnlOutcome.mcServerStatus.gotoAndStop(3);
};
v3.name = vThis.pnlOutcome.tfName.text;
v3.score = vThis.main.player.getScore();
v3.chk = vThis.main.player.calculateHighScoreChecksum(vThis.pnlOutcome.tfName.text, vThis.main.player.getScore(), vThis.main.player.currentLevel, vThis.main.player.difficulty);
v3.level = vThis.main.player.currentLevel;
v3.difficulty = vThis.main.player.difficulty;
v2.score = v3.score;
v2.score2 = _root.earl223(String(v3.score));
v2.gamer = _root.gameID;
v2.id = random(9999999);
v2.toString();
v2.sendAndLoad('http://www0.freeonlinegames.com/scoreboard/score_c.php', v2, 'POST');
}
}
};
this.pnlOutcome.btnSubmit.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
}
this.pnlOutcome._x = 133;
this.pnlOutcome._y = -500;
} else {
if (this.timer < 50) {
this.pnlOutcome._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.timer - 20, -250, 408, 30);
} else {
if (this.timer == 50) {
this.status = this.ST_OVER_IDLE;
}
}
}
}
} else {
if (this.status == this.ST_CLOSING) {
this.pnlOutcome._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.timer, 158, -408, 30);
if (this.timer > 30) {
this.status = this.ST_IDLE;
this.main.mcwRoot.mcIngameDoor.gotoAndPlay(42);
this.main.sndIngameDoorClose.start();
this.screenStatus = this.SCRST_DISAPPEARING;
}
} else {
if (this.status == this.ST_OVER_IDLE) {
}
}
}
}
};
v2.returnToMainMenu = function () {
this.status = this.ST_IDLE;
this.main.mcwRoot.mcIngameDoor.gotoAndPlay(42);
this.main.sndIngameDoorClose.start();
this.screenStatus = this.SCRST_DISAPPEARING;
this.main.nextScreen = this.main.SCR_MAINMENU;
};
v2.destroyShip = function (pShip) {
var v2 = 0;
while (v2 < this.enemyShips.length) {
if (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2]) == pShip) {
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).infoPanel.removeMovieClip();
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).battleWheel.removeMovieClip();
this.enemyShips[v2].mc.removeMovieClip();
this.enemyShips.splice(v2, 1);
this.checkForGameContinuity();
}
++v2;
}
};
v2.checkForGameContinuity = function () {
var v4 = true;
var v6 = true;
var v2 = 0;
while (v2 < this.enemyShips.length) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).ST_AI_PLUNDERED && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).ST_AI_WRECK && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).ST_AI_DISAPPEARING) {
v4 = false;
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).hp > (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).hpMax * 0.3) {
v6 = false;
}
}
++v2;
}
if (this.shipDatas.length < 1) {
if (v4) {
var v5 = false;
v2 = 0;
while (v2 < this.enemyShips.length) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).status == (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).ST_AI_WRECK) {
(com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).status = (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v2])).ST_AI_PLUNDERED;
v5 = true;
}
++v2;
}
if (v5) {
this.main.sndPlunder.start();
}
}
if (this.enemyShips.length < 1) {
this.endGameWithVictory();
}
} else {
if (v4 || v6) {
var v3 = 999999999;
v2 = 0;
while (v2 < this.shipDatas.length) {
if ((com.gameInABottle.games.cursedWinds.entity.ShipData(this.shipDatas[v2])).spawnTime < v3) {
v3 = (com.gameInABottle.games.cursedWinds.entity.ShipData(this.shipDatas[v2])).spawnTime;
}
++v2;
}
this.timer = v3;
}
}
};
v2.createPirateCannonball = function (pX, pY, pSpeedX, pSpeedY, pFirepower) {
var v3 = new com.gameInABottle.games.cursedWinds.entity.Cannonball(pX, pY, pSpeedX, pSpeedY, _root.attachMovie('mcCannonball', 'cannonball' + this.currentCannonballZ, this.currentCannonballZ, null), pFirepower, this.pirateShip);
++this.currentCannonballZ;
if (this.currentCannonballZ > com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000) {
this.currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
this.pirateCannonballs.push(v3);
this.main.vfxEngine.createWhiteSmoke(pX, pY);
if (this.flagMakeCannonSound) {
this.flagMakeCannonSound = false;
this.main['sndCannon' + (Math.floor(Math.random() * 12) + 1)].start();
} else {
this.flagMakeCannonSound = true;
}
++this.pirateCannonballsShot;
};
v2.createEnemyCannonball = function (pX, pY, pSpeedX, pSpeedY, pFirepower, pOrigin) {
var v3 = new com.gameInABottle.games.cursedWinds.entity.Cannonball(pX, pY, pSpeedX, pSpeedY, _root.attachMovie('mcCannonball', 'cannonball' + this.currentCannonballZ, this.currentCannonballZ, null), pFirepower, pOrigin);
++this.currentCannonballZ;
if (this.currentCannonballZ > com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000) {
this.currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
this.enemyCannonballs.push(v3);
this.main.vfxEngine.createWhiteSmoke(pX, pY);
if (this.flagMakeCannonSound) {
this.flagMakeCannonSound = false;
this.main['sndCannon' + (Math.floor(Math.random() * 6) + 7)].start();
} else {
this.flagMakeCannonSound = true;
}
};
v2.createFireworkRocket = function (pX, pY, pRotation) {
var v3 = new com.gameInABottle.games.cursedWinds.entity.FireworkRocket(pX, pY, pRotation, _root.attachMovie('mcFireworkRocket', 'mcFireworkRocket' + this.currentCannonballZ, this.currentCannonballZ));
++this.currentCannonballZ;
if (this.currentCannonballZ > com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000) {
this.currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
this.fireworkRockets.push(v3);
this.main.vfxEngine.createWhiteSmoke(pX, pY);
};
v2.setEngagementLevel = function (pNum) {
this.pirateShipEngagementLevel = Math.max(0, Math.min(5, this.pirateShipEngagementLevel + pNum));
if (this.pirateShipEngagementLevel > 0 && !this.isEngagedSoundPlaying) {
this.isEngagedSoundPlaying = true;
this.main.sndCloseCombat.start(0, 9999);
} else {
if (this.pirateShipEngagementLevel == 0 && this.isEngagedSoundPlaying) {
this.isEngagedSoundPlaying = false;
this.main.sndCloseCombat.stop();
}
}
};
v2.avoidShipCollision = function () {
var v3 = 0;
while (v3 < this.enemyShips.length) {
var v2 = 0;
while (v2 < this.enemyShips.length) {
if (v3 != v2) {
var v5 = Math.sqrt((this.enemyShips[v3].x - this.enemyShips[v2].x) * (this.enemyShips[v3].x - this.enemyShips[v2].x) + 2.5 * (this.enemyShips[v3].y - this.enemyShips[v2].y) * (this.enemyShips[v3].y - this.enemyShips[v2].y));
var v4 = v5 > 60 ? 0 : ((60 - v5) / 60) * 1.5;
if (v4 > 0) {
if (this.enemyShips[v3].y > this.enemyShips[v2].y) {
this.enemyShips[v3].y += v4;
this.enemyShips[v2].y -= v4;
} else {
this.enemyShips[v3].y -= v4;
this.enemyShips[v2].y += v4;
}
}
}
++v2;
}
++v3;
}
};
v2.activateFireworkRockets = function () {
if (this.fireworkRocketsLoadedLevel == 100) {
this.fireworkRocketsLoadedLevel = 0;
this.fireworkRocketsLoadSpeed *= 0.7;
this.pirateShip.isFiringFireworkRockets = true;
this.pirateShip.fireworkRocketPacketsToFire = 6;
this.main.sndFireworksLaunch.start();
this.fireworkBlastSoundStep = 0;
}
};
v2.activateVoiceOfCalypso = function () {
if (this.voiceOfCalypsoLoadedLevel == 100) {
this.voiceOfCalypsoLoadedLevel = 0;
this.voiceOfCalypsoLoadSpeed *= 0.8;
this.main.sndVoiceOfCalypso.start();
this.calypsoWave = new com.gameInABottle.games.cursedWinds.entity.CalypsoWave(this.pirateShip.x, this.pirateShip.y, _root.attachMovie('calypso', 'calypso', com.gameInABottle.games.cursedWinds.constants.Z.CALYPSO));
}
};
v2.activateSupportFire = function () {
if (this.supportFireLoadedLevel == 100) {
var v4 = new Array();
var v7 = 0;
while (v7 < this.enemyShips.length) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).ST_AI_DISAPPEARING && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).ST_AI_ENGAGED && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).ST_AI_PLUNDERED && (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).status != (com.gameInABottle.games.cursedWinds.entity.Ship(this.enemyShips[v7])).ST_AI_WRECK) {
v4.push(this.enemyShips[v7]);
}
++v7;
}
if (v4.length < 1) {
return undefined;
}
this.supportFireLoadedLevel = 0;
this.supportFireLoadSpeed *= 0.73;
this.main.sndSupportFire.start();
var v3 = 0;
v7 = 0;
while (v7 < this.levsSupportFire[this.main.player.levSupportFire]) {
var v5 = 0;
var v6 = 0;
if (Math.random() > 0.3) {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(v4[v3])).rotation == 0) {
v5 = v4[v3].x + Math.random() * 140 - 70 + 140;
} else {
if ((com.gameInABottle.games.cursedWinds.entity.Ship(v4[v3])).rotation == 180) {
v5 = v4[v3].x + Math.random() * 140 - 70 - 140;
} else {
v5 = v4[v3].x + Math.random() * 220 - 110;
}
}
} else {
v5 = v4[v3].x + Math.random() * 260 - 130;
}
if (Math.random() > 0.7) {
v6 = v4[v3].y + Math.random() * 160 - 80;
} else {
v6 = v4[v3].y + Math.random() * 120 - 60;
}
if (v5 > 620 || v5 < 20) {
v5 = Math.random() * 600 + 20;
}
var v8 = new com.gameInABottle.games.cursedWinds.entity.BombardShell(v5, v6, _root.attachMovie('mcBombardShell', 'mcBombardShell' + this.currentCannonballZ, this.currentCannonballZ));
++this.currentCannonballZ;
if (this.currentCannonballZ > com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN + 10000) {
this.currentCannonballZ = com.gameInABottle.games.cursedWinds.constants.Z.CANNONBALL_MIN;
}
this.bombardShells.push(v8);
++v3;
if (v3 > v4.length - 1) {
v3 = 0;
}
++v7;
}
}
};
v2.summonCursedWind = function () {
if (this.cursedWind == null && this.status == this.ST_PLAYING) {
this.cursedWind = new com.gameInABottle.games.cursedWinds.entity.CursedWind(this.pirateShip.x + Math.random() * 150 - 75, _root.attachMovie('cursedWind', 'cursedWind', com.gameInABottle.games.cursedWinds.constants.Z.CURSEDWIND));
}
};
v2.loadSpecials = function () {
if (this.main.player.levVoiceOfCalypso > 0) {
this.voiceOfCalypsoLoadedLevel = Math.min(100, this.voiceOfCalypsoLoadedLevel + this.voiceOfCalypsoLoadSpeed);
}
if (this.main.player.levFireworkRockets > 0) {
this.fireworkRocketsLoadedLevel = Math.min(100, this.fireworkRocketsLoadedLevel + this.fireworkRocketsLoadSpeed);
}
if (this.main.player.levSupportFire > 0) {
this.supportFireLoadedLevel = Math.min(100, this.supportFireLoadedLevel + this.supportFireLoadSpeed);
}
};
v2.ST_PLAYING = 'ST_PLAYING';
v2.ST_OVER_PANEL_APPEARING = 'ST_OVER_PANEL_APPEARING';
v2.ST_OVER_IDLE = 'ST_OVER_IDLE';
v2.ST_CLOSING = 'ST_CLOSING';
v2.ST_IDLE = 'ST_IDLE';
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlIngame.prototype, null, 1);
}
#endinitclip
}
movieClip 734 __Packages.com.gameInABottle.games.cursedWinds.entity.Ship {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.Ship) {
var v1 = function (pCtrl) {
this.ctrl = pCtrl;
this.speed = 0;
this.turnSpeed = 0;
this.reloadedness = 120;
};
com.gameInABottle.games.cursedWinds.entity.Ship = v1;
var v2 = v1.prototype;
v2.doEnterFrame = function () {
if (this.isOwnedByPlayer) {
if (Key.isDown(32) || Key.isDown(17) || Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.F)) {
if (this.cannonsLoadedNum > 0) {
this.isFiring = true;
} else {
this.isFiring = false;
}
} else {
this.isFiring = false;
}
if (Key.isDown(37) || Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.A)) {
this.turnSpeed = Math.max(-this.turnSpeedMax, this.turnSpeed - 0.08);
} else {
if (Key.isDown(39) || Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.D)) {
this.turnSpeed = Math.min(this.turnSpeedMax, this.turnSpeed + 0.08);
} else {
var v9 = Math.abs(Math.max(0, this.turnSpeed - 0.08));
if (this.turnSpeed < 0) {
this.turnSpeed = -v9;
} else {
this.turnSpeed = v9;
}
}
}
if (Key.isDown(38) || Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.W)) {
this.speed = Math.min(this.speedMax, this.speed + 0.08);
} else {
this.speed = Math.max(0, this.speed - 0.08);
}
if (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.NUM_1)) {
this.ctrl.activateSupportFire();
}
if (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.NUM_2)) {
this.ctrl.activateVoiceOfCalypso();
}
if (Key.isDown(com.gameInABottle.games.cursedWinds.util.KeyCode.NUM_3)) {
this.ctrl.activateFireworkRockets();
}
this.rotation += this.turnSpeed;
if (this.rotation > 180) {
this.rotation -= 360;
} else {
if (this.rotation < -180) {
this.rotation += 360;
}
}
this.x += this.speed * Math.cos(this.rotation * Math.PI / 180);
this.y += this.speed * Math.sin(this.rotation * Math.PI / 180);
if (this.x > 550) {
this.x -= (this.x - 550) * 0.08;
}
if (this.x < 90) {
this.x += (90 - this.x) * 0.08;
}
if (this.y > 420) {
this.y -= (this.y - 420) * 0.12;
}
if (this.y < 180) {
this.y += (180 - this.y) * 0.007;
}
if (this.y < 40) {
this.y += (40 - this.y) * 0.08;
}
if (this.isFiringFireworkRockets) {
var v2 = 0;
while (v2 < this.ctrl.main.player.levFireworkRockets) {
var v8 = 0;
var v7 = 0;
var v3 = 0;
var v10 = Math.random() * 0.6 - 0.3;
var v4 = this.ctrl.isPirateshipShootingUp ? 1 : -1;
if (this.rotation < -90) {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
v3 = this.ctrl.isPirateshipShootingUp ? this.rotation + 90 : this.rotation - 90;
} else {
if (this.rotation < 0) {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
v3 = this.ctrl.isPirateshipShootingUp ? this.rotation - 90 : this.rotation + 90;
} else {
if (this.rotation < 90) {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
v3 = this.ctrl.isPirateshipShootingUp ? this.rotation - 90 : this.rotation + 90;
} else {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
v3 = this.ctrl.isPirateshipShootingUp ? this.rotation + 90 : this.rotation - 90;
}
}
}
this.ctrl.createFireworkRocket(v8, v7, v3);
++v2;
}
--this.fireworkRocketPacketsToFire;
if (this.fireworkRocketPacketsToFire < 1) {
this.isFiringFireworkRockets = false;
}
}
if (this.isFiring) {
v8 = 0;
v7 = 0;
var v12 = 0;
var v11 = 0;
v10 = Math.random() * 0.6 - 0.3;
v4 = this.ctrl.isPirateshipShootingUp ? 1 : -1;
if (this.rotation < -90) {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
vSpeedX = -1 * (this.cannonballSpeed + 0.5) * Math.sin(this.rotation * Math.PI / 180);
vSpeedY = (this.cannonballSpeed + 0.5) * Math.cos(this.rotation * Math.PI / 180);
} else {
if (this.rotation < 0) {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
vSpeedX = (this.cannonballSpeed + 0.5) * Math.sin(this.rotation * Math.PI / 180);
vSpeedY = -(this.cannonballSpeed + 0.5) * Math.cos(this.rotation * Math.PI / 180);
} else {
if (this.rotation < 90) {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) + ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
vSpeedX = (this.cannonballSpeed + 0.5) * Math.sin(this.rotation * Math.PI / 180);
vSpeedY = -(this.cannonballSpeed + 0.5) * Math.cos(this.rotation * Math.PI / 180);
} else {
v8 = this.x + (this.mc._xscale / 100) * this.mc._width * v10 * Math.cos(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc._xscale / 100) * this.mc._width * v10 * Math.sin(this.rotation * Math.PI / 180) - ((this.mc._xscale / 100) * v4 * this.mc.hull._height / 2) * -Math.cos(this.rotation * Math.PI / 180);
vSpeedX = -(this.cannonballSpeed + 0.5) * Math.sin(this.rotation * Math.PI / 180);
vSpeedY = (this.cannonballSpeed + 0.5) * Math.cos(this.rotation * Math.PI / 180);
}
}
}
vSpeedX *= v4;
vSpeedY *= v4;
this.ctrl.createPirateCannonball(v8, v7, vSpeedX, vSpeedY, this.firePower);
--this.cannonsLoadedNum;
} else {
if (Math.random() < 0.4) {
if (Math.random() * 1000 < this.crewNum * this.reloadSpeed) {
this.cannonsLoadedNum = Math.min(this.cannonsLoadedNum + 1, this.cannonsNum);
}
}
}
} else {
if (this.y < 0) {
this.y += 0.4;
}
this.y += Math.max(0.07000000000000001, (this.y / 480) * this.data.deltaY);
if (this.status == this.ST_AI_DISAPPEARING) {
this.mc._alpha -= 0.65;
if (this.mc._alpha < 1) {
this.ctrl.destroyShip(this);
}
}
if (this.status == this.ST_AI_PLUNDERED) {
this.infoPanel.goldenFrame._visible = true;
var v6 = Math.max(0, Math.floor(this.goldCarried * 0.2));
if (v6 < 10) {
v6 = this.goldCarried;
}
this.goldCarried -= v6;
this.infoPanel.tfGold.text = this.goldCarried;
this.ctrl.main.player.setScore(this.ctrl.main.player.getScore() + v6);
this.ctrl.main.player.setGold(this.ctrl.main.player.getGold() + v6);
this.ctrl.goldPlunderedOnLevel += v6;
if (this.goldCarried == 0) {
this.status = this.ST_AI_DISAPPEARING;
this.mc.hull.gotoAndStop(6);
this.mc.mast1._visible = false;
this.mc.mast2._visible = false;
this.mc.mast3._visible = false;
this.mc.sailFront._visible = false;
this.mc.sailRear._visible = false;
if (this.data.hullType == 1) {
var v2 = 0;
while (v2 < 5) {
this.ctrl.main.vfxEngine.createBlast(this.x + Math.random() * 20 - 10, this.y + Math.random() * 20 - 10);
++v2;
}
} else {
if (this.data.hullType == 2) {
var v2 = 0;
while (v2 < 6) {
this.ctrl.main.vfxEngine.createBlast(this.x + Math.random() * 28 - 14, this.y + Math.random() * 28 - 14);
++v2;
}
} else {
if (this.data.hullType == 3) {
var v2 = 0;
while (v2 < 7) {
this.ctrl.main.vfxEngine.createBlast(this.x + Math.random() * 34 - 17, this.y + Math.random() * 34 - 17);
++v2;
}
} else {
if (this.data.hullType == 4) {
var v2 = 0;
while (v2 < 9) {
this.ctrl.main.vfxEngine.createBlast(this.x + Math.random() * 40 - 20, this.y + Math.random() * 40 - 20);
++v2;
}
} else {
if (this.data.hullType == 5) {
var v2 = 0;
while (v2 < 15) {
this.ctrl.main.vfxEngine.createBlast(this.x + Math.random() * 60 - 30, this.y + Math.random() * 60 - 30);
++v2;
}
}
}
}
}
}
this.ctrl.main.vfxEngine.createInfoPanelBlast(this.infoPanel._x, this.infoPanel._y);
this.ctrl.main.sndBlastBig.start();
this.infoPanel.removeMovieClip();
}
}
if (this.y > 480 && this.status != this.ST_AI_DISAPPEARING) {
this.status = this.ST_AI_DISAPPEARING;
this.ctrl.main.vfxEngine.createInfoPanelBlast(this.infoPanel._x, this.infoPanel._y);
this.infoPanel.removeMovieClip();
}
if (Math.sqrt((this.x - this.ctrl.pirateShip.x) * (this.x - this.ctrl.pirateShip.x) + (this.y - this.ctrl.pirateShip.y) * (this.y - this.ctrl.pirateShip.y)) < 70) {
if (this.status == this.ST_AI_PLUNDERED || this.status == this.ST_AI_DISAPPEARING) {
} else {
if (this.status == this.ST_AI_WRECK) {
this.ctrl.main.sndPlunder.start();
this.status = this.ST_AI_PLUNDERED;
} else {
if (this.status != this.ST_AI_ENGAGED) {
this.status = this.ST_AI_ENGAGED;
this.ctrl.setEngagementLevel(1);
this.infoPanel.redFrame._visible = true;
}
}
}
}
if (this.status == this.ST_AI_ENGAGED) {
this.ctrl.setEngagementLevel(2);
if (Math.sqrt((this.x - this.ctrl.pirateShip.x) * (this.x - this.ctrl.pirateShip.x) + (this.y - this.ctrl.pirateShip.y) * (this.y - this.ctrl.pirateShip.y)) > 110) {
if (this.rotation == 0 || this.rotation == 180 || this.rotation == -180) {
this.status = this.ST_AI_MOVING;
} else {
this.status = this.ST_AI_TURNING;
}
this.ctrl.setEngagementLevel(-1);
this.infoPanel.redFrame._visible = false;
} else {
this.x += Math.max(-0.9, Math.min(0.9, 0.025 * (this.ctrl.pirateShip.x - this.x)));
this.sufferEngagedDamage();
this.ctrl.pirateShip.sufferEngagedDamage();
}
}
if (this.status != this.ST_AI_WRECK && this.status != this.ST_AI_PLUNDERED && this.status != this.ST_AI_DISAPPEARING) {
if (this.y > this.ctrl.pirateShip.y - 50) {
this.y -= Math.min((50 - (this.ctrl.pirateShip.y - this.y)) / 500, 0.4);
}
}
if (this.data.sailType == this.data.ST_BOSS && this.ctrl.main.player.currentLevel == 14) {
this.y = Math.min(110, this.y);
}
if (this.status == this.ST_AI_INCOMING) {
this.y += this.speedMax;
if (this.y > 75) {
this.status = this.ST_AI_TURNING_TO_H;
}
}
if (this.status == this.ST_AI_SHOOTING) {
this.reloadedness = 0;
var v10 = 0.6 * (Math.random() - 0.3);
var v8 = 0;
var v7 = 0;
if (this.rotation < 90 && this.rotation > -90) {
v8 = this.x + this.mc._width * Math.cos(this.rotation * Math.PI / 180) * v10 - (this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y + (this.mc.hull._height / 2) * Math.cos(this.rotation * Math.PI / 180);
var vSpeedX = this.cannonballSpeed * Math.sin(this.rotation * Math.PI / 180);
var vSpeedY = this.cannonballSpeed * Math.cos(this.rotation * Math.PI / 180);
} else {
v8 = this.x + this.mc._width * Math.cos(this.rotation * Math.PI / 180) * v10 - (this.mc.hull._height / 2) * Math.sin(this.rotation * Math.PI / 180);
v7 = this.y - (this.mc.hull._height / 2) * Math.cos(this.rotation * Math.PI / 180);
var vSpeedX = this.cannonballSpeed * Math.sin(this.rotation * Math.PI / 180);
var vSpeedY = this.cannonballSpeed * -Math.cos(this.rotation * Math.PI / 180);
}
this.ctrl.createEnemyCannonball(v8, v7, vSpeedX, vSpeedY, this.firePower, this);
--this.cannonsLoadedNum;
if (this.cannonsLoadedNum < 1) {
this.status = this.ST_AI_MOVING;
}
} else {
++this.reloadedness;
if (Math.random() * 1000 < this.crewNum * this.reloadSpeed) {
if (Math.random() < 0.4) {
this.cannonsLoadedNum = Math.min(this.cannonsLoadedNum + 1, this.cannonsNum);
}
}
}
if (this.status == this.ST_AI_MOVING || this.status == this.ST_AI_SHOOTING) {
this.speed = Math.min(this.speed + 0.04, this.speedMax);
} else {
this.speed = Math.max(this.speed - 0.05, 0);
}
if (this.status == this.ST_AI_MOVING || this.status == this.ST_AI_SHOOTING || this.status == this.ST_AI_TURNING || this.status == this.ST_AI_ENGAGED) {
if (this.rotation > 90) {
this.x -= this.speed;
if (this.x < this.data.xMin) {
this.status = this.ST_AI_TURNING;
}
} else {
this.x += this.speed;
if (this.x > this.data.xMax) {
this.status = this.ST_AI_TURNING;
}
}
}
if (this.status == this.ST_AI_MOVING) {
if (Math.random() < 0.055 || this.data.sailType == this.data.ST_BOSS && this.ctrl.main.player.currentLevel == 14) {
if (this.reloadedness > 119 && this.cannonsLoadedNum > 0 && this.cannonsLoadedNum == this.cannonsNum && Math.abs(this.x - this.ctrl.pirateShip.x) < Math.min(55, this.ctrl.pirateShip.y - this.y + 10)) {
if (this.y < this.ctrl.pirateShip.y) {
var v5 = true;
v2 = 0;
while (v2 < this.ctrl.enemyShips.length) {
if (this.ctrl.enemyShips[v2] != this && Math.abs(this.x - this.ctrl.enemyShips[v2].x) < Math.min(55, this.ctrl.enemyShips[v2].y - this.y + 10)) {
v5 = false;
}
++v2;
}
if (v5) {
this.status = this.ST_AI_SHOOTING;
}
}
}
}
}
if (this.status == this.ST_AI_TURNING) {
this.turnSpeed = Math.min(this.turnSpeed + 1, this.turnSpeedMax);
if (this.x < this.data.xMin) {
this.rotation -= this.turnSpeed;
if (this.rotation < 0) {
this.rotation = 0;
this.turnSpeed = 0;
this.status = this.ST_AI_MOVING;
}
} else {
this.rotation += this.turnSpeed;
if (this.rotation > 180) {
this.rotation = 180;
this.turnSpeed = 0;
this.status = this.ST_AI_MOVING;
}
}
}
if (this.status == this.ST_AI_TURNING_TO_H) {
this.turnSpeed = Math.min(this.turnSpeed + 1, this.turnSpeedMax);
if (this.rotation < 0 && this.rotation > -90) {
this.rotation += this.turnSpeed;
if (this.rotation > 0) {
this.rotation = 0;
this.turnSpeed = 0;
this.status = this.ST_AI_MOVING;
}
} else {
if (this.rotation < 90) {
this.rotation -= this.turnSpeed;
if (this.rotation < 0) {
this.rotation = 0;
this.turnSpeed = 0;
this.status = this.ST_AI_MOVING;
}
} else {
this.rotation += this.turnSpeed;
if (this.rotation > 180) {
this.rotation = 180;
this.turnSpeed = 0;
this.status = this.ST_AI_MOVING;
}
}
}
}
}
this.render();
};
v2.render = function () {
this.mc._x = this.x;
this.mc._y = this.y;
this.mc._rotation = this.rotation;
if (this.rotation >= 0 && this.rotation < 90) {
this.mc.sailFront._yscale = -(90 - this.rotation);
} else {
if (this.rotation >= 90 && this.rotation <= 180) {
this.mc.sailFront._yscale = -90 + this.rotation;
} else {
if (this.rotation > -90 && this.rotation < 0) {
this.mc.sailFront._yscale = -(-90 + (this.rotation + 90)) - 90;
} else {
this.mc.sailFront._yscale = 90 - (90 + (this.rotation + 90));
}
}
}
if (this.rotation > -165 && this.rotation < -15) {
this.mc.mast1.sail1._xscale = 40;
this.mc.mast1.sail2._xscale = 40;
this.mc.mast2.sail1._xscale = 40;
this.mc.mast2.sail2._xscale = 40;
this.mc.mast3.sail1._xscale = 40;
this.mc.mast3.sail2._xscale = 40;
}
if (this.rotation <= 0 && this.rotation >= -15) {
this.mc.mast1._rotation = this.rotation + 15;
this.mc.mast2._rotation = this.rotation + 15;
this.mc.mast3._rotation = this.rotation + 15;
this.mc.mast1.sail1._xscale = 100 + 4 * this.rotation;
this.mc.mast1.sail2._xscale = 100 + 4 * this.rotation;
this.mc.mast2.sail1._xscale = 100 + 4 * this.rotation;
this.mc.mast2.sail2._xscale = 100 + 4 * this.rotation;
this.mc.mast3.sail1._xscale = 100 + 4 * this.rotation;
this.mc.mast3.sail2._xscale = 100 + 4 * this.rotation;
} else {
if (this.rotation >= 0 && this.rotation <= 15) {
this.mc.mast1._rotation = 15 - this.rotation;
this.mc.mast2._rotation = 15 - this.rotation;
this.mc.mast3._rotation = 15 - this.rotation;
} else {
if (this.rotation >= 165 && this.rotation <= 180) {
this.mc.mast1._rotation = 165 - this.rotation;
this.mc.mast2._rotation = 165 - this.rotation;
this.mc.mast3._rotation = 165 - this.rotation;
} else {
if (this.rotation <= -165 && this.rotation >= -180) {
this.mc.mast1._rotation = 165 + this.rotation;
this.mc.mast2._rotation = 165 + this.rotation;
this.mc.mast3._rotation = 165 + this.rotation;
this.mc.mast1.sail1._xscale = 100 - 4 * (this.rotation + 180);
this.mc.mast1.sail2._xscale = 100 - 4 * (this.rotation + 180);
this.mc.mast2.sail1._xscale = 100 - 4 * (this.rotation + 180);
this.mc.mast2.sail2._xscale = 100 - 4 * (this.rotation + 180);
this.mc.mast3.sail1._xscale = 100 - 4 * (this.rotation + 180);
this.mc.mast3.sail2._xscale = 100 - 4 * (this.rotation + 180);
} else {
this.mc.mast1._rotation = 0;
this.mc.mast2._rotation = 0;
this.mc.mast3._rotation = 0;
}
}
}
}
this.mc.mast1.flag._rotation = -this.mc.mast1._rotation - this.mc._rotation;
this.mc.mast2.flag._rotation = -this.mc.mast1._rotation - this.mc._rotation;
this.mc.mast3.flag._rotation = -this.mc.mast1._rotation - this.mc._rotation;
this.infoPanel._x = Math.floor(this.mc._x + this.infoPanelDistancesX[this.data.hullType]);
this.infoPanel._y = Math.floor(this.mc._y + this.infoPanelDistancesY[this.data.hullType]);
this.battleWheel._x = this.x;
this.battleWheel._y = this.y;
if (this.isOwnedByPlayer && this.ctrl.pirateShipEngagementLevel > 0 || !this.isOwnedByPlayer && this.status == this.ST_AI_ENGAGED) {
this.battleWheel._visible = true;
this.battleWheel._alpha = Math.min(100, this.battleWheel._alpha + 5);
} else {
this.battleWheel._alpha = Math.max(0, this.battleWheel._alpha - 5);
if (this.battleWheel._alpha < 1) {
this.battleWheel._visible = false;
}
}
};
v2.sufferDamage = function (pFirepower) {
if (this.isOwnedByPlayer) {
if (this.ctrl.main.player.difficulty == 0) {
this.hp = Math.max(0, this.hp - Math.max(3, Math.floor(Math.random() * 9 + 4 + 3 * pFirepower - 5 * this.armor)));
} else {
if (this.ctrl.main.player.difficulty == 0) {
this.hp = Math.max(0, this.hp - Math.max(4, Math.floor(Math.random() * 12 + 5 + 4 * pFirepower - 4 * this.armor)));
} else {
this.hp = Math.max(0, this.hp - Math.max(5, Math.floor(Math.random() * 15 + 6 + 5 * pFirepower - 3 * this.armor)));
}
}
} else {
this.ctrl.loadSpecials();
if (this.ctrl.main.player.difficulty == 0) {
this.hp = Math.max(0, this.hp - Math.max(14, Math.floor(Math.random() * 31 + 15 + 9 * pFirepower - 2 * this.armor)));
} else {
if (this.ctrl.main.player.difficulty == 0) {
this.hp = Math.max(0, this.hp - Math.max(11, Math.floor(Math.random() * 28 + 12 + 7 * pFirepower - 2 * this.armor)));
} else {
this.hp = Math.max(0, this.hp - Math.max(8, Math.floor(Math.random() * 25 + 9 + 5 * pFirepower - 2 * this.armor)));
}
}
}
if (this.isOwnedByPlayer) {
if (this.ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.94) {
this.crewNum = Math.max(0, this.crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.98) {
this.cannonsNum = Math.max(0, this.cannonsNum - 1);
this.cannonsLoadedNum = Math.max(0, this.cannonsLoadedNum - 1);
}
} else {
if (this.ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.89) {
this.crewNum = Math.max(0, this.crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.96) {
this.cannonsNum = Math.max(0, this.cannonsNum - 1);
this.cannonsLoadedNum = Math.max(0, this.cannonsLoadedNum - 1);
}
} else {
if (Math.random() > 0.83) {
this.crewNum = Math.max(0, this.crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.9300000000000001) {
this.cannonsNum = Math.max(0, this.cannonsNum - 1);
this.cannonsLoadedNum = Math.max(0, this.cannonsLoadedNum - 1);
}
}
}
} else {
if (Math.random() > 0.67) {
if (this.crewNum > 20) {
this.crewNum = Math.max(0, this.crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
} else {
if (this.crewNum > 7) {
this.crewNum = Math.max(0, this.crewNum - 1);
}
}
}
if (Math.random() > 0.92) {
this.cannonsNum = Math.max(0, this.cannonsNum - 1);
this.cannonsLoadedNum = Math.max(0, this.cannonsLoadedNum - 1);
}
}
if (!this.isOwnedByPlayer) {
if (Math.random() > 0.7) {
this.goldCarried = Math.max(0, this.goldCarried - Math.round(Math.random() * 6));
}
if (Math.random() > 0.7) {
if (this.data.sailType == this.data.ST_BOSS && this.ctrl.main.player.currentLevel == 14) {
} else {
this.speedMax *= 0.982;
this.turnSpeedMax *= 0.993;
if (this.speedMax <= 0.8 * this.speedMaxOriginal && this.mc.mast3._currentframe == 1) {
this.mc.mast3.gotoAndPlay(2);
}
if (this.speedMax <= 0.6 * this.speedMaxOriginal && this.mc.sailFront._visible == true) {
this.mc.sailFront._visible = false;
}
if (this.speedMax <= 0.46 * this.speedMaxOriginal && this.mc.mast2._currentframe == 1) {
this.mc.mast2.gotoAndPlay(2);
}
}
}
}
if (this.hp < 1) {
if (this.status == this.ST_AI_ENGAGED) {
this.infoPanel.redFrame._visible = false;
this.ctrl.setEngagementLevel(-1);
}
this.infoPanel.plate.gotoAndStop(2);
this.infoPanel.tfCrew._visible = false;
this.infoPanel.tfCannons._visible = false;
this.infoPanel.tfShip._visible = false;
this.hp = 0;
this.goldCarried = Math.round(this.goldCarried * 0.95);
this.mc.hull.gotoAndStop(6);
this.mc.sailFront._visible = false;
this.mc.sailRear._visible = false;
this.mc.mast1._visible = false;
this.mc.mast2._visible = false;
this.mc.mast3._visible = false;
var v2 = 0;
while (v2 < 7) {
this.ctrl.main.vfxEngine.createBlast(this.x + Math.random() * 30 - 15, this.y + Math.random() * 30 - 15);
++v2;
}
if (this.isOwnedByPlayer) {
this.ctrl.endGameWithDefeat();
} else {
this.status = this.ST_AI_WRECK;
this.ctrl.main.sndBlastBig.start();
this.ctrl.checkForGameContinuity();
}
} else {
if (this.hp < this.hpMax * 0.2) {
this.mc.hull.gotoAndStop(5);
} else {
if (this.hp < this.hpMax * 0.4) {
this.mc.hull.gotoAndStop(4);
} else {
if (this.hp < this.hpMax * 0.6) {
this.mc.hull.gotoAndStop(3);
} else {
if (this.hp < this.hpMax * 0.8) {
this.mc.hull.gotoAndStop(2);
}
}
}
}
}
if (this.hp > 0 && this.hp < this.hpMax * 0.3) {
this.ctrl.checkForGameContinuity();
}
if (!this.isOwnedByPlayer) {
this.infoPanel.tfGold.text = this.goldCarried;
this.infoPanel.tfCrew.text = this.crewNum;
this.infoPanel.tfCannons.text = this.cannonsNum;
this.infoPanel.tfShip.text = this.hp;
if (this.hp < this.hpMax * 0.3) {
this.infoPanel.tfShip.textColor = 16711680;
}
}
if (this.isOwnedByPlayer) {
if (this.crewNum < 1) {
this.ctrl.endGameWithDefeat();
}
}
this.ctrl.main['sndBlast' + Math.floor(Math.random() * 3)].start();
if (this.data.sailType == this.data.ST_BOSS && this.ctrl.main.player.currentLevel == 14 && this.hp > 2000 && this.hp < 9900) {
if (this.ctrl.enemyShips.length < 2 || this.ctrl.enemyShips.length < 3 && Math.random() < 0.005) {
var v3 = new com.gameInABottle.games.cursedWinds.entity.ShipData();
v3.hullType = 2;
v3.armorLevel = 6;
v3.crewNumLevel = 6;
v3.firePowerLevel = 6;
v3.cannonsNumLevel = 6;
v3.speedMaxLevel = 6;
v3.turnSpeedMaxLevel = 6;
v3.reloadSpeedLevel = 6;
v3.sailType = v3.ST_FINAL_MINION;
v3.xMin = 80;
v3.xMax = 560;
v3.x = -300;
v3.deltaY = 0.35;
v3.goldCarried = 1000;
this.ctrl.createShip(v3);
}
}
};
v2.sufferEngagedDamage = function () {
if (this.isOwnedByPlayer) {
if (Math.random() > 0.972) {
--this.crewNum;
if (this.crewNum < 1) {
this.ctrl.endGameWithDefeat();
}
}
} else {
if (Math.random() > 0.8) {
--this.crewNum;
this.infoPanel.tfCrew.text = this.crewNum;
if (this.crewNum < 1) {
this.ctrl.main.sndPlunder.start();
this.status = this.ST_AI_PLUNDERED;
this.ctrl.setEngagementLevel(-1);
this.infoPanel.redFrame._visible = false;
this.infoPanel.plate.gotoAndStop(2);
this.infoPanel.tfCrew._visible = false;
this.infoPanel.tfCannons._visible = false;
this.infoPanel.tfShip._visible = false;
}
}
}
};
v2.sufferCalypsoDamage = function (pFirepower) {
if (this.hp > 0) {
this.ctrl.main.vfxEngine.createCalypsoDebris(this.x, this.y);
if (this.ctrl.main.player.difficulty == 0) {
this.hp = Math.max(0, this.hp - Math.max(14, Math.floor(Math.random() * 5 + 10 + 9 * pFirepower)));
} else {
if (this.ctrl.main.player.difficulty == 0) {
this.hp = Math.max(0, this.hp - Math.max(11, Math.floor(Math.random() * 4 + 8 + 7 * pFirepower)));
} else {
this.hp = Math.max(0, this.hp - Math.max(8, Math.floor(Math.random() * 3 + 6 + 5 * pFirepower)));
}
}
if (this.ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.94) {
this.crewNum = Math.max(0, this.crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.98) {
this.cannonsNum = Math.max(0, this.cannonsNum - 1);
this.cannonsLoadedNum = Math.max(0, this.cannonsLoadedNum - 1);
}
} else {
if (this.ctrl.main.player.difficulty == 0) {
if (Math.random() > 0.89) {
this.crewNum = Math.max(0, this.crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.96) {
this.cannonsNum = Math.max(0, this.cannonsNum - 1);
this.cannonsLoadedNum = Math.max(0, this.cannonsLoadedNum - 1);
}
} else {
if (Math.random() > 0.83) {
this.crewNum = Math.max(0, this.crewNum - Math.max(1, Math.floor(Math.random() * pFirepower)));
}
if (Math.random() > 0.9300000000000001) {
this.cannonsNum = Math.max(0, this.cannonsNum - 1);
this.cannonsLoadedNum = Math.max(0, this.cannonsLoadedNum - 1);
}
}
}
if (Math.random() > 0.7) {
if (this.data.sailType == this.data.ST_BOSS && this.ctrl.main.player.currentLevel == 14) {
} else {
this.speedMax *= 0.982;
this.turnSpeedMax *= 0.993;
if (this.speedMax <= 0.8 * this.speedMaxOriginal && this.mc.mast3._currentframe == 1) {
this.mc.mast3.gotoAndPlay(2);
}
if (this.speedMax <= 0.6 * this.speedMaxOriginal && this.mc.sailFront._visible == true) {
this.mc.sailFront._visible = false;
}
if (this.speedMax <= 0.46 * this.speedMaxOriginal && this.mc.mast2._currentframe == 1) {
this.mc.mast2.gotoAndPlay(2);
}
}
}
if (this.hp < 1) {
if (this.status == this.ST_AI_ENGAGED) {
this.infoPanel.redFrame._visible = false;
this.ctrl.setEngagementLevel(-1);
}
this.infoPanel.plate.gotoAndStop(2);
this.infoPanel.tfCrew._visible = false;
this.infoPanel.tfCannons._visible = false;
this.infoPanel.tfShip._visible = false;
this.hp = 0;
this.goldCarried = Math.round(this.goldCarried * 0.95);
this.mc.hull.gotoAndStop(6);
this.mc.sailFront._visible = false;
this.mc.sailRear._visible = false;
this.mc.mast1._visible = false;
this.mc.mast2._visible = false;
this.mc.mast3._visible = false;
var v2 = 0;
while (v2 < 7) {
this.ctrl.main.vfxEngine.createBlast(this.x + Math.random() * 30 - 15, this.y + Math.random() * 30 - 15);
++v2;
}
this.status = this.ST_AI_WRECK;
this.ctrl.main.sndBlastBig.start();
this.ctrl.checkForGameContinuity();
} else {
if (this.hp < this.hpMax * 0.2) {
this.mc.hull.gotoAndStop(5);
} else {
if (this.hp < this.hpMax * 0.4) {
this.mc.hull.gotoAndStop(4);
} else {
if (this.hp < this.hpMax * 0.6) {
this.mc.hull.gotoAndStop(3);
} else {
if (this.hp < this.hpMax * 0.8) {
this.mc.hull.gotoAndStop(2);
}
}
}
}
}
if (this.hp > 0 && this.hp < this.hpMax * 0.3) {
this.ctrl.checkForGameContinuity();
}
this.infoPanel.tfGold.text = this.goldCarried;
this.infoPanel.tfCrew.text = this.crewNum;
this.infoPanel.tfCannons.text = this.cannonsNum;
this.infoPanel.tfShip.text = this.hp;
if (this.hp < this.hpMax * 0.3) {
this.infoPanel.tfShip.textColor = 16711680;
}
}
};
v2.infoPanelDistancesX = new Array(0, 40, 50, 60, 75, 90);
v2.infoPanelDistancesY = new Array(0, -40, -50, -60, -75, -90);
v2.ST_AI_ENGAGED = 'ST_ENGAGED';
v2.ST_AI_MOVING = 'ST_MOVING';
v2.ST_AI_TURNING = 'ST_TURNING';
v2.ST_AI_TURNING_TO_H = 'ST_TURNING_TO_H';
v2.ST_AI_INCOMING = 'ST_AI_INCOMING';
v2.ST_AI_SHOOTING = 'ST_AI_SHOOTING';
v2.ST_AI_WRECK = 'ST_AI_WRECK';
v2.ST_AI_PLUNDERED = 'ST_AI_PLUNDERED';
v2.ST_AI_DISAPPEARING = 'ST_AI_DISAPPEARING';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.Ship.prototype, null, 1);
}
#endinitclip
}
movieClip 735 __Packages.com.gameInABottle.games.cursedWinds.util.KeyCode {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util) {
_global.com.gameInABottle.games.cursedWinds.util = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util.KeyCode) {
var v1 = function () {};
com.gameInABottle.games.cursedWinds.util.KeyCode = v1;
var v2 = v1.prototype;
v1.A = 65;
v1.B = 66;
v1.C = 67;
v1.D = 68;
v1.E = 69;
v1.F = 70;
v1.G = 71;
v1.H = 72;
v1.I = 73;
v1.J = 74;
v1.K = 75;
v1.L = 76;
v1.M = 77;
v1.N = 78;
v1.O = 79;
v1.P = 80;
v1.Q = 81;
v1.R = 82;
v1.S = 83;
v1.T = 84;
v1.U = 85;
v1.V = 86;
v1.W = 87;
v1.X = 88;
v1.Y = 89;
v1.Z = 90;
v1.NUM_0 = 48;
v1.NUM_1 = 49;
v1.NUM_2 = 50;
v1.NUM_3 = 51;
v1.NUM_4 = 52;
v1.NUM_5 = 53;
v1.NUM_6 = 54;
v1.NUM_7 = 55;
v1.NUM_8 = 56;
v1.NUM_9 = 57;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.util.KeyCode.prototype, null, 1);
}
#endinitclip
}
movieClip 736 __Packages.com.gameInABottle.games.cursedWinds.entity.CursedWind {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.CursedWind) {
var v1 = function (pX, pMc) {
this.x = pX;
this.y = -200;
this.mc = pMc;
this.mc._x = this.x;
this.mc._y = this.y;
this.isSoundPlayed = false;
};
com.gameInABottle.games.cursedWinds.entity.CursedWind = v1;
var v2 = v1.prototype;
v2.doEnterFrame = function () {
this.y += 7;
this.mc._y = this.y;
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.CursedWind.prototype, null, 1);
}
#endinitclip
}
movieClip 737 __Packages.com.gameInABottle.games.cursedWinds.entity.Whirlpool {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.Whirlpool) {
var v1 = function () {};
com.gameInABottle.games.cursedWinds.entity.Whirlpool = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.Whirlpool.prototype, null, 1);
}
#endinitclip
}
movieClip 738 __Packages.com.gameInABottle.games.cursedWinds.entity.CalypsoWave {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.CalypsoWave) {
var v1 = function (pX, pY, pMc) {
this.x = pX;
this.y = pY;
this.mc = pMc;
this.mc._x = this.x;
this.mc._y = this.y;
this.mc.ring._xscale = 40;
this.mc.ring._yscale = 40;
};
com.gameInABottle.games.cursedWinds.entity.CalypsoWave = v1;
var v2 = v1.prototype;
v2.doEnterFrame = function () {
this.mc._alpha -= 1.3;
this.mc.ring._xscale += 7;
this.mc.ring._yscale += 7;
this.r = this.mc.ring._xscale / 2;
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.CalypsoWave.prototype, null, 1);
}
#endinitclip
}
movieClip 739 __Packages.com.gameInABottle.games.cursedWinds.entity.Cannonball {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.Cannonball) {
var v1 = function (pX, pY, pSpeedX, pSpeedY, pMc, pFirepower, pOrigin) {
this.x = pX;
this.y = pY;
this.speedX = pSpeedX;
this.speedY = pSpeedY;
this.firepower = pFirepower;
this.mc = pMc;
this.originShip = pOrigin;
};
com.gameInABottle.games.cursedWinds.entity.Cannonball = v1;
var v2 = v1.prototype;
v2.fly = function () {
this.x += this.speedX;
this.y += this.speedY;
this.mc._x = this.x;
this.mc._y = this.y;
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.Cannonball.prototype, null, 1);
}
#endinitclip
}
movieClip 740 __Packages.com.gameInABottle.games.cursedWinds.entity.FireworkRocket {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.FireworkRocket) {
var v1 = function (pX, pY, pRotation, pMc) {
this.x = pX;
this.y = pY;
this.rotation = pRotation;
this.speed = Math.random() * 3 + 2;
this.firepower = 15;
this.mc = pMc;
this.fuel = Math.random() * 50 + 40;
};
com.gameInABottle.games.cursedWinds.entity.FireworkRocket = v1;
var v2 = v1.prototype;
v2.fly = function () {
--this.fuel;
this.rotation += Math.random() * 10 - 5;
this.y += this.speed * Math.sin(this.rotation * Math.PI / 180);
this.x += this.speed * Math.cos(this.rotation * Math.PI / 180);
this.mc._rotation = this.rotation + 90;
this.mc._x = this.x;
this.mc._y = this.y;
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.FireworkRocket.prototype, null, 1);
}
#endinitclip
}
movieClip 741 __Packages.com.gameInABottle.games.cursedWinds.entity.BombardShell {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity) {
_global.com.gameInABottle.games.cursedWinds.entity = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.entity.BombardShell) {
var v1 = function (pTargetX, pTargetY, pMc) {
this.x = pTargetX;
this.y = Math.random() * 400 + 700;
this.targetY = pTargetY;
this.speedY = -(Math.random() * 4 + 4);
this.firepower = 70;
this.mc = pMc;
};
com.gameInABottle.games.cursedWinds.entity.BombardShell = v1;
var v2 = v1.prototype;
v2.fly = function () {
this.y += this.speedY;
this.mc._x = this.x;
this.mc._y = this.y;
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.entity.BombardShell.prototype, null, 1);
}
#endinitclip
}
movieClip 742 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
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();
}
};
this.mcw.btnDone.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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();
}
}
};
this.mcw.btnNext.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnBack.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
if (vThis.turnPageDirection == 0 && vThis.currentPage > 1) {
vThis.turnPage(-1);
vThis.main.sndTickPress.start();
}
}
};
this.mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
};
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mcPanelA._y = -480;
this.mcw.mcPanelB._y = -480;
this.mcw.btnBack._y = 600;
this.mcw.btnDone._y = 600;
this.mcw.btnNext._y = 600;
this.mcw.btnDone._y = 500;
this.mcw.mc._visible = true;
this.mcw.mcPanelA._x = 50;
this.mcw.mcPanelB._x = 690;
this.mcw.mcPanelA.gotoAndStop(1);
this.mcw.mcPanelB.gotoAndStop(1);
this.currentPage = 1;
this.turnPageDirection = 0;
this.turnPageStep = 0;
this.btnBackOutStep = 15;
this.btnNextOutStep = 0;
this.panelIn = this.mcw.mcPanelA;
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
this.mcw.mcPanelA._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -426, 480, 20);
this.mcw.mcPanelB._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -426, 480, 20);
this.mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 602, -200, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 602, -200, 20);
this.mcw.btnNext._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 602, -200, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mcPanelA._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 54, -480, 20);
this.mcw.mcPanelB._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 54, -480, 20);
this.mcw.btnDone._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 402, 200, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 402, 200, 20);
this.mcw.btnNext._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 402, 200, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
} else {
if (Key.isDown(27)) {
if (this.screenStatus == this.SCRST_IDLE) {
this.mcw.btnDone.onPress();
}
}
}
}
if (this.turnPageDirection != 0) {
++this.turnPageStep;
if (this.turnPageDirection == 1) {
this.panelIn._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(this.turnPageStep, 690, -640, 20);
this.panelOut._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(this.turnPageStep, 50, -640, 20);
} else {
if (this.turnPageDirection == -1) {
this.panelIn._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(this.turnPageStep, -590, 640, 20);
this.panelOut._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeInOut(this.turnPageStep, 50, 640, 20);
}
}
if (this.turnPageStep > 19) {
this.turnPageDirection = 0;
this.turnPageStep = 0;
}
}
if (this.currentPage < 2) {
this.btnBackOutStep = Math.min(15, this.btnBackOutStep + 1);
} else {
this.btnBackOutStep = Math.max(0, this.btnBackOutStep - 1);
}
this.mcw.btnBack._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.btnBackOutStep, 28, -150, 15);
if (this.currentPage > this.PAGES_NUM - 1) {
this.btnNextOutStep = Math.min(15, this.btnNextOutStep + 1);
} else {
this.btnNextOutStep = Math.max(0, this.btnNextOutStep - 1);
}
this.mcw.btnNext._x = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.btnNextOutStep, 501, 150, 15);
if (Key.isDown(32) || Key.isDown(13) || Key.isDown(17)) {
this.mcw.btnNext.onPress();
}
};
v2.turnPage = function (pDirection) {
this.turnPageDirection = pDirection;
this.currentPage += pDirection;
if (this.panelIn == this.mcw.mcPanelA) {
this.panelOut = this.mcw.mcPanelA;
this.panelIn = this.mcw.mcPanelB;
} else {
this.panelOut = this.mcw.mcPanelB;
this.panelIn = this.mcw.mcPanelA;
}
this.panelIn.gotoAndStop(this.currentPage);
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
v2.PAGES_NUM = 10;
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlTutorial.prototype, null, 1);
}
#endinitclip
}
movieClip 743 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlMap {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlMap) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlMap = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
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();
}
};
this.mcw.btnStartBattle.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
};
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mc._visible = true;
this.mcw.mc._y = -480;
var v2 = 0;
while (v2 < this.mapShips.length) {
(MovieClip(this.mapShips[v2])).removeMovieClip();
++v2;
}
this.mapShips = new Array();
v2 = 0;
while (v2 <= this.main.player.currentLevel) {
var v3 = this.mcw.mc.attachMovie('mcMapShip', 'mapShip' + v2, com.gameInABottle.games.cursedWinds.constants.Z.MAPSHIP_MIN + v2);
v3._x = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapX;
v3._y = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapY;
v3._xscale = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapPirRelX > 0 ? 100 : -100;
v3.baseY = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapY;
if (v2 == this.main.player.currentLevel) {
var v4 = this.mcw.mc.attachMovie('mcMapShip', 'pirateMapShip', com.gameInABottle.games.cursedWinds.constants.Z.MAPSHIP_MIN - 1);
v4._x = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapX + (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapPirRelX;
v4._y = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapY + (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapPirRelY;
v4.baseY = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapY + (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapPirRelY;
v4._xscale = (com.gameInABottle.games.cursedWinds.entity.LevelData(this.main.staticData.levels[v2])).mapPirRelX > 0 ? -100 : 100;
v4.gotoAndStop(2);
v3.gotoAndStop(3);
this.mapShips.push(v4);
} else {
v3._alpha = 35;
}
this.mapShips.push(v3);
++v2;
}
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
if (this.screenStep < 20) {
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -480, 480, 20);
this.mcw.btnStartBattle._y = -100;
}
if (this.screenStep < 30 && this.screenStep > 9) {
this.mcw.btnStartBattle._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep - 10, -100, 100, 20);
}
if (this.screenStep > 29) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 0, -480, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
} else {
if (Key.isDown(32) || Key.isDown(13) || Key.isDown(17)) {
this.mcw.btnStartBattle.onPress();
}
}
}
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlMap.prototype, null, 1);
}
#endinitclip
}
movieClip 744 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
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;
}
};
this.mcw.btnBack.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnScroll.onPress = function () {
(MovieClip(this)).startDrag(false, (MovieClip(this))._x, 141, (MovieClip(this))._x, 341);
};
this.mcw.btnScroll.onRelease = function () {
(MovieClip(this)).stopDrag();
};
this.mcw.btnScroll.onReleaseOutside = function () {
(MovieClip(this)).stopDrag();
};
};
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mc._visible = true;
this.mcw.mc._y = -480;
this.mcw.mc._visible = true;
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -480, 480, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, 1097, -680, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 0, -480, 20);
this.mcw.btnBack._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 417, 680, 20);
if (this.screenStep > 19) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
}
}
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlHighScores.prototype, null, 1);
}
#endinitclip
}
movieClip 745 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var vThis = this;
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();
}
};
this.mcw.creditbtn.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.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;
}
};
this.mcw.btnOk.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
this.mcw.btnSubmit.onPress = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
if (vThis.mcw.tfName.text != '') {
vThis.main.sndTickPress.start();
var v4 = new LoadVars();
var v5 = new LoadVars();
var v3 = new LoadVars();
v3.onLoad = function () {
getURL('http://www.freeonlinegames.com/scoreboard.php?', '_blank');
};
v5.onHTTPStatus = function (pStatus) {};
v4.score = vThis.main.player.getScore();
v4.chk = vThis.main.player.calculateHighScoreChecksum(vThis.mcw.tfName.text, vThis.main.player.getScore(), vThis.main.player.currentLevel, vThis.main.player.difficulty);
v4.level = vThis.main.player.currentLevel;
v4.difficulty = vThis.main.player.difficulty;
v3.score = v4.score;
v3.score2 = _root.earl223(String(v4.score));
v3.gamer = _root.gameID;
v3.id = random(9999999);
v3.toString();
v3.sendAndLoad('http://www0.freeonlinegames.com/scoreboard/score_c.php', v3, 'POST');
this.mcw.btnSubmit.enabled = false;
this.mcw.btnSubmit._alpha = 50;
}
}
};
this.mcw.btnSubmit.onRollOver = function () {
if (vThis.screenStatus == vThis.SCRST_IDLE) {
vThis.main.sndTickOver.start();
}
};
};
v2.initiate = function () {
this.screenStatus = this.SCRST_APPEARING;
this.screenStep = 0;
this.mcw.mc._visible = true;
this.mcw.mc._y = -480;
this.mcw.tfFinalScore.text = (this.main.player.getScore()).toString();
this.mcw.tfEpilogue.text = (this.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!' : ((this.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!');
};
v2.doEnterFrame = function () {
if (this.screenStatus == this.SCRST_APPEARING) {
++this.screenStep;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeOut(this.screenStep, -480, 480, 40);
if (this.screenStep > 39) {
this.screenStep = 0;
this.screenStatus = this.SCRST_IDLE;
}
} else {
if (this.screenStatus == this.SCRST_DISAPPEARING) {
++this.screenStep;
this.mcw.mc._y = com.gameInABottle.games.cursedWinds.util.Strong2.easeIn(this.screenStep, 0, -480, 40);
if (this.screenStep > 39) {
this.screenStep = 0;
this.main.switchScreenVisibility();
}
}
}
};
v2.processHighScoreResponse = function (pLv) {
this.mcw.mcServerStatus.gotoAndStop(3);
};
v2.SCRST_APPEARING = 'SCRST_APPEARING';
v2.SCRST_DISAPPEARING = 'SCRST_DISAPPEARING';
v2.SCRST_IDLE = 'SCRST_IDLE';
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlEndGame.prototype, null, 1);
}
#endinitclip
}
movieClip 746 __Packages.com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl) {
_global.com.gameInABottle.games.cursedWinds.ctrl = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup) {
var v1 = function (pMcw, pMain) {
this.main = pMain;
this.mcw = pMcw;
var v2 = this;
this.buttonsInit();
this.mcw.mcStartupSponsor._visible = false;
this.mcw.mcStartupGiab._visible = false;
};
com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup = v1;
var v2 = v1.prototype;
v2.buttonsInit = function () {
var v2 = this;
};
v2.initiate = function () {
this.timer = 0;
this.mcw.mc._visible = true;
};
v2.doEnterFrame = function () {
++this.timer;
if (this.timer > 1) {
this.main.isIntroOver = true;
this.main.nextScreen = this.main.SCR_MAINMENU;
this.main.switchScreenVisibility();
}
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.ctrl.CtrlStartup.prototype, null, 1);
}
#endinitclip
}
movieClip 747 __Packages.com.gameInABottle.games.cursedWinds.util.MathToolbox {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameInABottle) {
_global.com.gameInABottle = new Object();
}
if (!_global.com.gameInABottle.games) {
_global.com.gameInABottle.games = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds) {
_global.com.gameInABottle.games.cursedWinds = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util) {
_global.com.gameInABottle.games.cursedWinds.util = new Object();
}
if (!_global.com.gameInABottle.games.cursedWinds.util.MathToolbox) {
var v1 = function () {};
com.gameInABottle.games.cursedWinds.util.MathToolbox = v1;
var v2 = v1.prototype;
v1.convertCoord = function (pFromMin, pFromMax, pFrom, pToMin, pToMax) {
return pToMin + ((pFrom - pFromMin) / (pFromMax - pFromMin)) * (pToMax - pToMin);
};
ASSetPropFlags(com.gameInABottle.games.cursedWinds.util.MathToolbox.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
mcLogo.swapDepths(99998);
}
movieClip 61 {
}
movieClip 102 {
}
movieClip 103 {
instance mcNotice of movieClip 61 {
onClipEvent (load) {
_visible = false;
}
}
frame 120 {
_root.play();
}
}
movieClip 105 {
frame 60 {
stop();
}
}
movieClip 107 {
frame 1 {
stop();
}
}
// unknown tag 88 length 68
frame 3 {
prel.removeMovieClip();
btnFoggy.removeMovieClip();
mcTaglines.removeMovieClip();
mcLogo.removeMovieClip();
}
frame 4 {
var _cm = new ContextMenu();
_cm.hideBuiltInItems();
this.menu = _cm;
}
movieClip 148 {
frame 1 {
stop();
}
}
movieClip 151 {
}
movieClip 152 pirateWheelShell {
frame 60 {
gotoAndPlay(1);
}
}
movieClip 159 {
}
movieClip 162 mcMapShip {
frame 1 {
stop();
}
}
// unknown tag 88 length 74
movieClip 166 {
}
movieClip 167 btnOptions {
}
movieClip 170 {
}
movieClip 176 {
}
movieClip 178 {
}
movieClip 180 {
frame 1 {
stop();
}
}
movieClip 186 mcShipSailFront {
frame 1 {
stop();
}
}
movieClip 191 mcSailRear {
frame 1 {
stop();
}
}
movieClip 217 mcShipSailNormal {
frame 1 {
stop();
}
}
movieClip 231 {
}
movieClip 234 {
}
movieClip 235 mcMast {
frame 1 {
stop();
}
frame 76 {
stop();
}
}
movieClip 236 mcShip5 {
}
movieClip 244 {
}
movieClip 246 {
frame 1 {
stop();
}
}
movieClip 247 mcShip4 {
}
movieClip 255 {
}
movieClip 257 {
frame 1 {
stop();
}
}
movieClip 258 mcShip3 {
}
movieClip 266 {
}
movieClip 268 {
frame 1 {
stop();
}
}
movieClip 269 mcShip1 {
}
movieClip 277 {
}
movieClip 279 {
frame 1 {
stop();
}
}
movieClip 280 mcShip2 {
}
movieClip 283 mcVfxSmokeBlack {
}
movieClip 286 mcVfxSmokeWhite {
}
movieClip 288 mcCannon {
}
movieClip 291 mcBlast {
}
movieClip 294 mcCannonball {
}
movieClip 299 mcDebris {
frame 1 {
stop();
}
}
// unknown tag 88 length 73
movieClip 302 mcVfxScore {
}
movieClip 305 mcWave {
}
movieClip 306 mcShipSailFallen {
}
movieClip 309 mcSplash {
}
movieClip 312 {
frame 1 {
stop();
}
}
movieClip 314 {
frame 1 {
this._visible = false;
}
}
movieClip 316 {
frame 1 {
this._visible = false;
}
}
movieClip 322 shipInfoPanel {
}
movieClip 324 vfxInfoPanelBlast {
}
movieClip 333 {
frame 1 {
stop();
}
}
// unknown tag 88 length 69
movieClip 336 {
}
// unknown tag 88 length 74
// unknown tag 88 length 74
movieClip 351 {
}
movieClip 352 mcTexts {
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 359 {
}
movieClip 360 ingameDoor {
frame 1 {
stop();
}
frame 41 {
stop();
}
frame 81 {
stop();
}
}
movieClip 369 {
}
movieClip 377 {
}
movieClip 379 {
}
movieClip 380 outcomePanelVictory {
instance btnPlayMoreGames of movieClip 377 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
instance btnMoreGames of movieClip 379 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com');
}
}
}
movieClip 385 {
}
movieClip 394 {
frame 1 {
stop();
}
}
movieClip 395 outcomePanelDefeat {
instance btnPlayMoreGames of movieClip 377 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
instance btnMoreGames of movieClip 379 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com');
}
}
}
movieClip 400 mcLevelInfoPanel {
}
movieClip 412 {
}
movieClip 415 {
}
movieClip 417 {
}
movieClip 421 {
frame 1 {
stop();
}
}
movieClip 423 {
}
movieClip 424 mcOptions {
instance btnPlayMoreGames of movieClip 377 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
instance btnMoreGames of movieClip 379 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com');
}
}
}
movieClip 433 cloud {
frame 1 {
stop();
}
}
movieClip 435 {
}
movieClip 437 {
}
movieClip 438 calypso {
}
movieClip 441 mcBombardBlast {
}
movieClip 444 mcBombardShell {
}
movieClip 447 mcFireworkBlast {
}
movieClip 450 mcFireworkRocket {
}
movieClip 451 cursedWind {
}
movieClip 454 {
}
movieClip 455 whirlpool {
}
movieClip 456 {
}
frame 5 {
mcScoreboard1._visible = false;
mcScoreboard2._visible = false;
}
movieClip 461 {
}
movieClip 462 {
}
movieClip 464 {
}
movieClip 466 {
}
movieClip 468 {
}
// unknown tag 88 length 73
movieClip 472 {
}
movieClip 473 {
instance btnPlayMoreGames of movieClip 377 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
instance btnMoreGames of movieClip 379 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com');
}
}
instance of movieClip 54 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
}
movieClip 476 {
}
movieClip 477 {
}
movieClip 480 {
}
movieClip 481 {
}
// unknown tag 88 length 63
movieClip 488 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 489 {
}
movieClip 491 {
}
movieClip 492 {
}
// unknown tag 88 length 63
movieClip 495 {
}
button 499 {
on (press) {
sboard.dir = 'up';
}
on (release) {
sboard.dir = 'stop';
}
}
button 500 {
on (press) {
sboard.dir = 'down';
}
on (release) {
sboard.dir = 'stop';
}
}
movieClip 502 {
}
movieClip 504 {
}
movieClip 509 {
frame 1 {
stop();
}
}
// unknown tag 88 length 85
movieClip 512 {
}
movieClip 514 {
}
// unknown tag 88 length 85
movieClip 525 {
}
movieClip 527 {
}
movieClip 528 {
}
movieClip 529 {
}
movieClip 531 {
}
movieClip 534 {
}
movieClip 537 {
}
movieClip 540 {
}
movieClip 541 {
}
movieClip 567 {
frame 1 {
stop();
}
}
movieClip 569 {
}
movieClip 571 {
}
movieClip 573 {
}
movieClip 574 {
}
movieClip 577 {
}
movieClip 580 {
}
movieClip 581 {
}
movieClip 587 {
}
movieClip 589 {
}
movieClip 592 {
}
movieClip 595 {
}
movieClip 597 {
}
// unknown tag 88 length 139
// unknown tag 88 length 63
movieClip 632 {
frame 1 {
stop();
}
}
movieClip 634 {
}
movieClip 635 {
}
movieClip 642 {
instance btnPlayMoreGames of movieClip 377 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
instance btnMoreGames of movieClip 379 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com');
}
}
}
movieClip 645 {
}
movieClip 646 {
}
movieClip 655 {
frame 1 {
stop();
}
instance of movieClip 54 {
onClipEvent (release) {
FOG.AS2.FogServices.TrackClick();
}
}
}
movieClip 657 {
}
movieClip 659 {
}
movieClip 660 {
}
movieClip 663 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
// unknown tag 88 length 67
movieClip 671 {
}
movieClip 672 {
frame 1 {
stop();
}
frame 80 {
stop();
}
}
movieClip 673 {
}
// unknown tag 88 length 63
movieClip 677 {
frame 1 {
stop();
}
}
movieClip 685 {
}
movieClip 688 {
}
movieClip 692 {
}
movieClip 693 cheatPanelLoadSave {
frame 1 {
this.bigContent._visible = false;
}
instance of movieClip 692 {
onClipEvent (press) {
if (this._parent.bigContent._visible) {
this._parent.bigContent._visible = false;
} else {
this._parent.bigContent._visible = true;
}
}
}
}
movieClip 696 {
}
movieClip 698 {
}
movieClip 699 {
}
movieClip 700 cheatPanelInGame {
frame 1 {
this.bigContent._visible = false;
}
instance of movieClip 692 {
onClipEvent (press) {
if (this._parent.bigContent._visible) {
this._parent.bigContent._visible = false;
} else {
this._parent.bigContent._visible = true;
}
}
}
}
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 += 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 -= 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.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 {
}