Skip to content

Commit 2ff4ccf

Browse files
Merge pull request #828 from ProjectStarlight/shader-test
New aurora water
2 parents baa579d + 56b7fad commit 2ff4ccf

63 files changed

Lines changed: 444 additions & 1345 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Assets/Masks/RingGlow.png

13.6 KB
Loading

Assets/Masks/RingGlowInner.png

20.4 KB
Loading

Assets/Masks/RingGlowInnerTwo.png

22 KB
Loading

Assets/Misc/AuroraWater.png

-230 Bytes
Loading

Content/Abilities/AbilityHandler.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public class AbilityHandler : ModPlayer, IOrderedLoadable
1616

1717
private InfusionItem[] infusions = new InfusionItem[Infusion.InfusionSlots];
1818
public Dictionary<Type, Ability> unlockedAbilities = new();
19-
20-
private float stamina;
2119
private float staminaMaxBonus;
2220
private int staminaRegenCD;
2321

@@ -99,9 +97,9 @@ public float StaminaMaxBonus
9997
/// </summary>
10098
public float Stamina
10199
{
102-
get => stamina;
100+
get;
103101
// Can't have less than 0 or more than max stamina.
104-
set => stamina = MathHelper.Clamp(value, 0, StaminaMax);
102+
set => field = MathHelper.Clamp(value, 0, StaminaMax);
105103
}
106104

107105
//for some reason without specifically setting these values to zero with cloneNewInstances => false and contructor,
@@ -400,8 +398,7 @@ public override void PreUpdate()
400398
// To ensure fusions always have their owner set to a valid Player.
401399
for (int i = 0; i < infusions.Length; i++)
402400
{
403-
if (infusions[i] != null)
404-
infusions[i].Item.playerIndexTheItemIsReservedFor = Player.whoAmI;
401+
infusions[i]?.Item.playerIndexTheItemIsReservedFor = Player.whoAmI;
405402
}
406403
}
407404

Content/Abilities/Hint/HintAbility.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ public override void UpdateActive()
153153
int i = Projectile.NewProjectile(Player.GetSource_FromThis(), Main.MouseWorld + Vector2.UnitY * -32, Vector2.Zero, ModContent.ProjectileType<HintText>(), 0, 0, Main.myPlayer);
154154
var proj = Main.projectile[i].ModProjectile as HintText;
155155

156-
if (proj != null)
157-
proj.text = hintToDisplay;
156+
proj?.text = hintToDisplay;
158157
}
159158

160159
Deactivate();

Content/Abilities/InfusionItem.ModItemMethods.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ public void Draw(SpriteBatch spriteBatch, Vector2 position, float opacity, float
3333

3434
public override void UpdateInventory(Player player)
3535
{
36-
if (ability != null)
37-
ability.User = player.GetHandler();
36+
ability?.User = player.GetHandler();
3837
}
3938

4039
public override void Update(ref float gravity, ref float maxFallSpeed)

Content/Alchemy/AlchemyIngredient.cs

Lines changed: 0 additions & 134 deletions
This file was deleted.

Content/Alchemy/AlchemyModifier.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.

Content/Alchemy/AlchemyRecipe.cs

Lines changed: 0 additions & 171 deletions
This file was deleted.

0 commit comments

Comments
 (0)