- Sep 18, 2015
-
-
Samuel Wegner authored
-
- Sep 16, 2015
-
-
Samuel Wegner authored
-
Samuel Wegner authored
-Will replace an existing damage shield entirely if both the shield value and duration would be greater on the new shield. -Will update the current shield value (but not max value) of an existing shield if the new value would be greater. We keep the old max value because the player may want to buff their shield with Aegis. -If we updated an existing shield, we will refresh the duration to 3 turns unless the duration has already been refresh 20 times. This checks the same property used by Weapon of Light and Bathe in Light, which is why I allowed refreshing 20 times instead of a smaller amount. -It's unlikely that an existing shield would be refreshed many times by Arcane Shield, but I implemented this limitation to avoid refreshing the same shield indefinitely. T think Aegis is the only talent that benefits from refreshing an existing shield versus creating a new one, so there shouldn't be any real abuse potential here. -Note that this will never update or replace an existing shield if the current duration is greater than Arcane Shield's default duration. We can't know whether the player values shield value or duration more, and updating the shield value of an existing damage shield with greater duration would introduce power creep.
-
DarkGod authored
-
DarkGod authored
-
DarkGod authored
-
DarkGod authored
Merge branch 'CharacterSheetEnhancements' of http://git.net-core.org/Hachem_Muche/t-engine4 into Hachem_Muche/t-engine4-CharacterSheetEnhancements
-
DarkGod authored
-
DarkGod authored
-
- Sep 15, 2015
- Sep 11, 2015
-
-
Hachem_Muche authored
-
DarkGod authored
Others work incorporated Ported some of Marson's old work about autoexplore. Is that ever a bad thing?
-
DarkGod authored
Log combat This updates game.logMessage to allow for a nil target field, making logCombat easier to use. Updated/added a few combat messages.
-
DarkGod authored
Standardized resources * Standardizes Resource definitions. 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. The corresponding MR for Orcs is at: http://git.net-core.org/tome/tome-orcs/merge_requests/6 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 reference 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 to 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.
-
- Sep 10, 2015
-
-
Hachem_Muche authored
-
Alex Ksandra authored
-
- Sep 09, 2015
-
-
Alex Ksandra authored
Spotting a hostile after moving should not pause the game when we have no energy, for no good reason!
-
Alex Ksandra authored
-
Alex Ksandra authored
-
Hachem_Muche authored
This works exactly the same as the old code, except than any sustain with .remove_on_zero set can be cancelled regardless of resource properties. Only stamina and mana based sustains will be canceled by default.
-
- Sep 08, 2015
-
-
Hachem_Muche authored
Revert "When defined, Talent.remove_on_zero (true/false/function(self, t)) will override ActorResource.depleted_unsustain when determining if sustained talents are turned off due to resource depletion." This reverts commit 5b2fa31ceb958de6bc660cfee2eed2c8f21cdda2. Oops...
-
- Sep 07, 2015
-
-
Hachem_Muche authored
Added support for depleted resources canceling sustained talents (resources_def.depleted_unsustain and talents_def.remove_on_zero flags). Removed obsolete code from Actor:learnPool, and test resource/talent/pool
-
DarkGod authored
Misc Fixes Thread the Needle doing randomly huge damage. Makes Transcendent X apply its effects correctly to X Shield. Hopefully stops people being Hurricaned while dead.
-
Hachem_Muche authored
-
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.
-
- Aug 30, 2015
-
-
HousePet authored
-
- Aug 05, 2015
-
-
Hachem_Muche authored
Adjusted default equipdoll layout to avoid collisions between tinkers and equipment labels. Updated Charactersheet equipdoll to correctly show correct tinkers when switching equipment views. Offhand multiple for ranged shooters is 1 by default.
-
- Aug 02, 2015
-
-
DarkGod authored
-
- Aug 01, 2015
-
-
Hachem_Muche authored
-
- Jul 31, 2015
- Jul 28, 2015
-
-
DarkGod authored
-
DarkGod authored
-
DarkGod authored
Small fixes annoying annoying backspace bug
-
Hachem_Muche authored
-
- Jul 27, 2015
-
-
Alex Ksandra authored
-
DarkGod authored
Debug function help fix * Fixes a long-standing, slightly annoying command-line bug in the lua console.
-
Hachem_Muche authored
-
Hachem_Muche authored
The default frame size is based on the size of the font (200*font_w, 36*font_h) to maintain readability at different screen resolutions (tested from 800x600 to 1920x1200). Added an Equipment tab (with character doll) that allows you to inspect equipment (including offsets) of actors while inspecting them. Added a button to open the equipinven dialog (for the player only) which triggers the display updates, making equipment/stat management much easier and faster. Added hotkeys to allow direct select of each tab, and the initially displayed tab can be specified when the dialog is called. Redefined the default key binding for shift-c to open the character sheet for the actor under the mouse or within the targetting reticle if possible. This allows targeted enemies to be inspected during the targeting process. Added/enhanced tooltips for several items to provide more explanation of game mechanics. Fixed the display to always show comparison changes to resists/cap (including actor-specific), damage affinities, status immunities, damage/damage penetration bonuses (including actor-specific). Fixed a formatting issue that was causing some talents to be cut off on the talent tab. Fixed a bug that can cause ShowEquipInven to crash for actors with no defined main inventory (which is defined as required with default parameters). EquipDoll: Added support for a new scaling option that will resize the doll frame, graphics, and fonts (fonts are assumed to all be truetype). A specific/custom frame definition can be specified during instanciation for on-the-fly EquipDoll generation. The exact fonts used can be specified (which allows/requires manual scaling). The title can be specified or disabled during instaciation. The size of the doll graphic can be specified and the frame will be correctly sized for it if it is enabled. Added a new "abovetop" text position option to EquipDollFrames to allow for staggering text on a line. Objects: Updated getTextualDesc to provide more information for unidentified objects including the presence of special damage types inflicted and special effects, and the presence of activated abilities. Revised getShortName to note ego level instead of the list of keywords for unidentified objects.
-