Class: Boss

Boss


new Boss(id, name, condition)

Parameters:
Name Type Description
id string
name string
condition function | boolean
Properties:
Name Type Description
id string
dialogue object
Properties
Name Type Description
Easy string
Normal string
Hard string
rewards object
Properties
Name Type Description
Easy object
Properties
Name Type Description
Clothes array
Normal object
Properties
Name Type Description
Clothes array
Hard object
Properties
Name Type Description
Clothes array
Source:
Returns:
Type
Boss

Methods


addClothesReward(difficulty, clothesID)

Adds a clothes reward if the player beats the boss at the specified difficulty

Parameters:
Name Type Description
difficulty string
clothesID string
Source:
Returns:
Type
Boss

getCondition()

Source:
Returns:
Type
function | boolean

getDialogue(difficulty)

Parameters:
Name Type Description
difficulty string
Source:
Returns:
Type
string

getID()

Source:
Returns:
Type
string

getName()

Source:
Returns:
Type
string

getRewards(difficulty)

Parameters:
Name Type Description
difficulty string
Source:
Returns:
Type
object

isAvailable()

Source:
Returns:
Type
boolean

setCondition(condition)

Parameters:
Name Type Description
condition function
Source:
Returns:
Type
Boss

setDialogue(difficulty, dialogueID)

All boss battles are just dialogue scenes that have battles that start in them

Parameters:
Name Type Description
difficulty string
dialogueID string

Must return a promise that resolves true or false

Source:
Returns:
Type
Boss

setID(id)

Parameters:
Name Type Description
id string
Source:
Returns:
Type
Boss

setName(name)

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Boss