Added a few missing cashpoint message comments

This commit is contained in:
Lemongrass3110 2017-07-03 22:25:14 +02:00
parent f86ba2b6b8
commit 689a3ff9b3
2 changed files with 7 additions and 7 deletions

View File

@ -8426,18 +8426,18 @@ ACMD_FUNC(cash)
if( (ret=pc_getcash(sd, value, 0, LOG_TYPE_COMMAND)) >= 0){
// If this option is set, the message is already sent by pc function
if( !battle_config.cashshop_show_points ){
sprintf(output, msg_txt(sd,505), ret, sd->cashPoints);
sprintf(output, msg_txt(sd,505), ret, sd->cashPoints); // Gained %d cash points. Total %d points.
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
}
}
else clif_displaymessage(fd, msg_txt(sd,149)); // Unable to decrease the number/value.
else clif_displaymessage(fd, msg_txt(sd,149)); // Impossible to increase the number/value.
} else {
if (-value > sd->cashPoints) //By command, if cash < value, force it to remove all
value = -sd->cashPoints;
if( (ret=pc_paycash(sd, -value, 0, LOG_TYPE_COMMAND)) >= 0){
// If this option is set, the message is already sent by pc function
if( !battle_config.cashshop_show_points ){
sprintf(output, msg_txt(sd,410), ret, sd->cashPoints);
sprintf(output, msg_txt(sd,410), ret, sd->cashPoints); // Removed %d cash points. Total %d points.
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
}
}
@ -8448,13 +8448,13 @@ ACMD_FUNC(cash)
{ // @points
if( value > 0 ) {
if( (ret=pc_getcash(sd, 0, value, LOG_TYPE_COMMAND)) >= 0){
sprintf(output, msg_txt(sd,506), ret, sd->kafraPoints);
sprintf(output, msg_txt(sd,506), ret, sd->kafraPoints); // Gained %d kafra points. Total %d points.
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
}
else clif_displaymessage(fd, msg_txt(sd,149)); // Unable to decrease the number/value.
else clif_displaymessage(fd, msg_txt(sd,149)); // Impossible to increase the number/value.
} else {
if( (ret=pc_paycash(sd, -value, -value, LOG_TYPE_COMMAND)) >= 0){
sprintf(output, msg_txt(sd,411), ret, sd->kafraPoints);
sprintf(output, msg_txt(sd,411), ret, sd->kafraPoints); // Removed %d kafra points. Total %d points.
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
}
else clif_displaymessage(fd, msg_txt(sd,41)); // Unable to decrease the number/value.

View File

@ -4361,7 +4361,7 @@ int pc_paycash(struct map_session_data *sd, int price, int points, e_log_pick_ty
{
char output[CHAT_SIZE_MAX];
sprintf(output, msg_txt(sd,504), points, cash, sd->kafraPoints, sd->cashPoints);
sprintf(output, msg_txt(sd,504), points, cash, sd->kafraPoints, sd->cashPoints); // Used %d kafra points and %d cash points. %d kafra and %d cash points remaining.
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
}
return cash+points;