Skip to content

Repository files navigation

Potions

Adds 21 potions to PEAK which can brewed using two ingredients at a Cauldron. This mod also contains a small API for developers to add their own potions.

Recipes

NameRecipeDrink TimeEffects
Vile PotionDefault Potion4.5s110% Poison total beginning 10s after consuming
Rat PoisonVile Potion + Green Crispberry0.5sInstantly kills the user
Potion of HappinessAny Berrynana Peel + Yellow Crispberry4.5sProvides a Morale Boost to everyone (a whole bar of reserve stamina)
Erratic PotionBig Lollipop + Energy Drink4.5sSpeed boost and infinite stamina for 20s (effects of Big Lollipop + Energy Drink)
Temperate PotionAny Clusterberry + Cluster Shroom4.5sTemperate for 120s, removing 10% Cold and 10% Hot each second
Numbness PotionAny Mushroom + Any Mushroom4.5sRemoves all Injury for 120s, then returns the Injury afterwards
Potion of SelflessnessRemedy Fungus + Shelf Fungus4.5sRespawns all fallen teammates on the user, then kills the user
Potion of ImpatienceAny Shroom + Any Crispberry4.5sRemoves all of your Cold, Hot, Poison and Drowsy
Potion of LifestealRemedy Fungus + Any Coconut4.5sLifesteal for 60s
Potion of LevitationScout Cannon + Any Coconut4.5sLevitation for 60s
Potion of NegativityAny Shroom + Remedy Fungus4.5sClears all afflictions
Duck in a BottleNapberry + Any Kingberry4.5sKills the user and spawns a bunch of Rubber Duckies
Potion of EmploymentAncient Idol + Potion of Happiness4.5sCloses the users game and opens LinkedIn
Sandstorm in a BottleAny Prickleberry + Rope Spool4.5sSummons a Tornado
Antimatter PotionAny Crispberry + Any Anti-Rope4.5sTriggers an antimatter explosion and kills the user
Potion?Antimatter Potion + Antimatter Potion4.5sLiterally nothing
Potion of PositivityPotion of Negativity + Antimatter Potion4.5sMassive mixed bag for 60s: Speed, Infinite Stamina, Levitation, Lifesteal, Morale Boost, Numbness, Temperate; also applies 50% Poison, triggers an antimatter explosion, grants Rebirth, and revives teammates
Potion of SelfishnessRemedy Fungus + Shelf Fungus4.5sKills all other teammates, clears virtually all statuses (Cold/Hot/Hunger/Thorns/Injury/Poison/Drowsy/Curse)
Potion of RebirthRat Poison + Antimatter Potion0.5sRebirth for 60s (revive on death)
Tumbleweed in a BottleSandstorm in a Bottle + Antimatter Potion4.5sSpawns 5 Tumbleweeds
Pinata PotionAny Shroom + Any Kingberry4.5sOn player death, instantly spawn a bunch of candy and one lollipop

For developers: Making custom potion recipes

To create a custom potion: Create an instance of the Potions.APIs.Potion class and register it using Potions.APIs.PotionAPI.RegisterPotion

usingPotions.APIs;usingBepInEx;namespaceMyPotionPack;[BepInAutoPlugin]publicpartialclassPlugin:BaseUnityPlugin{privatevoidAwake(){varmyPotion=newPotion{name="Speedy Potion",drinkTime=4.5f,// default drink time for most built-in potionsid="speedy",effects=[newIncreasedSpeed(120f),],liquidColour=newColor(1,0,0),// redrecipe=["Energy Drink","Red Crispberry"]// the UIData.name of the item}
PotionAPI.RegisterPotion(myPotion);}}

To make a potion effect, just inherit the PotionEffect class

usingPeak.Afflictions;usingPotions.APIs;namespacePotions.PotionEffects;publicclassIncreasedSpeed(floatlength):PotionEffect{privatefloatlen=length;publicoverridevoidDrink(Charactercharacter){}publicoverridevoidApply(Itemitem){varinfStamina=item.gameObject.AddComponent<Action_ApplyAffliction>();infStamina.OnCastFinished=true;varfasterAffliction=newAffliction_FasterBoi{drowsyOnEnd=0f,totalTime=len};infStamina.affliction=fasterAffliction;}}

Special Mentions (all one two of them)

Bagel - Multiplayer Testing khakixd - the rest of it

About

Adds potions to PEAK

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages