mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
When calculating width of mana bars, if another player has a maximum amount of mana of zero (like a Barbarian) would cause a division by zero, crashing the rendering client. Fixed by not rendering the blue portion of the mana bar if the max mana is zero. Not applying players palette transform, stored in a .trn file. Fixed by applying the trn to the stored portrait sprite, if available. Created several values in the player classes sprites.tsv to store the offsets of the sprites rendered in the portrait. The new values are: - **partyOffsetTownX** : X Offset for the portrait when the player is in town - **partyOffsetTownY** : Y Offset for the portrait when the player is in town - **partyOffsetDungeonX** : X Offset for the portrait when the player is in dungeon - **partyOffsetDungeonY** : Y Offset for the portrait when the player is in dungeon - **partyOffsetDeadX** : X Offset for the portrait when the player is dead - **partyOffsetDeadY** : Y Offset for the portrait when the player is dead This new values are documented in the assets/txtdata/classes/README.md file, with also the rest of the possible values for the sprites.tsv files