From 12782519a2bf342d2f52d3d56b8b99fa4bdb3fb2 Mon Sep 17 00:00:00 2001 From: connlost <4348524953.h@gmail.com> Date: Thu, 4 Apr 2024 20:12:40 +0800 Subject: [PATCH] Add Description for Pal Waza --- .../src/components/PalEditor.vue | 49 +- src/palworld_pal_editor/api/save.py | 11 +- .../assets/data/get_attacks.py | 345 +++ .../assets/data/old_pal_attacks.json | 1624 +++++++++++ .../assets/data/pal_attacks.json | 2532 ++++++++++++----- .../assets/data/pal_data.json | 6 +- src/palworld_pal_editor/cli.py | 2 +- src/palworld_pal_editor/core/pal_entity.py | 8 +- .../utils/data_provider.py | 24 +- 9 files changed, 3878 insertions(+), 723 deletions(-) create mode 100644 src/palworld_pal_editor/assets/data/get_attacks.py create mode 100644 src/palworld_pal_editor/assets/data/old_pal_attacks.json diff --git a/frontend/palworld-pal-editor-webui/src/components/PalEditor.vue b/frontend/palworld-pal-editor-webui/src/components/PalEditor.vue index cb2a769..9c50c01 100644 --- a/frontend/palworld-pal-editor-webui/src/components/PalEditor.vue +++ b/frontend/palworld-pal-editor-webui/src/components/PalEditor.vue @@ -9,10 +9,10 @@ function formatString(input) { if (!match) return input; // Return the input as is if it doesn't match the expected pattern const [, numbers, suffix] = match; - + // Pad the numeric part with leading zeros to make it at least 3 digits const paddedNumbers = numbers.padStart(3, '0'); - + // Append the suffix if it exists; otherwise, append an empty space const formatted = suffix ? paddedNumbers + suffix : paddedNumbers; if (suffix) { @@ -43,8 +43,12 @@ function formatString(input) {

Specie:

@@ -179,7 +183,7 @@ function formatString(input) { {{ palStore.displayRating(palStore.PASSIVE_SKILLS[skill]?.Rating) }} {{ palStore.PASSIVE_SKILLS[skill]?.I18n[0] || skill }}

- {{ palStore.PASSIVE_SKILLS[skill]?.I18n[1] || skill}} + {{ palStore.PASSIVE_SKILLS[skill]?.I18n[1] || skill }}