mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Let Hexen Cleric and Mage use unique health chains
- (changed slightly by Rachelle) Hexen's characters incorrectly only used the Fighter's health chain previously.
This commit is contained in:
parent
80ef9ca686
commit
179e526981
1 changed files with 5 additions and 5 deletions
|
@ -105,13 +105,13 @@ class HexenStatusBar : BaseStatusBar
|
|||
{
|
||||
DrawImage("H2BAR", (0, 134), DI_ITEM_OFFSETS);
|
||||
|
||||
String Gem;
|
||||
if (CPlayer.mo is "ClericPlayer") Gem = "LIFEGMC2";
|
||||
else if (CPlayer.mo is "MagePlayer") Gem = "LIFEGMM2";
|
||||
else Gem = "LIFEGMF2";
|
||||
String Gem, Chain;
|
||||
if (CPlayer.mo is "ClericPlayer") { Gem = "LIFEGMC2"; Chain = "CHAIN2"; }
|
||||
else if (CPlayer.mo is "MagePlayer") { Gem = "LIFEGMM2"; Chain = "CHAIN3"; }
|
||||
else { Gem = "LIFEGMF2"; Chain = "CHAIN"; }
|
||||
|
||||
int inthealth = mHealthInterpolator2.GetValue();
|
||||
DrawGem("CHAIN", "LIFEGMF2", inthealth, CPlayer.mo.GetMaxHealth(true), (30, 193), -23, 49, 15, (multiplayer? DI_TRANSLATABLE : 0) | DI_ITEM_LEFT_TOP);
|
||||
DrawGem(Chain, Gem, inthealth, CPlayer.mo.GetMaxHealth(true), (30, 193), -23, 49, 15, (multiplayer? DI_TRANSLATABLE : 0) | DI_ITEM_LEFT_TOP);
|
||||
|
||||
DrawImage("LFEDGE", (0, 192), DI_ITEM_OFFSETS);
|
||||
DrawImage("RTEDGE", (277, 192), DI_ITEM_OFFSETS);
|
||||
|
|
Loading…
Reference in a new issue