Caves of Qud

Caves of Qud

Not enough ratings
Genetic Resonance Tonic
   
Award
Favorite
Favorited
Unfavorite
Tags: tonic, Effect
File Size
Posted
Updated
5.293 MB
28 Jul, 2024 @ 4:59pm
20 Oct, 2024 @ 7:01pm
5 Change Notes ( view )

Subscribe to download
Genetic Resonance Tonic

Description
Adds a Genetic resonance tonic that temporarily makes Mutants into True Kin (this allows mutants to temporarily use things like becoming nooks to install cybernetics). The effect only lasts 10 turns, so be quick.

For True Kin, the tonic just increases a random resistance.

The Genetic Resonance Tonic can be bought with the following restock chances:
- 2% Normal Gutsmonger
- 50% Legendary Gutsmonger
- 1% Normal Apothecary
- 25% Legendary Apothecary

The tonic can also be found 50% of the time on Legendary Mechanimists or rarely randomly throughout Qud in Tier 4+ areas.

You can spawn the tonic in with the wish command:
item:ErikFailing_Tonic_GeneticResonance:1

Thanks to help from AussieWarGod, this mod should now be more stable and work for any kind of creature type the player can be, even weird stuff like a metal door.



Coded to try and be as compatible with future updates and other mods as possible.

Inspired by Equity Tonic.
26 Comments
[BFC] A Flying Teapot 25 May @ 1:40am 
looks like something in the latest big update broke this, I get a huge error readout on a new game saying it cant find the blueprint etc.
andrewschaefer1237 20 Jan @ 6:39pm 
is this safe to add to an existing save?
AussieWarGod 17 Dec, 2024 @ 8:22pm 
With the new method of implementation it could probably be changed to work with sphynx salt, but it would definitely increase the likelihood of issues.
AussieWarGod 17 Dec, 2024 @ 8:21pm 
@Grub, yes, but it's not designed to be used that way. Afaik it specifically prevents the tonics from working to avoid unintended side effects from loading/unloading.
Grub 15 Dec, 2024 @ 11:25am 
I might be wrong, but I can't use the tonic with sphynx salt injectors for precog. Is this intented or a bug? I was under the assumption that while under the tonic you are true kin for 10 turns.
bidiguilo 14 Nov, 2024 @ 9:35am 
even if it is, it looks cool
ThatVia 3 Nov, 2024 @ 2:48am 
that icon looks like ai
Erik Failing  [author] 20 Oct, 2024 @ 7:06pm 
Thanks to AussieWarGod's help, this should now for for any type of creature, bodyswapped, metal door, fulcretewall, etc...
AussieWarGod 18 Oct, 2024 @ 6:48pm 
ok so if i add:

if (_GameObject.genotypeEntry == null)
{
Popup.Show("This creature has no genotype.");
}


I get a popup with "This creature has no genotype" and the tonic is used

If i modify it to apply a genotype i get the error that genotype is read only. i'll see if i can figure a way around that. i've added you so i can message you as these comments are pretty limiting
AussieWarGod 18 Oct, 2024 @ 6:36pm 
This is the error the log spits out, i'll see if i can fix it. I have a feeling it might be because the Genotype is null, so you might need to add edge case handling for this that adds a genotype for non-conforming bodies?


https://pastebin.com/MRQfGvQm