Skip to content

Commit

Permalink
fix Trickster
Browse files Browse the repository at this point in the history
  • Loading branch information
uhyo committed Sep 29, 2020
1 parent 89fe857 commit 01c0729
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions language/ja/game_client_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ messages:
Hitokotonushinokami: '占う相手を選択してください'
Gambler: '賭けに出るかどうか選択してください'
Faker: '賭けに出るかどうか選択してください'
Trickster: '絆を結ぶ2人を1人ずつ選択してください'
GameMaster: 'GM用コマンド'

# Texts for GameMaster form.
Expand Down
1 change: 1 addition & 0 deletions language/ja/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ CynthiaWolf:
Trickster:
# First select.
select1: '{{name}}は絆を結ぶ1人目に{{target}}を選びました。'
select2: '{{name}}は絆を結ぶ2人目に{{target}}を選びました。'
# Error: select another player
noSelectTwice: 'もう一人別の人を選んでください。'
# Select a target.
Expand Down
9 changes: 9 additions & 0 deletions server/rpc/game/game.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10616,10 +10616,19 @@ class Trickster extends Fox
return game.i18n.t "roles:Trickster.noSelectTwice"

@setTarget playerid
log=
mode:"skill"
to:@id
comment: game.i18n.t "roles:Trickster.select2", {name: @name, target: pl.name}
splashlog game.id,game,log
# 二人が決定した
null
midnight:(game,midnightSort)->
plpls=[game.getPlayer(@flag), game.getPlayer(@target)]

if !plpls[0] || !plpls[1]
return

for pl,i in plpls
# 2人ぶん処理
pl.touched game,@id
Expand Down

0 comments on commit 01c0729

Please sign in to comment.