Methods
activated
- activated(): void
-
Returns void
calculateAttackOutcome
- calculateAttackOutcome(damageOutcome: IDamageOutcome, input: IDamageOutcomeInput, attackValue: number, defenseValue: number): undefined | IDamageOutcome
-
Parameters
-
-
-
attackValue: number
-
defenseValue: number
createWorld
- createWorld(world: default): any
-
Returns any
deactivated
- deactivated(): void
-
Returns void
delete
- delete(): void
-
Returns void
getFastForwardAmount
- getFastForwardAmount(fastForwardAmount: number, travelTime: number): undefined | number
-
Parameters
-
fastForwardAmount: number
-
travelTime: number
Returns undefined | number
loadedReferences
- loadedReferences(): void
-
Returns void
portsChanged
- portsChanged(addedPort?: default, removedPort?: default): any
-
Returns any
Optional
postGenerateWorld
- postGenerateWorld(generateNewWorld: boolean): void
-
Parameters
-
generateNewWorld: boolean
Returns void
preLoadWorld
- preLoadWorld(world: default): any
-
Returns any
Optional
preLoadWorldDifferences
- preLoadWorldDifferences(generateNewWorld: boolean): void
-
Parameters
-
generateNewWorld: boolean
Returns void
rename
- rename(human: default<number>, newName?: string, oldName?: string): any
-
Parameters
-
human: default<number>
-
Optional
newName: string
-
Optional
oldName: string
Returns any
terrainChange
- terrainChange(tile: default, oldType: TerrainType): any
-
Returns any
tickEnd
- tickEnd(tickFlag: TickFlag, ticks: number): any
-
Returns any
tickStart
- tickStart(tickFlag: TickFlag, ticks: number): any
-
Returns any
tileUpdate
- tileUpdate(tile: default, tileUpdateType: TileUpdateType): void
-
Returns void
unloaded
- unloaded(): void
-
Returns void
Called when the island is activated This means a player loaded onto the island