ActorInventory:initBody: inventory short_name is copied from the inventory definition
New function: Object:wornLocations(use_actor, weight_fn, filter_field, no_type_check) Replaces Actor:getFilteredInventories Returns a table if locations (inventory and slot) where an object can be worn, filtered and sorted The locations are sorted ("best" first), permitting Actors to automatically optimize their equipment. The default weight_fn is a simple formula (based on object "power" from material level and getPowerRank), but can be updated to be more sophisticated. no_type_check can be specified to allow different type replacement equipment for unfiltered inventories game.state:applyRandomClass: data.update_body can be a list of inventory slots specifying which inventories to define/update when applying a class game.state:createRandomBoss: Base actor equipment resolvers are updated to "boss" level drops. resolvers.generateObject renamed resolvers.resolveObject: new filter fields supported: replace_unique: specifies a filter to replace a unique that could not be created (similar to randart_replace, but the replacement object is equipped rather than the existing unique) check_antimagic: force an antimagic check even if the object will not be worn resolvers.auto_equip_filters(t, readonly): set readonly to specify an inventory filter that cannot be overwritten (to ensure specific equipment is not removed, i.e. Elandar will not replace the Staff of Absorption if he gets extra classes from higher game difficulties) Object resolvers add the field _resolver_type to the objects they create. dialogs.debug.RandomObject: fixed a bug causing resolvers.equip to preview ineligible equipment (antimagic check) dialogs.debug.SummonCreature: fixed a bug causing summoned actors to try to wear equipment before being fully resolved Added/updated auto_equip_filters for a number of NPCs
Showing
- game/engines/default/engine/interface/ActorInventory.lua 2 additions, 2 deletionsgame/engines/default/engine/interface/ActorInventory.lua
- game/modules/tome/class/Actor.lua 23 additions, 68 deletionsgame/modules/tome/class/Actor.lua
- game/modules/tome/class/GameState.lua 19 additions, 9 deletionsgame/modules/tome/class/GameState.lua
- game/modules/tome/class/Object.lua 71 additions, 0 deletionsgame/modules/tome/class/Object.lua
- game/modules/tome/data/zones/high-peak/npcs.lua 1 addition, 1 deletiongame/modules/tome/data/zones/high-peak/npcs.lua
- game/modules/tome/data/zones/high-peak/objects.lua 1 addition, 0 deletionsgame/modules/tome/data/zones/high-peak/objects.lua
- game/modules/tome/dialogs/debug/RandomObject.lua 18 additions, 5 deletionsgame/modules/tome/dialogs/debug/RandomObject.lua
- game/modules/tome/dialogs/debug/SummonCreature.lua 0 additions, 1 deletiongame/modules/tome/dialogs/debug/SummonCreature.lua
- game/modules/tome/resolvers.lua 136 additions, 93 deletionsgame/modules/tome/resolvers.lua
Loading
Please register or sign in to comment