Module necro.game.item.ItemBan
Functions
getBanFlags (holder, item) | |
isBanned (holder, item, mask) |
Tables
Flag | |
Type |
Functions
- getBanFlags (holder, item)
-
Parameters:
- holder
- item
- isBanned (holder, item, mask)
-
Parameters:
- holder
- item
- mask
Tables
- Flag
-
Fields:
- PICKUP
1
- Prevents the player from picking up the item - LOSS_DROP
2
- Prevents the item from being dropped by collecting another item in the same slot. If the slot capacity is used up by drop-banned items, no more items of this slot can be picked up. - LOSS_SCATTER
4
- Prevents the item from being dropped via Scatter Trap - LOSS_SELL
8
- Prevents the item from being sold to the Pawnbroker - LOSS_SHRINE
16
- Prevents the item from being consumed by disarming shrines (Peace, Phasing) - CONVERT_SHRINE
32
- Prevents the item from being changed by conversion shrines (Rhythm, Glass) - CONVERT_SPELL
64
- Prevents the item from being changed by conversion spells (Need, Enchant) - CONVERT_TRANSACTION
128
- Prevents the item from being changed by transaction tiles (Transmogrifier) - GENERATE_ITEM_POOL
32768
- Removes the item from the common chest/shop/mimic/vault item pool - GENERATE_CRATE
65536
- Removes the item from crate-specific drops (food, bombs) - GENERATE_SHRINE_FIXED
131072
- Prevents the item from being granted by fixed-outcome shrines (e.g. War, Phasing, No Return) - GENERATE_SHRINE_POOL
262144
- Prevents the item from being granted by flexible-outcome shrines (e.g. Chance, Sacrifice, Pain) - GENERATE_SHRINE_DROP
524288
- Prevents the item from dropping from destroyed shrines - GENERATE_LEVEL
1048576
- Prevents the item from generating directly in the level (bomb, mouse-traps, potions) - GENERATE_TRANSACTION
2097152
- Prevents the item from being spawned by transaction tiles (Transmogrifier, Conjurer) - PICKUP_DEATH
4194304
- Kills the player when trying to pickup the item
- PICKUP
- Type
-
Fields:
- NONE
0
- No restrictions - GENERATION
2916352
- Don't generate in most loot pools, but still allow fixed-outcome shrines to spawn the item. This flag is typically used for initial equipment or items that would be too weak on the character. - GENERATION_ALL
4161536
- Don't generate under any circumstances. This flag is typically used for items that are unusable by the character. - LOCK
4161791
- Disallow pickup, drop, scatter or any replacement of this item. This flag is typically used for irreplacable equipment on the character. - FULL
4161537
- Disallow pickup and don't generate under any circumstances. This flag is typically used for items that are too powerful on the character.
- NONE