Difference between revisions of "Clothing"

From SkyCorp Global
(Created page with "In versions before r25, clothing is treated as just an Entity. In versions 25 and after, Clothing items have additional parameters. == Public Methods == Note that a Cloth...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
In versions before r25, clothing is treated as just an Entity.  In versions 25 and after, Clothing items have additional parameters.   
+
Version notes:
 +
* In versions before r25, clothing is treated as just an [[Entity]] and has none of the special functions below.   
 +
* In versions r25 and after:
 +
** Clothing items have all the normal [[Entity]] functions, plus the below Clothing-specific functions.  
 +
** Additionally, the .type of clothing objects are 'Clothing' instead of 'Entity'  
  
 
== Public Methods ==
 
== Public Methods ==
  
Note that a Clothing object supports all non-static methods that Entity supports!
+
Note that a Clothing object supports all non-static methods that [[Entity]] supports!
  
 
=== boolean isVulnerableToMasculineTheft() ===
 
=== boolean isVulnerableToMasculineTheft() ===
Line 15: Line 19:
  
 
=== string getSlot() ===
 
=== string getSlot() ===
String name of slot this clothing occupies.
+
String [[Clothing slot|name of slot]] this clothing occupies.
  
 
[[Category:LUA Class Reference]]
 
[[Category:LUA Class Reference]]

Latest revision as of 00:55, 10 February 2018

Version notes:

  • In versions before r25, clothing is treated as just an Entity and has none of the special functions below.
  • In versions r25 and after:
    • Clothing items have all the normal Entity functions, plus the below Clothing-specific functions.
    • Additionally, the .type of clothing objects are 'Clothing' instead of 'Entity'

Public Methods

Note that a Clothing object supports all non-static methods that Entity supports!

boolean isVulnerableToMasculineTheft()

If true, this item can be lost in situations where masculine clothes are lost.

boolean isConcealableClothing()

If true, this item can conceal a TF in the slot it is in (this is most clothing items).

void soakWithCum()

Make this clothing cum-soaked. Currently just a description, but in future may have additional effects (exposure, lust, etc)

string getSlot()

String name of slot this clothing occupies.