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
damage
- damage(target: default | default<unknown, number, NPC | Player>, damageInfo: IDamageInfo, attackOutcome: number): false | void
-
Returns false | void
deactivated
- deactivated(): void
-
Returns void
delete
- delete(): void
-
Returns void
fastForwardEnd
- fastForwardEnd(): any
-
Returns any
fastForwardStart
- fastForwardStart(): any
-
Returns any
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
randomEvents
- randomEvents(tile: default, human: default<unknown, number, NPC | Player>): undefined | boolean | void
-
Returns undefined | boolean | void
rename
- rename(human: default<unknown, number, NPC | Player>, newName?: string, oldName?: string): any
-
Parameters
-
-
Optional
newName: string
-
Optional
oldName: string
Returns any
terrainChange
- terrainChange(tile: default, oldType: TerrainType): any
-
Returns any
tickEnd
- tickEnd(options: IIslandTickOptions): any
-
Returns any
tickStart
- tickStart(options: IIslandTickOptions): 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