ZG6COYLJOFNRVDA6L7AHQR5SIVR373PQDQYISHCTV3YZZAAPOFAQC
PSY4Y3X4ZWLXR2FEDR2W5E4SW2ASS4BPBOT4W5TDLNU2NCFZISNAC
GJGKS2YPL6XOT4CLQ2NVHUU2W7MDHYE2XC77WWRGPBCPSTWZ5GIAC
TQ57VE45BHV7MOZ6GKTYZEAMAOTXLPQ3ROCWJ2FUCITQWOYVMUIAC
GZRMSSTEWT3T2JERC7WCVT727X237UA6MXWVT6OSV5D5BRD4UOGQC
ZGS4FTTFBXTF2SHYTPAJJBWEUVWVYXPSJVEFI5NYJWTW273B4NHAC
WPC667PRTGRE7BNP6E7ZCQIKXYMIHJT3LUTTQT7VX2HQVRBXNIKAC
DHO4JCJIELKX4R42XXAMAHVQTTE6OWULLP2QF4BXO3UWC5UTMSMAC
WTINQMZSNRT5MSAXLMMZVM6OU6TMD4AP4OEUYAXZUFNY5IWFLZSQC
amounts[key];
let amount = playerResourceNodesAggregated.get(new ResourceTypeAndModifier({
type: key,
modifier: ResourceModifier.Flat
})) || 0;
amount *= (1 + (playerResourceNodesAggregated.get(new ResourceTypeAndModifier({
type: key,
modifier: ResourceModifier.Increased0,
})) || 0));
amount += playerResourceNodesAggregated.get(new ResourceTypeAndModifier({
type: key,
modifier: ResourceModifier.AfterIncreased0
})) || 0;
amount *= (1 + (playerResourceNodesAggregated.get(new ResourceTypeAndModifier({
type: key,
modifier: ResourceModifier.Increased1,
})) || 0));
amount += playerResourceNodesAggregated.get(new ResourceTypeAndModifier({
type: key,
modifier: ResourceModifier.AfterIncreased1
})) || 0;
amounts[key] = amount;
export function enumKeys<T extends {[k: string]: any}>(enm: T) : (keyof T)[] {
return Object.keys(enm);
}
export function enumKeys<T extends string>(enm: { [key in T]: T }) : T[] {
return Object.keys(enm) as T[];
}
// export function enumKeys<T extends string>(enm: { [key: string]: string }) : T[] {
// return Object.keys(enm) as T[];
// }