From d1a829e73ecc6370ee60a11070d261706e0dde4b Mon Sep 17 00:00:00 2001 From: KL_jiana <2436262516@qq.com> Date: Sat, 27 Jul 2024 02:49:05 +0800 Subject: [PATCH 1/4] config --- .../com/teampotato/attackagain/config/AttackConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/teampotato/attackagain/config/AttackConfig.java b/src/main/java/com/teampotato/attackagain/config/AttackConfig.java index 8df9596..4d6d10c 100644 --- a/src/main/java/com/teampotato/attackagain/config/AttackConfig.java +++ b/src/main/java/com/teampotato/attackagain/config/AttackConfig.java @@ -11,13 +11,13 @@ public class AttackConfig { ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder(); builder.push("Potion Level Fix").comment("These settings will only apply when you first enter the world. Subsequently, you can control the attributes in-game."); PROBABILITY = builder - .comment("The larger this number, the higher the probability of a subsequent attack. Range:0~100, default: 30") + .comment("The larger this number, the higher the probability of a subsequent attack. Range:0~100, default: 15.0") .define("Attack Again Probability", 15.0); DAMAGE = builder - .comment("The damage percentage of a subsequent attack, default: 1") + .comment("The damage percentage of a subsequent attack, default: 0.35") .define("Damage Percentage", 0.35); FREQUENCY = builder - .comment("The frequency of subsequent attacks") + .comment("The frequency of subsequent attacks, default: 1.0") .define("Damage Frequency", 1.0); builder.pop(); CONFIG = builder.build(); From 58d91703f47d3e357650fca62c2cbc41fc58ac5a Mon Sep 17 00:00:00 2001 From: KL_jiana <2436262516@qq.com> Date: Sat, 27 Jul 2024 02:56:04 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/teampotato/attackagain/config/AttackConfig.java | 4 ++-- src/main/resources/assets/attack_again/lang/en_us.json | 5 +++++ src/main/resources/assets/attack_again/lang/zh_cn.json | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/assets/attack_again/lang/en_us.json create mode 100644 src/main/resources/assets/attack_again/lang/zh_cn.json diff --git a/src/main/java/com/teampotato/attackagain/config/AttackConfig.java b/src/main/java/com/teampotato/attackagain/config/AttackConfig.java index 4d6d10c..df76a82 100644 --- a/src/main/java/com/teampotato/attackagain/config/AttackConfig.java +++ b/src/main/java/com/teampotato/attackagain/config/AttackConfig.java @@ -15,10 +15,10 @@ public class AttackConfig { .define("Attack Again Probability", 15.0); DAMAGE = builder .comment("The damage percentage of a subsequent attack, default: 0.35") - .define("Damage Percentage", 0.35); + .define("Attack Again Percentage", 0.35); FREQUENCY = builder .comment("The frequency of subsequent attacks, default: 1.0") - .define("Damage Frequency", 1.0); + .define("Attack Again Frequency", 1.0); builder.pop(); CONFIG = builder.build(); } diff --git a/src/main/resources/assets/attack_again/lang/en_us.json b/src/main/resources/assets/attack_again/lang/en_us.json new file mode 100644 index 0000000..e764782 --- /dev/null +++ b/src/main/resources/assets/attack_again/lang/en_us.json @@ -0,0 +1,5 @@ +{ + "attribute.name.attack_again.attack_probability": "Attack Again Probability", + "attribute.name.attack_again.attack_damage": "Attack Again Percentage", + "attribute.name.attack_again.attack_frequency": "Attack Again Frequency" +} \ No newline at end of file diff --git a/src/main/resources/assets/attack_again/lang/zh_cn.json b/src/main/resources/assets/attack_again/lang/zh_cn.json new file mode 100644 index 0000000..0cb44d7 --- /dev/null +++ b/src/main/resources/assets/attack_again/lang/zh_cn.json @@ -0,0 +1,5 @@ +{ + "attribute.name.attack_again.attack_probability": "额外攻击概率", + "attribute.name.attack_again.attack_damage": "额外攻击伤害", + "attribute.name.attack_again.attack_frequency": "额外攻击次数" +} \ No newline at end of file From 406c09fb4d39f51bdb45624a559a1debf508826b Mon Sep 17 00:00:00 2001 From: KL_jiana <2436262516@qq.com> Date: Sat, 27 Jul 2024 02:56:26 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/assets/attack_again/lang/zh_cn.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/assets/attack_again/lang/zh_cn.json b/src/main/resources/assets/attack_again/lang/zh_cn.json index 0cb44d7..f32be1d 100644 --- a/src/main/resources/assets/attack_again/lang/zh_cn.json +++ b/src/main/resources/assets/attack_again/lang/zh_cn.json @@ -1,5 +1,5 @@ { - "attribute.name.attack_again.attack_probability": "额外攻击概率", - "attribute.name.attack_again.attack_damage": "额外攻击伤害", - "attribute.name.attack_again.attack_frequency": "额外攻击次数" + "attribute.name.attack_again.attack_probability": "追击概率", + "attribute.name.attack_again.attack_damage": "追击伤害", + "attribute.name.attack_again.attack_frequency": "追击次数" } \ No newline at end of file From ab64b919c0da1b0e743c87e6b44ad7609a416c8c Mon Sep 17 00:00:00 2001 From: KL_jiana <109327256+KLjiana@users.noreply.github.com> Date: Thu, 29 Aug 2024 23:06:31 +0800 Subject: [PATCH 4/4] Create gradle.yml --- .github/workflows/gradle.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..b4da9a9 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,34 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Setup JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-version: 8.1.1 + + - name: Run build + run: gradle build + + - name: Upload files + uses: actions/upload-artifact@v4 + with: + name: build and source jars + path: build/libs/*.jar + retention-days: 7