Clothing: Difference between revisions

From SkyCorp Global
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Version notes:
Version notes:
* In versions before r25, clothing is treated as just an [[Entity]] and has none of the special functions below.   
* 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 additional parameters.   
* 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 ==
Line 17: 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.