Mods / Customizable Rift Ward

Category: #QoL #Technology #Tweak
Author: Ascyst
Side: Both
Created: Nov 14th 2023 at 9:04 AM
Last modified: Nov 14th 2023 at 9:06 AM
Downloads: 249
Follow Unfollow 3

Latest file for v1.18.15:
CustomizableRiftWard.zip 1-click install


This mod was created just to see if I could.

Allows you to configure Rift Ward effective range, as well as the success chance for blocking rifts (by default, range is 30 units and there is a 95% chance to block.).


Config isn't live, requires a restart between changes.

You can find the config under: %AppData%\VintagestoryData\ModConfig\CustomizableRiftWard.json

riftBlockChance: requires value between 0 and 1 (e.g, 0.95 is the default 95% block chance)
maxRange: theoretically unlimited I guess? must be a whole number between 1 and 340 decillion, i think that's the float max.


I've got shakey experience with coding and this was an almost fully blind attempt to create something without tutorials. I was unable to properly test this to verify if the radius/success chance is actually increased, but the code works, doesn't throw harmony errors, and the ward still works ingame so I'm assuming it must work.

If you have any issues with this mod, please comment and I will look into it.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v0.0.1 249 Nov 14th 2023 at 9:06 AM Show CustomizableRiftWard.zip Install now

2 Comments (oldest first | newest first)

💬 Felnarn, Dec 9th 2023 at 6:29 PM

This looks neat, during creation did you notice any way to affect the duration value?

 

💬 OmegaHaxors, Nov 19th 2023 at 11:03 AM

Float does in fact have a value for INFINITY though i'm not sure it would work in this case as it's Not a Number.

(edit comment delete)