浏览代码

missing rule updates

Emagi 9 月之前
父节点
当前提交
3589742e08
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      EQ2/source/WorldServer/Rules/Rules.cpp
  2. 2 1
      EQ2/source/WorldServer/Rules/Rules.h

+ 1 - 0
EQ2/source/WorldServer/Rules/Rules.cpp

@@ -348,6 +348,7 @@ void RuleManager::Init()
 	RULE_INIT(R_Loot, ChestUnlockedTimeTrap, "600"); // time in seconds, 10 minutes by default
 	RULE_INIT(R_Loot, AllowChestUnlockByTrapTime, "1"); // when set to 1 we will allow unlocking the chest to all players after the trap is triggered (or chest is open) and period ChestUnlockedTimeTrap elapsed
 	RULE_INIT(R_Loot, SkipLootGrayMob, "1");
+	RULE_INIT(R_Loot, LootDistributionTime, "120"); // time in seconds that we allow the group to determine their loot decision (lotto/need/greed/decline).
 
 	RULE_INIT(R_Spells, NoInterruptBaseChance, "50");
 	RULE_INIT(R_Spells, EnableFizzleSpells, "1"); // enables/disables the 'fizzling' of spells based on can_fizzle in the spells table.  This also enables increasing specialized skills for classes based on spells/abilities.

+ 2 - 1
EQ2/source/WorldServer/Rules/Rules.h

@@ -230,7 +230,8 @@ enum RuleType {
 
 	DatabaseVersion,
 
-	SkipLootGrayMob
+	SkipLootGrayMob,
+	LootDistributionTime	
 };
 
 class Rule {