# Coverage for thb/meta/characters/yugi.py : 98%

## 47 statements 46 run 1 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 from __future__ import annotations

3

4# -- stdlib --

5# -- third party --

6# -- own --

7 from thb import characters

8 from thb.meta.common import ui_meta

9

10

11# -- code --

12@ui_meta(characters.yugi.Yugi)

13 class Yugi:

14 # Character

15 name = '星熊勇仪'

16 title = '人所谈论的怪力乱神'

17 illustrator = '渚FUN'

18 cv = '北斗夜'

19

20 port_image = 'thb-portrait-yugi'

21 figure_image = 'thb-figure-yugi'

22 miss_sound_effect = 'thb-cv-yugi_miss'

23

24

25@ui_meta(characters.yugi.YugiKOF)

26 class YugiKOF:

27 # Character

28 name = '星熊勇仪'

29 title = '人所谈论的怪力乱神'

30 illustrator = '渚FUN'

31 cv = '北斗夜'

32

33 port_image = 'thb-portrait-yugi'

34 figure_image = 'thb-figure-yugi'

35 miss_sound_effect = 'thb-cv-yugi_miss'

36

37 notes = '|RKOF修正角色|r'

38

39

40@ui_meta(characters.yugi.Assault)

41 class Assault:

42 # Skill

43 name = '强袭'

44 description = '|B锁定技|r，你与其他角色计算距离时始终-1。'

45

46 no_display = False

47

48

49@ui_meta(characters.yugi.AssaultAttack)

50 class AssaultAttack:

51 name = '强袭'

52

53 def sound_effect(self, act):

54 return 'thb-cv-yugi_assaultkof'

55

56

57@ui_meta(characters.yugi.AssaultKOFHandler)

58 class AssaultKOFHandler:

59 choose_option_prompt = '你要发动【强袭】吗？'

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

61

62

63@ui_meta(characters.yugi.AssaultKOF)

64 class AssaultKOF:

65 # Skill

66 name = '强袭'

67 description = '|B登场技|r，你登场时可以视为使用了一张|G弹幕|r。'

68

69 no_display = False

70

71

72@ui_meta(characters.yugi.FreakingPower)

73 class FreakingPower:

74 # Skill

75 name = '怪力'

76 description = '每当你使用|G弹幕|r指定了其他角色时，你可以进行一次判定，若结果为红，则此|G弹幕|r不能被响应；若结果为黑，则此|G弹幕|r造成伤害后，你弃置其一张牌。'

77

78

79@ui_meta(characters.yugi.FreakingPowerAction)

80 class FreakingPowerAction:

81 fatetell_display_name = '怪力'

82

83 def effect_string_before(self, act):

84 return '|G【%s】|r稍微认真了一下，弹幕以惊人的速度冲向|G【%s】|r' % (

85 act.source.ui_meta.name,

86 act.target.ui_meta.name,

87 )

88

89 def sound_effect(self, act):

90 return 'thb-cv-yugi_fp'

91

92

93@ui_meta(characters.yugi.FreakingPowerHandler)

94 class FreakingPowerHandler:

95 # choose_option

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

97 choose_option_prompt = '你要发动【怪力】吗？'