Adjustments and fixes for the new player reward system.
Contributed by altronrain.
This commit is contained in:
@ -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
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user