diff --git a/devNotes/Useful JS Function Documentation.txt b/devNotes/Useful JS Function Documentation.txt index 1c43d2d4bae449e85b06173eff1d8801aaa21abd..ddba478313f878a34156642f672dbe3aa85599a8 100644 --- a/devNotes/Useful JS Function Documentation.txt +++ b/devNotes/Useful JS Function Documentation.txt @@ -167,10 +167,10 @@ lispReplace(string) - Returns the string lispified. nippleColor(slave) - Returns the slave's nipple color. UtilJS [script] - TODO: update this - num() - Returns the value thousand separated with ',' if $formatNumbers > 0 else provides the raw value. + num() - Returns the value thousand separated with ',' if $formatNumbers > 0 else provides the raw value. Returns an integer if $showNumbers == 0, numbers up to a preset max as words if $showNumbers == 1, or only words if $showNumbers == 2. line 138 of src/SpecialForce/Report.tw, '...focused their <<print num($SFUnit.Troops)>> troops' if $formatNumbers > 0 'focused their 1,589 troops' else 'focused their 1589 troops' + if $showNumbers == 0 'focused their 1,589 troops', if $showNumbers == 1 'focused their 1,589 troops' (unless the max is set to more than 1,589), else 'focused their one thousand five hundred eighty-nine troops' cashFormat() - uses the above function to return the value thousand separated with ',' if $formatNumbers > 0 else provides the raw value. either way prepends ¤ (the fc domination) symbol. line 157 of the previously listed file, '...totaling @@.yellowgreen;<<print cashFormat(_SFIncome)>>@@'