fix give meter bug when playcount still 0
This commit is contained in:
parent
d22d98fad2
commit
4f275d383f
@ -193,7 +193,7 @@ export default class GameModule extends Module {
|
|||||||
let giveMeterReward = Config.getConfig().gameOptions.giveMeterReward;
|
let giveMeterReward = Config.getConfig().gameOptions.giveMeterReward;
|
||||||
|
|
||||||
// Check if this feature activated and check if user's play count is n*100 play
|
// Check if this feature activated and check if user's play count is n*100 play
|
||||||
if(giveMeterReward === 1 && body.playCount % 100 === 0)
|
if(giveMeterReward === 1 && body.playCount % 100 === 0 && body.playCount !== 0)
|
||||||
{
|
{
|
||||||
// Calling give meter reward function (BASE_PATH/src/util/meter_reward.ts)
|
// Calling give meter reward function (BASE_PATH/src/util/meter_reward.ts)
|
||||||
await meter_reward.giveMeterRewards(body);
|
await meter_reward.giveMeterRewards(body);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user