mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.207.1
This commit is contained in:
@@ -1113,6 +1113,10 @@ Parser.spRangeTypeToFull = function (range) {
|
||||
return Parser._parse_aToB(Parser.SP_RANGE_TYPE_TO_FULL, range);
|
||||
};
|
||||
|
||||
Parser.UNT_LBS = "lbs";
|
||||
Parser.UNT_TONS_IMPERIAL = "tns";
|
||||
Parser.UNT_TONS_METRIC = "Mg";
|
||||
|
||||
Parser.UNT_FEET = "feet";
|
||||
Parser.UNT_YARDS = "yards";
|
||||
Parser.UNT_MILES = "miles";
|
||||
@@ -3732,7 +3736,7 @@ Parser.metric = {
|
||||
case "ft.": case "ft": case Parser.UNT_FEET: out = originalValue * Parser.metric.FEET_TO_METRES; break;
|
||||
case "yd.": case "yd": case Parser.UNT_YARDS: out = originalValue * Parser.metric.YARDS_TO_METRES; break;
|
||||
case "mi.": case "mi": case Parser.UNT_MILES: out = originalValue * Parser.metric.MILES_TO_KILOMETRES; break;
|
||||
case "lb.": case "lb": case "lbs": out = originalValue * Parser.metric.POUNDS_TO_KILOGRAMS; break;
|
||||
case "lb.": case "lb": case Parser.UNT_LBS: out = originalValue * Parser.metric.POUNDS_TO_KILOGRAMS; break;
|
||||
default: return originalValue;
|
||||
}
|
||||
if (toFixed != null) return NumberUtil.toFixedNumber(out, toFixed);
|
||||
@@ -3744,7 +3748,7 @@ Parser.metric = {
|
||||
case "ft.": case "ft": case Parser.UNT_FEET: return isShortForm ? "m" : `meter`[isPlural ? "toPlural" : "toString"]();
|
||||
case "yd.": case "yd": case Parser.UNT_YARDS: return isShortForm ? "m" : `meter`[isPlural ? "toPlural" : "toString"]();
|
||||
case "mi.": case "mi": case Parser.UNT_MILES: return isShortForm ? "km" : `kilometre`[isPlural ? "toPlural" : "toString"]();
|
||||
case "lb.": case "lb": case "lbs": return isShortForm ? "kg" : `kilogram`[isPlural ? "toPlural" : "toString"]();
|
||||
case "lb.": case "lb": case Parser.UNT_LBS: return isShortForm ? "kg" : `kilogram`[isPlural ? "toPlural" : "toString"]();
|
||||
default: return originalUnit;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user