Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Corrige curva do ramping
Browse files Browse the repository at this point in the history
  • Loading branch information
rbertoche committed Jul 5, 2024
1 parent 7f7bdb4 commit 9966feb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ public float GetChaosModifier(EntityUid uid, RampingStationEventSchedulerCompone
if (roundTime > component.EndTime)
return component.MaxChaos;

/*
// Pirata
return component.MaxChaos / component.EndTime * roundTime + component.StartingChaos;
// Reto de Starting até Max no tempo EndTime
*/
// Straight from Starting towards Max at EndTime
return component.StartingChaos +
(component.MaxChaos - component.StartingChaos) * roundTime
/ component.EndTime;
}

protected override void Started(EntityUid uid, RampingStationEventSchedulerComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args)
Expand Down

0 comments on commit 9966feb

Please sign in to comment.