diff --git a/src/modules/timetracking/BirdHouse.js b/src/modules/timetracking/BirdHouse.js index e213eda145..dc7348b27f 100644 --- a/src/modules/timetracking/BirdHouse.js +++ b/src/modules/timetracking/BirdHouse.js @@ -76,7 +76,6 @@ export class BirdHouse_$WRAPPER { } } BirdHouse['__class'] = 'timetracking.BirdHouse' -BirdHouse['__interfaces'] = ['java.lang.Comparable', 'java.io.Serializable'] BirdHouse['_$wrappers'] = { 0: new BirdHouse_$WRAPPER(0, 'NORMAL', 'Bird House', ItemID.BIRD_HOUSE), 1: new BirdHouse_$WRAPPER(1, 'OAK', 'Oak Bird House', ItemID.OAK_BIRD_HOUSE), diff --git a/src/modules/timetracking/BirdHouseSpace.js b/src/modules/timetracking/BirdHouseSpace.js index b709e3fa57..38d63c992e 100644 --- a/src/modules/timetracking/BirdHouseSpace.js +++ b/src/modules/timetracking/BirdHouseSpace.js @@ -17,7 +17,7 @@ export class BirdHouseSpace_$WRAPPER { this.__name = null } if (this.varp === undefined) { - this.varp = null + this.varp = 0 } this.__name = name this.varp = varp @@ -39,10 +39,6 @@ export class BirdHouseSpace_$WRAPPER { } } BirdHouseSpace['__class'] = 'timetracking.BirdHouseSpace' -BirdHouseSpace['__interfaces'] = [ - 'java.lang.Comparable', - 'java.io.Serializable' -] BirdHouseSpace['_$wrappers'] = { 0: new BirdHouseSpace_$WRAPPER( 0, diff --git a/src/modules/timetracking/BirdHouseState.js b/src/modules/timetracking/BirdHouseState.js index 83030654ec..6a815308f2 100644 --- a/src/modules/timetracking/BirdHouseState.js +++ b/src/modules/timetracking/BirdHouseState.js @@ -53,10 +53,6 @@ export class BirdHouseState_$WRAPPER { } } BirdHouseState['__class'] = 'timetracking.BirdHouseState' -BirdHouseState['__interfaces'] = [ - 'java.lang.Comparable', - 'java.io.Serializable' -] BirdHouseState['_$wrappers'] = { 0: new BirdHouseState_$WRAPPER(0, 'SEEDED'), 1: new BirdHouseState_$WRAPPER(1, 'BUILT'), diff --git a/src/modules/timetracking/BirdHouseTracker.js b/src/modules/timetracking/BirdHouseTracker.js index 450d66fa9a..729c853269 100644 --- a/src/modules/timetracking/BirdHouseTracker.js +++ b/src/modules/timetracking/BirdHouseTracker.js @@ -1,6 +1,5 @@ // @ts-nocheck /* eslint-disable */ -import { VarPlayer } from './VarPlayer' export class BirdHouseTracker { loadFromConfig(getConfiguration) { const birdHouseData = new Map() @@ -31,9 +30,7 @@ export class BirdHouseTracker { const key = TimeTrackingConfig.BIRD_HOUSE + '.' + - VarPlayer['_$wrappers'][ - BirdHouseSpace['_$wrappers'][space].getVarp() - ].getId() + BirdHouseSpace['_$wrappers'][space].getVarp() const storedValue = (target => typeof target === 'function' ? target(TimeTrackingConfig.CONFIG_GROUP, key) diff --git a/src/modules/timetracking/FarmingPatch.js b/src/modules/timetracking/FarmingPatch.js index f2e975d678..d16cfd75e3 100644 --- a/src/modules/timetracking/FarmingPatch.js +++ b/src/modules/timetracking/FarmingPatch.js @@ -9,7 +9,7 @@ export class FarmingPatch { this.name = null } if (this.varbit === undefined) { - this.varbit = null + this.varbit = 0 } if (this.implementation === undefined) { this.implementation = null diff --git a/src/modules/timetracking/FarmingRegion.js b/src/modules/timetracking/FarmingRegion.js index 27088013ab..f5bf61b63b 100644 --- a/src/modules/timetracking/FarmingRegion.js +++ b/src/modules/timetracking/FarmingRegion.js @@ -1,7 +1,7 @@ // @ts-nocheck /* eslint-disable */ export class FarmingRegion { - constructor(name, regionID, ...patches) { + constructor(name, regionID, definite, ...patches) { if (this.name === undefined) { this.name = null } @@ -19,7 +19,7 @@ export class FarmingRegion { this.patches = patches this.varbits = (s => { let a = [] - while (s-- > 0) a.push(null) + while (s-- > 0) a.push(0) return a })(patches.length) for (let i = 0; i < patches.length; i++) { diff --git a/src/modules/timetracking/FarmingTracker.js b/src/modules/timetracking/FarmingTracker.js index aa3cef9da3..f41b5d6534 100644 --- a/src/modules/timetracking/FarmingTracker.js +++ b/src/modules/timetracking/FarmingTracker.js @@ -1,6 +1,5 @@ // @ts-nocheck /* eslint-disable */ -import { Varbits } from './Varbits' export class FarmingTracker { predictPatch(patch, getConfiguration) { const unixNow = (n => (n < 0 ? Math.ceil(n) : Math.floor(n)))( @@ -24,10 +23,7 @@ export class FarmingTracker { TimeTrackingConfig.CONFIG_GROUP, TimeTrackingConfig.BOTANIST ))(getConfiguration) - const key = - patch.getRegion().getRegionID() + - '.' + - Varbits['_$wrappers'][patch.getVarbit()].getId() + const key = patch.getRegion().getRegionID() + '.' + patch.getVarbit() const storedValue = (target => typeof target === 'function' ? target(TimeTrackingConfig.CONFIG_GROUP, key) diff --git a/src/modules/timetracking/FarmingWorld.js b/src/modules/timetracking/FarmingWorld.js index e3079fb772..bcb5eefa7c 100644 --- a/src/modules/timetracking/FarmingWorld.js +++ b/src/modules/timetracking/FarmingWorld.js @@ -11,6 +11,7 @@ export class FarmingWorld { new FarmingRegion( 'Al Kharid', 13106, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.CACTUS) ), 13362, @@ -20,6 +21,7 @@ export class FarmingWorld { new FarmingRegion( 'Ardougne', 10290, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.BUSH) ), 10546 @@ -28,6 +30,7 @@ export class FarmingWorld { new FarmingRegion( 'Ardougne', 10548, + false, new FarmingPatch( 'North', Varbits.FARMING_4771, @@ -43,10 +46,24 @@ export class FarmingWorld { new FarmingPatch('', Varbits.FARMING_4775, PatchImplementation.COMPOST) ) ) + this.add( + new FarmingRegion( + 'Avium Savannah', + 6702, + true, + new FarmingPatch( + '', + Varbits.FARMING_4771, + PatchImplementation.HARDWOOD_TREE + ) + ), + 6446 + ) this.add( new FarmingRegion( 'Brimhaven', 11058, + false, new FarmingPatch( '', Varbits.FARMING_4771, @@ -64,6 +81,7 @@ export class FarmingWorld { new FarmingRegion( 'Catherby', 11062, + false, new FarmingPatch( 'North', Varbits.FARMING_4771, @@ -86,6 +104,7 @@ export class FarmingWorld { new FarmingRegion( 'Catherby', 11317, + false, new FarmingPatch( '', Varbits.FARMING_4771, @@ -93,10 +112,32 @@ export class FarmingWorld { ) ) ) + this.add( + new FarmingRegion( + 'Civitas illa Fortis', + 6192, + false, + new FarmingPatch( + 'North', + Varbits.FARMING_4771, + PatchImplementation.ALLOTMENT + ), + new FarmingPatch( + 'South', + Varbits.FARMING_4772, + PatchImplementation.ALLOTMENT + ), + new FarmingPatch('', Varbits.FARMING_4773, PatchImplementation.FLOWER), + new FarmingPatch('', Varbits.FARMING_4774, PatchImplementation.HERB), + new FarmingPatch('', Varbits.FARMING_4775, PatchImplementation.COMPOST) + ), + 6448 + ) this.add( new FarmingRegion( "Champions' Guild", 12596, + true, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.BUSH) ) ) @@ -104,6 +145,7 @@ export class FarmingWorld { new FarmingRegion( 'Draynor Manor', 12340, + false, new FarmingPatch( 'Belladonna', Varbits.FARMING_4771, @@ -115,6 +157,7 @@ export class FarmingWorld { new FarmingRegion( 'Entrana', 11060, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.HOPS) ), 11316 @@ -123,6 +166,7 @@ export class FarmingWorld { new FarmingRegion( 'Etceteria', 10300, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.BUSH), new FarmingPatch( '', @@ -135,6 +179,7 @@ export class FarmingWorld { new FarmingRegion( 'Falador', 11828, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.TREE) ), 12084 @@ -143,6 +188,7 @@ export class FarmingWorld { new FarmingRegion( 'Falador', 12083, + false, new FarmingPatch( 'North West', Varbits.FARMING_4771, @@ -162,6 +208,7 @@ export class FarmingWorld { new FarmingRegion( 'Fossil Island', 14651, + false, new FarmingPatch( 'East', Varbits.FARMING_4771, @@ -191,6 +238,7 @@ export class FarmingWorld { new FarmingRegion( 'Seaweed', 15008, + false, new FarmingPatch( 'North', Varbits.FARMING_4771, @@ -207,6 +255,7 @@ export class FarmingWorld { new FarmingRegion( 'Gnome Stronghold', 9781, + true, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.TREE), new FarmingPatch( '', @@ -222,6 +271,7 @@ export class FarmingWorld { new FarmingRegion( 'Harmony', 15148, + false, new FarmingPatch( '', Varbits.FARMING_4771, @@ -234,6 +284,7 @@ export class FarmingWorld { new FarmingRegion( 'Kourend', 6967, + false, new FarmingPatch( 'North East', Varbits.FARMING_4771, @@ -259,6 +310,7 @@ export class FarmingWorld { new FarmingRegion( 'Kourend', 7223, + false, new FarmingPatch( 'East 1', Varbits.GRAPES_4953, @@ -325,6 +377,7 @@ export class FarmingWorld { new FarmingRegion( 'Lletya', 9265, + false, new FarmingPatch( '', Varbits.FARMING_4771, @@ -337,6 +390,7 @@ export class FarmingWorld { new FarmingRegion( 'Lumbridge', 12851, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.HOPS) ) ) @@ -344,6 +398,7 @@ export class FarmingWorld { new FarmingRegion( 'Lumbridge', 12594, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.TREE) ), 12850 @@ -352,6 +407,7 @@ export class FarmingWorld { new FarmingRegion( 'Morytania', 13622, + false, new FarmingPatch( 'Mushroom', Varbits.FARMING_4771, @@ -364,6 +420,7 @@ export class FarmingWorld { new FarmingRegion( 'Morytania', 14391, + false, new FarmingPatch( 'North West', Varbits.FARMING_4771, @@ -384,6 +441,7 @@ export class FarmingWorld { new FarmingRegion( 'Port Sarim', 12082, + false, new FarmingPatch( '', Varbits.FARMING_4771, @@ -396,6 +454,7 @@ export class FarmingWorld { new FarmingRegion( 'Rimmington', 11570, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.BUSH) ), 11826 @@ -404,6 +463,7 @@ export class FarmingWorld { new FarmingRegion( "Seers' Village", 10551, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.HOPS) ), 10550 @@ -412,6 +472,7 @@ export class FarmingWorld { new FarmingRegion( 'Tai Bwo Wannai', 11056, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.CALQUAT) ) ) @@ -419,6 +480,7 @@ export class FarmingWorld { new FarmingRegion( 'Taverley', 11573, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.TREE) ), 11829 @@ -427,6 +489,7 @@ export class FarmingWorld { new FarmingRegion( 'Tree Gnome Village', 9777, + true, new FarmingPatch( '', Varbits.FARMING_4771, @@ -439,6 +502,7 @@ export class FarmingWorld { new FarmingRegion( 'Troll Stronghold', 11321, + true, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.HERB) ) ) @@ -446,6 +510,7 @@ export class FarmingWorld { new FarmingRegion( 'Varrock', 12854, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.TREE) ), 12853 @@ -454,6 +519,7 @@ export class FarmingWorld { new FarmingRegion( 'Yanille', 10288, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.HOPS) ) ) @@ -461,6 +527,7 @@ export class FarmingWorld { new FarmingRegion( 'Weiss', 11325, + false, new FarmingPatch('', Varbits.FARMING_4771, PatchImplementation.HERB) ) ) @@ -468,6 +535,7 @@ export class FarmingWorld { new FarmingRegion( 'Farming Guild', 5021, + true, new FarmingPatch( 'Hespori', Varbits.FARMING_7908, @@ -479,6 +547,7 @@ export class FarmingWorld { (this.farmingGuildRegion = new FarmingRegion( 'Farming Guild', 4922, + true, new FarmingPatch('', Varbits.FARMING_7905, PatchImplementation.TREE), new FarmingPatch('', Varbits.FARMING_4775, PatchImplementation.HERB), new FarmingPatch('', Varbits.FARMING_4772, PatchImplementation.BUSH), @@ -496,7 +565,7 @@ export class FarmingWorld { new FarmingPatch( '', Varbits.FARMING_7912, - PatchImplementation.GIANT_COMPOST + PatchImplementation.BIG_COMPOST ), new FarmingPatch('', Varbits.FARMING_7904, PatchImplementation.CACTUS), new FarmingPatch( @@ -534,6 +603,7 @@ export class FarmingWorld { new FarmingRegion( 'Prifddinas', 13151, + false, new FarmingPatch( 'North', Varbits.FARMING_4771, diff --git a/src/modules/timetracking/PatchImplementation.js b/src/modules/timetracking/PatchImplementation.js index 78702ff202..090ada021c 100644 --- a/src/modules/timetracking/PatchImplementation.js +++ b/src/modules/timetracking/PatchImplementation.js @@ -30,12 +30,11 @@ export var PatchImplementation PatchImplementation[(PatchImplementation['CRYSTAL_TREE'] = 19)] = 'CRYSTAL_TREE' PatchImplementation[(PatchImplementation['COMPOST'] = 20)] = 'COMPOST' - PatchImplementation[(PatchImplementation['GIANT_COMPOST'] = 21)] = - 'GIANT_COMPOST' + PatchImplementation[(PatchImplementation['BIG_COMPOST'] = 21)] = 'BIG_COMPOST' })(PatchImplementation || (PatchImplementation = {})) /** @ignore */ export class PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { this._$ordinal = _$ordinal this._$name = _$name if (this.tab === undefined) { @@ -64,10 +63,6 @@ export class PatchImplementation_$WRAPPER { } } PatchImplementation['__class'] = 'timetracking.PatchImplementation' -PatchImplementation['__interfaces'] = [ - 'java.lang.Comparable', - 'java.io.Serializable' -] ;(function (PatchImplementation) { let Produce ;(function (Produce) { @@ -151,12 +146,11 @@ PatchImplementation['__interfaces'] = [ Produce[(Produce['SUPERCOMPOST'] = 77)] = 'SUPERCOMPOST' Produce[(Produce['ULTRACOMPOST'] = 78)] = 'ULTRACOMPOST' Produce[(Produce['ROTTEN_TOMATO'] = 79)] = 'ROTTEN_TOMATO' - Produce[(Produce['EMPTY_GIANT_COMPOST_BIN'] = 80)] = - 'EMPTY_GIANT_COMPOST_BIN' - Produce[(Produce['GIANT_COMPOST'] = 81)] = 'GIANT_COMPOST' - Produce[(Produce['GIANT_SUPERCOMPOST'] = 82)] = 'GIANT_SUPERCOMPOST' - Produce[(Produce['GIANT_ULTRACOMPOST'] = 83)] = 'GIANT_ULTRACOMPOST' - Produce[(Produce['GIANT_ROTTEN_TOMATO'] = 84)] = 'GIANT_ROTTEN_TOMATO' + Produce[(Produce['EMPTY_BIG_COMPOST_BIN'] = 80)] = 'EMPTY_BIG_COMPOST_BIN' + Produce[(Produce['BIG_COMPOST'] = 81)] = 'BIG_COMPOST' + Produce[(Produce['BIG_SUPERCOMPOST'] = 82)] = 'BIG_SUPERCOMPOST' + Produce[(Produce['BIG_ULTRACOMPOST'] = 83)] = 'BIG_ULTRACOMPOST' + Produce[(Produce['BIG_ROTTEN_TOMATO'] = 84)] = 'BIG_ROTTEN_TOMATO' })( (Produce = PatchImplementation.Produce || (PatchImplementation.Produce = {})) @@ -221,6 +215,84 @@ PatchImplementation['__interfaces'] = [ this.stages = stages this.regrowTickrate = regrowTickrate this.harvestStages = harvestStages + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'number' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + (typeof tickrate === 'number' || tickrate === null) && + (typeof stages === 'number' || stages === null) && + (typeof regrowTickrate === 'number' || regrowTickrate === null) && + harvestStages === undefined + ) { + let __args = arguments + let patchImplementation = __args[1] + let itemID = __args[2] + let tickrate = __args[3] + let stages = __args[4] + let regrowTickrate = __args[5] + let harvestStages = __args[6] + { + let __args = arguments + let contractName = __args[0] + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } } else if ( (typeof name === 'string' || name === null) && (typeof contractName === 'string' || contractName === null) && @@ -294,8 +366,328 @@ PatchImplementation['__interfaces'] = [ if (this.harvestStages === undefined) { this.harvestStages = 0 } + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'number' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + (typeof tickrate === 'number' || tickrate === null) && + (typeof stages === 'number' || stages === null) && + regrowTickrate === undefined && + harvestStages === undefined + ) { + let __args = arguments + let itemID = __args[1] + let tickrate = __args[2] + let stages = __args[3] + let regrowTickrate = __args[4] + let harvestStages = __args[5] + { + let __args = arguments + let contractName = __args[0] + let patchImplementation = null + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'number' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + (typeof tickrate === 'number' || tickrate === null) && + stages === undefined && + regrowTickrate === undefined && + harvestStages === undefined + ) { + let __args = arguments + let patchImplementation = __args[1] + let itemID = __args[2] + let tickrate = __args[3] + let stages = __args[4] + { + let __args = arguments + let contractName = __args[0] + let regrowTickrate = 0 + let harvestStages = 1 + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'number' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + tickrate === undefined && + stages === undefined && + regrowTickrate === undefined && + harvestStages === undefined + ) { + let __args = arguments + let itemID = __args[1] + let tickrate = __args[2] + let stages = __args[3] + { + let __args = arguments + let contractName = __args[0] + let patchImplementation = null + let regrowTickrate = 0 + let harvestStages = 1 + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } } else throw new Error('invalid overload') } + requiresHealthCheck() { + switch (this.patchImplementation) { + case PatchImplementation.BUSH: + case PatchImplementation.TREE: + case PatchImplementation.CACTUS: + case PatchImplementation.REDWOOD: + case PatchImplementation.CELASTRUS: + return true + } + return false + } + static getByItemID(itemId) { + for ( + let i = 0; + i < + /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })().length; + i++ + ) { + { + const produce = /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })()[i] + if ( + PatchImplementation.Produce['_$wrappers'][produce].getItemID() === + itemId + ) { + return produce + } + } + } + return null + } + static getByContractName(contractName) { + for ( + let i = 0; + i < + /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })().length; + i++ + ) { + { + const produce = /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })()[i] + if ( + /* equalsIgnoreCase */ ((o1, o2) => + o1.toUpperCase() === (o2 === null ? o2 : o2.toUpperCase()))( + PatchImplementation.Produce['_$wrappers'][ + produce + ].getContractName(), + contractName + ) + ) { + return produce + } + } + } + return null + } getName() { return this.__name } @@ -332,24 +724,12 @@ PatchImplementation['__interfaces'] = [ } PatchImplementation.Produce_$WRAPPER = Produce_$WRAPPER Produce['__class'] = 'timetracking.PatchImplementation.Produce' - Produce['__interfaces'] = ['java.lang.Comparable', 'java.io.Serializable'] Produce['_$wrappers'] = { - 0: new Produce_$WRAPPER( - 0, - 'WEEDS', - 'Weeds', - 'Weeds', - null, - ItemID.WEEDS, - 5, - 4 - ), + 0: new Produce_$WRAPPER(0, 'WEEDS', 'Weeds', ItemID.WEEDS, 5, 4), 1: new Produce_$WRAPPER( 1, 'SCARECROW', 'Scarecrow', - 'Scarecrow', - null, ItemID.SCARECROW, 5, 4 @@ -406,11 +786,10 @@ PatchImplementation['__interfaces'] = [ 6, 'SWEETCORN', 'Sweetcorn', - 'Sweetcorn', PatchImplementation.ALLOTMENT, ItemID.SWEETCORN, 10, - 6, + 7, 0, 3 ), @@ -434,7 +813,7 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.ALLOTMENT, ItemID.WATERMELON, 10, - 8, + 9, 0, 3 ), @@ -442,7 +821,6 @@ PatchImplementation['__interfaces'] = [ 9, 'SNAPE_GRASS', 'Snape grass', - 'Snape grass', PatchImplementation.ALLOTMENT, ItemID.SNAPE_GRASS, 10, @@ -464,7 +842,6 @@ PatchImplementation['__interfaces'] = [ 11, 'ROSEMARY', 'Rosemary', - 'Rosemary', PatchImplementation.FLOWER, ItemID.ROSEMARY, 5, @@ -484,7 +861,6 @@ PatchImplementation['__interfaces'] = [ 13, 'WOAD', 'Woad', - 'Woad', PatchImplementation.FLOWER, ItemID.WOAD_LEAF, 5, @@ -586,7 +962,6 @@ PatchImplementation['__interfaces'] = [ 22, 'BARLEY', 'Barley', - 'Barley', PatchImplementation.HOPS, ItemID.BARLEY, 10, @@ -598,7 +973,6 @@ PatchImplementation['__interfaces'] = [ 23, 'HAMMERSTONE', 'Hammerstone', - 'Hammerstone', PatchImplementation.HOPS, ItemID.HAMMERSTONE_HOPS, 10, @@ -610,7 +984,6 @@ PatchImplementation['__interfaces'] = [ 24, 'ASGARNIAN', 'Asgarnian', - 'Asgarnian', PatchImplementation.HOPS, ItemID.ASGARNIAN_HOPS, 10, @@ -622,7 +995,6 @@ PatchImplementation['__interfaces'] = [ 25, 'JUTE', 'Jute', - 'Jute', PatchImplementation.HOPS, ItemID.JUTE_FIBRE, 10, @@ -634,7 +1006,6 @@ PatchImplementation['__interfaces'] = [ 26, 'YANILLIAN', 'Yanillian', - 'Yanillian', PatchImplementation.HOPS, ItemID.YANILLIAN_HOPS, 10, @@ -646,7 +1017,6 @@ PatchImplementation['__interfaces'] = [ 27, 'KRANDORIAN', 'Krandorian', - 'Krandorian', PatchImplementation.HOPS, ItemID.KRANDORIAN_HOPS, 10, @@ -658,7 +1028,6 @@ PatchImplementation['__interfaces'] = [ 28, 'WILDBLOOD', 'Wildblood', - 'Wildblood', PatchImplementation.HOPS, ItemID.WILDBLOOD_HOPS, 10, @@ -670,7 +1039,6 @@ PatchImplementation['__interfaces'] = [ 29, 'GUAM', 'Guam', - 'Guam', PatchImplementation.HERB, ItemID.GUAM_LEAF, 20, @@ -682,7 +1050,6 @@ PatchImplementation['__interfaces'] = [ 30, 'MARRENTILL', 'Marrentill', - 'Marrentill', PatchImplementation.HERB, ItemID.MARRENTILL, 20, @@ -694,7 +1061,6 @@ PatchImplementation['__interfaces'] = [ 31, 'TARROMIN', 'Tarromin', - 'Tarromin', PatchImplementation.HERB, ItemID.TARROMIN, 20, @@ -706,7 +1072,6 @@ PatchImplementation['__interfaces'] = [ 32, 'HARRALANDER', 'Harralander', - 'Harralander', PatchImplementation.HERB, ItemID.HARRALANDER, 20, @@ -718,7 +1083,6 @@ PatchImplementation['__interfaces'] = [ 33, 'RANARR', 'Ranarr', - 'Harralander', PatchImplementation.HERB, ItemID.RANARR_WEED, 20, @@ -730,7 +1094,6 @@ PatchImplementation['__interfaces'] = [ 34, 'TOADFLAX', 'Toadflax', - 'Toadflax', PatchImplementation.HERB, ItemID.TOADFLAX, 20, @@ -742,7 +1105,6 @@ PatchImplementation['__interfaces'] = [ 35, 'IRIT', 'Irit', - 'Irit', PatchImplementation.HERB, ItemID.IRIT_LEAF, 20, @@ -754,7 +1116,6 @@ PatchImplementation['__interfaces'] = [ 36, 'AVANTOE', 'Avantoe', - 'Avantoe', PatchImplementation.HERB, ItemID.AVANTOE, 20, @@ -766,7 +1127,6 @@ PatchImplementation['__interfaces'] = [ 37, 'KWUARM', 'Kwuarm', - 'Kwuarm', PatchImplementation.HERB, ItemID.KWUARM, 20, @@ -778,7 +1138,6 @@ PatchImplementation['__interfaces'] = [ 38, 'SNAPDRAGON', 'Snapdragon', - 'Snapdragon', PatchImplementation.HERB, ItemID.SNAPDRAGON, 20, @@ -790,7 +1149,6 @@ PatchImplementation['__interfaces'] = [ 39, 'CADANTINE', 'Cadantine', - 'Cadantine', PatchImplementation.HERB, ItemID.CADANTINE, 20, @@ -802,7 +1160,6 @@ PatchImplementation['__interfaces'] = [ 40, 'LANTADYME', 'Lantadyme', - 'Lantadyme', PatchImplementation.HERB, ItemID.LANTADYME, 20, @@ -814,7 +1171,6 @@ PatchImplementation['__interfaces'] = [ 41, 'DWARF_WEED', 'Dwarf weed', - 'Dwarf weed', PatchImplementation.HERB, ItemID.DWARF_WEED, 20, @@ -826,7 +1182,6 @@ PatchImplementation['__interfaces'] = [ 42, 'TORSTOL', 'Torstol', - 'Torstol', PatchImplementation.HERB, ItemID.TORSTOL, 20, @@ -838,7 +1193,6 @@ PatchImplementation['__interfaces'] = [ 43, 'GOUTWEED', 'Goutweed', - 'Goutweed', PatchImplementation.HERB, ItemID.GOUTWEED, 20, @@ -850,7 +1204,6 @@ PatchImplementation['__interfaces'] = [ 44, 'ANYHERB', 'Any herb', - 'Any herb', PatchImplementation.HERB, ItemID.GUAM_LEAF, 20, @@ -1008,7 +1361,6 @@ PatchImplementation['__interfaces'] = [ 58, 'CACTUS', 'Cactus', - 'Cactus', PatchImplementation.CACTUS, ItemID.CACTUS_SPINE, 80, @@ -1032,17 +1384,15 @@ PatchImplementation['__interfaces'] = [ 60, 'TEAK', 'Teak', - 'Teak', PatchImplementation.HARDWOOD_TREE, ItemID.TEAK_LOGS, - 560, + 640, 8 ), 61: new Produce_$WRAPPER( 61, 'MAHOGANY', 'Mahogany', - 'Mahogany', PatchImplementation.HARDWOOD_TREE, ItemID.MAHOGANY_LOGS, 640, @@ -1052,7 +1402,6 @@ PatchImplementation['__interfaces'] = [ 62, 'ATTAS', 'Attas', - 'Attas', PatchImplementation.ANIMA, NullItemID.NULL_22940, 640, @@ -1062,7 +1411,6 @@ PatchImplementation['__interfaces'] = [ 63, 'IASOR', 'Iasor', - 'Iasor', PatchImplementation.ANIMA, NullItemID.NULL_22939, 640, @@ -1072,7 +1420,6 @@ PatchImplementation['__interfaces'] = [ 64, 'KRONOS', 'Kronos', - 'Kronos', PatchImplementation.ANIMA, NullItemID.NULL_22938, 640, @@ -1082,7 +1429,6 @@ PatchImplementation['__interfaces'] = [ 65, 'SEAWEED', 'Seaweed', - 'Seaweed', PatchImplementation.SEAWEED, ItemID.GIANT_SEAWEED, 10, @@ -1094,7 +1440,6 @@ PatchImplementation['__interfaces'] = [ 66, 'GRAPE', 'Grape', - 'Grape', PatchImplementation.GRAPES, ItemID.GRAPES, 5, @@ -1106,7 +1451,6 @@ PatchImplementation['__interfaces'] = [ 67, 'MUSHROOM', 'Mushroom', - 'Mushroom', PatchImplementation.MUSHROOM, ItemID.MUSHROOM, 40, @@ -1118,7 +1462,6 @@ PatchImplementation['__interfaces'] = [ 68, 'BELLADONNA', 'Belladonna', - 'Belladonna', PatchImplementation.BELLADONNA, ItemID.CAVE_NIGHTSHADE, 80, @@ -1128,7 +1471,6 @@ PatchImplementation['__interfaces'] = [ 69, 'CALQUAT', 'Calquat', - 'Calquat', PatchImplementation.CALQUAT, ItemID.CALQUAT_FRUIT, 160, @@ -1140,7 +1482,6 @@ PatchImplementation['__interfaces'] = [ 70, 'SPIRIT_TREE', 'Spirit tree', - 'Spirit tree', PatchImplementation.SPIRIT_TREE, ItemID.SPIRIT_TREE, 320, @@ -1172,7 +1513,6 @@ PatchImplementation['__interfaces'] = [ 73, 'HESPORI', 'Hespori', - 'Hespori', PatchImplementation.HESPORI, NullItemID.NULL_23044, 640, @@ -1184,7 +1524,6 @@ PatchImplementation['__interfaces'] = [ 74, 'CRYSTAL_TREE', 'Crystal tree', - 'Crystal tree', PatchImplementation.CRYSTAL_TREE, ItemID.CRYSTAL_SHARDS, 80, @@ -1194,7 +1533,6 @@ PatchImplementation['__interfaces'] = [ 75, 'EMPTY_COMPOST_BIN', 'Compost Bin', - 'Compost Bin', PatchImplementation.COMPOST, ItemID.COMPOST_BIN, 0, @@ -1206,7 +1544,6 @@ PatchImplementation['__interfaces'] = [ 76, 'COMPOST', 'Compost', - 'Compost', PatchImplementation.COMPOST, ItemID.COMPOST, 40, @@ -1218,7 +1555,6 @@ PatchImplementation['__interfaces'] = [ 77, 'SUPERCOMPOST', 'Supercompost', - 'Supercompost', PatchImplementation.COMPOST, ItemID.SUPERCOMPOST, 40, @@ -1230,7 +1566,6 @@ PatchImplementation['__interfaces'] = [ 78, 'ULTRACOMPOST', 'Ultracompost', - 'Ultracompost', PatchImplementation.COMPOST, ItemID.ULTRACOMPOST, 0, @@ -1242,7 +1577,6 @@ PatchImplementation['__interfaces'] = [ 79, 'ROTTEN_TOMATO', 'Rotten Tomato', - 'Rotten Tomato', PatchImplementation.COMPOST, ItemID.ROTTEN_TOMATO, 40, @@ -1252,9 +1586,8 @@ PatchImplementation['__interfaces'] = [ ), 80: new Produce_$WRAPPER( 80, - 'EMPTY_GIANT_COMPOST_BIN', - 'Giant Compost Bin', - 'Giant Compost Bin', + 'EMPTY_BIG_COMPOST_BIN', + 'Big Compost Bin', PatchImplementation.COMPOST, ItemID.COMPOST_BIN, 0, @@ -1264,10 +1597,9 @@ PatchImplementation['__interfaces'] = [ ), 81: new Produce_$WRAPPER( 81, - 'GIANT_COMPOST', + 'BIG_COMPOST', 'Compost', - 'Compost', - PatchImplementation.GIANT_COMPOST, + PatchImplementation.BIG_COMPOST, ItemID.COMPOST, 40, 3, @@ -1276,10 +1608,9 @@ PatchImplementation['__interfaces'] = [ ), 82: new Produce_$WRAPPER( 82, - 'GIANT_SUPERCOMPOST', - 'Supercompost', + 'BIG_SUPERCOMPOST', 'Supercompost', - PatchImplementation.GIANT_COMPOST, + PatchImplementation.BIG_COMPOST, ItemID.SUPERCOMPOST, 40, 3, @@ -1288,10 +1619,9 @@ PatchImplementation['__interfaces'] = [ ), 83: new Produce_$WRAPPER( 83, - 'GIANT_ULTRACOMPOST', - 'Ultracompost', + 'BIG_ULTRACOMPOST', 'Ultracompost', - PatchImplementation.GIANT_COMPOST, + PatchImplementation.BIG_COMPOST, ItemID.ULTRACOMPOST, 0, 3, @@ -1300,10 +1630,9 @@ PatchImplementation['__interfaces'] = [ ), 84: new Produce_$WRAPPER( 84, - 'GIANT_ROTTEN_TOMATO', + 'BIG_ROTTEN_TOMATO', 'Rotten Tomato', - 'Rotten Tomato', - PatchImplementation.GIANT_COMPOST, + PatchImplementation.BIG_COMPOST, ItemID.ROTTEN_TOMATO, 40, 3, @@ -1337,10 +1666,169 @@ PatchImplementation['__interfaces'] = [ (typeof itemID === 'number' || itemID === null) && (typeof tickrate === 'number' || tickrate === null) && (typeof stages === 'number' || stages === null) && - (typeof regrowTickrate === 'number' || regrowTickrate === null) && - (typeof harvestStages === 'number' || harvestStages === null) + (typeof regrowTickrate === 'number' || regrowTickrate === null) && + (typeof harvestStages === 'number' || harvestStages === null) + ) { + let __args = arguments + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'number' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + (typeof tickrate === 'number' || tickrate === null) && + (typeof stages === 'number' || stages === null) && + (typeof regrowTickrate === 'number' || regrowTickrate === null) && + harvestStages === undefined + ) { + let __args = arguments + let patchImplementation = __args[1] + let itemID = __args[2] + let tickrate = __args[3] + let stages = __args[4] + let regrowTickrate = __args[5] + let harvestStages = __args[6] + { + let __args = arguments + let contractName = __args[0] + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'string' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + (typeof tickrate === 'number' || tickrate === null) && + (typeof stages === 'number' || stages === null) && + regrowTickrate === undefined && + harvestStages === undefined ) { let __args = arguments + { + let __args = arguments + let regrowTickrate = 0 + let harvestStages = 1 + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } if (this.__name === undefined) { this.__name = null } @@ -1365,17 +1853,9 @@ PatchImplementation['__interfaces'] = [ if (this.harvestStages === undefined) { this.harvestStages = 0 } - this.__name = name - this.contractName = contractName - this.patchImplementation = patchImplementation - this.itemID = itemID - this.tickrate = tickrate - this.stages = stages - this.regrowTickrate = regrowTickrate - this.harvestStages = harvestStages } else if ( (typeof name === 'string' || name === null) && - (typeof contractName === 'string' || contractName === null) && + (typeof contractName === 'number' || contractName === null) && (typeof patchImplementation === 'number' || patchImplementation === null) && (typeof itemID === 'number' || itemID === null) && @@ -1385,8 +1865,169 @@ PatchImplementation['__interfaces'] = [ harvestStages === undefined ) { let __args = arguments + let itemID = __args[1] + let tickrate = __args[2] + let stages = __args[3] + let regrowTickrate = __args[4] + let harvestStages = __args[5] + { + let __args = arguments + let contractName = __args[0] + let patchImplementation = null + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'number' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + (typeof tickrate === 'number' || tickrate === null) && + stages === undefined && + regrowTickrate === undefined && + harvestStages === undefined + ) { + let __args = arguments + let patchImplementation = __args[1] + let itemID = __args[2] + let tickrate = __args[3] + let stages = __args[4] + { + let __args = arguments + let contractName = __args[0] + let regrowTickrate = 0 + let harvestStages = 1 + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + this.__name = name + this.contractName = contractName + this.patchImplementation = patchImplementation + this.itemID = itemID + this.tickrate = tickrate + this.stages = stages + this.regrowTickrate = regrowTickrate + this.harvestStages = harvestStages + } + if (this.__name === undefined) { + this.__name = null + } + if (this.contractName === undefined) { + this.contractName = null + } + if (this.patchImplementation === undefined) { + this.patchImplementation = null + } + if (this.itemID === undefined) { + this.itemID = 0 + } + if (this.tickrate === undefined) { + this.tickrate = 0 + } + if (this.stages === undefined) { + this.stages = 0 + } + if (this.regrowTickrate === undefined) { + this.regrowTickrate = 0 + } + if (this.harvestStages === undefined) { + this.harvestStages = 0 + } + } else if ( + (typeof name === 'string' || name === null) && + (typeof contractName === 'number' || contractName === null) && + (typeof patchImplementation === 'number' || + patchImplementation === null) && + (typeof itemID === 'number' || itemID === null) && + tickrate === undefined && + stages === undefined && + regrowTickrate === undefined && + harvestStages === undefined + ) { + let __args = arguments + let itemID = __args[1] + let tickrate = __args[2] + let stages = __args[3] { let __args = arguments + let contractName = __args[0] + let patchImplementation = null let regrowTickrate = 0 let harvestStages = 1 if (this.__name === undefined) { @@ -1448,6 +2089,92 @@ PatchImplementation['__interfaces'] = [ } } else throw new Error('invalid overload') } + requiresHealthCheck() { + switch (this.patchImplementation) { + case PatchImplementation.BUSH: + case PatchImplementation.TREE: + case PatchImplementation.CACTUS: + case PatchImplementation.REDWOOD: + case PatchImplementation.CELASTRUS: + return true + } + return false + } + static getByItemID(itemId) { + for ( + let i = 0; + i < + /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })().length; + i++ + ) { + { + const produce = /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })()[i] + if ( + PatchImplementation.Produce['_$wrappers'][produce].getItemID() === + itemId + ) { + return produce + } + } + } + return null + } + static getByContractName(contractName) { + for ( + let i = 0; + i < + /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })().length; + i++ + ) { + { + const produce = /* Enum.values */ (function () { + let result = [] + for (let val in PatchImplementation.Produce) { + if (!isNaN(val)) { + result.push(parseInt(val, 10)) + } + } + return result + })()[i] + if ( + /* equalsIgnoreCase */ ((o1, o2) => + o1.toUpperCase() === (o2 === null ? o2 : o2.toUpperCase()))( + PatchImplementation.Produce['_$wrappers'][ + produce + ].getContractName(), + contractName + ) + ) { + return produce + } + } + } + return null + } getName() { return this.__name } @@ -1485,14 +2212,10 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.Produce_$WRAPPER = Produce_$WRAPPER PatchImplementation.Produce['__class'] = 'timetracking.PatchImplementation.Produce' - PatchImplementation.Produce['__interfaces'] = [ - 'java.lang.Comparable', - 'java.io.Serializable' - ] /** @ignore */ class PatchImplementation$0_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -1548,8 +2271,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$0_$WRAPPER = PatchImplementation$0_$WRAPPER /** @ignore */ class PatchImplementation$1_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -1605,8 +2328,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$1_$WRAPPER = PatchImplementation$1_$WRAPPER /** @ignore */ class PatchImplementation$2_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -1648,8 +2371,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$2_$WRAPPER = PatchImplementation$2_$WRAPPER /** @ignore */ class PatchImplementation$3_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -2118,8 +2841,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$3_$WRAPPER = PatchImplementation$3_$WRAPPER /** @ignore */ class PatchImplementation$4_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -2497,8 +3220,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$4_$WRAPPER = PatchImplementation$4_$WRAPPER /** @ignore */ class PatchImplementation$5_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -2883,8 +3606,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$5_$WRAPPER = PatchImplementation$5_$WRAPPER /** @ignore */ class PatchImplementation$6_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -3225,8 +3948,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$6_$WRAPPER = PatchImplementation$6_$WRAPPER /** @ignore */ class PatchImplementation$7_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -3641,8 +4364,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$7_$WRAPPER = PatchImplementation$7_$WRAPPER /** @ignore */ class PatchImplementation$8_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4069,8 +4792,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$8_$WRAPPER = PatchImplementation$8_$WRAPPER /** @ignore */ class PatchImplementation$9_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4479,8 +5202,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$9_$WRAPPER = PatchImplementation$9_$WRAPPER /** @ignore */ class PatchImplementation$10_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4603,8 +5326,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$10_$WRAPPER = PatchImplementation$10_$WRAPPER /** @ignore */ class PatchImplementation$11_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4676,8 +5399,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$11_$WRAPPER = PatchImplementation$11_$WRAPPER /** @ignore */ class PatchImplementation$12_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4749,8 +5472,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$12_$WRAPPER = PatchImplementation$12_$WRAPPER /** @ignore */ class PatchImplementation$13_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4806,8 +5529,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$13_$WRAPPER = PatchImplementation$13_$WRAPPER /** @ignore */ class PatchImplementation$14_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4916,8 +5639,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$14_$WRAPPER = PatchImplementation$14_$WRAPPER /** @ignore */ class PatchImplementation$15_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -4973,8 +5696,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$15_$WRAPPER = PatchImplementation$15_$WRAPPER /** @ignore */ class PatchImplementation$16_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -5039,8 +5762,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$16_$WRAPPER = PatchImplementation$16_$WRAPPER /** @ignore */ class PatchImplementation$17_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -5126,8 +5849,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$17_$WRAPPER = PatchImplementation$17_$WRAPPER /** @ignore */ class PatchImplementation$18_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -5169,8 +5892,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$18_$WRAPPER = PatchImplementation$18_$WRAPPER /** @ignore */ class PatchImplementation$19_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -5214,8 +5937,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$19_$WRAPPER = PatchImplementation$19_$WRAPPER /** @ignore */ class PatchImplementation$20_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -5324,8 +6047,8 @@ PatchImplementation['__interfaces'] = [ PatchImplementation.PatchImplementation$20_$WRAPPER = PatchImplementation$20_$WRAPPER /** @ignore */ class PatchImplementation$21_$WRAPPER extends PatchImplementation_$WRAPPER { - constructor(_$ordinal, _$name, tab, name) { - super(_$ordinal, _$name, tab, name) + constructor(_$ordinal, _$name, tab, name, healthCheckRequired) { + super(_$ordinal, _$name, tab, name, healthCheckRequired) } /** * @@ -5335,137 +6058,137 @@ PatchImplementation['__interfaces'] = [ forVarbitValue(value) { if (value === 0) { return new PatchState( - PatchImplementation.Produce.EMPTY_GIANT_COMPOST_BIN, + PatchImplementation.Produce.EMPTY_BIG_COMPOST_BIN, CropState.EMPTY, 0 ) } if (value >= 1 && value <= 15) { return new PatchState( - PatchImplementation.Produce.GIANT_COMPOST, + PatchImplementation.Produce.BIG_COMPOST, CropState.FILLING, value - 1 ) } if (value >= 16 && value <= 30) { return new PatchState( - PatchImplementation.Produce.GIANT_COMPOST, + PatchImplementation.Produce.BIG_COMPOST, CropState.HARVESTABLE, value - 16 ) } if (value >= 33 && value <= 47) { return new PatchState( - PatchImplementation.Produce.GIANT_SUPERCOMPOST, + PatchImplementation.Produce.BIG_SUPERCOMPOST, CropState.FILLING, value - 33 ) } if (value >= 48 && value <= 62) { return new PatchState( - PatchImplementation.Produce.GIANT_SUPERCOMPOST, + PatchImplementation.Produce.BIG_SUPERCOMPOST, CropState.HARVESTABLE, value - 48 ) } if (value >= 63 && value <= 77) { return new PatchState( - PatchImplementation.Produce.GIANT_COMPOST, + PatchImplementation.Produce.BIG_COMPOST, CropState.FILLING, 15 + value - 63 ) } if (value >= 78 && value <= 92) { return new PatchState( - PatchImplementation.Produce.GIANT_COMPOST, + PatchImplementation.Produce.BIG_COMPOST, CropState.HARVESTABLE, 15 + value - 78 ) } if (value === 93) { return new PatchState( - PatchImplementation.Produce.GIANT_COMPOST, + PatchImplementation.Produce.BIG_COMPOST, CropState.GROWING, PatchImplementation.Produce['_$wrappers'][ - PatchImplementation.Produce.GIANT_COMPOST + PatchImplementation.Produce.BIG_COMPOST ].getStages() - 1 ) } if (value >= 97 && value <= 99) { return new PatchState( - PatchImplementation.Produce.GIANT_SUPERCOMPOST, + PatchImplementation.Produce.BIG_SUPERCOMPOST, CropState.GROWING, value - 97 ) } if (value >= 100 && value <= 114) { return new PatchState( - PatchImplementation.Produce.GIANT_SUPERCOMPOST, + PatchImplementation.Produce.BIG_SUPERCOMPOST, CropState.HARVESTABLE, 15 + value - 100 ) } if (value >= 127 && value <= 128) { return new PatchState( - PatchImplementation.Produce.GIANT_COMPOST, + PatchImplementation.Produce.BIG_COMPOST, CropState.GROWING, value - 127 ) } if (value >= 129 && value <= 143) { return new PatchState( - PatchImplementation.Produce.GIANT_ROTTEN_TOMATO, + PatchImplementation.Produce.BIG_ROTTEN_TOMATO, CropState.FILLING, value - 129 ) } if (value >= 144 && value <= 158) { return new PatchState( - PatchImplementation.Produce.GIANT_ROTTEN_TOMATO, + PatchImplementation.Produce.BIG_ROTTEN_TOMATO, CropState.HARVESTABLE, value - 144 ) } if (value >= 159 && value <= 160) { return new PatchState( - PatchImplementation.Produce.GIANT_ROTTEN_TOMATO, + PatchImplementation.Produce.BIG_ROTTEN_TOMATO, CropState.GROWING, value - 159 ) } if (value >= 161 && value <= 175) { return new PatchState( - PatchImplementation.Produce.GIANT_SUPERCOMPOST, + PatchImplementation.Produce.BIG_SUPERCOMPOST, CropState.FILLING, 15 + value - 161 ) } if (value >= 176 && value <= 205) { return new PatchState( - PatchImplementation.Produce.GIANT_ULTRACOMPOST, + PatchImplementation.Produce.BIG_ULTRACOMPOST, CropState.HARVESTABLE, value - 176 ) } if (value >= 207 && value <= 221) { return new PatchState( - PatchImplementation.Produce.GIANT_ROTTEN_TOMATO, + PatchImplementation.Produce.BIG_ROTTEN_TOMATO, CropState.HARVESTABLE, 15 + value - 207 ) } if (value === 222) { return new PatchState( - PatchImplementation.Produce.GIANT_ROTTEN_TOMATO, + PatchImplementation.Produce.BIG_ROTTEN_TOMATO, CropState.GROWING, PatchImplementation.Produce['_$wrappers'][ - PatchImplementation.Produce.GIANT_ROTTEN_TOMATO + PatchImplementation.Produce.BIG_ROTTEN_TOMATO ].getStages() - 1 ) } if (value >= 223 && value <= 237) { return new PatchState( - PatchImplementation.Produce.GIANT_ROTTEN_TOMATO, + PatchImplementation.Produce.BIG_ROTTEN_TOMATO, CropState.FILLING, 15 + value - 223 ) @@ -5480,132 +6203,154 @@ PatchImplementation['_$wrappers'] = { 0, 'BELLADONNA', Tab.SPECIAL, - '' + '', + false ), 1: new PatchImplementation.PatchImplementation$1_$WRAPPER( 1, 'MUSHROOM', Tab.SPECIAL, - '' + '', + false ), 2: new PatchImplementation.PatchImplementation$2_$WRAPPER( 2, 'HESPORI', Tab.SPECIAL, - '' + '', + true ), 3: new PatchImplementation.PatchImplementation$3_$WRAPPER( 3, 'ALLOTMENT', Tab.ALLOTMENT, - '' + '', + false ), 4: new PatchImplementation.PatchImplementation$4_$WRAPPER( 4, 'HERB', Tab.HERB, - '' + '', + false ), 5: new PatchImplementation.PatchImplementation$5_$WRAPPER( 5, 'FLOWER', Tab.FLOWER, - '' + '', + false ), 6: new PatchImplementation.PatchImplementation$6_$WRAPPER( 6, 'BUSH', Tab.BUSH, - '' + '', + true ), 7: new PatchImplementation.PatchImplementation$7_$WRAPPER( 7, 'FRUIT_TREE', Tab.FRUIT_TREE, - '' + '', + true ), 8: new PatchImplementation.PatchImplementation$8_$WRAPPER( 8, 'HOPS', Tab.HOPS, - '' + '', + false ), 9: new PatchImplementation.PatchImplementation$9_$WRAPPER( 9, 'TREE', Tab.TREE, - '' + '', + true ), 10: new PatchImplementation.PatchImplementation$10_$WRAPPER( 10, 'HARDWOOD_TREE', Tab.TREE, - 'Hardwood Trees' + 'Hardwood Trees', + true ), 11: new PatchImplementation.PatchImplementation$11_$WRAPPER( 11, 'REDWOOD', Tab.TREE, - 'Redwood Trees' + 'Redwood Trees', + true ), 12: new PatchImplementation.PatchImplementation$12_$WRAPPER( 12, 'SPIRIT_TREE', Tab.TREE, - 'Spirit Trees' + 'Spirit Trees', + true ), 13: new PatchImplementation.PatchImplementation$13_$WRAPPER( 13, 'ANIMA', Tab.SPECIAL, - '' + '', + false ), 14: new PatchImplementation.PatchImplementation$14_$WRAPPER( 14, 'CACTUS', Tab.SPECIAL, - 'Cactus' + 'Cactus', + true ), 15: new PatchImplementation.PatchImplementation$15_$WRAPPER( 15, 'SEAWEED', Tab.SPECIAL, - 'Seaweed' + 'Seaweed', + false ), 16: new PatchImplementation.PatchImplementation$16_$WRAPPER( 16, 'CALQUAT', Tab.FRUIT_TREE, - 'Calquat' + 'Calquat', + true ), 17: new PatchImplementation.PatchImplementation$17_$WRAPPER( 17, 'CELASTRUS', Tab.FRUIT_TREE, - 'Celastrus' + 'Celastrus', + true ), 18: new PatchImplementation.PatchImplementation$18_$WRAPPER( 18, 'GRAPES', Tab.GRAPE, - '' + '', + true ), 19: new PatchImplementation.PatchImplementation$19_$WRAPPER( 19, 'CRYSTAL_TREE', Tab.FRUIT_TREE, - 'Crystal Tree' + 'Crystal Tree', + true ), 20: new PatchImplementation.PatchImplementation$20_$WRAPPER( 20, 'COMPOST', Tab.SPECIAL, - 'Compost Bin' + 'Compost Bin', + true ), 21: new PatchImplementation.PatchImplementation$21_$WRAPPER( 21, - 'GIANT_COMPOST', + 'BIG_COMPOST', Tab.SPECIAL, - 'Giant Compost Bin' + 'Big Compost Bin', + true ) } diff --git a/src/modules/timetracking/Tab.js b/src/modules/timetracking/Tab.js index 63759a765a..fb8a28b7b4 100644 --- a/src/modules/timetracking/Tab.js +++ b/src/modules/timetracking/Tab.js @@ -63,7 +63,6 @@ export class Tab_$WRAPPER { } } Tab['__class'] = 'timetracking.Tab' -Tab['__interfaces'] = ['java.lang.Comparable', 'java.io.Serializable'] Tab['_$wrappers'] = { 0: new Tab_$WRAPPER(0, 'OVERVIEW', 'Overview', ItemID.OLD_NOTES), 1: new Tab_$WRAPPER(1, 'CLOCK', 'Timers & Stopwatches', ItemID.WATCH), diff --git a/src/modules/timetracking/VarPlayer.js b/src/modules/timetracking/VarPlayer.js index 7dac40bd98..54895dadaf 100644 --- a/src/modules/timetracking/VarPlayer.js +++ b/src/modules/timetracking/VarPlayer.js @@ -7,56 +7,14 @@ * from the server to the client. The client can change them preemptively * if it thinks they will change the next tick as a lag-hiding measure. * The client CANNOT directly make the server change a varbit. - * @enum - * @property {VarPlayer} BIRD_HOUSE_MEADOW_NORTH - * Bird house states - * @property {VarPlayer} BIRD_HOUSE_MEADOW_SOUTH - * @property {VarPlayer} BIRD_HOUSE_VALLEY_NORTH - * @property {VarPlayer} BIRD_HOUSE_VALLEY_SOUTH * @class */ -export var VarPlayer -;(function (VarPlayer) { - /** - * Bird house states - */ - VarPlayer[(VarPlayer['BIRD_HOUSE_MEADOW_NORTH'] = 0)] = - 'BIRD_HOUSE_MEADOW_NORTH' - VarPlayer[(VarPlayer['BIRD_HOUSE_MEADOW_SOUTH'] = 1)] = - 'BIRD_HOUSE_MEADOW_SOUTH' - VarPlayer[(VarPlayer['BIRD_HOUSE_VALLEY_NORTH'] = 2)] = - 'BIRD_HOUSE_VALLEY_NORTH' - VarPlayer[(VarPlayer['BIRD_HOUSE_VALLEY_SOUTH'] = 3)] = - 'BIRD_HOUSE_VALLEY_SOUTH' -})(VarPlayer || (VarPlayer = {})) -/** @ignore */ -export class VarPlayer_$WRAPPER { - constructor(_$ordinal, _$name, id) { - this._$ordinal = _$ordinal - this._$name = _$name - if (this.id === undefined) { - this.id = 0 - } - this.id = id - } - getId() { - return this.id - } - name() { - return this._$name - } - ordinal() { - return this._$ordinal - } - compareTo(other) { - return this._$ordinal - (isNaN(other) ? other._$ordinal : other) - } -} +export class VarPlayer {} +/** + * Bird house states + */ +VarPlayer.BIRD_HOUSE_MEADOW_NORTH = 1626 +VarPlayer.BIRD_HOUSE_MEADOW_SOUTH = 1627 +VarPlayer.BIRD_HOUSE_VALLEY_NORTH = 1628 +VarPlayer.BIRD_HOUSE_VALLEY_SOUTH = 1629 VarPlayer['__class'] = 'timetracking.VarPlayer' -VarPlayer['__interfaces'] = ['java.lang.Comparable', 'java.io.Serializable'] -VarPlayer['_$wrappers'] = { - 0: new VarPlayer_$WRAPPER(0, 'BIRD_HOUSE_MEADOW_NORTH', 1626), - 1: new VarPlayer_$WRAPPER(1, 'BIRD_HOUSE_MEADOW_SOUTH', 1627), - 2: new VarPlayer_$WRAPPER(2, 'BIRD_HOUSE_VALLEY_NORTH', 1628), - 3: new VarPlayer_$WRAPPER(3, 'BIRD_HOUSE_VALLEY_SOUTH', 1629) -} diff --git a/src/modules/timetracking/Varbits.js b/src/modules/timetracking/Varbits.js index f870f74a8e..d2c0a2711d 100644 --- a/src/modules/timetracking/Varbits.js +++ b/src/modules/timetracking/Varbits.js @@ -1,95 +1,40 @@ // @ts-nocheck /* eslint-disable */ -export var Varbits -;(function (Varbits) { - /** - * Transmog controllers for farming - */ - Varbits[(Varbits['FARMING_4771'] = 0)] = 'FARMING_4771' - Varbits[(Varbits['FARMING_4772'] = 1)] = 'FARMING_4772' - Varbits[(Varbits['FARMING_4773'] = 2)] = 'FARMING_4773' - Varbits[(Varbits['FARMING_4774'] = 3)] = 'FARMING_4774' - Varbits[(Varbits['FARMING_4775'] = 4)] = 'FARMING_4775' - Varbits[(Varbits['FARMING_7904'] = 5)] = 'FARMING_7904' - Varbits[(Varbits['FARMING_7905'] = 6)] = 'FARMING_7905' - Varbits[(Varbits['FARMING_7906'] = 7)] = 'FARMING_7906' - Varbits[(Varbits['FARMING_7907'] = 8)] = 'FARMING_7907' - Varbits[(Varbits['FARMING_7908'] = 9)] = 'FARMING_7908' - Varbits[(Varbits['FARMING_7909'] = 10)] = 'FARMING_7909' - Varbits[(Varbits['FARMING_7910'] = 11)] = 'FARMING_7910' - Varbits[(Varbits['FARMING_7911'] = 12)] = 'FARMING_7911' - Varbits[(Varbits['FARMING_7912'] = 13)] = 'FARMING_7912' - /** - * Transmog controllers for grapes - */ - Varbits[(Varbits['GRAPES_4953'] = 14)] = 'GRAPES_4953' - Varbits[(Varbits['GRAPES_4954'] = 15)] = 'GRAPES_4954' - Varbits[(Varbits['GRAPES_4955'] = 16)] = 'GRAPES_4955' - Varbits[(Varbits['GRAPES_4956'] = 17)] = 'GRAPES_4956' - Varbits[(Varbits['GRAPES_4957'] = 18)] = 'GRAPES_4957' - Varbits[(Varbits['GRAPES_4958'] = 19)] = 'GRAPES_4958' - Varbits[(Varbits['GRAPES_4959'] = 20)] = 'GRAPES_4959' - Varbits[(Varbits['GRAPES_4960'] = 21)] = 'GRAPES_4960' - Varbits[(Varbits['GRAPES_4961'] = 22)] = 'GRAPES_4961' - Varbits[(Varbits['GRAPES_4962'] = 23)] = 'GRAPES_4962' - Varbits[(Varbits['GRAPES_4963'] = 24)] = 'GRAPES_4963' - Varbits[(Varbits['GRAPES_4964'] = 25)] = 'GRAPES_4964' - /** - * Automatically weed farming patches - */ - Varbits[(Varbits['AUTOWEED'] = 26)] = 'AUTOWEED' -})(Varbits || (Varbits = {})) -/** @ignore */ -export class Varbits_$WRAPPER { - constructor(_$ordinal, _$name, id) { - this._$ordinal = _$ordinal - this._$name = _$name - if (this.id === undefined) { - this.id = 0 - } - this.id = id - } - getId() { - return this.id - } - name() { - return this._$name - } - ordinal() { - return this._$ordinal - } - compareTo(other) { - return this._$ordinal - (isNaN(other) ? other._$ordinal : other) - } -} +export class Varbits {} +/** + * Transmog controllers for farming + */ +Varbits.FARMING_4771 = 4771 +Varbits.FARMING_4772 = 4772 +Varbits.FARMING_4773 = 4773 +Varbits.FARMING_4774 = 4774 +Varbits.FARMING_4775 = 4775 +Varbits.FARMING_7904 = 7904 +Varbits.FARMING_7905 = 7905 +Varbits.FARMING_7906 = 7906 +Varbits.FARMING_7907 = 7907 +Varbits.FARMING_7908 = 7908 +Varbits.FARMING_7909 = 7909 +Varbits.FARMING_7910 = 7910 +Varbits.FARMING_7911 = 7911 +Varbits.FARMING_7912 = 7912 +/** + * Transmog controllers for grapes + */ +Varbits.GRAPES_4953 = 4953 +Varbits.GRAPES_4954 = 4954 +Varbits.GRAPES_4955 = 4955 +Varbits.GRAPES_4956 = 4956 +Varbits.GRAPES_4957 = 4957 +Varbits.GRAPES_4958 = 4958 +Varbits.GRAPES_4959 = 4959 +Varbits.GRAPES_4960 = 4960 +Varbits.GRAPES_4961 = 4961 +Varbits.GRAPES_4962 = 4962 +Varbits.GRAPES_4963 = 4963 +Varbits.GRAPES_4964 = 4964 +/** + * Automatically weed farming patches + */ +Varbits.AUTOWEED = 5557 Varbits['__class'] = 'timetracking.Varbits' -Varbits['__interfaces'] = ['java.lang.Comparable', 'java.io.Serializable'] -Varbits['_$wrappers'] = { - 0: new Varbits_$WRAPPER(0, 'FARMING_4771', 4771), - 1: new Varbits_$WRAPPER(1, 'FARMING_4772', 4772), - 2: new Varbits_$WRAPPER(2, 'FARMING_4773', 4773), - 3: new Varbits_$WRAPPER(3, 'FARMING_4774', 4774), - 4: new Varbits_$WRAPPER(4, 'FARMING_4775', 4775), - 5: new Varbits_$WRAPPER(5, 'FARMING_7904', 7904), - 6: new Varbits_$WRAPPER(6, 'FARMING_7905', 7905), - 7: new Varbits_$WRAPPER(7, 'FARMING_7906', 7906), - 8: new Varbits_$WRAPPER(8, 'FARMING_7907', 7907), - 9: new Varbits_$WRAPPER(9, 'FARMING_7908', 7908), - 10: new Varbits_$WRAPPER(10, 'FARMING_7909', 7909), - 11: new Varbits_$WRAPPER(11, 'FARMING_7910', 7910), - 12: new Varbits_$WRAPPER(12, 'FARMING_7911', 7911), - 13: new Varbits_$WRAPPER(13, 'FARMING_7912', 7912), - 14: new Varbits_$WRAPPER(14, 'GRAPES_4953', 4953), - 15: new Varbits_$WRAPPER(15, 'GRAPES_4954', 4954), - 16: new Varbits_$WRAPPER(16, 'GRAPES_4955', 4955), - 17: new Varbits_$WRAPPER(17, 'GRAPES_4956', 4956), - 18: new Varbits_$WRAPPER(18, 'GRAPES_4957', 4957), - 19: new Varbits_$WRAPPER(19, 'GRAPES_4958', 4958), - 20: new Varbits_$WRAPPER(20, 'GRAPES_4959', 4959), - 21: new Varbits_$WRAPPER(21, 'GRAPES_4960', 4960), - 22: new Varbits_$WRAPPER(22, 'GRAPES_4961', 4961), - 23: new Varbits_$WRAPPER(23, 'GRAPES_4962', 4962), - 24: new Varbits_$WRAPPER(24, 'GRAPES_4963', 4963), - 25: new Varbits_$WRAPPER(25, 'GRAPES_4964', 4964), - 26: new Varbits_$WRAPPER(26, 'AUTOWEED', 5557) -}