Skip to content

Commit f3f7ab8

Browse files
committed
guh
1 parent ddac342 commit f3f7ab8

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

Runtime/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## '2.1.2' - I think i'll just start meme-ing on these names unless i have a good name
4+
* Fixed an issue where a spawn rate of 0 would cause a failure on filtering variants.
5+
36
## '2.1.1' - I LOVE READMES!!!
47
* Fixed readme
58

Runtime/Code/ScriptableObjects/VariantDef.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ public bool IsAvailable(Run run, SceneInfo sceneInfo, RuleBook runRulebook)
202202
/// <returns>True if available, false otherwise</returns>
203203
public bool IsAvailable(DirectorAPI.StageInfo stageInfo, ExpansionDef[] runExpansions, RuleBook runRulebook)
204204
{
205+
if(spawnRate == 0)
206+
{
207+
return false;
208+
}
205209
bool variantRulesEnabled = RuleBookExtras.CanVariantSpawn(runRulebook, VariantIndex);
206210

207211
if (!variantRulesEnabled)

Runtime/Code/VAPIMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class VAPIMain : BaseUnityPlugin
2626
/// <summary>
2727
/// VAPI's Version
2828
/// </summary>
29-
public const string VERSION = "2.1.1";
29+
public const string VERSION = "2.1.2";
3030

3131
/// <summary>
3232
/// The instancee class of the Main class

Runtime/VAPI-Manifest.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ MonoBehaviour:
9696
Name: VarianceAPI
9797
Description: VarianceAPI allows you to create Variants for CharacterBodies, Variants
9898
can have different textures, lights, skills, and more.
99-
Version: 2.1.1
99+
Version: 2.1.2
100100
Dependencies:
101101
- {fileID: 11400000, guid: 5ceb1d8ed3af40d4d806e9756b403649, type: 2}
102102
- {fileID: 11400000, guid: 613d4ca030e90a832defdb35afe5393b, type: 2}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": ""
77
},
88
"displayName": "VarianceAPI",
9-
"version": "2.1.1",
9+
"version": "2.1.2",
1010
"unity": "2019.4",
1111
"description": "An API for Risk of Rain 2 that allows the creation of \"Variants\" for CharacterBodies, variants can have different skills, skins, models and more."
1212
}

0 commit comments

Comments
 (0)