ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Thu Oct 17, 2019 12:44 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Sep 03, 2019 11:53 am 
Offline
Halfling

Joined: Sat Sep 29, 2018 3:43 am
Posts: 82
the talents' tooltips say that it's the Transcendent Electrokinesis that makes Brain Storm also blind enemies, but the code says that it's the Transcendent Telekinesis.

Code:
newDamageType{
   name = "brain storm", type = "BRAINSTORM",
   projector = function(src, x, y, type, dam, state)
      state = initState(state)
      useImplicitCrit(src, state)
      local target = game.level.map(x, y, Map.ACTOR)
      if target then
         DamageType:get(DamageType.LIGHTNING).projector(src, target.x, target.y, DamageType.LIGHTNING, dam, state)
         if target:checkHit(src:combatMindpower(), target:combatMentalResist(), 0, 95, 15) then
            target:crossTierEffect(target.EFF_BRAINLOCKED, src:combatMindpower())
         else
            game.logSeen(target, "%s resists the mind attack!", target.name:capitalize())
         end

         if src:hasEffect(src.EFF_TRANSCENDENT_TELEKINESIS) then
            if target:canBe("blind") then
               target:setEffect(target.EFF_BLINDED, 4, {apply_power=src:combatMindpower()})
            end
         end
         return dam
      end
   end,
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group