Alangara_PRC8/_module/nss/mn_aidb_persist.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

38 lines
624 B
Plaintext

// Persistant functions include
const string AIDB_DB = "MN_AIDB_DB";
const int CHERRY2ENERGY = 100;
int GetChaGold()
{
int result = GetCampaignInt( AIDB_DB, "chagold" );
return result;
}
void SetChaGold(int amount)
{
SetCampaignInt( AIDB_DB, "chagold", amount );
}
int GetOpGold()
{
int result = GetCampaignInt( AIDB_DB, "opgold" );
return result;
}
void SetOpGold(int amount)
{
SetCampaignInt( AIDB_DB, "opgold", amount );
}
int GetEnergy()
{
int result = GetCampaignInt( AIDB_DB, "energy" );
return result;
}
void SetEnergy(int amount)
{
SetCampaignInt( AIDB_DB, "energy", amount );
}