+
+ Troop/Gold Ratio
+
+ ${(this.targetTroopRatio * 100).toFixed(0)}%
+ (${renderTroops(this._population * this.targetTroopRatio)} troops)
+
+
+
this.handleTroopRatioSliderInput(e)}
+ class="w-full h-2 accent-blue-500 cursor-pointer"
+ />
+
`;
}
diff --git a/src/core/Schemas.ts b/src/core/Schemas.ts
index 86c74292d..8e4708e1c 100644
--- a/src/core/Schemas.ts
+++ b/src/core/Schemas.ts
@@ -41,6 +41,7 @@ export type Intent =
| EmojiIntent
| DonateGoldIntent
| DonateTroopsIntent
+ | TargetTroopRatioIntent
| BuildUnitIntent
| EmbargoIntent
| QuickChatIntent
@@ -66,6 +67,9 @@ export type TargetPlayerIntent = z.infer