Skip to content

Commit

Permalink
v0.2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcook committed Jul 15, 2021
1 parent f2df5c2 commit 3effe82
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
Binary file modified PCE.dll
Binary file not shown.
17 changes: 14 additions & 3 deletions PCE/Cards/LaserCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,10 @@ void Update()
this.UpdateDamage();
this.UpdateColor();
this.UpdateWidth();
this.HurtBox(positions3d.toVector2Array().ToList<Vector2>().Take(this.numPos).ToArray());
if (this.damageMultiplier > 0f)
{
this.HurtBox(positions3d.toVector2Array().ToList<Vector2>().Take(this.numPos).ToArray());
}
}

}
Expand All @@ -522,7 +525,15 @@ bool BulletClose()
}
void UpdateDamage()
{
this.damageMultiplier = this.baseDamageMultiplier * this.intensity;
if (this.intensity >= 1f)
{
this.damageMultiplier = this.baseDamageMultiplier * this.intensity;
}
else
{
float damageMult = (-4.6f/this.duration)*((this.intensity - 1f) * (-1f * this.duration))+1f;
this.damageMultiplier = UnityEngine.Mathf.Clamp(damageMult, 0f, 1f);
}
}
void UpdateColor()
{
Expand Down Expand Up @@ -571,7 +582,7 @@ public class NetworkedTrailRenderer : MonoBehaviour
private readonly int initialDelay = 0;
private readonly int syncRate = 5;
private const int MAX = 1000;
private const float tolerance = 0.5f;
private const float tolerance = 0.0f;

private LineRenderer line;
private List<Vector3> rawPositions3d = new List<Vector3>() { };
Expand Down
2 changes: 1 addition & 1 deletion PCE/PCE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace PCE
[BepInDependency("pykess.rounds.plugins.legraycasterspatch", BepInDependency.DependencyFlags.HardDependency)] // fixes physics for small players
[BepInDependency("pykess.rounds.plugins.cardchoicespawnuniquecardpatch", BepInDependency.DependencyFlags.HardDependency)] // fixes allowMultiple and blacklistedCategories
[BepInDependency("pykess.rounds.plugins.gununblockablepatch", BepInDependency.DependencyFlags.HardDependency)] // fixes gun.unblockable
[BepInPlugin(ModId, ModName, "0.2.1.1")]
[BepInPlugin(ModId, ModName, "0.2.1.2")]
[BepInProcess("Rounds.exe")]
public class PCE : BaseUnityPlugin
{
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ Download [r2modman](https://rounds.thunderstore.io/package/ebkr/r2modman/), set
### Version Notes
-----------------

#### v0.2.1.2
-------------

- Hotfix: Laser's hurtbox should be better synced with its visuals now.

#### v0.2.1.1
-------------

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PCE",
"version_number": "2.1.1",
"version_number": "2.1.2",
"website_url": "https://github.com/pdcook/PCE",
"description": "Adds a number of new cards to the game",
"dependencies": [
Expand Down

0 comments on commit 3effe82

Please sign in to comment.