Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SpeedSetter functions to holdables #67

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Code/FLCC/CustomPuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public CustomPuffer(EntityData data, Vector2 offset, EntityID id)
Hold.OnPickup = OnPickup;
Hold.OnRelease = OnRelease;
Hold.SpeedGetter = (() => hitSpeed);
Hold.SpeedSetter = (speed) => hitSpeed = speed;
Add(new TransitionListener
{
OnOut = (f) => needsNewHome = true
Expand Down
1 change: 1 addition & 0 deletions Code/FLCC/FlagCrystal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public FlagCrystal(EntityData data, Vector2 offset, EntityID id) : base(data.Pos
Hold.OnHitSpring = new Func<Spring, bool>(HitSpring);
Hold.OnHitSpinner = new Action<Entity>(HitSpinner);
Hold.SpeedGetter = () => Speed;
Hold.SpeedSetter = (speed) => Speed = speed;
onCollideH = new Collision(OnCollideH);
onCollideV = new Collision(OnCollideV);
LiftSpeedGraceTime = 0.1f;
Expand Down
Loading