Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.39 KB | None | 0 0
  1. language = ko
  2.  
  3. #$ lab_maintain_session = true
  4. travel_delay = 15
  5. ## 방을 이동해도 채팅을 지우지 않음 ##
  6. #$ lab_disable_chat_clear = true
  7. #$ lab_sound_on = true
  8.  
  9.  
  10. ## 웹죽 세션 강제 유지 및 잠수 알림 (5분 이상 입력이 없어도 종료되지 않음) ##
  11. hp_colour = 100:green, 99:lightgrey, 75:yellow, 50:lightred, 25:red
  12. mp_colour = 100:green, 99:lightgrey, 75:yellow, 50:lightred, 25:red
  13. stat_colour = 3:red, 7:lightred
  14.  
  15. auto_butcher = hungry
  16. confirm_butcher = never
  17. easy_eat_chunks = true
  18. auto_eat_chunks = true
  19. auto_drop_chunks = yes
  20. easy_eat_contaminated = true
  21. force_more_message = finished your manual
  22.  
  23. force_more_message += The mighty Pandemonium lord .* resides here
  24.  
  25. force_more_message += god:(sends|finds|silent|anger)
  26.  
  27. force_more_message += ((giant|floating|shining) eye|eye of draining).*into view
  28. force_more_message += (moth of wrath|ghost moth|torpor snail).*into view
  29. force_more_message += (guardian serpent|draconian shifter|convoker).*into view
  30. force_more_message += (flayed ghost|greater mummy|mummy priest|fiend|tzitzimitl).*into view
  31. force_more_message += (tormentor|curse toe|curse skull).*into view
  32. force_more_message += (hellion|hell sentinel|deep elf sorcerer).*into view
  33. force_more_message += (deep elf high priest|zealout|scorcher).*into view
  34. force_more_message += (ancient lich|orb of fire|executioner|juggernaut|shrike).*into view
  35.  
  36. force_more_message += skill increases to level
  37.  
  38.  
  39. note_items += experience,of resistance, Archmagi
  40. note_items += crystal plate armour,dragon armour
  41. note_items += artefact,wand of (heal wounds|hasting|teleportation)
  42. note_messages += You feel monstrous
  43. note_messages += You pass through the gate
  44. note_messages += cast .* Abyss
  45. {
  46. ----------------------------------
  47. ---- Begin announce_damage_ko ----
  48. ----------------------------------
  49. local previous_hp = 0
  50. local previous_mp = 0
  51. local previous_form = ""
  52. local was_berserk_last_turn = false
  53.  
  54. function announce_damage_ko()
  55. local current_hp, max_hp = you.hp()
  56. local current_mp, max_mp = you.mp()
  57. --Things that increase hp/mp temporarily really mess with this
  58. local current_form = you.transform()
  59. local you_are_berserk = you.berserk()
  60. local max_hp_increased = false
  61. local max_hp_decreased = false
  62.  
  63. if (current_form ~= previous_form) then
  64. if (previous_form:find("dragon") or
  65. previous_form:find("statue") or
  66. previous_form:find("tree") or
  67. previous_form:find("ice")) then
  68. max_hp_decreased = true
  69. elseif (current_form:find("dragon") or
  70. current_form:find("statue") or
  71. current_form:find("tree") or
  72. current_form:find("ice")) then
  73. max_hp_increased = true
  74. end
  75. end
  76. if (was_berserk_last_turn and not you_are_berserk) then
  77. max_hp_decreased = true
  78. elseif (you_are_berserk and not was_berserk_last_turn) then
  79. max_hp_increased = true
  80. end
  81.  
  82. --crawl.mpr(string.format("previous_form is: %s", previous_form))
  83. --crawl.mpr(string.format("current_form is: %s", current_form))
  84. --crawl.mpr(string.format("max_hp_increased is: %s", max_hp_increased and "True" or "False"))
  85. --crawl.mpr(string.format("max_hp_decreased is: %s", max_hp_decreased and "True" or "False"))
  86.  
  87. --crawl.mpr(string:format("you_are_berserk is: %s", you_are_berserk and "True" or "False"))
  88. --crawl.mpr(string:format("was_berserk_last_turn is: %s", was_berserk_last_turn and "True" or "False"))
  89.  
  90.  
  91. --Skips message on initializing game
  92. if previous_hp > 0 then
  93. local hp_difference = previous_hp - current_hp
  94. local mp_difference = previous_mp - current_mp
  95.  
  96. if max_hp_increased or max_hp_decreased then
  97. if max_hp_increased then
  98. crawl.mpr("<green>이제 [" .. current_hp .. "/" .. max_hp .. "] 의 체력을 가지게 되었습니다.</green>")
  99. else
  100. crawl.mpr("<yellow>이제 [" .. current_hp .. "/" .. max_hp .. "] 의 체력을 가지게 되었습니다.</yellow>")
  101. end
  102. else
  103. --On losing health
  104. if (current_hp < previous_hp) then
  105. if current_hp <= (max_hp * 0.30) then
  106. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><lightred> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightred>")
  107. elseif current_hp <= (max_hp * 0.50) then
  108. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다. 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</red>")
  109. elseif current_hp <= (max_hp * 0.70) then
  110. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><yellow> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</yellow>")
  111. elseif current_hp <= (max_hp * 0.90) then
  112. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><lightgrey> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightgrey>")
  113. else
  114. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><green> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</green>")
  115. end
  116. if hp_difference > (max_hp * 0.20) then
  117. crawl.mpr("<lightred>악! 이건 너무 좆같다!</lightred>")
  118. end
  119. end
  120.  
  121. --On gaining more than 1 health
  122. if (current_hp > previous_hp) then
  123. --Removes the negative sign
  124. local health_inturn = (0 - hp_difference)
  125. if (health_inturn > 1) and not (current_hp == max_hp) then
  126. if current_hp <= (max_hp * 0.30) then
  127. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><lightred> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightred>")
  128. elseif current_hp <= (max_hp * 0.50) then
  129. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><red> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</red>")
  130. elseif current_hp <= (max_hp * 0.70) then
  131. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><yellow> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</yellow>")
  132. elseif current_hp <= (max_hp * 0.90) then
  133. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><lightgrey> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightgrey>")
  134. else
  135. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다. 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</green>")
  136. end
  137. end
  138. if (current_hp == max_hp) then
  139. crawl.mpr("<green>체력이 전부 회복되었습니다. (" .. current_hp .. ")</green>")
  140. end
  141. end
  142.  
  143. --On gaining more than 1 magic
  144. if (current_mp > previous_mp) then
  145. --Removes the negative sign
  146. local mp_inturn = (0 - mp_difference)
  147. if (mp_inturn > 1) and not (current_mp == max_mp) then
  148. if current_mp < (max_mp * 0.25) then
  149. crawl.mpr("<lightcyan>" .. mp_inturn .. "의 마력를 얻었습니다.</lightcyan><red> 현재 마력은 [" .. current_mp .. "/" .. max_mp .. "] 입니다.</red>")
  150. elseif current_mp < (max_mp * 0.50) then
  151. crawl.mpr("<lightcyan>" .. mp_inturn .. "의 마력을 얻었습니다.</lightcyan><yellow> 현재 마력은 [" .. current_mp .. "/" .. max_mp .. "] 입니다.</yellow>")
  152. else
  153. crawl.mpr("<lightcyan>" .. mp_inturn .. "의 마력을 얻었습니다.</lightcyan><green> 현재 마력은 [" .. current_mp .. "/" .. max_mp .. "] 입니다.</green>")
  154. end
  155. end
  156. if (current_mp == max_mp) then
  157. crawl.mpr("<lightcyan>마력이 전부 회복되었습니다. (" .. current_mp .. ")</lightcyan>")
  158. end
  159. end
  160.  
  161. --On losing magic
  162. if current_mp < previous_mp then
  163. if current_mp <= (max_mp / 5) then
  164. crawl.mpr("<lightcyan>현재 남은 마력은 </lightcyan><red>[" .. current_mp .. "/" ..max_mp .."] 입니다.</red>")
  165. elseif current_mp <= (max_mp / 2) then
  166. crawl.mpr("<lightcyan>현재 남은 마력은 </lightcyan><yellow>[" .. current_mp .. "/" ..max_mp .."] 입니다.</yellow>")
  167. else
  168. crawl.mpr("<lightcyan>현재 남은 마력은 </lightcyan><green>[" .. current_mp .. "/" ..max_mp .."] 입니다.</green>")
  169. end
  170. end
  171. end
  172. end
  173.  
  174. --Set previous hp/mp and form at end of turn
  175. previous_hp = current_hp
  176. previous_mp = current_mp
  177. previous_form = current_form
  178. was_berserk_last_turn = you_are_berserk
  179. end
  180. --------------------------------
  181. ---- End announce_damage_ko ----
  182. --------------------------------
  183. function ready()
  184.  
  185.  
  186. -- Enable AnnounceDamage.
  187. announce_damage_ko()
  188. end
  189.  
  190. }
  191.  
  192. {
  193. ----------------------------------
  194. ---- Begin announce_damage_ko ----
  195. ----------------------------------
  196. local previous_hp = 0
  197. local previous_mp = 0
  198. local previous_form = ""
  199. local was_berserk_last_turn = false
  200.  
  201. function announce_damage_ko()
  202. local current_hp, max_hp = you.hp()
  203. local current_mp, max_mp = you.mp()
  204. --Things that increase hp/mp temporarily really mess with this
  205. local current_form = you.transform()
  206. local you_are_berserk = you.berserk()
  207. local max_hp_increased = false
  208. local max_hp_decreased = false
  209.  
  210. if (current_form ~= previous_form) then
  211. if (previous_form:find("dragon") or
  212. previous_form:find("statue") or
  213. previous_form:find("tree") or
  214. previous_form:find("ice")) then
  215. max_hp_decreased = true
  216. elseif (current_form:find("dragon") or
  217. current_form:find("statue") or
  218. current_form:find("tree") or
  219. current_form:find("ice")) then
  220. max_hp_increased = true
  221. end
  222. end
  223. if (was_berserk_last_turn and not you_are_berserk) then
  224. max_hp_decreased = true
  225. elseif (you_are_berserk and not was_berserk_last_turn) then
  226. max_hp_increased = true
  227. end
  228.  
  229. --crawl.mpr(string.format("previous_form is: %s", previous_form))
  230. --crawl.mpr(string.format("current_form is: %s", current_form))
  231. --crawl.mpr(string.format("max_hp_increased is: %s", max_hp_increased and "True" or "False"))
  232. --crawl.mpr(string.format("max_hp_decreased is: %s", max_hp_decreased and "True" or "False"))
  233.  
  234. --crawl.mpr(string:format("you_are_berserk is: %s", you_are_berserk and "True" or "False"))
  235. --crawl.mpr(string:format("was_berserk_last_turn is: %s", was_berserk_last_turn and "True" or "False"))
  236.  
  237.  
  238. --Skips message on initializing game
  239. if previous_hp > 0 then
  240. local hp_difference = previous_hp - current_hp
  241. local mp_difference = previous_mp - current_mp
  242.  
  243. if max_hp_increased or max_hp_decreased then
  244. if max_hp_increased then
  245. crawl.mpr("<green>이제 [" .. current_hp .. "/" .. max_hp .. "] 의 체력을 가지게 되었습니다.</green>")
  246. else
  247. crawl.mpr("<yellow>이제 [" .. current_hp .. "/" .. max_hp .. "] 의 체력을 가지게 되었습니다.</yellow>")
  248. end
  249. else
  250. --On losing health
  251. if (current_hp < previous_hp) then
  252. if current_hp <= (max_hp * 0.30) then
  253. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><lightred> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightred>")
  254. elseif current_hp <= (max_hp * 0.50) then
  255. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다. 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</red>")
  256. elseif current_hp <= (max_hp * 0.70) then
  257. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><yellow> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</yellow>")
  258. elseif current_hp <= (max_hp * 0.90) then
  259. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><lightgrey> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightgrey>")
  260. else
  261. crawl.mpr("<red>" .. hp_difference .. "의 피해를 받았습니다.</red><green> 현재 남은 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</green>")
  262. end
  263. if hp_difference > (max_hp * 0.20) then
  264. crawl.mpr("<lightred>악! 이건 너무 좆같다!</lightred>")
  265. end
  266. end
  267.  
  268. --On gaining more than 1 health
  269. if (current_hp > previous_hp) then
  270. --Removes the negative sign
  271. local health_inturn = (0 - hp_difference)
  272. if (health_inturn > 1) and not (current_hp == max_hp) then
  273. if current_hp <= (max_hp * 0.30) then
  274. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><lightred> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightred>")
  275. elseif current_hp <= (max_hp * 0.50) then
  276. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><red> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</red>")
  277. elseif current_hp <= (max_hp * 0.70) then
  278. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><yellow> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</yellow>")
  279. elseif current_hp <= (max_hp * 0.90) then
  280. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다.</green><lightgrey> 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</lightgrey>")
  281. else
  282. crawl.mpr("<green>" .. health_inturn .. "의 체력을 얻었습니다. 현재 체력은 [" .. current_hp .. "/" .. max_hp .. "] 입니다.</green>")
  283. end
  284. end
  285. if (current_hp == max_hp) then
  286. crawl.mpr("<green>체력이 전부 회복되었습니다. (" .. current_hp .. ")</green>")
  287. end
  288. end
  289.  
  290. --On gaining more than 1 magic
  291. if (current_mp > previous_mp) then
  292. --Removes the negative sign
  293. local mp_inturn = (0 - mp_difference)
  294. if (mp_inturn > 1) and not (current_mp == max_mp) then
  295. if current_mp < (max_mp * 0.25) then
  296. crawl.mpr("<lightcyan>" .. mp_inturn .. "의 마력를 얻었습니다.</lightcyan><red> 현재 마력은 [" .. current_mp .. "/" .. max_mp .. "] 입니다.</red>")
  297. elseif current_mp < (max_mp * 0.50) then
  298. crawl.mpr("<lightcyan>" .. mp_inturn .. "의 마력을 얻었습니다.</lightcyan><yellow> 현재 마력은 [" .. current_mp .. "/" .. max_mp .. "] 입니다.</yellow>")
  299. else
  300. crawl.mpr("<lightcyan>" .. mp_inturn .. "의 마력을 얻었습니다.</lightcyan><green> 현재 마력은 [" .. current_mp .. "/" .. max_mp .. "] 입니다.</green>")
  301. end
  302. end
  303. if (current_mp == max_mp) then
  304. crawl.mpr("<lightcyan>마력이 전부 회복되었습니다. (" .. current_mp .. ")</lightcyan>")
  305. end
  306. end
  307.  
  308. --On losing magic
  309. if current_mp < previous_mp then
  310. if current_mp <= (max_mp / 5) then
  311. crawl.mpr("<lightcyan>현재 남은 마력은 </lightcyan><red>[" .. current_mp .. "/" ..max_mp .."] 입니다.</red>")
  312. elseif current_mp <= (max_mp / 2) then
  313. crawl.mpr("<lightcyan>현재 남은 마력은 </lightcyan><yellow>[" .. current_mp .. "/" ..max_mp .."] 입니다.</yellow>")
  314. else
  315. crawl.mpr("<lightcyan>현재 남은 마력은 </lightcyan><green>[" .. current_mp .. "/" ..max_mp .."] 입니다.</green>")
  316. end
  317. end
  318. end
  319. end
  320.  
  321. --Set previous hp/mp and form at end of turn
  322. previous_hp = current_hp
  323. previous_mp = current_mp
  324. previous_form = current_form
  325. was_berserk_last_turn = you_are_berserk
  326. end
  327. --------------------------------
  328. ---- End announce_damage_ko ----
  329. --------------------------------
  330. function ready()
  331.  
  332.  
  333. -- Enable AnnounceDamage.
  334. announce_damage_ko()
  335. end
  336.  
  337. }
  338. ### General identification ###
  339. menu += cyan:manual of
  340. menu += lightcyan:manual
  341. menu += lightmagenta:unidentified.*artefact.*
  342. menu += white:.*artefact.*
  343. menu += lightblue:unidentified .*(potion|scroll|wand|jewellery|spellbook|rod|magical staff)
  344. menu += magenta:.*known .*(ring of (dexterity|strength|intelligence|slaying|evasion|protection(?! from))|amulet of reflection)
  345. menu += inventory:lightgray:.*(book|jewellery|magical staff)
  346. # Ego items
  347. menu += lightblue:unidentified.*weapon.*(runed|glowing|enchanted)
  348. menu += lightblue:unidentified.*armour.*(runed|glowing|embroidered|shiny|dyed)
  349.  
  350. msc := message_colour
  351. msc += mute:returns to your side
  352. msc += mute:a demon appears
  353. msc += lightgrey:The deck of cards disappears
  354. msc += mute:puff of smoke
  355. msc += mute:carefully avoids
  356. msc += mute:is recalled
  357. msc += mute:wall.*burn.*your
  358. msc += mute:dissolves? into (sparkling lights|shadows)
  359. msc += mute:(crumbles|melts) away\.
  360. msc += mute:(merges|forms) itself .* the air
  361. msc += mute:you swap places
  362. msc += mute:your.*(looks stronger|shudders|resists)
  363. msc += mute:your.*(stumbles backwards|holds.*ground)
  364. msc += mute:your.*(blinks|safely over)
  365. msc += mute:(phases out.*|misses) (your|something).*
  366. msc += mute:your.*(picks up|drops)
  367. msc += mute:your.*basks in the mutagenic energy
  368. msc += mute:your.*(struggles|tears|pulls away).*(web|net)
  369.  
  370. ########################
  371. ### Message Channels ###
  372. ########################
  373.  
  374. channel.multiturn = mute
  375.  
  376. ##############
  377. ### Glyphs ###
  378. ##############
  379.  
  380. ## For item_glyph, subsequent matches override previous ones.
  381. item := item_glyph
  382.  
  383. ## Reasonable defaults
  384. item += potion:lightgrey
  385. item += scroll:lightgrey
  386. item += wand:lightgrey
  387. item += dangerous_item:blue
  388. item += useless_item:darkgrey
  389.  
  390. ### Potions ###
  391. item += potions? of.*(lignification|mutation):blue
  392. item += potions? of.*heal wounds:lightred
  393. item += potions? of.*(curing|flight):lightgrey
  394. item += potions? of.*(experience|beneficial mutation):white
  395. item += potions? of.*berserk:brown
  396. item += potions? of.*might:yellow
  397. item += potions? of.*brilliance:green
  398. item += potions? of.*(invisibility|agility):lightgreen
  399. item += potions? of.*cancellation:cyan
  400. item += potions? of.*cure mutation:lightcyan
  401. item += potions? of.*(magic|ambrosia):magenta
  402. item += potions? of.*(haste|resistance):lightmagenta
  403.  
  404. ### Scrolls ###
  405. item += scroll.*noise:blue
  406. item += scroll.*recharging:lightred
  407. item += scroll.*(amnesia|curse):lightgrey
  408. item += scroll.*acquirement:white
  409. : if you.race() == "Vampire" or you.race() == "Mummy"
  410. : or you.race() == "Ghoul" then
  411. item += scroll.*holy word:blue
  412. item += scroll.*torment:brown
  413. : else
  414. item += scroll.*holy word:brown
  415. item += scroll.*torment:blue
  416. : end
  417. item += scroll.*(summoning):yellow
  418. item += scroll.*(silence|vulnerability|immolation):green
  419. item += scroll.*(enchant|brand weapon):lightgreen
  420. item += scroll.*identify:cyan
  421. item += scroll.*magic mapping:lightcyan
  422. item += scroll.*(fog|teleport):magenta
  423. item += scroll.*(fear|blink):lightmagenta
  424.  
  425. ### Wands ###
  426. item += wand of.*random effects:blue
  427. item += wand of.*heal wounds:lightred
  428. ## 0.17
  429. item += wand of.*(flame|frost|magic dart):lightgrey
  430. item += wand of.*iceblast:white
  431. ## 0.17
  432. item += wand of.*(acid|fire|cold|drain):yellow
  433. ## 0.17
  434. item += wand of.*(lightning|fireball):brown
  435. item += wand of.*(slowing|confusion|polymorph):green
  436. item += wand of.*(invisibility|paralysis|enslavement):lightgreen
  437. item += wand of.*(digging|disintegration):cyan
  438. item += wand of.*teleportation:magenta
  439. item += wand of.*hasting:lightmagenta
  440.  
  441. ### General Identification ###
  442. item += ( rod ):yellow
  443. item += (identified|known).*(jewellery|magical staff):brown
  444. item += identified.*spellbook:magenta
  445. item += unidentified.*(potion|scroll|jewellery|wand|rod|magical staff).*:lightblue
  446. item += unidentified.*book:lightmagenta
  447. item += manual:lightcyan
  448. item += manual of:cyan
  449.  
  450. # Jewelry types
  451. item += known.*(ring of (dexterity|strength|intelligence|slaying|evasion|protection(?! from))|amulet of reflection):magenta
  452. item += identified.*artefact.*(jewellery):white
  453. item += unidentified.*artefact.*(jewellery).*:lightmagenta
  454. item += (a )?stones?$:lightgray
  455.  
  456. ### Food ###
  457. item += chunks?.*flesh:lightgrey
  458. : if you.race() == "Vampire" then
  459. item += potions? of blood:lightgrey
  460. : end
  461. item += mutagenic.*chunk:blue
  462. item += evil_eating.*chunk:red
  463. item += inedible.*chunk:darkgrey
  464. item += fruit:brown
  465. item += (pizza|jerky|jerkies):yellow
  466. item += royal jell:green
  467. item += bread ration:lightgreen
  468. item += meat ration:lightred
  469.  
  470. # Want this to override anything above
  471. item += useless:darkgrey
  472. # Only mark these types when forbidden; for other types it looks odd.
  473. item += forbidden.*(potion|scroll|food):red
  474.  
  475.  
  476. mons := mon_glyph
  477. # Monsters that can be easy to miss
  478. mons ^= * : aϱ
  479. mons ^= dancing weapon : cyan {
  480. mons ^= spectral weapon : lightcyan {
  481. # Classed Demonspawn
  482. mon += blood saint:9
  483. mon += chaos champion:9
  484. mon += warmonger:9
  485. mon += corrupter:9
  486. mon += black sun:9
  487.  
  488. # Wall glyphs; requires a font and terminal that can render these.
  489. feature += crystal wall {a?‘}
  490. feature += stone wall {a?’}
  491. feature += metal wall {a?“}
  492. feature += unnaturally hard rock wall {a??}
  493.  
  494. feature += altar {a?‘}
  495.  
  496. ##############
  497. # Autopickup #
  498. ##############
  499.  
  500. # Used
  501. # $ = gold
  502. # ? = scroll
  503. # ! = potion
  504. # : = book
  505. # " = jewellery
  506. # / = wand
  507. # % = food
  508. # } = miscellaneous
  509. # = rods
  510. # | = staves
  511. : if (you.god():find("Trog")) then
  512. autopickup += $?!:"/%}
  513. : else
  514. autopickup += $?!:"/%}
  515. : end
  516.  
  517. # Unused
  518. # ) = weapon
  519. # ( = missiles
  520. # [ = armour
  521. # X = corpses
  522.  
  523. # Allows easily dropping multiple items
  524. drop_mode += multi
  525. # Always show the full list of items when you pick up a stack
  526. pickup_mode += multi
  527. # Allows followers to pick up ANYTHING (take care not to lose artefacts)
  528. default_friendly_pickup += all
  529.  
  530. # Set Alias for Autopickup Exceptions
  531. ae := autopickup_exceptions
  532. ae += useless_item, dangerous_item, evil_item
  533.  
  534. # Autopickup artefacts
  535. ae += <artefact
  536.  
  537. # Armour/Weapon autopickup by rwbarton, enhanced by HDA with fixes from Bloaxor
  538. {
  539. add_autopickup_func(function(it, name)
  540.  
  541. local class = it.class(true)
  542. local armour_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots", body="Armour", shield="Shield"}
  543.  
  544. if (class == "armour") then
  545. if it.is_useless then return false end
  546.  
  547. sub_type = it.subtype()
  548. equipped_item = items.equipped_at(armour_slots[sub_type])
  549.  
  550. if (sub_type == "cloak") or (sub_type == "helmet") or (sub_type == "gloves") or (sub_type == "boots") then
  551. if not equipped_item then
  552. return true
  553. else
  554. return it.artefact or it.branded or it.ego
  555. end
  556. end
  557.  
  558. if (sub_type == "body") then
  559. if equipped_item then
  560. local armourname = equipped_item.name()
  561. if equipped_item.artefact or equipped_item.branded or equipped_item.ego or (equipped_item.plus > 2) or armourname:find("dragon") or armourname:find("troll") then
  562. return it.artefact
  563. else
  564. return it.artefact or it.branded or it.ego
  565. end
  566. end
  567. return true
  568. end
  569.  
  570. if (sub_type == "shield") then
  571. if equipped_item then
  572. return it.artefact or it.branded or it.ego
  573. end
  574. end
  575. end
  576. end)
  577. }
  578. ################################
  579.  
  580. # Auto Travel Support Function #
  581.  
  582. ################################
  583.  
  584.  
  585.  
  586. explore_stop = artefacts
  587.  
  588. explore_stop += greedy_visited_item_stack,stairs,shops
  589.  
  590. explore_stop += altars,portals,branches,runed_doors,greedy_sacrificeable
  591.  
  592.  
  593.  
  594. runrest_ignore_monster += butterfly:1
  595.  
  596.  
  597.  
  598. # Only stop resting when both HP/MP are full
  599.  
  600. rest_wait_both = true
  601.  
  602.  
  603.  
  604. # Set Alias'
  605.  
  606. stop := runrest_stop_message
  607.  
  608. ignore := runrest_ignore_message
  609.  
  610.  
  611.  
  612. ignore += You regained.*mp
  613.  
  614.  
  615.  
  616. # Annoyances -- Don't stop autotravel for these events
  617.  
  618. ignore += A.*toadstool withers and dies
  619.  
  620. ignore += disappears in a puff of smoke
  621.  
  622. ignore += engulfed in a cloud of smoke
  623.  
  624. ignore += engulfed in white fluffiness
  625.  
  626. ignore += grinding sound
  627.  
  628. ignore += in your inventory.*rotted away
  629.  
  630. ignore += safely over a trap
  631.  
  632. ignore += standing in the rain
  633.  
  634. ignore += toadstools? grow
  635.  
  636. ignore += You feel.*sick
  637.  
  638. ignore += You walk carefully through the
  639.  
  640.  
  641.  
  642. # Jiyva Messages
  643.  
  644. ignore += Jiyva appreciates your sacrifice
  645.  
  646. ignore += Jiyva gurgles merrily
  647.  
  648. ignore += Jiyva says: Divide and consume
  649.  
  650. ignore += You hear.*splatter
  651.  
  652.  
  653.  
  654. # Qazlal Messages
  655.  
  656. ignore += The plant is engulfed
  657.  
  658. ignore += You destroy the (bush|fungus|plant)
  659.  
  660. ignore += You displace your
  661.  
  662.  
  663.  
  664. # Bad things -- Stop autotravel for these events (duplicates some of HDAForceMore)
  665.  
  666. stop += (blundered into a|invokes the power of) Zot
  667.  
  668. stop += (devoid of blood|starving)
  669.  
  670. stop += A huge blade swings out and slices into you[^r]
  671.  
  672. stop += An alarm trap emits a blaring wail
  673.  
  674. stop += flesh start
  675.  
  676. stop += found a zot trap
  677.  
  678. stop += hear a soft click
  679.  
  680. stop += lose consciousness
  681.  
  682. stop += sense of stasis
  683.  
  684. stop += Wait a moment
  685.  
  686. stop += wrath finds you
  687.  
  688. stop += You fall through a shaft
  689.  
  690. stop += wield.*distortion
  691.  
  692. stop += Ru believes you are ready to make a new sacrifice.
  693. tile_realtime_anim = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement