mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:05:34 +00:00
Globally calculated difficulty damage
This commit is contained in:
parent
5624d0178c
commit
4d62a0a385
4 changed files with 12 additions and 22 deletions
|
|
@ -42,14 +42,8 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
|
|||
bullet.Graze();
|
||||
//bullet.IsGrazed = true;
|
||||
var baseGrazeValue = bullet.BulletInfo.GrazeValue;
|
||||
|
||||
float grazeShield = GlobalState.Instance.SessionSettings.Difficulty switch
|
||||
{
|
||||
DifficultyLevel.Easy => baseGrazeValue * 5,
|
||||
DifficultyLevel.Normal => baseGrazeValue * 2,
|
||||
DifficultyLevel.Hard or DifficultyLevel.Lunatic => baseGrazeValue,
|
||||
_ => baseGrazeValue
|
||||
};
|
||||
|
||||
float grazeShield = baseGrazeValue * GlobalState.Instance.SessionSettings.DifficultyDamageMultiplier;
|
||||
|
||||
Shield.CurrentResource += grazeShield;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue