# HG changeset patch # User Wuzzy # Date 1557972129 -7200 # Node ID 5a9d203f7c8204291aa247f8acb6ae910bfa24dc # Parent cf21a45a62bd409102a472878b9a4bd867ed6874 Show vampirism icon when vampirism is active diff -r cf21a45a62bd -r 5a9d203f7c82 hedgewars/uTypes.pas --- a/hedgewars/uTypes.pas Thu May 16 03:41:24 2019 +0200 +++ b/hedgewars/uTypes.pas Thu May 16 04:02:09 2019 +0200 @@ -93,7 +93,7 @@ sprCustom5, sprCustom6, sprCustom7, sprCustom8, sprFrozenAirMine, sprAirMine, sprHandAirMine, sprFlakeL, sprSDFlakeL, sprCloudL, sprSDCloudL, sprCreeper, sprHandCreeper, sprMinigun, sprSliderInverted, sprFingerBack, sprFingerBackInv, sprTargetPBack, sprTargetPBackInv, - sprHealthHud, sprHealthPoisonHud + sprHealthHud, sprHealthPoisonHud, sprVampHud ); // Gears that interact with other Gears and/or Land diff -r cf21a45a62bd -r 5a9d203f7c82 hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Thu May 16 03:41:24 2019 +0200 +++ b/hedgewars/uVariables.pas Thu May 16 04:02:09 2019 +0200 @@ -827,7 +827,9 @@ (FileName: 'HealthHUD'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 18; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHealthHud (FileName: 'HealthPoisonHUD'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; - Width: 18; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true)// sprHealthPoisonHud + Width: 18; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHealthPoisonHud + (FileName: 'VampHUD'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; + Width: 24; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true)// sprVampHUD ); diff -r cf21a45a62bd -r 5a9d203f7c82 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Thu May 16 03:41:24 2019 +0200 +++ b/hedgewars/uWorld.pas Thu May 16 04:02:09 2019 +0200 @@ -1601,6 +1601,8 @@ DrawSprite(sprHealthPoisonHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 36), i, 0) else DrawSprite(sprHealthHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 36), i, 0); + if cVampiric then + DrawSprite(sprVampHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 62), i, 0); inc(t, CurrentHedgehog^.HealthTagTex^.h); cDemoClockFPSOffsetY:= t; end diff -r cf21a45a62bd -r 5a9d203f7c82 share/hedgewars/Data/Graphics/VampHUD.png Binary file share/hedgewars/Data/Graphics/VampHUD.png has changed