allow partial rules for specific item types
This commit is contained in:
@@ -3,10 +3,7 @@ package nip
|
||||
// These stats are currently NOT supported, rules can not contain them otherwise it will return an error
|
||||
var notSupportedStats = []string{
|
||||
"plusmindamage",
|
||||
"mindamage",
|
||||
"plusmaxdamage",
|
||||
"maxdamage",
|
||||
"enhanceddamage",
|
||||
"itemarmorpercent",
|
||||
"itemmindamagepercent",
|
||||
"itemslashdamage",
|
||||
@@ -19,3 +16,10 @@ var notSupportedStats = []string{
|
||||
"secondarymaxdamage",
|
||||
"damagepercent",
|
||||
}
|
||||
|
||||
// These stats are partially supported, rules can contain them but the ones matching the item type in this list will be blocked
|
||||
var blockedStatsForItemType = map[string][]string{
|
||||
"mindamage": {"axe", "wand", "club", "scepter", "mace", "hammer", "sword", "knife", "thrownweapon", "throwingaxe", "javelin", "spear", "polearm", "staff", "bow", "crossbow", "assassinclaw", "orb", "amazonbow", "amazonspear", "amazonjavelin"},
|
||||
"maxdamage": {"axe", "wand", "club", "scepter", "mace", "hammer", "sword", "knife", "thrownweapon", "throwingaxe", "javelin", "spear", "polearm", "staff", "bow", "crossbow", "assassinclaw", "orb", "amazonbow", "amazonspear", "amazonjavelin"},
|
||||
"enhanceddamage": {"axe", "wand", "club", "scepter", "mace", "hammer", "sword", "knife", "thrownweapon", "throwingaxe", "javelin", "spear", "polearm", "staff", "bow", "crossbow", "assassinclaw", "orb", "amazonbow", "amazonspear", "amazonjavelin"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user