Skip to content

Commit

Permalink
change artifact name to RS level
Browse files Browse the repository at this point in the history
  • Loading branch information
userXinos committed Oct 30, 2023
1 parent 2df2b60 commit d05bc8b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
23 changes: 1 addition & 22 deletions src/components/ModulePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ export {

<script setup lang="ts">
/* eslint-disable @typescript-eslint/no-var-requires */
import { computed } from 'vue';
import i18n from '@Utils/Vue/i18n';
import Page from '@/components/Page.vue';
Expand All @@ -69,30 +67,11 @@ export interface Props {
postFilter?: (e: object) => e
}
const { t } = i18n.global;
const TID_ART_BY_SLOT = {
Trade: 'TID_ARTIFACT_TYPE_0',
Mining: 'TID_ARTIFACT_TYPE_1',
Shield: 'TID_ARTIFACT_TYPE_2',
Weapon: 'TID_ARTIFACT_TYPE_3',
Support: 'TID_ARTIFACT_TYPE_4',
Drone: 'TID_ARTIFACT_TYPE_5',
};
const props = withDefaults(defineProps<Props>(), {
postFilter: (e) => e,
});
const data = props.postFilter(addArtifactName(getBySlotType(props.type)));
const data = props.postFilter(getBySlotType(props.type));
const img = require(`@Img/game/portraits/${props.portrait}.png`) as string;
const locKey = `TYPE_MOD_${props.type.toUpperCase()}`;
const tableOpts = computed(tableOptsGetter);
function addArtifactName(obj) {
for (const e of Object.values(obj)) {
if (e.SlotType && e.RSLevel) {
e.artifact = `${t(TID_ART_BY_SLOT[e.SlotType])} ${t('TID_LEVEL_GENERIC', [e.RSLevel]).toLowerCase()}`;
}
}
return obj;
}
</script>
1 change: 0 additions & 1 deletion src/regulation/hideKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default {
'AllowBuildOnYS',
'UISortOrder',
'AppearanceModels',
'RSLevel',
'PivotYOffset',
'LinkDPSBoostPct', // перевёл в урон на парсере
'SortOrder',
Expand Down
2 changes: 1 addition & 1 deletion src/regulation/locKeys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const gameCharsLocKeys = {
RelicLoadTicks: 'TID_MODULE_RELIC_DRONE_SPEED',
ActivationType: 'TID_MODULE_TYPE',
StarSectorDPS: 'STAR_SECTOR_DPS',
RSLevel: 'TID_RED_STAR',
RSLevel: 'TID_XBL_STAT_4',
PriceInCrystals: 'PRICE_IN_CRYSTALS',
Influence: 'TID_CORP_SEARCH_INFLUENCE_RANGE',
AllowMoveInSameSectorOnly: 'TID_HUD_MUST_MOVE_TO_SAME_SECTOR',
Expand Down
1 change: 1 addition & 0 deletions src/regulation/statsStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
],
star_red: [
'RSLevelReq',
'RSLevel',
],
directDamageIndicator: [
'DPS',
Expand Down

0 comments on commit d05bc8b

Please sign in to comment.