[1.7.0] Heartstalker Class v1.2.0: "My Heart Will Go On"

A place to post your add ons and ideas for them

Moderator: Moderator

Message
Author
gooder1029
Cornac
Posts: 40
Joined: Wed Nov 03, 2021 1:35 pm

Re: [1.7.0] Heartstalker Class v1.2.0: "My Heart Will Go On"

#31 Post by gooder1029 »

Hello, I really like the mod you made, I translated it into Chinese, thanks

This translation only talents and birth data.

I also put them on google driver:

Code: Select all

https://drive.google.com/drive/folders/1ihgh5EQCQQEHpqNC6DjKtL4VxriZl52A?usp=sharing

cundel
Yeek
Posts: 12
Joined: Thu Mar 26, 2020 12:58 pm

Re: [1.7.0] Heartstalker Class v1.2.0: "My Heart Will Go On"

#32 Post by cundel »

Cool class concept! I've ran into an issue when playing it, however: The Dissociate talent doesn't seem to be usable at all? Clicking on it does nothing and gives no message. Could be an on_pre_use() issue.

Mr Frog
Thalore
Posts: 144
Joined: Wed Mar 25, 2020 4:28 am

Re: [1.7.0] Heartstalker Class v1.2.0: "My Heart Will Go On"

#33 Post by Mr Frog »

cundel wrote: Fri Mar 25, 2022 8:16 am Cool class concept! I've ran into an issue when playing it, however: The Dissociate talent doesn't seem to be usable at all? Clicking on it does nothing and gives no message. Could be an on_pre_use() issue.
Great guess! The truth is even more embarrassing:

Code: Select all

	--dont use this if they only have a couple mental effects
	on_pre_use = function(self, t, silent)
		local target = self.ai_target and self.ai_target.actor
		
		if target and target.hasEffect then
			local eff = target:effectsFilter(function (e) return e.type == 'mental' and e.status == 'detrimenta;' end, 10)
			if #eff >= 3 then return true end
		end
		return false
	end,
Problem 1: This is supposed to be on_pre_use_ai, to stop the AI from attempting to use it at inappropriate times. Instead, this is just on_pre_use.
Problem 2: Even if it wasn't, we appear to mistakenly be searching for a "detrimenta;" effect which, obviously, probably does not exist :)

I'm focusing on a non-ToME project at the moment but I'll see if I can push out a lil fix for this soonish. I'm impressed this managed to evade my notice for so long

Mr Frog
Thalore
Posts: 144
Joined: Wed Mar 25, 2020 4:28 am

Re: [1.7.0] Heartstalker Class v1.2.0: "My Heart Will Go On"

#34 Post by Mr Frog »

MMkay, here it is. May the 3 people still playing this thing remain forever comfy~

Changes for v1.2.1
Fixed Dissociate being entirely unusable in any circumstance due to a hilariously botched attempt at an AI restriction
Made a new class icon because why not :)

Post Reply