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.youmu.Youmu) 

13class Youmu: 

14 # Character 

15 name = '魂魄妖梦' 

16 title = '半分虚幻的厨师' 

17 illustrator = '霏茶' 

18 cv = '小羽' 

19 

20 port_image = 'thb-portrait-youmu' 

21 figure_image = 'thb-figure-youmu' 

22 miss_sound_effect = 'thb-cv-youmu_miss' 

23 

24 

25@ui_meta(characters.youmu.Mijincihangzhan) 

26class Mijincihangzhan: 

27 # Skill 

28 name = '迷津慈航斩' 

29 description = '|B锁定技|r,你使用的|G弹幕|r需要连续使用两张|G擦弹|r来抵消;与你进行|G弹幕战|r的角色每次需要连续打出两张|G弹幕|r。' 

30 

31 

32@ui_meta(characters.youmu.MijincihangzhanAttack) 

33class MijincihangzhanAttack: 

34 def effect_string_apply(self, act): 

35 src = act.source 

36 return '|G【%s】|r在弹幕中注入了妖力,弹幕形成了一个巨大的光刃,怕是不能轻易地闪开的!' % ( 

37 src.ui_meta.name, 

38 ) 

39 

40 def sound_effect(self, act): 

41 return 'thb-cv-youmu_mjchz' 

42 

43 

44@ui_meta(characters.youmu.NitoryuuWearEquipmentAction) 

45class NitoryuuWearEquipmentAction: 

46 def sound_effect(self, act): 

47 card = act.card 

48 tgt = act.target 

49 equips = tgt.equips 

50 cat = card.equipment_category 

51 if cat == 'weapon' and [e for e in equips if e.equipment_category == 'weapon']: 

52 return 'thb-cv-youmu_nitoryuu' 

53 

54 

55@ui_meta(characters.youmu.Nitoryuu) 

56class Nitoryuu: 

57 # Skill 

58 name = '二刀流' 

59 description = ( 

60 '你可以额外装备一把武器,当你同时装备了两把武器时,攻击范围按其中较高者计算;武器技能同时有效,且你额外增加一点干劲。\n' 

61 '|B|R>> |r当你受到|G人形操控|r的效果生效时,需交出全部的武器。' 

62 ) 

63 

64 def effect_string(self, act): 

65 return '|G【%s】|r弃置了自己的一把武器。' % ( 

66 act.target.ui_meta.name, 

67 )