Config to enable premium dyes for non premium players.
This commit is contained in:
@ -1206,6 +1206,7 @@ public final class Config
|
||||
public static float PREMIUM_RATE_SPOIL_CHANCE;
|
||||
public static float PREMIUM_RATE_SPOIL_AMOUNT;
|
||||
public static boolean PREMIUM_HENNA_SLOT_ENABLED;
|
||||
public static boolean PREMIUM_HENNA_SLOT_ENABLED_FOR_ALL;
|
||||
public static boolean PREMIUM_HENNA_SLOT_ALL_DYES;
|
||||
public static Map<Integer, Float> PREMIUM_RATE_DROP_CHANCE_BY_ID;
|
||||
public static Map<Integer, Float> PREMIUM_RATE_DROP_AMOUNT_BY_ID;
|
||||
@ -2752,6 +2753,7 @@ public final class Config
|
||||
PREMIUM_RATE_SPOIL_CHANCE = PremiumSystem.getFloat("PremiumRateSpoilChance", 2);
|
||||
PREMIUM_RATE_SPOIL_AMOUNT = PremiumSystem.getFloat("PremiumRateSpoilAmount", 1);
|
||||
PREMIUM_HENNA_SLOT_ENABLED = PremiumSystem.getBoolean("EnablePremiumHennaSlot", true);
|
||||
PREMIUM_HENNA_SLOT_ENABLED_FOR_ALL = PremiumSystem.getBoolean("EnablePremiumHennaSlotforNonPremium", true);
|
||||
PREMIUM_HENNA_SLOT_ALL_DYES = PremiumSystem.getBoolean("EnableAnyHennaAtPremiumSlot", false);
|
||||
final String[] premiumDropChanceMultiplier = PremiumSystem.getString("PremiumRateDropChanceByItemId", "").split(";");
|
||||
PREMIUM_RATE_DROP_CHANCE_BY_ID = new HashMap<>(premiumDropChanceMultiplier.length);
|
||||
|
@ -58,7 +58,7 @@ public final class RequestHennaEquip implements IClientIncomingPacket
|
||||
}
|
||||
|
||||
int totalHennaSlots = activeChar.getHennaEmptySlots();
|
||||
if (activeChar.hasPremiumStatus() && Config.PREMIUM_HENNA_SLOT_ENABLED && (activeChar.getClassId().level() > 1) && (activeChar.getHenna(4) == null))
|
||||
if ((Config.PREMIUM_HENNA_SLOT_ENABLED_FOR_ALL || activeChar.hasPremiumStatus()) && Config.PREMIUM_HENNA_SLOT_ENABLED && (activeChar.getClassId().level() > 1) && (activeChar.getHenna(4) == null))
|
||||
{
|
||||
totalHennaSlots++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user