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

5import random 

6 

7# -- third party -- 

8# -- own -- 

9from thb import characters 

10from thb.meta.common import ui_meta 

11 

12 

13# -- code -- 

14@ui_meta(characters.patchouli.Library) 

15class Library: 

16 # Skill 

17 name = '图书' 

18 description = '|B锁定技|r,每当你使用非延时符卡时,你摸一张牌;你使用符卡无距离限制。' 

19 

20 

21@ui_meta(characters.patchouli.LibraryDrawCards) 

22class LibraryDrawCards: 

23 def effect_string(self, act): 

24 return '|G【%s】|r发动了|G图书|r技能,摸1张牌。' % ( 

25 act.source.ui_meta.name, 

26 ) 

27 

28 def sound_effect(self, act): 

29 return random.choice([ 

30 'thb-cv-patchouli_library1', 

31 'thb-cv-patchouli_library2', 

32 ]) 

33 

34 

35@ui_meta(characters.patchouli.Knowledge) 

36class Knowledge: 

37 # Skill 

38 name = '博学' 

39 description = '|B锁定技|r,黑桃符卡对你无效。' 

40 

41 

42@ui_meta(characters.patchouli.KnowledgeAction) 

43class KnowledgeAction: 

44 def effect_string(self, act): 

45 return '|G【%s】|r一眼就看穿了这张符卡,直接挡下。' % ( 

46 act.source.ui_meta.name, 

47 ) 

48 

49 def sound_effect(self, act): 

50 return 'thb-cv-patchouli_knowledge' 

51 

52 

53@ui_meta(characters.patchouli.Patchouli) 

54class Patchouli: 

55 # Character 

56 name = '帕秋莉' 

57 title = '不动的大图书馆' 

58 illustrator = '月见' 

59 cv = 'shourei小N' 

60 

61 port_image = 'thb-portrait-patchouli' 

62 figure_image = 'thb-figure-patchouli' 

63 miss_sound_effect = 'thb-cv-patchouli_miss'