ground spawn "max skill increase" rules changed
This commit is contained in:
parent
4ee282c460
commit
1b2983d376
@ -138,7 +138,10 @@ void GroundSpawn::ProcessHarvest(Client* client) {
|
|||||||
|
|
||||||
int16 totalSkill = skill->current_val;
|
int16 totalSkill = skill->current_val;
|
||||||
int32 skillID = master_item_list.GetItemStatIDByName(collection_skill);
|
int32 skillID = master_item_list.GetItemStatIDByName(collection_skill);
|
||||||
int16 max_skill_req_groundspawn = 10;
|
int16 max_skill_req_groundspawn = rule_manager.GetGlobalRule(R_Player, MinSkillMultiplierValue)->GetInt16();
|
||||||
|
if(max_skill_req_groundspawn < 1) // can't be 0
|
||||||
|
max_skill_req_groundspawn = 1;
|
||||||
|
|
||||||
if(skillID != 0xFFFFFFFF)
|
if(skillID != 0xFFFFFFFF)
|
||||||
{
|
{
|
||||||
((Entity*)client->GetPlayer())->MStats.lock();
|
((Entity*)client->GetPlayer())->MStats.lock();
|
||||||
|
@ -239,7 +239,8 @@ void RuleManager::Init()
|
|||||||
RULE_INIT(R_Player, StartPowerLevelMod, "2.1");
|
RULE_INIT(R_Player, StartPowerLevelMod, "2.1");
|
||||||
RULE_INIT(R_Player, AllowPlayerEquipCombat, "1");
|
RULE_INIT(R_Player, AllowPlayerEquipCombat, "1");
|
||||||
RULE_INIT(R_Player, MaxTargetCommandDistance, "50.0"); // max distance allowed for /target command when target name is not in group
|
RULE_INIT(R_Player, MaxTargetCommandDistance, "50.0"); // max distance allowed for /target command when target name is not in group
|
||||||
RULE_INIT(R_Player, HarvestSkillUpMultiplier, "1.5"); /* multiplier for node to take the "min skill" max and use a multiplier to offset the max skill allowed to skill up on node.
|
RULE_INIT(R_Player, MinSkillMultiplierValue, "30"); // min skill we use as a multiplier to note the max skill allowed by the node
|
||||||
|
RULE_INIT(R_Player, HarvestSkillUpMultiplier, "2.0"); /* multiplier for node to take the "min skill" max and use a multiplier to offset the max skill allowed to skill up on node.
|
||||||
** Eg. 50 min skill on node, 50*1.5=75, no one with higher than 75 skill gets a skill up
|
** Eg. 50 min skill on node, 50*1.5=75, no one with higher than 75 skill gets a skill up
|
||||||
*/
|
*/
|
||||||
/* PVP */
|
/* PVP */
|
||||||
|
@ -99,6 +99,7 @@ enum RuleType {
|
|||||||
StartPowerLevelMod,
|
StartPowerLevelMod,
|
||||||
AllowPlayerEquipCombat,
|
AllowPlayerEquipCombat,
|
||||||
MaxTargetCommandDistance,
|
MaxTargetCommandDistance,
|
||||||
|
MinSkillMultiplierValue,
|
||||||
HarvestSkillUpMultiplier,
|
HarvestSkillUpMultiplier,
|
||||||
|
|
||||||
/* PVP */
|
/* PVP */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user