将天赋陪率在conf文件设置
- Index: ascent.conf
- ===================================================================
- --- ascent.conf (revision 2576)
- +++ ascent.conf (working copy)
- @@ -270,7 +270,9 @@
- SkillRate="1"
- ArenaMultiplier2x="1"
- ArenaMultiplier3x="1"
- - ArenaMultiplier5x="1">
- + ArenaMultiplier5x="1"
- + Professions="2"
- + TalentRate="1">
- #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
- Index: game/Player.cpp
- ===================================================================
- --- game/Player.cpp (revision 2576)
- +++ game/Player.cpp (working copy)
- @@ -691,7 +691,7 @@
- SetUInt32Value(PLAYER_BYTES_3, ((gender) | (0x00 << 8) | (0x00 << 16) | (GetPVPRank() << 24)));
- SetUInt32Value(PLAYER_NEXT_LEVEL_XP, 400);
- SetUInt32Value(PLAYER_FIELD_BYTES, 0x08 );
- - SetUInt32Value(PLAYER_CHARACTER_POINTS2,2);
- + SetUInt32Value(PLAYER_CHARACTER_POINTS2, ( 1 * RATE_PROFESSION ) );
- SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0f);
- SetUInt32Value(PLAYER_FIELD_MAX_LEVEL, sWorld.m_levelCap);
- @@ -1374,7 +1374,7 @@
- levelup = true;
- if(level > 9)
- - ModUInt32Value(PLAYER_CHARACTER_POINTS1, 1);
- + ModUInt32Value(PLAYER_CHARACTER_POINTS1, ( 5 * RATE_TALENT ) );
- if(level >= GetUInt32Value(PLAYER_FIELD_MAX_LEVEL))
- break;
- @@ -1992,8 +1992,8 @@
- void Player::SaveToDB(bool bNewCharacter /* =false */)
- {
- - if(m_uint32Values[PLAYER_CHARACTER_POINTS2]>2)
- - m_uint32Values[PLAYER_CHARACTER_POINTS2]=2;
- + if(m_uint32Values[PLAYER_CHARACTER_POINTS2]> ( 1 * RATE_PROFESSION ) )
- + m_uint32Values[PLAYER_CHARACTER_POINTS2]= ( 1 * RATE_PROFESSION );
- //Calc played times
- uint32 playedt = (uint32)UNIXTIME - m_playedtime[2];
- @@ -5535,7 +5535,7 @@
- uint32 l=getLevel();
- if(l>9)
- {
- - SetUInt32Value(PLAYER_CHARACTER_POINTS1, l - 9);
- + SetUInt32Value(PLAYER_CHARACTER_POINTS1, (l - 9) * ( RATE_TALENT * 5 ) );
- }
- else
- {
- @@ -5575,7 +5575,7 @@
- SetUInt32Value(UNIT_FIELD_STAT4, info->spirit );
- SetUInt32Value(UNIT_FIELD_ATTACK_POWER, info->attackpower );
- SetUInt32Value(PLAYER_CHARACTER_POINTS1,0);
- - SetUInt32Value(PLAYER_CHARACTER_POINTS2,2);
- + SetUInt32Value(PLAYER_CHARACTER_POINTS2, ( 1 * RATE_PROFESSION ) );
- for(uint32 x=0;x<7;x++)
- SetFloatValue(PLAYER_FIELD_MOD_DAMAGE_DONE_PCT+x, 1.00);
- @@ -6966,7 +6966,7 @@
- // Calculate talentpoints
- uint32 TalentPoints = 0;
- if(Level >= 10)
- - TalentPoints = Level - 9;
- + TalentPoints = ( Level - 9 ) * ( RATE_TALENT * 5 );
- SetUInt32Value(PLAYER_CHARACTER_POINTS1, TalentPoints);
- Index: game/World.cpp
- ===================================================================
- --- game/World.cpp (revision 2576)
- +++ game/World.cpp (working copy)
- @@ -4486,6 +4486,8 @@
- setRate(RATE_ARENAPOINTMULTIPLIER2X, Config.MainConfig.GetFloatDefault("Rates", "ArenaMultiplier2x", 1.0f));
- setRate(RATE_ARENAPOINTMULTIPLIER3X, Config.MainConfig.GetFloatDefault("Rates", "ArenaMultiplier3x", 1.0f));
- setRate(RATE_ARENAPOINTMULTIPLIER5X, Config.MainConfig.GetFloatDefault("Rates", "ArenaMultiplier5x", 1.0f));
- + setIntRate(RATE_PROFESSION, Config.MainConfig.GetIntDefault("Rates", "Professions",1));
- + setIntRate(RATE_TALENT, Config.MainConfig.GetIntDefault("Rates", "TalentRate",1));
- SetPlayerLimit(Config.MainConfig.GetIntDefault("Server", "PlayerLimit", 1000));
- SetMotd(Config.MainConfig.GetStringDefault("Server", "Motd", "Ascent Default MOTD").c_str());
- mQueueUpdateInterval = Config.MainConfig.GetIntDefault("Server", "QueueUpdateInterval", 5000);
- Index: game/World.h
- ===================================================================
- --- game/World.h (revision 2576)
- +++ game/World.h (working copy)
- @@ -61,6 +61,8 @@
- RATE_ARENAPOINTMULTIPLIER2X,
- RATE_ARENAPOINTMULTIPLIER3X,
- RATE_ARENAPOINTMULTIPLIER5X,
- + RATE_PROFESSION,
- + RATE_TALENT,
- MAX_RATES
- };
Tags:
作者:佚名评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论