Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# -*- coding: utf-8 -*- 

2from __future__ import annotations 

3 

4# -- stdlib -- 

5# -- third party -- 

6# -- own -- 

7from thb import characters 

8from thb.meta.common import ui_meta 

9 

10 

11# -- code -- 

12@ui_meta(characters.minoriko.Foison) 

13class Foison: 

14 # Skill 

15 name = '丰收' 

16 description = '|B锁定技|r,摸牌阶段摸牌后,你将手牌数补至五张。' 

17 

18 

19@ui_meta(characters.minoriko.FoisonDrawCardStage) 

20class FoisonDrawCardStage: 

21 def effect_string(self, act): 

22 return '大丰收!|G【%s】|r一下子收获了%d张牌!' % ( 

23 act.source.ui_meta.name, 

24 act.amount, 

25 ) 

26 

27 def sound_effect(self, act): 

28 return 'thb-cv-minoriko_foison' 

29 

30 

31@ui_meta(characters.minoriko.AutumnFeast) 

32class AutumnFeast: 

33 # Skill 

34 name = '秋祭' 

35 description = '出牌阶段限一次,你可以将两张红色牌当|G五谷丰登|r使用。' 

36 

37 def clickable(self): 

38 me = self.me 

39 if not self.my_turn(): return False 

40 if self.limit1_skill_used('autumnfeast_tag'): return False 

41 

42 if not (me.cards or me.showncards or me.equips): 

43 return False 

44 

45 return True 

46 

47 def is_action_valid(self, sk, tl): 

48 cl = sk.associated_cards 

49 from thb.cards.classes import Card 

50 if len(cl) != 2 or any(c.color != Card.RED for c in cl): 

51 return (False, '请选择2张红色的牌!') 

52 return (True, '发麻薯啦~') 

53 

54 def effect_string(self, act): 

55 # for LaunchCard.ui_meta.effect_string 

56 source = act.source 

57 return ( 

58 '|G【%s】|r:麻薯年年有,今年特别多!' 

59 ) % ( 

60 source.ui_meta.name, 

61 ) 

62 

63 def sound_effect(self, act): 

64 return 'thb-cv-minoriko_autumnfeast' 

65 

66 

67@ui_meta(characters.minoriko.AkiTribute) 

68class AkiTribute: 

69 # Skill 

70 name = '上贡' 

71 description = '|B锁定技|r,结算|G五谷丰登|r时,你首先选择牌,结算完后,你将剩余的牌置于一名角色的明牌区。' 

72 

73 

74@ui_meta(characters.minoriko.AkiTributeCollectCard) 

75class AkiTributeCollectCard: 

76 def sound_effect(self, act): 

77 return 'thb-cv-minoriko_akitribute' 

78 

79 

80@ui_meta(characters.minoriko.AkiTributeHandler) 

81class AkiTributeHandler: 

82 

83 def target(self, pl): 

84 if not pl: 84 ↛ 85line 84 didn't jump to line 85, because the condition on line 84 was never true

85 return (False, '请选择1名玩家,将剩余的牌置入该玩家的明牌区') 

86 

87 return (True, '浪费粮食,可不是好行为!') 

88 

89 

90@ui_meta(characters.minoriko.Minoriko) 

91class Minoriko: 

92 # Character 

93 name = '秋穰子' 

94 title = '没人气的丰收神' 

95 illustrator = '和茶' 

96 cv = 'VV' 

97 

98 port_image = 'thb-portrait-minoriko' 

99 figure_image = 'thb-figure-minoriko' 

100 miss_sound_effect = 'thb-cv-minoriko_miss'