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

2 

3import sys 

4import os 

5 

6# -- begin settings -- 

7VERSION = 'V270' 

8 

9CWD = os.getcwd() 

10BASEDIR = os.path.dirname(os.path.realpath(__file__)) 

11NAME_SERVER = 'thbattle.net' 

12 

13if sys.platform == 'win32': 13 ↛ 14line 13 didn't jump to line 14, because the condition on line 13 was never true

14 LOGIC_UPDATE_BASE = "src" 

15 LOGIC_UPDATE_SERVER = "src.envolve.thbattle.net" 

16 INTERPRETER_UPDATE_BASE = "Python27" 

17 INTERPRETER_UPDATE_SERVER = "interpreter.envolve.thbattle.net" 

18elif sys.platform == "darwin": 18 ↛ 19line 18 didn't jump to line 19, because the condition on line 18 was never true

19 LOGIC_UPDATE_BASE = "src" 

20 LOGIC_UPDATE_SERVER = "src.envolve.thbattle.net" 

21 INTERPRETER_UPDATE_BASE = "osx-eggs" 

22 INTERPRETER_UPDATE_SERVER = "osx-eggs.envolve.thbattle.net" 

23else: 

24 LOGIC_UPDATE_BASE = BASEDIR 

25 LOGIC_UPDATE_SERVER = "src.envolve.thbattle.net" 

26 INTERPRETER_UPDATE_BASE = None 

27 INTERPRETER_UPDATE_SERVER = None 

28 

29HALL_NOTICE_URL = 'http://www.thbattle.net/notice.txt' 

30 

31IS_PROTON = hasattr(os, 'uname') and ''.join(os.uname()).startswith('LinuxProton') 

32 

33if IS_PROTON: 33 ↛ 39line 33 didn't jump to line 39, because the condition on line 33 was never false

34 # for debug 

35 # SENTRY_DSN = 'https://40f57b33d5814213b078a1de139cc270:5dab5dba0fdb4cb98df6c13766637726@sentry.thbattle.net/3' 

36 SENTRY_DSN = '' 

37else: 

38 # SENTRY_DSN = 'https://3f966ce5d9d34967be39379df0e26279:69245de6617c4357af30ed99f05894db@sentry.thbattle.net/2' 

39 SENTRY_DSN = '' 

40 

41 

42TESTING_CHARACTERS = ( 

43) 

44 

45 

46class ServerNames: 

47 forum = '论坛' 

48 localhost = '本机' 

49 lake = '雾之湖' 

50 forest = '魔法之森' 

51 hakurei = '博丽神社' 

52 aya = '文文专访' 

53 

54 

55def _get_box(vlist): 

56 xl = [i[0] for i in vlist] 

57 yl = [i[1] for i in vlist] 

58 x0, x1 = min(xl) - 5, max(xl) + 10 

59 y0, y1 = min(yl) - 5, max(yl) + 10 

60 return x0, y0, x1 - x0, y1 - y0 

61 

62 

63class ServerList: 

64 

65 class hakurei: 

66 address = ('cngame.thbattle.net', 8999) 

67 branch = 'origin/testing' 

68 polygon = [ 

69 (878, 423), (829, 409), (760, 376), (748, 346), (787, 329), 

70 (863, 313), (929, 322), (970, 330), (992, 366), (968, 399), 

71 ] 

72 box = _get_box(polygon) 

73 description = ( 

74 '|R没什么香火钱 博丽神社|r\n\n' 

75 '冷清的神社,不过很欢迎大家去玩的,更欢迎随手塞一点香火钱!' 

76 '出手大方的话,说不定会欣赏到博丽神社历代传下来的10万元COS哦。\n\n' 

77 '|R|B注意:这是测试服务器,并不保证稳定、与正常服务器的同步!|r\n\n' 

78 '|DB服务器地址: %s|r' 

79 ) % repr(address) 

80 

81 if IS_PROTON: 81 ↛ 95line 81 didn't jump to line 95, because the condition on line 81 was never false

82 class localhost: 

83 address = ('127.0.0.1', 9999) 

84 branch = 'HEAD' 

85 update_url = None 

86 polygon = [ 

87 (891, 704), (839, 707), (740, 601), (749, 575), (834, 570), 

88 (947, 576), (986, 597), (991, 675), (964, 696), 

89 ] 

90 box = _get_box(polygon) 

91 description = ( 

92 '|R你自己的本机服务器|r' 

93 ) 

94 

95 class lake: 

96 address = ('cngame.thbattle.net', 9999) 

97 branch = 'origin/production' 

98 polygon = [ 

99 (569, 510), (514, 501), (489, 474), (514, 449), (585, 439), 

100 (647, 447), (670, 457), (671, 487), (628, 504), 

101 ] 

102 box = _get_box(polygon) 

103 description = ( 

104 '|R这里没有青蛙 雾之湖|r\n\n' 

105 '一个让人开心的地方。只是游客普遍反应,游玩结束后会感到自己的智商被拉低了一个档次。' 

106 '另外,请不要把青蛙带到这里来。这不是规定,只是一个建议。\n\n' 

107 '|DB服务器地址: %s|r' 

108 ) % repr(address) 

109 

110 class forest: 

111 address = ('cngame.thbattle.net', 9999) 

112 branch = 'origin/production' 

113 polygon = [ 

114 (360, 415), (237, 380), (197, 309), (222, 199), (285, 159), 

115 (397, 150), (524, 168), (611, 256), (592, 318), (536, 359), 

116 ] 

117 box = _get_box(polygon) 

118 description = ( 

119 '|R光明牛奶指定销售地点 魔法之森|r\n\n' 

120 '森林里好玩的东西很多,比如被捉弄什么的。' 

121 '旁边有一个神奇的物品店,只是店主有点变态。\n\n' 

122 '|DB服务器地址: %s|r' 

123 ) % repr(address) 

124 

125 

126NOTICE = ''' 

127|s2ff0000ff|W现在所有的房间内聊天都会记录日志,请文明游戏,并且不要在聊天中透露敏感信息。黑幕组会根据聊天日志对违规玩家做处罚。|r 

128 

129|B最近更新情况:|r 

130新人物:西行寺幽幽子 

131 

132* 上白泽慧音因为需要更多调整暂时没有放出 

133 

134论坛:www.thbattle.net 贴吧:东方符斗祭吧 玩家群: 244369953(较热闹的水群)296820759(萌新群) 

135 

136大型幻想对撞机 & 丝风 Presents 

137'''.strip()