Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
superk589 committed Sep 10, 2024
1 parent f13adaa commit 4e2c467
Show file tree
Hide file tree
Showing 14 changed files with 187 additions and 63 deletions.
24 changes: 24 additions & 0 deletions Localizations/PrincessGuide/ja.xcloc/Localized Contents/ja.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@
<target>最も物理や魔法攻撃力が低い%@</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="%@ the lowest DEF" xml:space="preserve">
<source>%@ the lowest DEF</source>
<note>target type</note>
</trans-unit>
<trans-unit id="%@ the lowest HP ratio except self" xml:space="preserve">
<source>%@ the lowest HP ratio except self</source>
<note>target type</note>
Expand Down Expand Up @@ -689,6 +693,10 @@
<target>%1$@にシールドを展開する、物理ダメージを受けた時[%2$@]分のダメージを反射する。</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="Cast an environment effect of ID: %d for [%@]s." xml:space="preserve">
<source>Cast an environment effect of ID: %1$d for [%2$@]s.</source>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="Cast an unknown barrier %d on %@ for [%@]s." xml:space="preserve">
<source>Cast an unknown barrier %1$d on %2$@ for [%3$@]s.</source>
<target>%2$@に不明なバリア %1$d を展開する、効果時間[%3$@]秒。</target>
Expand Down Expand Up @@ -3320,6 +3328,10 @@
<target>物理や魔法攻撃力が%@低い</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="the %@ lowest DEF" xml:space="preserve">
<source>the %@ lowest DEF</source>
<note>target type</note>
</trans-unit>
<trans-unit id="the %@ lowest HP" xml:space="preserve">
<source>the %@ lowest HP</source>
<target>HPが%@低い</target>
Expand Down Expand Up @@ -3422,6 +3434,10 @@
<target>最も物理や魔法攻撃力が高い</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="the lowest DEF" xml:space="preserve">
<source>the lowest DEF</source>
<note>target type</note>
</trans-unit>
<trans-unit id="the lowest HP" xml:space="preserve">
<source>the lowest HP</source>
<target>最もHPが低い</target>
Expand Down Expand Up @@ -3539,6 +3555,10 @@
<target>%2$@が独りの場合、[アクション%1$d]を使う</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is in environment effect of ID: %d" xml:space="preserve">
<source>use %1$d if %2$@ is in environment effect of ID: %3$d</source>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is in state of %@ %@" xml:space="preserve">
<source>use %1$d if %2$@ is in state of %3$@ %4$@</source>
<note>No comment provided by engineer.</note>
Expand All @@ -3562,6 +3582,10 @@
<target>%2$@が独りでない場合、[アクション%1$d]を使う</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is not in environment effect of ID: %d" xml:space="preserve">
<source>use %1$d if %2$@ is not in environment effect of ID: %3$d</source>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is not in state of %@ %@" xml:space="preserve">
<source>use %1$d if %2$@ is not in state of %3$@ %4$@</source>
<note>No comment provided by engineer.</note>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@
<target>物理或魔法攻击力最低的%@</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="%@ the lowest DEF" xml:space="preserve">
<source>%@ the lowest DEF</source>
<target>物理防御力最低的%@</target>
<note>target type</note>
</trans-unit>
<trans-unit id="%@ the lowest HP ratio except self" xml:space="preserve">
<source>%@ the lowest HP ratio except self</source>
<target>除自己外 HP 比例最低的%@</target>
Expand Down Expand Up @@ -699,6 +704,11 @@
<target>对%1$@释放一个护盾,受到物理伤害时反击 [%2$@] 伤害。</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="Cast an environment effect of ID: %d for [%@]s." xml:space="preserve">
<source>Cast an environment effect of ID: %1$d for [%2$@]s.</source>
<target>释放一个环境效果 ID:%1$d,持续 [%2$@] 秒。</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="Cast an unknown barrier %d on %@ for [%@]s." xml:space="preserve">
<source>Cast an unknown barrier %1$d on %2$@ for [%3$@]s.</source>
<target>对%2$@释放一个护盾,类型 %1$d,持续 [%3$@] 秒。</target>
Expand Down Expand Up @@ -3384,6 +3394,11 @@
<target>物理或魔法攻击力%@低的</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="the %@ lowest DEF" xml:space="preserve">
<source>the %@ lowest DEF</source>
<target>物理防御力%@低的</target>
<note>target type</note>
</trans-unit>
<trans-unit id="the %@ lowest HP" xml:space="preserve">
<source>the %@ lowest HP</source>
<target> HP %@低的</target>
Expand Down Expand Up @@ -3489,6 +3504,11 @@
<target>物理或魔法攻击力最低的</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="the lowest DEF" xml:space="preserve">
<source>the lowest DEF</source>
<target>物理防御力最低的</target>
<note>target type</note>
</trans-unit>
<trans-unit id="the lowest HP" xml:space="preserve">
<source>the lowest HP</source>
<target> HP 最低的</target>
Expand Down Expand Up @@ -3609,6 +3629,11 @@
<target>如果%2$@是单独的则使用 %1$d</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is in environment effect of ID: %d" xml:space="preserve">
<source>use %1$d if %2$@ is in environment effect of ID: %3$d</source>
<target>如果%2$@处于环境效果 ID:%3$d 中则使用 %1$d</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is in state of %@ %@" xml:space="preserve">
<source>use %1$d if %2$@ is in state of %3$@ %4$@</source>
<target>如果%2$@处于%3$@%4$@状态则使用 %1$d</target>
Expand All @@ -3634,6 +3659,11 @@
<target>如果%2$@不是单独的则使用 %1$d</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is not in environment effect of ID: %d" xml:space="preserve">
<source>use %1$d if %2$@ is not in environment effect of ID: %3$d</source>
<target>如果%2$@未处于环境效果 ID:%3$d 中则使用 %1$d</target>
<note>No comment provided by engineer.</note>
</trans-unit>
<trans-unit id="use %d if %@ is not in state of %@ %@" xml:space="preserve">
<source>use %1$d if %2$@ is not in state of %3$@ %4$@</source>
<target>如果%2$@未处于%3$@%4$@状态则使用 %1$d</target>
Expand Down
Binary file not shown.
8 changes: 6 additions & 2 deletions PrincessGuide.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@
12F1263120B95684005C9659 /* PassiveAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12F1263020B95684005C9659 /* PassiveAction.swift */; };
12F1263320B956C0005C9659 /* PassiveInermittentAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12F1263220B956C0005C9659 /* PassiveInermittentAction.swift */; };
12F1263B20BC23F5005C9659 /* SearchableCardTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12F1263A20BC23F5005C9659 /* SearchableCardTableViewController.swift */; };
12F5DFD42C33E47E0054E0ED /* EnvironmentEffectAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12F5DFD32C33E47E0054E0ED /* EnvironmentEffectAction.swift */; };
12F7500120921D7A00E11CC8 /* EquipmentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12F7500020921D7A00E11CC8 /* EquipmentViewController.swift */; };
12F7500820935F2500E11CC8 /* HomeCardTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12F7500720935F2500E11CC8 /* HomeCardTableViewController.swift */; };
12F7643523F7E0660080398B /* KnightGuardAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 12F7643423F7E0660080398B /* KnightGuardAction.swift */; };
Expand Down Expand Up @@ -705,6 +706,7 @@
12F1263020B95684005C9659 /* PassiveAction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PassiveAction.swift; sourceTree = "<group>"; };
12F1263220B956C0005C9659 /* PassiveInermittentAction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PassiveInermittentAction.swift; sourceTree = "<group>"; };
12F1263A20BC23F5005C9659 /* SearchableCardTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchableCardTableViewController.swift; sourceTree = "<group>"; };
12F5DFD32C33E47E0054E0ED /* EnvironmentEffectAction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnvironmentEffectAction.swift; sourceTree = "<group>"; };
12F7500020921D7A00E11CC8 /* EquipmentViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EquipmentViewController.swift; sourceTree = "<group>"; };
12F7500720935F2500E11CC8 /* HomeCardTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeCardTableViewController.swift; sourceTree = "<group>"; };
12F7643423F7E0660080398B /* KnightGuardAction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KnightGuardAction.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1479,6 +1481,7 @@
12E9FBDF2933A64E006BDCA0 /* EnergyDamageReduceAction.swift */,
12A7A69729C453B400984577 /* ChangeSpeedOverrideFieldAction.swift */,
12A7A69929C453CB00984577 /* UnableStateGuardAction.swift */,
12F5DFD32C33E47E0054E0ED /* EnvironmentEffectAction.swift */,
);
path = Action;
sourceTree = "<group>";
Expand Down Expand Up @@ -1874,6 +1877,7 @@
12D7A92421AACB64004E22C6 /* UniqueEquipmentTableViewController.swift in Sources */,
12F125E520B93D99005C9659 /* ReflexiveAction.swift in Sources */,
12F125D720B92686005C9659 /* DamageAction.swift in Sources */,
12F5DFD42C33E47E0054E0ED /* EnvironmentEffectAction.swift in Sources */,
1280DE3320A09278008D9D72 /* CDPropertyViewController.swift in Sources */,
12F1263120B95684005C9659 /* PassiveAction.swift in Sources */,
1223A8EA20F0A41900C98BB2 /* CardWithBirthdayCollectionViewCell.swift in Sources */,
Expand Down Expand Up @@ -2291,7 +2295,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = PrincessGuide/PrincessGuide.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 249;
CURRENT_PROJECT_VERSION = 250;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = MXJJEEMF3U;
INFOPLIST_FILE = PrincessGuide/Info.plist;
Expand All @@ -2316,7 +2320,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = PrincessGuide/PrincessGuide.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 249;
CURRENT_PROJECT_VERSION = 250;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = MXJJEEMF3U;
INFOPLIST_FILE = PrincessGuide/Info.plist;
Expand Down
2 changes: 1 addition & 1 deletion PrincessGuide/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.1.4</string>
<key>CFBundleVersion</key>
<string>249</string>
<string>250</string>
<key>Document version</key>
<integer>3</integer>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
3 changes: 3 additions & 0 deletions PrincessGuide/Model/Action/ActionParameter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ class ActionParameter {
return ChangeSpeedOverrideFieldAction.self
case 100:
return UnableStateGuardAction.self
case 105:
return EnvironmentEffectAction.self
default:
return ActionParameter.self
}
Expand Down Expand Up @@ -620,4 +622,5 @@ enum ActionType: Int {
case energyDamageReduce
case changeSpeedOverrideField
case unableStateGuard = 100
case environmentEffect = 105
}
28 changes: 28 additions & 0 deletions PrincessGuide/Model/Action/EnvironmentEffectAction.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// EnvironmentEffectAction.swift
// PrincessGuide
//
// Created by zzk on 2024/7/2.
// Copyright © 2024 zzk. All rights reserved.
//

import Foundation

class EnvironmentEffectAction: ActionParameter {

var durationValues: [ActionValue] {
return [
ActionValue(initial: String(actionValue1), perLevel: String(actionValue2), key: nil, startIndex: 1),
]
}

override func localizedDetail(of level: Int, property: Property = .zero, style: CDSettingsViewController.Setting.ExpressionStyle = CDSettingsViewController.Setting.default.expressionStyle) -> String {
let format = NSLocalizedString("Cast an environment effect of ID: %d for [%@]s.", comment: "")
return String(
format: format,
actionDetail2,
buildExpression(of: level, actionValues: durationValues, roundingRule: nil, style: style, property: property)
)
}

}
Loading

0 comments on commit 4e2c467

Please sign in to comment.