Commit patch #265 - Give player feedback when getting an oil drum
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6636 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
0a45316b65
commit
84821b2a2f
|
@ -35,6 +35,7 @@
|
|||
#include "lib/netplay/netplay.h"
|
||||
#include "lib/sound/audio.h"
|
||||
#include "lib/sound/audio_id.h"
|
||||
#include "console.h"
|
||||
|
||||
#include "move.h"
|
||||
|
||||
|
@ -2943,6 +2944,7 @@ static void checkLocalFeatures(DROID *psDroid)
|
|||
|
||||
{
|
||||
addPower(selectedPlayer,OILDRUM_POWER);
|
||||
CONPRINTF(ConsoleString,(ConsoleString,_("You found %u power in an oil drum"),OILDRUM_POWER));
|
||||
}
|
||||
removeFeature((FEATURE*)psObj); // remove artifact+ send multiplay info.
|
||||
|
||||
|
|
|
@ -321,6 +321,10 @@ void giftPower(uint8_t from, uint8_t to, BOOL send)
|
|||
|
||||
addPower(to, gifval);
|
||||
|
||||
if (from == ANYPLAYER)
|
||||
{
|
||||
CONPRINTF(ConsoleString,(ConsoleString,_("You found %u power in an oil drum"),gifval));
|
||||
}
|
||||
if (send)
|
||||
{
|
||||
uint8_t giftType = POWER_GIFT;
|
||||
|
@ -334,7 +338,7 @@ void giftPower(uint8_t from, uint8_t to, BOOL send)
|
|||
}
|
||||
else if (to == selectedPlayer)
|
||||
{
|
||||
CONPRINTF(ConsoleString,(ConsoleString,_("%s Gives You Power"),getPlayerName(from)));
|
||||
CONPRINTF(ConsoleString,(ConsoleString,_("%s Gives You %u Power"),getPlayerName(from),gifval));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue