mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- AP costs for reloading a GL or RL by attaching an item are taken now from weapons.xml (still buggy, allows cheating)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@684 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4161,7 +4161,16 @@ void DeleteItemDescriptionBox( )
|
||||
if (!fFound)
|
||||
{
|
||||
// charge APs
|
||||
ubAPCost = AttachmentAPCost(gpItemDescObject->usAttachItem[ cnt ],gpItemDescObject->usItem);
|
||||
//lalien: changed to charge AP's for reloading a GL/RL
|
||||
if ( Item[ gpItemDescObject->usItem ].usItemClass == IC_LAUNCHER || Item[gpItemDescObject->usItem].cannon )
|
||||
{
|
||||
ubAPCost = GetAPsToReload( gpItemDescObject );
|
||||
}
|
||||
else
|
||||
{
|
||||
ubAPCost = AttachmentAPCost(gpItemDescObject->usAttachItem[ cnt ],gpItemDescObject->usItem);
|
||||
}
|
||||
|
||||
fAllFound = FALSE;
|
||||
break;
|
||||
}
|
||||
@@ -4178,7 +4187,7 @@ void DeleteItemDescriptionBox( )
|
||||
|
||||
//Remove
|
||||
DeleteVideoObjectFromIndex( guiItemDescBox );
|
||||
DeleteVideoObjectFromIndex( guiMapItemDescBox );
|
||||
DeleteVideoObjectFromIndex( guiMapItemDescBox );
|
||||
DeleteVideoObjectFromIndex( guiBullet );
|
||||
// Delete item graphic
|
||||
DeleteVideoObjectFromIndex( guiItemGraphic );
|
||||
|
||||
Reference in New Issue
Block a user