Advertisement
Guest User

Untitled

a guest
Sep 14th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. newEntity{ base = "BASE_CLOAK",
  2. power_source = {arcane=true},
  3. unique = true,
  4. name = "Fearfire Mantle", image = "object/artifact/guise_of_the_hated.png",
  5. unided_name = "cloak shaped flames",
  6. desc = [[Black fires born of a blackened heart.]],
  7. level_range = {15, 30},
  8. color = colors.RED,
  9. rarity = 300,
  10. cost = 300,
  11. material_level = 3,
  12. special_desc = function(self) return ("All nearby enemies take %d Fire Damage each turn and healing you for 10%% of the damage dealt."):format()damDesc(self.worn_by, engine.DamageType.FIRE, 20) end,
  13. wielder = {
  14. combat_def = 14,
  15. resists = {[DamageType.DARKNESS] = 10, [DamageType.FIRE] = 10, [DamageType.COLD] = 10,},
  16. talents_types_mastery = {
  17. ["corruption/fearfire"] = 0.2,
  18. },
  19. on_melee_hit={[DamageType.FIRE] = 30},
  20. },
  21. on_takeoff = function(self, who)
  22. self.worn_by=nil
  23. who:removeParticles(self.particle)
  24. end,
  25. on_wear = function(self, who)
  26. self.worn_by=who
  27. self.particle = who:addParticles(Particles.new("destroyer", 1))
  28. end,
  29. act = function(self)
  30. self:useEnergy()
  31. self:regenPower()
  32. if not self.worn_by then return end
  33. if game.level and not game.level:hasEntity(self.worn_by) and not self.worn_by.player then self.worn_by=nil return end
  34. if self.worn_by:attr("dead") then return end
  35. local who = self.worn_by
  36. local blast = {type="ball", range=0, radius=2, friendlyfire=true}
  37. who:project(blast, who.x, who.y, engine.DamageType.FIRE_DRAIN, 20)
  38. end,
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement