mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-10 09:02:32 +00:00
compile gold when changing the default conversions
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -396,7 +396,7 @@ const showSign = (value) => {
|
||||
return value;
|
||||
};
|
||||
|
||||
on('change:cp change:sp change:ep change:gp change:pp', () => {
|
||||
const calculateGold = () => {
|
||||
const collectionArray = ['cp', 'copper_per_gold', 'sp', 'silver_per_gold', 'ep', 'electrum_per_gold', 'gp', 'pp', 'platinum_per_gold'];
|
||||
const finalSetAttrs = {};
|
||||
|
||||
@@ -416,6 +416,9 @@ on('change:cp change:sp change:ep change:gp change:pp', () => {
|
||||
|
||||
setFinalAttrs(v, finalSetAttrs);
|
||||
});
|
||||
};
|
||||
on('change:cp change:copper_per_gold change:sp change:silver_per_gold change:ep change:electrum_per_gold change:gp change:pp change:platinum_per_gold', () => {
|
||||
calculateGold();
|
||||
});
|
||||
|
||||
const updateAbilityModifier = (ability) => {
|
||||
|
||||
Reference in New Issue
Block a user