mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed level medipacks count in Flow.Statistics class
This commit is contained in:
parent
f87d592ce6
commit
d33ebbe417
3 changed files with 5 additions and 2 deletions
|
@ -48,8 +48,9 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
|
|||
* Added various Translate() methods to Vec2 and Vec3 script objects.
|
||||
* Added alpha transparency functionality for statics and moveables to be used with SetColor() method.
|
||||
* Added extra arguments for sprite object slots and starting rotation value for EmitParticle function.
|
||||
* Added pickups count to Flow.Statistics class.
|
||||
* Added ability to save Flow.Level fields such as fog or horizon to a savegame.
|
||||
* Added pickups count to Flow.Statistics class.
|
||||
* Fixed level medipacks count in Flow.Statistics class.
|
||||
|
||||
## [Version 1.7.1](https://github.com/TombEngine/TombEditorReleases/releases/tag/v1.7.4) - 2025-04-01
|
||||
|
||||
|
|
|
@ -1339,8 +1339,8 @@ void DoExplosiveDamage(ItemInfo& emitter, ItemInfo& target, ItemInfo& projectile
|
|||
SaveGame::Statistics.Level.AmmoHits++;
|
||||
if (target.HitPoints <= 0)
|
||||
{
|
||||
SaveGame::Statistics.Level.Kills++;
|
||||
SaveGame::Statistics.Game.Kills++;
|
||||
SaveGame::Statistics.Level.Kills++;
|
||||
CreatureDie(target.Index, true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2233,6 +2233,7 @@ namespace TEN::Gui
|
|||
item.HitPoints = LARA_HEALTH_MAX;
|
||||
|
||||
SoundEffect(SFX_TR4_MENU_MEDI, nullptr, SoundEnvironment::Always);
|
||||
SaveGame::Statistics.Level.HealthUsed++;
|
||||
SaveGame::Statistics.Game.HealthUsed++;
|
||||
}
|
||||
else
|
||||
|
@ -2259,6 +2260,7 @@ namespace TEN::Gui
|
|||
item.HitPoints = LARA_HEALTH_MAX;
|
||||
|
||||
SoundEffect(SFX_TR4_MENU_MEDI, nullptr, SoundEnvironment::Always);
|
||||
SaveGame::Statistics.Level.HealthUsed++;
|
||||
SaveGame::Statistics.Game.HealthUsed++;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue