Refresh stats more often

This commit is contained in:
Greg Edwards 2014-05-05 04:23:46 -04:00
parent e3268208d2
commit c101b5e1f6
2 changed files with 16 additions and 0 deletions

View File

@ -201,6 +201,7 @@ namespace PkmnFoundations.GTS
bool success = DataAbstract.Instance.GtsDeletePokemon4(pid);
if (success)
{
manager.RefreshStats();
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
}
else
@ -238,6 +239,7 @@ namespace PkmnFoundations.GTS
bool success = DataAbstract.Instance.GtsDeletePokemon4(pid);
if (success)
{
manager.RefreshStats();
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
}
else
@ -311,7 +313,10 @@ namespace PkmnFoundations.GTS
GtsRecord4 record = (GtsRecord4)prevSession.Tag;
if (DataAbstract.Instance.GtsDepositPokemon4(record))
{
manager.RefreshStats();
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
}
else
response.Write(new byte[] { 0x00, 0x00 }, 0, 2);
@ -431,7 +436,10 @@ namespace PkmnFoundations.GTS
GtsRecord4 result = (GtsRecord4)tag[1];
if (DataAbstract.Instance.GtsTradePokemon4(upload, result))
{
manager.RefreshStats();
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
}
else
response.Write(new byte[] { 0x00, 0x00 }, 0, 2);

View File

@ -204,6 +204,7 @@ namespace PkmnFoundations.GTS
if (success)
{
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
manager.RefreshStats();
}
else
{
@ -240,6 +241,7 @@ namespace PkmnFoundations.GTS
if (success)
{
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
manager.RefreshStats();
}
else
{
@ -316,7 +318,10 @@ namespace PkmnFoundations.GTS
GtsRecord5 record = (GtsRecord5)prevSession.Tag;
if (DataAbstract.Instance.GtsDepositPokemon5(record))
{
manager.RefreshStats();
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
}
else
response.Write(new byte[] { 0x00, 0x00 }, 0, 2);
@ -433,7 +438,10 @@ namespace PkmnFoundations.GTS
GtsRecord5 result = (GtsRecord5)tag[1];
if (DataAbstract.Instance.GtsTradePokemon5(upload, result))
{
manager.RefreshStats();
response.Write(new byte[] { 0x01, 0x00 }, 0, 2);
}
else
response.Write(new byte[] { 0x00, 0x00 }, 0, 2);