Class: Clothes

Clothes


new Clothes(id, girl [, unlockedByDefault])

Parameters:
Name Type Argument Default Description
id string
girl string
unlockedByDefault boolean <optional>
false
Properties:
Name Type Description
id string
face string
body string
visible boolean
Girl Girl
name string
description string
level number
shop boolean
cost number
stats object
styles object.<ClothesStyle>
Source:
Returns:
Type
Clothes
Example
let myClothes = new Clothes('myClothes','Queen')
     .setVisible(true)
     .setName("My Clothes")
     .setDescription("These are my mod's clothes")
     .setLevel(15)
     .setShop(true)
     .setCost(3000)
     .setStat("Throat", 2)
     .setStat("Pussy", 1);

// Visible condition example
// These clothes will be visible in the shop if Queen is above level 10
let myClothes = new Clothes('myClothes2','Queen')
     .setVisible(() =>{
         return myMod.girl.Queen.getLevel() > 10;
     })

Methods


<static> getCost()

Source:
Returns:
Type
number

<static> setCost(amount)

Parameters:
Name Type Description
amount number
Source:
Returns:
Type
Clothes

buy()

Source:
Returns:
Type
Clothes

getAllStyles( [visible])

Parameters:
Name Type Argument Default Description
visible boolean <optional>
true
Source:
Returns:
Type
object

getBody()

Source:
Returns:
Type
string

getDescription()

Source:
Returns:
Type
string

getFace()

Source:
Returns:
Type
string

getGirl()

Source:
Returns:
Type
Girl

getID()

Source:
Returns:
Type
string

getLevel()

Source:
Returns:
Type
number

getPlayerStyle()

Source:
Returns:
Type
string | boolean

getShop()

Source:
Returns:
Type
boolean

getStats(skill)

Parameters:
Name Type Description
skill string
Source:
Returns:
Type
object | number

getStyle(styleID)

Parameters:
Name Type Description
styleID string
Source:
Returns:
Type
ClothesStyle

isUnlocked()

Source:
Returns:
Type
boolean

isVisible()

Source:
Returns:
Type
boolean

removeStyle(styleID)

Parameters:
Name Type Description
styleID string
Source:

setBody(key)

Parameters:
Name Type Description
key string
Source:
Returns:
Type
Clothes

setDescription(text)

Parameters:
Name Type Description
text string
Source:
Returns:
Type
Clothes

setFace(key)

Parameters:
Name Type Description
key string
Source:
Returns:
Type
Clothes

setGirl(girl)

Parameters:
Name Type Description
girl string
Source:
Returns:
Type
Clothes

setID(id)

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

setLevel(number)

Parameters:
Name Type Description
number number
Source:
Returns:
Type
Clothes

setName(name)

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

setShop(boolean)

Parameters:
Name Type Description
boolean boolean
Source:
Returns:
Type
Clothes

setStat(skill [, amount])

Parameters:
Name Type Argument Description
skill string | object
amount number <optional>
Source:
Returns:
Type
Clothes

setStyle(styleID)

Parameters:
Name Type Description
styleID string | boolean
Source:
Returns:
Type
Clothes

setVisible(condition)

Parameters:
Name Type Description
condition
Source:
Returns:
Type
Clothes

unlock()

Source:
Returns:
Type
Clothes