-
Notifications
You must be signed in to change notification settings - Fork 0
/
features.lua
26 lines (18 loc) · 844 Bytes
/
features.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local f = {}
nrc.features = f
-- Shortcuts.
local v = nrc.check_version
-- The hunger mechanic exists.
f.hunger_exists = not not you.hunger_name
-- You are a two-state vampire.
f.you_two_state_vampire = you.race() == "Vampire" and ({alive = true, bloodless = true})[nrc.you.hunger_name()]
-- You are a blood-potion vampire.
f.you_blood_vampire = you.race() == "Vampire" and not f.you_two_state_vampire
-- You can select which skills to train.
f.you_select_skills = you.race() ~= "Gnoll"
-- You can mutate.
f.you_mutate = not ({Mummy = true, Ghoul = true})[you.race()]
-- Holy damage does not affect you.
f.you_ignore_holy = not ({Mummy = true, Ghoul = true, Vampire = true, Demonspawn = true})[you.race()]
-- Torment does not affect you.
f.you_ignore_torment = ({Mummy = true, Ghoul = true})[you.race()] or you.god() == "Kikubaaqudgha"