Method giveItemRandomly should calculate double chance values.
This commit is contained in:
		| @@ -2851,7 +2851,7 @@ public abstract class AbstractScript extends ManagedScript implements IEventTime | ||||
| 		 | ||||
| 		long minAmountWithBonus = (long) (minAmount * Config.RATE_QUEST_DROP); | ||||
| 		long maxAmountWithBonus = (long) (maxAmount * Config.RATE_QUEST_DROP); | ||||
| 		long dropChanceWithBonus = (long) (dropChance * Config.RATE_QUEST_DROP); // TODO separate configs for rate and amount | ||||
| 		double dropChanceWithBonus = dropChance * Config.RATE_QUEST_DROP; // TODO separate configs for rate and amount | ||||
| 		if ((npc != null) && Config.CHAMPION_ENABLE && npc.isChampion()) | ||||
| 		{ | ||||
| 			if ((itemId == Inventory.ADENA_ID) || (itemId == Inventory.ANCIENT_ADENA_ID)) | ||||
| @@ -2895,6 +2895,7 @@ public abstract class AbstractScript extends ManagedScript implements IEventTime | ||||
| 				{ | ||||
| 					playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET); | ||||
| 				} | ||||
| 				 | ||||
| 				// if there is no limit, return true every time an item is given | ||||
| 				if (limit <= 0) | ||||
| 				{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment