From b4b1a6dc218d450e88382221f56a6455ca6a7b50 Mon Sep 17 00:00:00 2001 From: Hachem_Muche <Hachem_Muche@stanfordalumni.org> Date: Mon, 21 Jul 2014 10:27:02 -0700 Subject: [PATCH] golems are arcane --- game/modules/tome/class/GameState.lua | 2 +- game/modules/tome/data/general/npcs/construct.lua | 1 + game/modules/tome/data/talents/spells/golemancy.lua | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/GameState.lua b/game/modules/tome/class/GameState.lua index 0ebf05a7f1..d65b1e1fe9 100644 --- a/game/modules/tome/class/GameState.lua +++ b/game/modules/tome/class/GameState.lua @@ -333,7 +333,7 @@ function _M:update_power_source(forbid_ps, allow_ps, randthemes, force_themes) local theme_count = (randthemes or 0) + #force_themes for n = 1, theme_count do local v = nil - if #force_themes > 0 then -- always add forced_themes + if #force_themes > 0 then -- always add forced_themes if possible v = rng.tableRemove(force_themes) table.removeFromList(allthemes, v) end diff --git a/game/modules/tome/data/general/npcs/construct.lua b/game/modules/tome/data/general/npcs/construct.lua index 3e55d85105..5da7e28625 100644 --- a/game/modules/tome/data/general/npcs/construct.lua +++ b/game/modules/tome/data/general/npcs/construct.lua @@ -52,6 +52,7 @@ newEntity{ [Talents.T_ARMOUR_TRAINING]={base=2, every=10, max=5}, }, not_power_source = {nature=true}, + power_source = {arcane=true}, } newEntity{ base = "BASE_NPC_CONSTRUCT", diff --git a/game/modules/tome/data/talents/spells/golemancy.lua b/game/modules/tome/data/talents/spells/golemancy.lua index 20ba93e482..653465d8c9 100644 --- a/game/modules/tome/data/talents/spells/golemancy.lua +++ b/game/modules/tome/data/talents/spells/golemancy.lua @@ -80,6 +80,7 @@ local function makeGolem(self) ["golem/arcane"] = 0.3, }, forbid_nature = 1, + power_source = {arcane = true}, inscription_restrictions = { ["inscriptions/runes"] = true, }, resolvers.inscription("RUNE:_SHIELDING", {cooldown=14, dur=5, power=100}), -- GitLab