mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-08-02 16:13:17 -05:00
Refresh stats more often
This commit is contained in:
parent
e3268208d2
commit
c101b5e1f6
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user