Commit 4b6bbde4f4bdaad3e73070538f2c6be54f83d72f

Authored by Chris Davidson
1 parent c0af5c35

Revise Guardian Totem

- Level scales with summoner level

- Mindpower peaks around 86 (buff for most endgame)

- Summon despawns on unequip or level change

- Higher power cost

- Lower duration
... ... @@ -4473,16 +4473,20 @@ newEntity{ base = "BASE_TOOL_MISC",
4473 4473 material_level = 5,
4474 4474 wielder = {
4475 4475 resists={[DamageType.BLIGHT] = 20, [DamageType.ARCANE] = 20},
4476   - on_melee_hit={[DamageType.SLIME] = 18},
  4476 + on_melee_hit={[DamageType.ITEM_NATURE_SLOW] = 18},
4477 4477 combat_spellresist = 20,
4478 4478 talents_types_mastery = { ["wild-gift/antimagic"] = 0.1, ["wild-gift/fungus"] = 0.1},
4479 4479 inc_stats = {[Stats.STAT_WIL] = 10,},
4480 4480 combat_mindpower=8,
4481 4481 },
4482   - max_power = 35, power_regen = 1,
  4482 + on_takeoff = function(self)
  4483 + if self.summoned_totem then self.summoned_totem:die() end
  4484 + self.summoned_totem = nil
  4485 + end,
  4486 + max_power = 50, power_regen = 1,
4483 4487 use_power = {
4484   - name = "call forth an immobile antimagic pillar for 15 turns. (It spits slime, pulls in, stuns, and burns the arcane resources of your foes, while emitting an aura of silence against them within range 5, and will silence you for 5 turns when first summoned.)",
4485   - power = 35,
  4488 + name = "call forth an immobile antimagic pillar for 10 turns. (It spits slime, pulls in, stuns, and burns the arcane resources of your foes, while emitting an aura of silence against them within range 5, and will silence you for 5 turns when first summoned.)",
  4489 + power = 50,
4486 4490 tactical = {ATTACK = {NATURE = 2},
4487 4491 CLOSEIN = 1.5,
4488 4492 DISABLE = function(self, t, aitarget)
... ... @@ -4516,7 +4520,7 @@ newEntity{ base = "BASE_TOOL_MISC",
4516 4520 dammod={wil=1.2}, physcrit = 10,
4517 4521 damtype=engine.DamageType.SLIME,
4518 4522 },
4519   - level_range = {25, nil}, exp_worth = 0,
  4523 + level_range = {1, who.level}, exp_worth = 0,
4520 4524 silent_levelup = true,
4521 4525 combat_armor=50,
4522 4526 combat_armor_hardiness=70,
... ... @@ -4524,6 +4528,7 @@ newEntity{ base = "BASE_TOOL_MISC",
4524 4528 ai = "summoned", ai_real = "dumb_talented_simple", ai_state = { talent_in=1, },
4525 4529 never_move=1,
4526 4530 stats = { str=14, dex=18, mag=10, con=12, wil=20, cun=20, },
  4531 + combat_mindpower = resolvers.levelup(1, 1, 3), -- ~87 mindpower at L50 including stats
4527 4532 size_category = 5,
4528 4533 blind=1,
4529 4534 esp_all=1,
... ... @@ -4554,20 +4559,24 @@ newEntity{ base = "BASE_TOOL_MISC",
4554 4559
4555 4560 faction = who.faction,
4556 4561 summoner = who, summoner_gain_exp=true,
4557   - summon_time=15,
  4562 + summon_time=10,
4558 4563 }
4559 4564
4560 4565 m:resolve()
4561 4566 who:logCombat(m, "#Source# uses %s to summon a natural guardian!", self:getName({do_color=true, no_add_name=true}))
  4567 + m:forceLevelup(who.level)
  4568 +
4562 4569 game.zone:addEntity(game.level, m, "actor", x, y)
4563 4570 m.remove_from_party_on_death = true,
4564 4571 game.party:addMember(m, {
4565 4572 control=false,
4566 4573 type="summon",
4567 4574 title="Summon",
  4575 + temporary_level = true,
4568 4576 orders = {target=true, leash=true, anchor=true, talents=true},
4569 4577 })
4570 4578 who:setEffect(who.EFF_SILENCED, 5, {})
  4579 + self.summoned_totem = m
4571 4580 return {id=true, used=true}
4572 4581 end
4573 4582 },
... ...