diff --git a/game/modules/tome/data/gfx/particles/arcanestorm.lua b/game/modules/tome/data/gfx/particles/arcanestorm.lua index a1219d6e4fccfd0c8f218354793849064c434740..2993f09fd86bcfa18b99c75f736167698d9c6418 100644 --- a/game/modules/tome/data/gfx/particles/arcanestorm.lua +++ b/game/modules/tome/data/gfx/particles/arcanestorm.lua @@ -17,6 +17,7 @@ -- Nicolas Casalini "DarkGod" -- darkgod@te4.org +local radius = radius or 5 base_size = 32 can_shift = true @@ -24,7 +25,7 @@ return { generator = function() local ad = rng.range(0, 360) local a = math.rad(ad) local dir = math.rad(ad + 90) - local r = rng.avg(1, 40 * 3) + local r = rng.avg(1, 16 + 32 * radius) local dirv = math.rad(5) return { @@ -44,7 +45,7 @@ return { generator = function() } end, }, function(self) - self.ps:emit(10) + self.ps:emit(radius * radius / 2) end, -500, +2000, "weather/snowflake" diff --git a/game/modules/tome/data/talents/spells/arcane.lua b/game/modules/tome/data/talents/spells/arcane.lua index c2b47b0e7b7af1a7e861f0dc1fdf65e6a2a1aea0..7573354be6e6fb647731baa298192165394ad3b7 100644 --- a/game/modules/tome/data/talents/spells/arcane.lua +++ b/game/modules/tome/data/talents/spells/arcane.lua @@ -152,7 +152,7 @@ newTalent{ use_only_arcane = 1, no_energy = true, tactical = { MANA = 3, DEFEND = 2, }, - radius = 5, + radius = function(self, t) return self:hasEffect(self.EFF_AETHER_AVATAR) and 10 or 5 end, getMaxAbsorb = function(self, t) return self:getShieldAmount(self:combatTalentSpellDamage(t, 50, 450)) end, getManaRatio = function(self, t) return self:combatTalentLimit(t, 0.2, 0.95, 0.35) end, -- Note: effects handled in mod.class.Actor:onTakeHit function @@ -175,7 +175,7 @@ newTalent{ DamageType.ARCANE, self:spellCrit(dam / 5), radius, 5, nil, - {type="arcanestorm", only_one=true}, + {type="arcanestorm", args={radius=radius}, only_one=true}, function(e) e.x = e.src.x e.y = e.src.y return true end, false )