mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Print a warning if a riot shield is destroyed
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8437 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -2584,7 +2584,7 @@ void DamageRiotShield( SOLDIERTYPE* pSoldier, INT32& rsDamage, INT32& rsSecondar
|
||||
|
||||
UINT16 shieldstrength = Item[pObj->usItem].usRiotShieldStrength;
|
||||
|
||||
UINT16 damagetoshield = 2 * damage_original / shieldstrength;
|
||||
UINT16 damagetoshield = 1.5f * damage_original / shieldstrength;
|
||||
|
||||
pSoldier->RiotShieldTakeDamage( damagetoshield );
|
||||
|
||||
|
||||
@@ -19325,12 +19325,14 @@ void SOLDIERTYPE::DestroyEquippedRiotShield( )
|
||||
|
||||
// Delete object
|
||||
DeleteObj( pObj );
|
||||
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, New113Message[MSG113_SHIELD_DESTROYED], this->GetName( ) );
|
||||
|
||||
// dirty interface panel
|
||||
DirtyMercPanelInterface( this, DIRTYLEVEL2 );
|
||||
|
||||
this->DoMercBattleSound( BATTLE_SOUND_CURSE1 );
|
||||
}
|
||||
|
||||
// dirty interface panel
|
||||
DirtyMercPanelInterface( this, DIRTYLEVEL2 );
|
||||
|
||||
this->DoMercBattleSound( BATTLE_SOUND_CURSE1 );
|
||||
}
|
||||
|
||||
void SOLDIERTYPE::RiotShieldTakeDamage( INT32 sDamage )
|
||||
|
||||
Reference in New Issue
Block a user