mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
New feature: Getting and using intel allows for more spy-related roleplay.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23643&goto=352475&#msg_352475 Requires GameDir >= r2401. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8522 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1128,7 +1128,6 @@ void HandleDialogue( )
|
||||
|
||||
if ( QItem->uiSpecialEventFlag & DIALOGUE_SPECIAL_EVENT_SHOPKEEPER )
|
||||
{
|
||||
|
||||
if( QItem->uiSpecialEventData < 3 )
|
||||
{
|
||||
// post a notice if the player wants to withdraw money from thier account to cover the difference?
|
||||
@@ -1136,8 +1135,14 @@ void HandleDialogue( )
|
||||
InsertCommasForDollarFigure( zMoney );
|
||||
InsertDollarSignInToString( zMoney );
|
||||
}
|
||||
else if ( QItem->uiSpecialEventData > 7 )
|
||||
{
|
||||
// post a notice if the player wants to withdraw money from thier account to cover the difference?
|
||||
swprintf( zMoney, L"%d", QItem->uiSpecialEventData2 );
|
||||
InsertCommasForDollarFigure( zMoney );
|
||||
}
|
||||
|
||||
switch( QItem->uiSpecialEventData )
|
||||
switch( QItem->uiSpecialEventData )
|
||||
{
|
||||
case( 0 ):
|
||||
swprintf( zText, SkiMessageBoxText[ SKI_SHORT_FUNDS_TEXT ], zMoney );
|
||||
@@ -1184,6 +1189,22 @@ void HandleDialogue( )
|
||||
EnableButton( guiSKI_TransactionButton );
|
||||
}
|
||||
break;
|
||||
|
||||
case8:
|
||||
//if the player is trading items
|
||||
swprintf( zText, SkiMessageBoxText[SKI_QUESTION_TO_DEDUCT_INTEL_FROM_PLAYERS_ACCOUNT_TO_COVER_DIFFERENCE], zMoney );
|
||||
|
||||
//ask them if we should deduct money out the players account to cover the difference
|
||||
DoSkiMessageBox( MSG_BOX_BASIC_STYLE, zText, SHOPKEEPER_SCREEN, MSG_BOX_FLAG_YESNO, ConfirmToDeductIntelFromPlayersAccountMessageBoxCallBack );
|
||||
|
||||
break;
|
||||
|
||||
case 9:
|
||||
swprintf( zText, SkiMessageBoxText[SKI_QUESTION_TO_DEDUCT_INTEL_FROM_PLAYERS_ACCOUNT_TO_COVER_COST], zMoney );
|
||||
|
||||
//ask them if we should deduct money out the players account to cover the difference
|
||||
DoSkiMessageBox( MSG_BOX_BASIC_STYLE, zText, SHOPKEEPER_SCREEN, MSG_BOX_FLAG_YESNO, ConfirmToDeductIntelFromPlayersAccountMessageBoxCallBack );
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user