Skip to content
Snippets Groups Projects
  1. Apr 23, 2018
  2. Apr 19, 2018
  3. Apr 17, 2018
  4. Mar 21, 2018
  5. Nov 13, 2017
  6. Feb 12, 2017
  7. Jan 04, 2017
  8. Nov 12, 2016
  9. Aug 04, 2016
  10. Jan 10, 2016
  11. Jan 07, 2016
  12. Dec 24, 2015
  13. Dec 23, 2015
  14. Dec 11, 2015
  15. Nov 30, 2015
  16. Oct 23, 2015
  17. Sep 18, 2015
  18. Sep 16, 2015
  19. Sep 15, 2015
  20. Sep 07, 2015
    • Hachem_Muche's avatar
      Standardizes Resource definitions. · 15454174
      Hachem_Muche authored
      This revises the way Actor resources are handled to allow them to be defined in one place (at tome.load), simplifying their definition, eliminating the need for most hooks to handle them, and making them easier for the AI to manage properly.
      
      Engine:
      ActorResource:defineResource can now take a parameters field that merges additional information into the definition.
      An extra check is added to prevent redefining an existing resource.
      Defining a new resource now defines the string fields getFunction, getMinFunction, getMaxFunction, incFunction, incMinFunction, incMaxFunction to allow indirect reverence to the correct resource functions from the definition.
      Added support for an invert_values flag (resource increases when used), and sustain_prop and drain_prop fields for sustained talents.
      This allows the module code to loop through all the defined fields/functions when checking for the corresponding properties in actor and talent tables.
      
      ToME:
      Hard coded resource references have been replaced with a loop checking all defined sustains for:
      Actor:act (canceling sustains)
      Actor:resetToFull (will replenish all defined resources by default)
      Actor:checkPool, Actor:learnPool, Actor:learnTalent, Actor:unlearnTalent, Actor:preUseTalent, Actor:postUseTalent, Actor:getTalentFullDescription
      This eliminates the need to use the hooks/callbacks in these functions for (almost) all defined resources.
      Added comments in tome:load explain for addon developers how to create resource definitions to take advantage of these changes.
      
      Resource definitions can set .hidden_resource = true to prevent display in various player interfaces.
      Resource definitions have a .color ("#COLOR#") field set to display resources with a consistent color in various places.
      
      Updated the Classic and Minimalist uisets and the CharacterSheet to look through the list of all defined resources for resource values to display.
      Classic uiset:
      	Fixed some formatting problems that were causing some resource values not to display properly.
      	Added some variables to make resizing the player panel easier in the future.
      	Added the log_lines parameter to the Game Options menu.
      
      Minimalist uiset:
      	Reformatted resource graphics/text to be more clear and to avoid unreadable text.
      	The ui will go through a series of default checks to search for appropriate graphics for each resource.
      
      The general tab of the CharacterSheet has been adjusted to provide room for more resources and will now display their regeneration values.
      
      Added/updated tooltips for several ui elements.
      15454174
  21. Mar 08, 2015
  22. Mar 05, 2015
  23. Mar 02, 2015
  24. Feb 06, 2015
  25. Feb 03, 2015
  26. Jan 22, 2015
  27. Jan 20, 2015
  28. Jan 01, 2015
  29. Dec 31, 2014
  30. Dec 16, 2014
  31. Oct 09, 2014
  32. Aug 30, 2014
  33. May 20, 2014
  34. May 19, 2014
  35. May 06, 2014
  36. May 05, 2014
  37. Apr 20, 2014
  38. Jan 16, 2014
Loading