Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- newEntity{ base = "BASE_CLOAK",
- power_source = {arcane=true},
- unique = true,
- name = "Fearfire Mantle", image = "object/artifact/guise_of_the_hated.png",
- unided_name = "cloak shaped flames",
- desc = [[Black fires born of a blackened heart.]],
- level_range = {15, 30},
- color = colors.RED,
- rarity = 300,
- cost = 300,
- material_level = 3,
- 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,
- wielder = {
- combat_def = 14,
- resists = {[DamageType.DARKNESS] = 10, [DamageType.FIRE] = 10, [DamageType.COLD] = 10,},
- talents_types_mastery = {
- ["corruption/fearfire"] = 0.2,
- },
- on_melee_hit={[DamageType.FIRE] = 30},
- },
- on_takeoff = function(self, who)
- self.worn_by=nil
- who:removeParticles(self.particle)
- end,
- on_wear = function(self, who)
- self.worn_by=who
- self.particle = who:addParticles(Particles.new("destroyer", 1))
- end,
- act = function(self)
- self:useEnergy()
- self:regenPower()
- if not self.worn_by then return end
- if game.level and not game.level:hasEntity(self.worn_by) and not self.worn_by.player then self.worn_by=nil return end
- if self.worn_by:attr("dead") then return end
- local who = self.worn_by
- local blast = {type="ball", range=0, radius=2, friendlyfire=true}
- who:project(blast, who.x, who.y, engine.DamageType.FIRE_DRAIN, 20)
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement