RimWorld
58 ψήφοι
VPE Auto Cast Buffs
2
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Mod, 1.4
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
929.307 KB
24 Νοε 2023, 14:37
5 Δεκ 2023, 13:11
18 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
VPE Auto Cast Buffs

ΠΕΡΙΓΡΑΦΗ
Some changes to Vanilla Psycasts Expanded to reduce Micro Management and add functional autocasts.

Only autocasts above 50% psyfocus, not yet configurable.

Steal Vitality: Autocasts in this order, Prisoner, Slave, Colonist (disables the default autocast functionality)
Psychic Guidance: Autocasts on colonists.
Enchant Quality: Autocasts on things in a zone named with Enchant. Ie: "Enchant" and "The enchanting Zone" would both qualify.
Mend: Autocasts on things in a zone named with Mend. Ie: "Mend" and "The mending Zone" would both qualify. Also will autocast on any pawn wearing gear under 50%.
Word of Joy: on any colonists under 0.20 joy need, not instant need, this is that little arrow on the bar. So shouldn't be cast on rapid fluctuations.
Word of Serenity: any colonists having a mental break.
Word of Productivity: any colonists.
Brain Leech: from puppeteers, casts on prisoners, then slaves.
Nightvision: on all colonists, first on caster.
Eclipse: keeps it up.

Warlord: all buffs will be maintained while drafted if autoCast is on.

If there's any more you think I should add, let me know.

Haven't tested much for performance impact, but there shouldn't be too much. This only does its thing every 600 ticks (30 while drafted). It checks all colony pawns for abilities, checks for valid targets, then schedules the cast job.
65 σχόλια
Toby 9 Οκτ 2024, 11:59 
@Avos my fork handles those :⁾
Avarice 9 Οκτ 2024, 7:15 
Possible to make Psychic Sooth: Male/Female autocast?
Netzach Sloth  [Δημιουργός] 16 Απρ 2024, 22:41 
@Toby, that's fine, no problem.
@slurpme223300, look a couple comments down, looks like Toby already updated it, and added config options.
slurpme223300 11 Απρ 2024, 16:33 
1.5 1.5 1.5 1.5
ShauaPuta 28 Μαρ 2024, 14:40 
Hey, I have two questions
Does this mod allow NPCs to autocast the buffs, or is it just the player pawns?
and second
I've been working with VE abilities for a while but never got autocasting to work for non-targeted abilities. Do you mind if I take a look at your code?
Toby 26 Μαρ 2024, 16:05 
@Netzach Sloth I hope this was okay ^^; neglected to ask permission first
@bashnako I've forked the mod (including my patch) https://steamproxy.net/sharedfiles/filedetails/?id=3199585285
bashnako 17 Μαρ 2024, 14:11 
Is there somewhere build/release with this patch included, i want to test it: https://github.com/djkacevedo/VPE-Auto-Cast-Buffs/pull/1
Luminous 9 Μαρ 2024, 5:03 
Incredible mod! I have a suggestion, but I have no idea if it's doable: auto-casting enthrall on corpses in a specific stockpile, in order to easily make an undead army
master.of.herb 31 Ιαν 2024, 17:34 
Awesome mod! Since you asked for suggestions:
Invisibility while drafted when invisibility lasts less than 5 seconds.
Word of Healing / Immunity on pawns that are injured/sick.
Avoid autocasting during rituals would also be nice.
But, what I think you should focus on next are mod options.
Toby 23 Ιαν 2024, 11:45 
@Netzach Sloth I just opened a PR. Didn't open Steam for a while so sorry it took so long ^^;