From 04821fda12a8dbb5374ee2e4599d9ad3967e148f Mon Sep 17 00:00:00 2001 From: MalitsPlus Date: Wed, 23 Feb 2022 10:16:22 +0800 Subject: [PATCH] Add new skills --- .../shizurunotes/data/action/IfForChildrenAction.java | 11 +++++++---- app/src/main/res/values-zh/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/github/malitsplus/shizurunotes/data/action/IfForChildrenAction.java b/app/src/main/java/com/github/malitsplus/shizurunotes/data/action/IfForChildrenAction.java index e06c3f61..791d2199 100644 --- a/app/src/main/java/com/github/malitsplus/shizurunotes/data/action/IfForChildrenAction.java +++ b/app/src/main/java/com/github/malitsplus/shizurunotes/data/action/IfForChildrenAction.java @@ -70,7 +70,7 @@ public String localizedDetail(int level, Property property) { if(actionDetail1 == 100 || actionDetail1 == 101 || actionDetail1 == 200 || actionDetail1 == 300 || actionDetail1 == 500 || actionDetail1 == 501 || actionDetail1 == 502 || actionDetail1 == 503 || actionDetail1 == 504 || actionDetail1 == 511 || actionDetail1 == 512 || (actionDetail1 >=600 && actionDetail1 < 900) || (actionDetail1 >= 901 && actionDetail1 < 1000) - || actionDetail1 == 1300 || actionDetail1 == 1400 || (actionDetail1 >= 6000 && actionDetail1 < 7000)) { + || actionDetail1 == 1300 || actionDetail1 == 1400 || actionDetail1 == 1600 || (actionDetail1 >= 6000 && actionDetail1 < 7000)) { if(trueClause != null && falseClause != null) return I18N.getString(R.string.Condition_s, trueClause + falseClause); else if(trueClause != null) @@ -91,6 +91,7 @@ else if(falseClause != null) } enum IfType{ + unknown(-1), controllered(100), hastened(101), blind(200), @@ -104,7 +105,8 @@ enum IfType{ curseOrHex(511), poisonOrVenom(512), Break(710), - polymorph(1400); + polymorph(1400), + fear(1600); private int value; IfType(int value){ @@ -119,7 +121,7 @@ public static IfType parse(int value){ if(item.getValue() == value) return item; } - return null; + return IfType.unknown; } public String description(){ @@ -138,7 +140,8 @@ public String description(){ case polymorph: return I18N.getString(R.string.polymorphed); case hex: return I18N.getString(R.string.hexed); case curseOrHex: return I18N.getString(R.string.cursed_or_hexed); - default: return ""; + case fear: return I18N.getString(R.string.feared); + default: return I18N.getString(R.string.unknown); } } } \ No newline at end of file diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index 58b94525..45519703 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -688,4 +688,5 @@ 诅咒或恶咒状态中 对%s付与一些特殊的视觉效果。 本伤害的类型会切换为目标的较低数值的防御类型进行计算。 + 恐慌状态中 \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 31c6d42e..b4e3adcc 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -751,6 +751,7 @@ %1$sをノックバックする、距離 [%2$s]。 呪詛状態中 呪い或いは呪詛状態中 + 恐慌状態中 %sに特別なビジュアル効果を付与する。 このスキルのダメージタイプは目標の低いほうの防御タイプによって決められる。 \ No newline at end of file