Mods / Alchemy Exclusive Potion Patch

Tags:
Tweak Code Harmony Patching Patch
Author:
Arkzenir
Side:
Both
Created:
Jun 7th at 1:56 AM
Last modified:
Jun 9th at 2:18 AM
Downloads:
1043
Recommended download (for Vintage Story 1.22.0-pre.1 - 1.22.3):
alchemyexclusivepotions_2.0.1_vs1.22.zip  1-click install

Had enough of potion addicts in your backyard?

Sick and tired of your friend who pre-buffs every excursion like it is a WoW raid?

Want to save yourself the trouble of carrying 15 potions at all times?

Fear not!

With this mod, you can now customise how many potion effects are achievable at one time!

 

This is a harmony patch that adjusts PotionManager in the Alchemy mod to prevent applying a second potion effect, dependent on group and blacklist rules.


X.0.1 Update:

With this new update, now you can group what categories of potions cannot be taken together, or outright restrict them from being taken alongside any potion via the config. Uses the PotionID values from Alchemy mod

Groups

Within each group, only one potion may be active at a time. Potions from different groups can be stacked. Below is the default config

 

Combat 

Potion ID
Archer's Flask archerpotionid
Hunter's Delight hunterpotionid
Fighter's Flask meleepotionid
Predator Pheromones predatorpotionid
Vitality Flask vitalitypotionid
Sprinter's Flask speedpotionid

 

Survival 

Potion ID
Hunger Enhance hungerenhancepotionid
Hunger Suppress hungersupresspotionid
Potent Oil (Heal Effectiveness) healingeffectpotionid
Healing Oil regentickpotionid

 

Utility 

Potion ID
Scent Mask scentmaskpotionid
Looter's Delight looterpotionid
Miner's Flask miningpotionid

 

Special 

Potion ID
Recall Flask recallpotionid
Nutrition Potion nutritionpotionid
Glow Flask glowpotionid
Water Breathing Flask waterbreathepotionid
Reshape Potion reshapepotionid



Requires: Alchemy mod

(1.21 requires Alchemy 1.8.2)

(1.22 requires Alchemy 2.0.34)

 

Alchemy Mod


(You can change the mod version requirement in the modinfo.json very easily for your own version use case for singleplayer worlds. It adjusts a very small amount of Alchemy functionality and should generally work. If you need a fork with a differing version or something, let me know)

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
2.0.1 alchemyexclusivepotions
1.22.0-pre.1 - 1.22.3
1026 Jun 9th at 2:18 AM alchemyexclusivepotions_2.0.1_vs1.22.zip 1-click install

Add group based blacklist system

2.0.0 alchemyexclusivepotions
1.22.0-pre.1 - 1.22.3
11 Jun 7th at 2:03 AM Empty alchemyexclusivepotions_2.0.0_vs1.22.zip 1-click install
1.0.1 alchemyexclusivepotions
1.21.0-pre.1 - 1.21.6
2 Jun 9th at 2:18 AM alchemyexclusivepotions_1.0.1_vs1.21.zip 1-click install

Add group based blacklist system

1.0.0 alchemyexclusivepotions
1.21.0-pre.1 - 1.21.6
4 Jun 7th at 2:04 AM Empty alchemyexclusivepotions_1.0.0_vs1.21.zip 1-click install

9 Comments (oldest first | newest first) (threaded | flat)

llama3013, Jun 7th at 4:08 AM

Hey, I'm the alchemy mod creator.

Great work, this solves the problem of players basically skipping base game mechanics with boat load of potions.

I was planning to do add this as a config option at some point. Also planning add a config for the opposite if its possible allowing drink the same potion multiple times and to have it stack. I have changed quite a bit on the test build so it probably work on the test build. 

Arkzenir , Jun 7th at 3:06 PM (modified Jun 7th at 3:08 PM)
@llama3013: Hey, I'm the alchemy mod creator. Great work, this solves the problem of players basically skipping base game mechanics with boat load of potions. I was planning to do add this as a config option at some point. Also planning add a config for the opposite

Hello!

Thanks a lot for the praise. I love using your mod in the servers I am in. This really got made because I got sick and tired of every player pre-buffing themselves for 10 seconds with every potion ever in PvP situations.

If it gets added as a config option, I'll probably just stop maintaining or updating this mod so I'm looking forward to seeing that implemented.

Love your work!

llama3013, Jun 7th at 5:35 PM
@Arkzenir: Hello!Thanks a lot for the praise. I love using your mod in the servers I am in. This really got made because I got sick and tired of every player pre-buffing themselves for 10 seconds with every potion ever in PvP situations.If it gets added as a config

Yeah fair enough potions can be pretty overpowered especially when using multiple at the same time. Feel free to continue making patches if you want too.

 

I should have this option in the next test release. I wouldn't reccomend updating to the test release at the moment if you are running a serious/large server though.

Arkzenir , Jun 7th at 7:23 PM
@llama3013: Yeah fair enough potions can be pretty overpowered especially when using multiple at the same time. Feel free to continue making patches if you want too. I should have this option in the next test release. I wouldn't reccomend updating to the test release

We are currently on 1.21.5 and using Alchemy 1.8.2 so we will stay here for a good while and use this patch I'd suspect.

On the config options, (And I can discuss this in your mod's comments as well if you'd like):
-From what I understand of the Alchemy system, you are applying effects in WatchedAttributes, which means you should be able to have a "stacking" mechanic very easily if you decide to add it, by simply modifying the value if it is a potion ID is applied twice. You would be more familiar with the ins and outs of it of course tho.

-It's a good idea to have this as a config option, but if it is getting added officially, I would suggest having a "duplicate whitelist" "duplicate blacklist" system in the config, so that SOME potions can be taken together, and some can't. It will allow for finer control.

(Let me know if you want a more detailed discussion in the alchemy mod comments section)

llama3013, Jun 8th at 3:43 AM
@Arkzenir: We are currently on 1.21.5 and using Alchemy 1.8.2 so we will stay here for a good while and use this patch I'd suspect.On the config options, (And I can discuss this in your mod's comments as well if you'd like):-From what I understand of the Alchemy sys

Yeah thats what I figured.

 

On the config options, I'm happy to discuss it here, in the alchemy comments or on discord in the alchemy as long as I get a notification.

  • Yeah, your pretty much correct. I just need to update how I remove effects as right now to remove effects when the duration runs out I just remove the potionvalue entirely because it was the easiest method. The problem with this is if I make it stack then when the first potion runs out then it will just remove the entire effect early. To do this I will need to make sure to store every value change and to make sure it sends it to the remove handler so it reverts only the one potion's effects. Also it makes it easier to mess up and have a player permantly with increased/decreased stats as if something is missed it won't ever cleanup the potion values.
  • I could get that to work sadly configlib doesn't have an option for a multi select so its probably just going to a bunch of checkboxes or a loose string array field
Arkzenir , Jun 9th at 2:22 AM
@llama3013: Yeah thats what I figured. On the config options, I'm happy to discuss it here, in the alchemy comments or on discord in the alchemy as long as I get a notification. Yeah, your pretty much correct. I just need to update how I remove effects as right now t

I have tentatively made an update to the mod that restricts only certain potions within a group from being taken together, as well as an outright blacklist. It uses potionID values of course, since I did not wish to mess with configlib at this stage. This will allow for at least bit of a better customisability until the official updates release

MrBacon12, Jun 7th at 2:49 AM

Nice Job!