コード例 #1
0
ファイル: bequeathed_strategy.py プロジェクト: neuront/sgs
 def _hint_detail(self):
     targets = self.game_control.players_from_current()
     targets.remove(self.player)
     import ext.src.hint_common as hints
     return hints.filter_empty(hints.allow_abort(hints.add_method_to(
                     hints.basic_cards_hint(), 'bequeathed strategy',
                     hints.join_req(hints.min_card_count(self.cards, 1),
                                    hints.fixed_target_count(targets, 1)))))
コード例 #2
0
ファイル: heavenly_scent.py プロジェクト: neuront/sgs
 def _hint_detail(self):
     cards = self.game_control.player_cards_at(self.player, 'onhand')
     cards = filter(lambda c: c.suit() == card.HEART, cards)
     targets = self.game_control.players_from_current()
     targets.remove(self.player)
     import ext.src.hint_common as hints
     return hints.filter_empty(hints.allow_abort(hints.add_method_to(
                     hints.basic_cards_hint(), SKILL,
                     hints.join_req(hints.fixed_card_count(cards, 1),
                                    hints.fixed_target_count(targets, 1)))))
コード例 #3
0
ファイル: vermilion_feather_fan.py プロジェクト: neuront/sgs
 def __init__(self, game_control, slashing):
     hint = hints.filter_empty(hints.allow_abort(hints.add_method_to(
                     hints.basic_cards_hint(), EQUIP_NAME, hints.forbid())))
     AcceptMessage.__init__(self, game_control, [slashing.user], 'discard',
                            hint, self.on_message)
     self.slashing = slashing
コード例 #4
0
ファイル: arson_attack.py プロジェクト: neuront/sgs
 def _hint_detail(self):
     cards = self.game_control.player_cards_at(self.player, 'onhand')
     cards = filter(lambda c: c.suit() == self.suit, cards)
     return hints.filter_empty(hints.allow_abort(hints.add_method_to(
                                         hints.basic_cards_hint(), 'discard',
                                         hints.fixed_card_count(cards, 1))))
コード例 #5
0
ファイル: arson_attack.py プロジェクト: neuront/sgs
 def _hint_detail(self):
     cards = self.game_control.player_cards_at(self.player, 'onhand')
     return hints.filter_empty(hints.add_method_to(
         hints.basic_cards_hint(), 'show', hints.fixed_card_count(cards, 1)))