Simplify custom world result editing controls
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
WorldType,
|
||||
} from '../types';
|
||||
import { resolveCustomWorldCampScene } from './customWorldCamp';
|
||||
import { resolveCustomWorldRuleProfile } from './customWorldOwnedSettingLayers';
|
||||
import {
|
||||
type CustomWorldThemeMode,
|
||||
detectCustomWorldThemeMode,
|
||||
@@ -373,6 +374,21 @@ export function getResourceLabelsForWorld(worldType: WorldType | null | undefine
|
||||
};
|
||||
}
|
||||
|
||||
const ruleProfile = resolveCustomWorldRuleProfile(profile);
|
||||
if (ruleProfile) {
|
||||
return {
|
||||
hp: ruleProfile.resourceLabels.hp,
|
||||
mp: ruleProfile.resourceLabels.mp,
|
||||
maxHp: ruleProfile.resourceLabels.maxHp,
|
||||
maxMp: ruleProfile.resourceLabels.maxMp,
|
||||
damage: ruleProfile.resourceLabels.damage,
|
||||
guard: ruleProfile.resourceLabels.guard,
|
||||
range: ruleProfile.resourceLabels.range,
|
||||
cooldown: ruleProfile.resourceLabels.cooldown,
|
||||
manaCost: ruleProfile.resourceLabels.manaCost,
|
||||
};
|
||||
}
|
||||
|
||||
const presentation = getWorldPresentation(profile);
|
||||
return {
|
||||
hp: presentation.hpLabel,
|
||||
|
||||
Reference in New Issue
Block a user