# Coverage for thb/meta/characters/mokou.py : 82%

## 34 statements 27 run 7 missing 0 excluded 0 partial

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 -*-

2

3# -- stdlib --

4# -- third party --

5# -- own --

6 from thb import characters

7 from thb.meta.common import ui_meta

8

9# -- code --

10

11

12@ui_meta(characters.mokou.Mokou)

13 class Mokou:

14 # Character

15 name = '藤原妹红'

16 title = 'FFF团资深团员'

17 illustrator = '六仔OwO'

18 cv = '小羽'

19

20 port_image = 'thb-portrait-mokou'

21 figure_image = 'thb-figure-mokou'

22 miss_sound_effect = 'thb-cv-mokou_miss'

23

24

25@ui_meta(characters.mokou.Ashes)

26 class Ashes:

27 # Skill

28 name = '浴火'

29 description = '结束阶段开始时，你可以失去1点体力，然后摸两张牌。'

30

31

32@ui_meta(characters.mokou.AshesAction)

33 class AshesAction:

34 def effect_string_before(self, act):

35 return '|G【%s】|r：“不~可~饶~恕~！”' % (

36 act.target.ui_meta.name

37 )

38

39 def sound_effect(self, act):

40 return 'thb-cv-mokou_ashes'

41

42

43@ui_meta(characters.mokou.AshesHandler)

44 class AshesHandler:

45 # choose_option meta

46 choose_option_buttons = (('发动', True), ('不发动', False))

47 choose_option_prompt = '你要发动【浴火】吗？'

48

49

50@ui_meta(characters.mokou.Reborn)

51 class Reborn:

52 # Skill

53 name = '重生'

54 description = '准备阶段开始时，你可以弃置X张红色牌，然后回复1点体力。（X为你的体力值）'

55

56

57@ui_meta(characters.mokou.RebornAction)

58 class RebornAction:

59 def effect_string(self, act):

60 return '|G【%s】|r使用了|G重生|r。' % (

61 act.target.ui_meta.name

62 )

63

64 def sound_effect(self, act):

65 return 'thb-cv-mokou_reborn'

66

67

68@ui_meta(characters.mokou.RebornHandler)

69 class RebornHandler:

70 # choose_card meta

71 def choose_card_text(self, act, cards):

72 if act.cond(cards):

73 return (True, '弃置这些牌并回复1点体力')

74 else:

75 return (False, '重生：选择%d张红色牌弃置并回复一点体力' % act.target.life)