# Game Mode: unitset.lst

*** Deprecated 5.9.5

This file has been deprecated and removed from the release. This function is now implemented with the UNITSET miscinfo.lst tag.

The unitSet.lst file contains the definition for unit sets that can be used in the game mode. Unit sets can be selected on the language tab of the preferences dialog, by name. The "imperial" unit set is hard-coded into PCGen, so the program can run without this file, but it is possible to change the "imperial" set by changing the entry in this file.

The Default Unit Set is set in the miscinfo.lst file with the DEFAULTUNITSET tag and will default to Imperial if not present.

The 'factor' is the conversion factor to the standard imperial set, which is inches for height, feet for distances and pounds for weights.

The string 'unit' is appended to the value and set off from the value by a space. If you want the unit to follow directly after the value, prefix the string with '~'. The string 'ftin' is hard-coded to give results of the format x'y".

The 'pattern' string is a pattern for formatting the output of the value, so you can specify e.g. how many decimal digits are printed. The pattern follows the definition of the Java class DecimaFormat and can be found here.