Skip to content

Commit b937d8a

Browse files
committed
2.1.3
1 parent f3f7ab8 commit b937d8a

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

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.3' - Health Fix Thingy
4+
* Fixes issue where certain mod interactions would cause monsters to gain the health boost, but not spawn with max health.
5+
36
## '2.1.2' - I think i'll just start meme-ing on these names unless i have a good name
47
* Fixed an issue where a spawn rate of 0 would cause a failure on filtering variants.
58

Runtime/Code/Components/BodyVariantManager.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,16 @@ public void Apply()
178178
}
179179

180180
CharacterBody.RecalculateStats();
181+
var healthComponent = CharacterBody.healthComponent;
182+
if(healthComponent)
183+
{
184+
healthComponent.health = healthComponent.fullHealth;
185+
healthComponent.shield = healthComponent.fullShield;
186+
}
187+
181188
if (visualsForCoroutine.Count > 0)
182189
{
183-
StartCoroutine("ApplyVisuals");
190+
StartCoroutine(nameof(ApplyVisuals));
184191
}
185192
}
186193

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.2";
29+
public const string VERSION = "2.1.3";
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.2
99+
Version: 2.1.3
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.2",
9+
"version": "2.1.3",
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)