Adjustments and fixes for the new player reward system.

Contributed by altronrain.
This commit is contained in:
MobiusDevelopment
2022-06-30 21:51:59 +00:00
parent 8ea779a767
commit 915bb9e455
30 changed files with 244 additions and 66 deletions

View File

@ -557,6 +557,7 @@ public class Player extends Playable
if (Config.ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE)
{
player.setNewbie(true);
player.getVariables().set(PlayerVariables.NEW_PLAYERS_REWARDS_RECEIVED, 0);
}
// Add the player in the characters table of the database

View File

@ -38,6 +38,9 @@ public class PlayerVariables extends AbstractVariables
private static final String DELETE_QUERY = "DELETE FROM character_variables WHERE charId = ?";
private static final String INSERT_QUERY = "INSERT INTO character_variables (charId, var, val) VALUES (?, ?, ?)";
// Public variable names
public static final String NEW_PLAYERS_REWARDS_RECEIVED = "NEW_PLAYERS_REWARDS_RECEIVED";
private final int _objectId;
public PlayerVariables(int objectId)