Class: ClothesManager

ClothesManager


new ClothesManager()

Source:

Methods


buyClothes(clothID)

Parameters:
Name Type Description
clothID string

The ID of the clothes

Source:
Returns:
Type
Promise.<any>

dyeClothes(clothID, dyeID)

Dyes the clothes a random color

Parameters:
Name Type Description
clothID string
dyeID string
Source:

getAllClothes()

Returns an object of all the clothes

Source:
Returns:
Type
Object

getClothes(clothID)

Parameters:
Name Type Description
clothID string
Source:
Returns:
Type
boolean | *

getClothesDyes(clothID)

Returns all dyes for given clothes that have a condition of true

Parameters:
Name Type Description
clothID string
Source:
Returns:
Type
Array.<string>

getDye(clothID, dyeID)

Parameters:
Name Type Description
clothID string
dyeID string
Source:
Returns:
Type
ClothesManager.dyeConfig

getGirlDye(clothID)

Parameters:
Name Type Description
clothID string
Source:
Returns:
Type
boolean | string

newClothes(clothesConfig)

Use this method to create new clothes

Parameters:
Name Type Description
clothesConfig ClothesManager.clothesConfig
Source:

newDye(clothesID [, dyeID] [, condition])

Takes the three parameters or an array of ClothesManager.dyeConfig

Parameters:
Name Type Argument Description
clothesID string | Array.<ClothesManager.dyeConfig>
dyeID string <optional>
condition function <optional>

function that should return true or false if you want this dye to only be available after a certain condition is met

Source:

resetDye(clothID)

Sets the tint of the clothes to 0xFFFFFF

Parameters:
Name Type Description
clothID string
Source:

setDye(clothID, dyeID)

Default dye is 'false'

Parameters:
Name Type Description
clothID string
dyeID string | boolean
Source:

setVisible(clothID, boolean)

Sets clothes visibility

Parameters:
Name Type Description
clothID string

The ID of the clothes

boolean boolean

Visibility

Source:

unlockClothes(clothID)

Unlocks clothes

Parameters:
Name Type Description
clothID string

The ID of the clothes

Source:

Type Definitions


clothesConfig

Type:
  • object
Properties:
Name Type Argument Default Description
ID string

ID of the clothes

Face string <optional>
"Neutral"

Face texture that will be used when the girl equips the clothes

Body string <optional>
"Default"

Body texture that will be used when the girl equips the clothes

Visible boolean

Is this item visible at the beginning of the game

Unlocked boolean

Is this item unlocked at the beginning of the game

Girl string

The ID of the girl whose clothes these are for

Name string

Name of the clothes

Description string

Description of the clothes

Level number

The total level required to wear these clothes

Shop string

What shop the clothes should be available at. If they are not buyable just put "Quest"

Cost number

How much the clothes cost to buy

Stats object

The bonus given from wearing these clothes

Properties
Name Type Description
Recovery number

The amount of stamina a girl recovers in a boss battle

Stamina number

The amount of extra stamina a girl will have with this item

Hands number

The girl's hands level increased by

Feet number

The girl's feet level increased by

Throat number

The girl's throat level increased by

Tits number

The girl's tits level increased by

Pussy number

The girl's pussy level increased by

Anal number

The girl's anal level increased by

Source:

dyeConfig

Type:
  • object
Properties:
Name Type Description
clothesID string

ID of clothes this dye is for

dyeID string

ID of dye

condition function

Function that is called to check if this dye is available to use, should return a boolean

Source: