mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 13:33:49 +00:00
create troop slider
This commit is contained in:
@@ -71,6 +71,8 @@ export class Executor {
|
||||
return new DonateExecution(intent.sender, intent.recipient, intent.troops)
|
||||
} else if (intent.type == "nuke") {
|
||||
return new NukeExecution(intent.sender, new Cell(intent.x, intent.y), intent.magnitude)
|
||||
} else if (intent.type == "troop_ratio") {
|
||||
return new SetTargetTroopRatioExecution(intent.player, intent.ratio)
|
||||
} else {
|
||||
throw new Error(`intent type ${intent} not found`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user