Doomed/Darkness Tweaks

A place to post your add ons and ideas for them

Moderator: Moderator

Message
Author
astralInferno
Uruivellas
Posts: 834
Joined: Mon Jan 27, 2014 10:40 am

Re: Doomed/Darkness Tweaks

#31 Post by astralInferno »

you don't have to do it with superload.
if you just put the new versions of the fear effects in a timed_effects.lua in your data folder, if they have the same name, they will they will overwrite the originals. As long as your weight is higher (later) than any other addon's, it will overwrite anything they did to those effects as well.

(iirc, you can do the same thing with damage types, but not talents)

minmay
Wyrmic
Posts: 286
Joined: Fri Sep 07, 2012 1:34 am
Contact:

Re: Doomed/Darkness Tweaks

#32 Post by minmay »

You can also just modify the fields on the effect directly. For example, here's how I modified existing effects in qt-sight-overhaul:

hooks/load.lua:

Code: Select all

class:bindHook("ToME:load", function(self, data)
	require("engine.interface.ActorTemporaryEffects"):loadDefinition("/data-qt-sight-overhaul/timed_effects.lua")
end
data/timed_effects.lua:

Code: Select all

-- modify Precognition
TemporaryEffects.tempeffect_def.EFF_PRECOGNITION.long_desc = function(self, eff) return ("Peer into the future, increasing accuracy by %d, defense by %d, physical critical chance by %d%%, and granting a %d%% chance to ignore critical hits."):format(eff.accuracy, eff.defense, eff.physcrit, eff.crits) end
-- range, actor, trap parameters no longer used, but we keep them for safety
TemporaryEffects.tempeffect_def.EFF_PRECOGNITION.parameters = { range=10, actor=1, trap=1, defense=0, crits=0, accuracy=0, physcrit=0 }
TemporaryEffects.tempeffect_def.EFF_PRECOGNITION.activate = function(self, eff)
	self:effectTemporaryValue(eff, "ignore_direct_crits", eff.crits)
	self:effectTemporaryValue(eff, "combat_atk", eff.accuracy)
	self:effectTemporaryValue(eff, "combat_def", eff.defense)
	self:effectTemporaryValue(eff, "combat_physcrit", eff.physcrit)
end
TemporaryEffects.tempeffect_def.EFF_PRECOGNITION.deactivate = function(self, eff)
	-- nothing anymore
end
TemporaryEffects.tempeffect_def.EFF_VIMSENSE.on_gain = function(self, err) return "#Target# is touched by blight.", "+Vimsense" end
TemporaryEffects.tempeffect_def.EFF_VIMSENSE.on_lose = function(self, err) return "#Target# is no longer touched by blight.", "-Vimsense" end
No need to overwrite the effect, no need to superload, and definitely no need to overload. You almost never want to overload an existing file.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Doomed/Darkness Tweaks

#33 Post by HousePet »

I think I was overloading a few things in my addon as well, as the Afflicted code is a bit of a nightmare.
My feedback meter decays into coding. Give me feedback and I make mods.

Velikolepni
Wayist
Posts: 20
Joined: Mon May 14, 2018 1:57 pm

Re: Doomed/Darkness Tweaks

#34 Post by Velikolepni »

There are currently two big and one small problems with requiring that Gestures be use empty handed.

The small one: the tooltip says that the damage scales with the gloves quality (and it seems to do) but there is no indication of the number. It should say the current bonus (pretty please!). (also, does it matter if the gloves are light or heavy?)

The big ones: 1) mindstars and mindstar mastery are sorely needed on mindpower classes in order to get enough mindpower. The bonus of the third gestures talent is definitely not enough to compensate. This has the bad side effect of making Superpower/PES almost mandatory if you've invested in Gestures. 2) it anti-synergizes with Dark Gifts since you get 2 fewer cursed items and that just hurts my poor little soul :cry: . I'm fine with Gestures being incompatible with Psiblades but it would be nice if mindstars could still be worn. Write in the description that they float around the character or something. Alternatively, boost the mindpower bonus significantly and/or add some bonus to Dark Gifts at high level of investment in Gestures.

Also, some small questions: What is the chance to pin/blind in the creeping darkness? What does "mastery" mean in the description?

zelurker
Wayist
Posts: 21
Joined: Thu Jun 05, 2014 8:53 pm

Re: Doomed/Darkness Tweaks

#35 Post by zelurker »

Got a crash with a doombringer when trying to use the pacification hex, and I narrowed it to this addon (on 1.5.10).
I removed the addon, the pacification hex works again... !

Amakthel
Wayist
Posts: 22
Joined: Tue Mar 07, 2017 6:42 am

Re: Doomed/Darkness Tweaks

#36 Post by Amakthel »

Version 1.0.6 Back Once Again (oops, skipped one)
-- Gesture of Power has been buffed AGAIN in a desperate attempt to keep up with mindstars.
-- Gesture of Pain now only requires one hand, as a concession for all mindpower classes' eternal thirst for more mindpower and afflicted classes' thirst for more dark gifts.

-- Mod no longer breaks pacification hex.
-- Tormentors will no longer get confused and break the game if forced to last for more than 8 turns.

-- Various talent descriptions made more informative.

Post Reply