forked from retoor/devplacepy
feat: add steal mechanic to Code Farm with 60s protection window and half-coin reward
This commit is contained in:
@@ -1933,6 +1933,18 @@ ACTIONS: tuple[Action, ...] = (
|
||||
Param(name="slot", location="body", description="Plot slot index.", required=True, type="integer"),
|
||||
),
|
||||
),
|
||||
Action(
|
||||
name="game_steal",
|
||||
method="POST",
|
||||
path="/game/farm/{username}/steal",
|
||||
summary="Steal a ready build from another player's Code Farm once its 60s protection window has passed",
|
||||
handler="http",
|
||||
requires_auth=True,
|
||||
params=(
|
||||
path("username", "The farm owner's username."),
|
||||
Param(name="slot", location="body", description="Plot slot index.", required=True, type="integer"),
|
||||
),
|
||||
),
|
||||
Action(
|
||||
name="game_fertilize",
|
||||
method="POST",
|
||||
|
||||
Reference in New Issue
Block a user