Show
Ignore:
Timestamp:
11/19/08 13:25:37 (17 years ago)
Author:
yumileroy
Message:

[svn] * Removing useless data accidentally committed.
* Applying ImpConfig? patch.
* Note: QUEUE_FOR_GM currently disabled as it's not compatible with the ACE patch. Anyone care to rewrite it?
* Note2: This is untested - I may have done some mistakes here and there. Will try to compile now.

Original author: XTZGZoReX
Date: 2008-10-10 13:37:21-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/World.cpp

    r28 r34  
    6363volatile uint32 World::m_worldLoopCounter = 0; 
    6464 
     65float World::m_PlayerStartGold = 0; // starting gold 
    6566float World::m_MaxVisibleDistanceForCreature  = DEFAULT_VISIBILITY_DISTANCE; 
    6667float World::m_MaxVisibleDistanceForPlayer    = DEFAULT_VISIBILITY_DISTANCE; 
     
    769770    m_configs[CONFIG_LISTEN_RANGE_YELL]      = sConfig.GetIntDefault("ListenRange.Yell", 300); 
    770771 
     772        m_PlayerStartGold = sConfig.GetFloatDefault("PlayerStart.Gold", 0); 
     773        if(m_PlayerStartGold < 0) 
     774                m_PlayerStartGold = 0; 
     775 
     776        if(m_PlayerStartGold > MAX_MONEY_AMOUNT) 
     777                m_PlayerStartGold = MAX_MONEY_AMOUNT; 
     778 
     779        m_configs[CONFIG_PLAYER_START_HONOR] = sConfig.GetIntDefault("PlayerStart.HonorPoints", 0); 
     780        if(m_configs[CONFIG_PLAYER_START_HONOR] < 0) 
     781                m_configs[CONFIG_PLAYER_START_HONOR] = 0; 
     782 
     783        m_configs[CONFIG_PLAYER_START_ARENAPTS] = sConfig.GetIntDefault("PlayerStart.ArenaPoints", 0); 
     784        if(m_configs[CONFIG_PLAYER_START_ARENAPTS] < 0) 
     785                m_configs[CONFIG_PLAYER_START_ARENAPTS] = 0; 
     786 
     787        m_configs[CONFIG_GM_START_LEVEL] = sConfig.GetIntDefault("GamemasterStartLevel", 70); 
     788        if(m_configs[CONFIG_GM_START_LEVEL] < 1) 
     789                m_configs[CONFIG_GM_START_LEVEL] = 1; 
     790 
     791        m_configs[CONFIG_INSTANT_LOGOUT] = sConfig.GetBoolDefault("PlayerInstantLogout", false); 
     792        m_configs[CONFIG_BG_START_MUSIC] = sConfig.GetBoolDefault("MusicInBattleground", false); 
     793        m_configs[CONFIG_START_ALL_SPELLS] = sConfig.GetBoolDefault("PlayerStart.AllSpells", false); 
     794        // Leaving GM queue option out for now, it's not 100% functional with the ACE patch 
     795        //m_configs[CONFIG_QUEUE_FOR_GM] = sConfig.GetBoolDefault("EnableQueueForGMs", false); 
     796        m_configs[CONFIG_HONOR_AFTER_DUEL] = sConfig.GetIntDefault("HonorPointsAfterDuel", 0); 
     797        if(m_configs[CONFIG_HONOR_AFTER_DUEL] < 0) 
     798                m_configs[CONFIG_HONOR_AFTER_DUEL]= 0; 
     799        m_configs[CONFIG_KICK_FROM_GMISLAND] = sConfig.GetBoolDefault("AntiCheat.GMIsland", false); 
     800        m_configs[CONFIG_START_ALL_EXPLORED] = sConfig.GetBoolDefault("PlayerStart.MapsExplored", false); 
     801        m_configs[CONFIG_DISABLE_BREATHING] = sConfig.GetBoolDefault("DisableWaterBreath", false); 
     802        m_configs[CONFIG_DISABLE_RES_SICKNESS] = sConfig.GetBoolDefault("DisableResurrectSickness", false); 
     803        m_configs[CONFIG_START_ALL_REP] = sConfig.GetBoolDefault("PlayerStart.AllReputation", false); 
     804        m_configs[CONFIG_ALWAYS_MAXSKILL] = sConfig.GetBoolDefault("AlwaysMaxWeaponSkill", false); 
     805        m_configs[CONFIG_START_ALL_TAXI] = sConfig.GetBoolDefault("PlayerStart.AllFlightPaths", false); 
     806        m_configs[CONFIG_PVP_TOKEN_ENABLE] = sConfig.GetBoolDefault("PvPToken.Enable", false); 
     807        m_configs[CONFIG_PVP_TOKEN_MAP_TYPE] = sConfig.GetIntDefault("PvPToken.MapAllowType", 4); 
     808        m_configs[CONFIG_PVP_TOKEN_ID] = sConfig.GetIntDefault("PvPToken.ItemID", 29434); 
     809        m_configs[CONFIG_PVP_TOKEN_COUNT] = sConfig.GetIntDefault("PvPToken.ItemCount", 1); 
     810        if(m_configs[CONFIG_PVP_TOKEN_COUNT] < 1) 
     811                m_configs[CONFIG_PVP_TOKEN_COUNT] = 1; 
     812        m_configs[CONFIG_NO_RESET_TALENT_COST] = sConfig.GetBoolDefault("NoResetTalentsCost", false); 
    771813 
    772814    m_configs[CONFIG_ARENA_MAX_RATING_DIFFERENCE] = sConfig.GetIntDefault("Arena.MaxRatingDifference", 0);