Skip to content

Commit

Permalink
FUCK
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFoxIV committed Jan 19, 2025
1 parent 6de7ca3 commit 9af7b69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Content.Shared/Mobs/Components/MobStateComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ public sealed partial class MobStateComponent : Component
#region terraria wall of getters boss

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private MobStateParametersOverride GetOverride(MobState? State = null) => MobStateParamsOverrides[State ?? CurrentState];
private MobStateParametersOverride GetOverride(MobState? State = null) { MobStateParamsOverrides.TryGetValue(State ?? CurrentState, out var value); return value; }
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private MobStateParametersPrototype? GetParams(MobState? State = null) => MobStateParams[State ?? CurrentState];
private MobStateParametersPrototype? GetParams(MobState? State = null) { MobStateParams.TryGetValue(State ?? CurrentState, out var value); return value; }


// the "?." and "?? false" at the end is because at round restard MobStateParams apparently can be wiped,
// but stuff that relies on it will still run, and I don't know why. Cool.
Expand Down

0 comments on commit 9af7b69

Please sign in to comment.