[1.0.1] Prohibit use of psychoportation with frozen chars

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

[1.0.1] Prohibit use of psychoportation with frozen chars

#1 Post by jenx »

I pressed my psychoportation talent accidentally when frozen, and it triggered, giving me 29 cooldown next to a wrom that walks on nightmare roguelike. Needless to say I died.

I can't see why it couldn't be the case that you can't activate a talent like this when frozen.
MADNESS rocks

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: [1.0.1] Prohibit use of psychoportation with frozen char

#2 Post by Hachem_Muche »

If you are having trouble accidentally triggering talents, you should consider enabling confirmation for those talents.

ToME is quite good at not letting the player try to use abilities that cannot possible succeed. So here is a patch that prevents you from triggering teleportation when frozen:

Code: Select all

Index: game/modules/tome/data/talents/spells/conveyance.lua
===================================================================
--- game/modules/tome/data/talents/spells/conveyance.lua	(revision 6619)
+++ game/modules/tome/data/talents/spells/conveyance.lua	(working copy)
@@ -29,6 +29,7 @@
 	requires_target = function(self, t) return self:getTalentLevel(t) >= 4 end,
 	getRange = function(self, t) return 4 + self:combatTalentSpellDamage(t, 10, 15) end,
 	getRadius = function(self, t) return math.max(0, 7 - self:getTalentLevelRaw(t)) end,
+	on_pre_use = function(self, t) return not self:attr("encased_in_ice") end,
 	is_teleport = true,
 	action = function(self, t)
 		local target = self
@@ -108,6 +109,7 @@
 	requires_target = function(self, t) return self:getTalentLevel(t) >= 4 end,
 	getRange = function(self, t) return 100 + self:combatSpellpower(1) end,
 	getRadius = function(self, t) return 20 - self:getTalentLevel(t) end,
+	on_pre_use = function(self, t) return not self:attr("encased_in_ice") end,
 	is_teleport = true,
 	action = function(self, t)
 		local target = self
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: [1.0.1] Prohibit use of psychoportation with frozen char

#3 Post by jenx »

DG, can this be implemented?
MADNESS rocks

Lowell
Low Yeek
Posts: 7
Joined: Fri Apr 05, 2013 10:22 pm

Re: [1.0.1] Prohibit use of psychoportation with frozen char

#4 Post by Lowell »

Greying it out would be a nice idea. In fact there are several situations in which this happens already, an example being that if you're pinned you can't use Rush or Shadowstep (it will refuse to work and tell you that it can't work). For new players, especially me, it wasn't clear that teleportation would fail when I was frozen since it wasn't greyed out like Rush usually is.

Planetus
Archmage
Posts: 346
Joined: Sat Jun 23, 2012 8:44 pm

Re: [1.0.1] Prohibit use of psychoportation with frozen char

#5 Post by Planetus »

Given the fact that other talents already do this, I second the idea of greying out teleportation and psychoportation while frozen.

Omega Blue
Thalore
Posts: 190
Joined: Sun Oct 31, 2010 2:50 pm

Re: [1.0.1] Prohibit use of psychoportation with frozen char

#6 Post by Omega Blue »

Then again, 'porting maybe your only way out.

Post Reply