You are viewing a potentially older version of this package.
View all versions.
Survariants
A system for adding survivor variants.
Date uploaded | 5 months ago |
Version | 1.0.0 |
Download link | pseudopulse-Survariants-1.0.0.zip |
Downloads | 11374 |
Dependency string | pseudopulse-Survariants-1.0.0 |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.9README
Survariants
a system for adding survivor variants.
to use, just:
using Survariants;
SurvivorVariantDef variant = ScriptableObject.CreateInstance<SurvivorVariantDef>(); // create a new variant
(variant as ScriptableObject).name = "The Name Of Your Variant";
variant.DisplayName = "The Name Of Your Variant'
variant.VariantSurvivor = Survivor; // the SurvivorDef of your variant
variant.TargetSurvivor = TargetSurvivorDef; // the survivor the variant is for
variant.RequiredUnlock = RequiredUnlock; // optional: unlock requirement
variant.Description = Description; // the flavor text of your variant in the variants tab
Survivor.hidden = true; // make your survivor not appear in the css bar
SurvivorVariantCatalog.AddSurvivorVariant(variant); // add your variant!