Opened 6 years ago

Last modified 6 years ago

#1600 new task

Create master table for legal affixes

Reported by: magnate Owned by: magnate
Milestone: v4 Keywords: cleanup
Cc:

Description (last modified by magnate)

obj_find_affix is a huge timesink. It should work like choosing a base kind, using a global lookup table which is created during init - because the legality of each affix on each item at each depth doesn't change during the game.

But there's an extra dimension which base kinds don't have, which is the affix level.

Change History (1)

comment:1 Changed 6 years ago by magnate

  • Description modified (diff)

There's also #1562. With the alloc table created on-the-fly, we can check for compatibility there. With a master table we'd simply have to reject picks and re-pick to implement exclusivity, and it would be impossible to do more sophisticated things like increase the probability of certain affixes if a particular one is already present. But it might be worth it for the speed increase ...

Note: See TracTickets for help on using tickets.