mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-30 07:18:03 -08:00
Compare commits
69 Commits
v2.5
...
084dd9667e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
084dd9667e | ||
|
|
c509876712 | ||
|
|
7b63e34ad0 | ||
|
|
c6a520996f | ||
|
|
f6fefb19d4 | ||
|
|
1c20591b33 | ||
|
|
3e66b920ef | ||
|
|
7f38532026 | ||
|
|
b805d88205 | ||
|
|
a100932a02 | ||
|
|
692e911617 | ||
|
|
6c2d09b505 | ||
|
|
26966818b3 | ||
|
|
e09c82278d | ||
|
|
e1d3754733 | ||
|
|
6b8809b79e | ||
|
|
d20446fe37 | ||
|
|
4e4aae3c68 | ||
|
|
3e121fbd1c | ||
|
|
ade8a6bf19 | ||
|
|
0eac453bf4 | ||
|
|
c4b7f6d195 | ||
|
|
e389f6cf53 | ||
|
|
9e8c77f480 | ||
|
|
9c2bc59a37 | ||
|
|
effe5579a7 | ||
|
|
0fbf47f7ff | ||
|
|
3e508c0e28 | ||
|
|
972d874a99 | ||
|
|
50726b9291 | ||
|
|
c39e5babea | ||
|
|
d1f56f4316 | ||
|
|
d3efcb5b08 | ||
|
|
681b865f03 | ||
|
|
6f40a1dfd3 | ||
|
|
432e115aea | ||
|
|
dfb7893c1a | ||
|
|
4bdb4ee2e6 | ||
|
|
30672922c4 | ||
|
|
31b5251c75 | ||
|
|
71b1992710 | ||
|
|
63ddbff12a | ||
|
|
0359042c97 | ||
|
|
c8dab31265 | ||
|
|
405c5e4aad | ||
|
|
597d27b935 | ||
|
|
90190f5af7 | ||
|
|
b5757e3b1e | ||
|
|
0992b918a3 | ||
|
|
7865b3276c | ||
|
|
cc1fe03272 | ||
|
|
57585cb5b5 | ||
|
|
96563f92f7 | ||
|
|
ea29e20a2c | ||
|
|
0a84471abc | ||
|
|
da2af8671a | ||
|
|
474d0b9eb8 | ||
|
|
e4057b84f5 | ||
|
|
3ac048aef9 | ||
|
|
9c3085198d | ||
|
|
ecf119dd97 | ||
|
|
663b456a4f | ||
|
|
e571ca62eb | ||
|
|
3b99512bb6 | ||
|
|
0fe53700ae | ||
|
|
488da17887 | ||
|
|
25d0035c16 | ||
|
|
34ac9e3c54 | ||
|
|
ce212ff757 |
135
README.md
135
README.md
@@ -1,10 +1,130 @@
|
|||||||
# "MHR Overlay" Mod for Monster Hunter: Rise
|
<p align="center">
|
||||||
|
<h2 align="center"><b>"MHR Overlay" Mod for Monster Hunter: Rise</b></h2>
|
||||||
|
<p align="center">Mod that exposes in-game data about monsters, creatures, players and damage. Draws a highly customizable UI.</p>
|
||||||
|
<p align="center">This mod is solely intended to empower players with means of self-improvement. Please don't use the information provided by this tool to make hurtful comments and actions toward other players.</p>
|
||||||
|
</p>
|
||||||
|
|
||||||
Exposes in-game data about monsters, creatures, players and damage. Draws a highly customizable UI.
|
<p align="center">
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/graphs/contributors">
|
||||||
|
<img alt="Contributors" src="https://custom-icon-badges.demolab.com/github/contributors/greencomfytea/mhr-overlay?logo=person-add" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/issues">
|
||||||
|
<img alt="Issues" src="https://custom-icon-badges.demolab.com/github/issues/greencomfytea/mhr-overlay?logo=issue-opened" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/issues">
|
||||||
|
<img alt="Issues Closed" src="https://custom-icon-badges.demolab.com/github/issues-closed/greencomfytea/mhr-overlay?logo=issue-closed" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/pulls">
|
||||||
|
<img alt="Pull Requests" src="https://custom-icon-badges.demolab.com/github/issues-pr/greencomfytea/mhr-overlay?logo=git-pull-request" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/pulls">
|
||||||
|
<img alt="Pull Requests Closed" src="https://custom-icon-badges.demolab.com/github/issues-pr-closed/greencomfytea/mhr-overlay?logo=git-pull-request-closed" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/blob/main/LICENSE">
|
||||||
|
<img alt="License" src="https://custom-icon-badges.demolab.com/github/license/greencomfytea/mhr-overlay?logo=law" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/releases">
|
||||||
|
<img alt="Release Version" src="https://custom-icon-badges.demolab.com/github/v/release/greencomfytea/mhr-overlay?logo=tag" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/releases">
|
||||||
|
<img alt="Release Date" src="https://custom-icon-badges.demolab.com/github/release-date/greencomfytea/mhr-overlay?logo=clock" />
|
||||||
|
</a>
|
||||||
|
<a href="">
|
||||||
|
<img alt="Platform" src="https://custom-icon-badges.demolab.com/badge/platform-win%20%7C%20linux%20%7C%20steam%20deck-blue?logo=device-desktop" />
|
||||||
|
</a>
|
||||||
|
<a href="">
|
||||||
|
<img alt="Maintenance" src="https://custom-icon-badges.demolab.com/maintenance/yes/2023?logo=tools" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://www.nexusmods.com/monsterhunterrise/mods/26">
|
||||||
|
<img alt="REFramework Dependency" src="https://custom-icon-badges.demolab.com/badge/dependency-REFramework%20v1.503%2B-green?logo=package-dependencies" />
|
||||||
|
</a>
|
||||||
|
<a href="https://www.nexusmods.com/monsterhunterrise/mods/134">
|
||||||
|
<img alt="REFramework Direct2D Dependency" src="https://custom-icon-badges.demolab.com/badge/dependency-REFramework%20Direct2D%20v0.4.0%2B-yellow?logo=package-dependencies" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/commits/main">
|
||||||
|
<img alt="Commits" src="https://custom-icon-badges.demolab.com/github/commit-activity/t/greencomfytea/mhr-overlay?logo=git-commit" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/commits/main">
|
||||||
|
<img alt="Last Commit" src="https://custom-icon-badges.demolab.com/github/last-commit/greencomfytea/mhr-overlay?logo=git-commit" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/commits/main">
|
||||||
|
<img alt="Commits Since" src="https://custom-icon-badges.demolab.com/github/commits-since/greencomfytea/mhr-overlay/latest?logo=git-commit" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/graphs/commit-activity">
|
||||||
|
<img alt="Commit Activity (Year)" src="https://custom-icon-badges.demolab.com/github/commit-activity/y/greencomfytea/mhr-overlay?logo=pulse" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/graphs/commit-activity">
|
||||||
|
<img alt="Commit Activity (Month)" src="https://custom-icon-badges.demolab.com/github/commit-activity/m/greencomfytea/mhr-overlay?logo=pulse" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/graphs/commit-activity">
|
||||||
|
<img alt="Commit Activity (Week)" src="https://custom-icon-badges.demolab.com/github/commit-activity/w/greencomfytea/mhr-overlay?logo=pulse" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<a href="">
|
||||||
|
<img alt="Repo Size" src="https://custom-icon-badges.demolab.com/github/repo-size/greencomfytea/mhr-overlay?logo=database" />
|
||||||
|
</a>
|
||||||
|
<a href="">
|
||||||
|
<img alt="Line Count" src="https://sloc.xyz/github/greencomfytea/mhr-overlay" />
|
||||||
|
</a>
|
||||||
|
<a href="">
|
||||||
|
<img alt="COCOMO" src="https://sloc.xyz/github/greencomfytea/mhr-overlay/?category=cocomo" />
|
||||||
|
</a>
|
||||||
|
<a href="">
|
||||||
|
<img alt="Goto Counter" src="https://custom-icon-badges.demolab.com/github/search/greencomfytea/mhr-overlay/goto?logo=git-compare" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/sponsors/greencomfytea">
|
||||||
|
<img alt="Sponsors" src="https://custom-icon-badges.demolab.com/github/sponsors/greencomfytea?logo=heart" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/GreenComfyTea/mhr-overlay/watchers">
|
||||||
|
<img alt="Watchers" src="https://custom-icon-badges.demolab.com/github/watchers/greencomfytea/mhr-overlay?logo=eye" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/forks">
|
||||||
|
<img alt="Forks" src="https://custom-icon-badges.demolab.com/github/forks/greencomfytea/mhr-overlay?logo=repo-forked" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/stargazers">
|
||||||
|
<img alt="Stars" src="https://custom-icon-badges.demolab.com/github/stars/greencomfytea/mhr-overlay?logo=star" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea/mhr-overlay/graphs/traffic">
|
||||||
|
<img alt="Hits" src="https://custom-icon-badges.demolab.com/endpoint?url=https://hits.dwyl.com/greencomfytea/mhr-overlay.json?color=blue&logo=eye" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<a href="https://www.nexusmods.com/monsterhunterrise/mods/50">
|
||||||
|
<img alt="Website" src="https://custom-icon-badges.demolab.com/website?down_color=red&down_message=down&up_color=brightgreen&up_message=up&logo=link&url=https://www.nexusmods.com/monsterhunterrise/mods/50" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/greencomfytea?tab=followers">
|
||||||
|
<img alt="Followers" src="https://custom-icon-badges.demolab.com/github/followers/greencomfytea?logo=people" />
|
||||||
|
</a>
|
||||||
|
<a href="https://twitter.com/greencomfytea">
|
||||||
|
<img alt="Twitter" src="https://img.shields.io/twitter/follow/greencomfytea?logo=twitter" />
|
||||||
|
</a>
|
||||||
|
<a href="https://www.twitch.tv/greencomfytea">
|
||||||
|
<img alt="Twitch" src="https://img.shields.io/twitch/status/greencomfytea?logo=twitch" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/greencomfytea">
|
||||||
|
<img alt="Author" src="https://custom-icon-badges.demolab.com/badge/author-GreenComfyTea-green?logo=person" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/topics/open-source">
|
||||||
|
<img alt="Open Source" src="https://img.shields.io/badge/open%20source-%20yes-brightgreen?logo=openvpn" />
|
||||||
|
</a>
|
||||||
|
<a href="https://cursey.github.io/reframework-book/index.html#lua-scripting">
|
||||||
|
<img alt="Written in" src="https://custom-icon-badges.demolab.com/badge/written in-lua-000080?logo=terminal" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
**This mod is solely intended to empower players with means of self-improvement. Please don't use the information provided by this tool to make hurtful comments and actions toward other players.**
|
<p align="center">
|
||||||
|
<a>
|
||||||

|
<img align="center" src="https://user-images.githubusercontent.com/30152047/183250401-9f2898dd-feb4-4903-802c-c9d398261f11.png" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
# Links
|
# Links
|
||||||
* **[Nexus Mods](https://www.nexusmods.com/monsterhunterrise/mods/50)**
|
* **[Nexus Mods](https://www.nexusmods.com/monsterhunterrise/mods/50)**
|
||||||
@@ -15,8 +135,8 @@ Exposes in-game data about monsters, creatures, players and damage. Draws a high
|
|||||||
* **[Troubleshooting](https://github.com/GreenComfyTea/MHR-Overlay/wiki/Troubleshooting)**
|
* **[Troubleshooting](https://github.com/GreenComfyTea/MHR-Overlay/wiki/Troubleshooting)**
|
||||||
|
|
||||||
# Requirements
|
# Requirements
|
||||||
1. [REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26) (v1.503 or above);
|
1. [REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26) (v1.503+);
|
||||||
2. [REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134) (v0.4.0 or above).
|
2. [REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134) (v0.4.0+) - Needed for Unicode Support.
|
||||||
|
|
||||||
# How to install:
|
# How to install:
|
||||||
1. Install [REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26);
|
1. Install [REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26);
|
||||||
@@ -53,4 +173,3 @@ You can support me by donating! I would appreciate it! But anyway, thank you for
|
|||||||
<a href="https://ko-fi.com/greencomfytea">
|
<a href="https://ko-fi.com/greencomfytea">
|
||||||
<img alt="Qries" src="https://panels.twitch.tv/panel-48897356-image-c2fcf835-87e4-408e-81e8-790789c7acbc">
|
<img alt="Qries" src="https://panels.twitch.tv/panel-48897356-image-c2fcf835-87e4-408e-81e8-790789c7acbc">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,20 @@ local quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
|||||||
local screen = require("MHR_Overlay.Game_Handler.screen");
|
local screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
local singletons = require("MHR_Overlay.Game_Handler.singletons");
|
local singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
local time = require("MHR_Overlay.Game_Handler.time");
|
local time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
local error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
|
||||||
local config = require("MHR_Overlay.Misc.config");
|
local config = require("MHR_Overlay.Misc.config");
|
||||||
local language = require("MHR_Overlay.Misc.language");
|
local language = require("MHR_Overlay.Misc.language");
|
||||||
local part_names = require("MHR_Overlay.Misc.part_names");
|
local part_names = require("MHR_Overlay.Misc.part_names");
|
||||||
local utils = require("MHR_Overlay.Misc.utils");
|
local utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
|
||||||
--local buffs = require("MHR_Overlay.Buffs.buffs");
|
local buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
local consumables = require("MHR_Overlay.Buffs.consumables");
|
||||||
|
local melody_effects = require("MHR_Overlay.Buffs.melody_effects");
|
||||||
|
local endemic_life_buffs = require("MHR_Overlay.Buffs.endemic_life_buffs");
|
||||||
|
local skills = require("MHR_Overlay.Buffs.skills");
|
||||||
|
local dangos = require("MHR_Overlay.Buffs.dangos");
|
||||||
|
local abnormal_statuses = require("MHR_Overlay.Buffs.abnormal_statuses");
|
||||||
|
|
||||||
local players = require("MHR_Overlay.Damage_Meter.players");
|
local players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
local non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
local non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
@@ -63,7 +70,7 @@ local large_monster_UI = require("MHR_Overlay.UI.Modules.large_monster_UI");
|
|||||||
local small_monster_UI = require("MHR_Overlay.UI.Modules.small_monster_UI");
|
local small_monster_UI = require("MHR_Overlay.UI.Modules.small_monster_UI");
|
||||||
local time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
local time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
||||||
local env_creature_UI = require("MHR_Overlay.UI.Modules.env_creature_UI");
|
local env_creature_UI = require("MHR_Overlay.UI.Modules.env_creature_UI");
|
||||||
--local buff_UI = require("MHR_Overlay.UI.Modules.buff_UI");
|
local buff_UI = require("MHR_Overlay.UI.Modules.buff_UI");
|
||||||
|
|
||||||
local body_part_UI_entity = require("MHR_Overlay.UI.UI_Entities.body_part_UI_entity");
|
local body_part_UI_entity = require("MHR_Overlay.UI.UI_Entities.body_part_UI_entity");
|
||||||
local damage_UI_entity = require("MHR_Overlay.UI.UI_Entities.damage_UI_entity");
|
local damage_UI_entity = require("MHR_Overlay.UI.UI_Entities.damage_UI_entity");
|
||||||
@@ -72,7 +79,7 @@ local stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity"
|
|||||||
local rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
local rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
||||||
local ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
|
local ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
|
||||||
local ailment_buildup_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_buildup_UI_entity");
|
local ailment_buildup_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_buildup_UI_entity");
|
||||||
--local buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
local buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
|
||||||
local customization_menu = require("MHR_Overlay.UI.customization_menu");
|
local customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
local label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
local label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
@@ -92,15 +99,89 @@ local drawing = require("MHR_Overlay.UI.drawing");
|
|||||||
|
|
||||||
------------------------INIT MODULES-------------------------
|
------------------------INIT MODULES-------------------------
|
||||||
-- #region
|
-- #region
|
||||||
|
|
||||||
|
error_handler.init_dependencies();
|
||||||
|
screen.init_dependencies();
|
||||||
|
singletons.init_dependencies();
|
||||||
|
utils.init_dependencies();
|
||||||
|
time.init_dependencies();
|
||||||
|
|
||||||
|
language.init_dependencies();
|
||||||
|
config.init_dependencies();
|
||||||
|
part_names.init_dependencies();
|
||||||
|
|
||||||
|
damage_UI_entity.init_dependencies();
|
||||||
|
health_UI_entity.init_dependencies();
|
||||||
|
stamina_UI_entity.init_dependencies();
|
||||||
|
rage_UI_entity.init_dependencies();
|
||||||
|
ailment_UI_entity.init_dependencies();
|
||||||
|
ailment_buildup_UI_entity.init_dependencies();
|
||||||
|
body_part_UI_entity.init_dependencies();
|
||||||
|
buff_UI_entity.init_dependencies();
|
||||||
|
|
||||||
|
buffs.init_dependencies();
|
||||||
|
consumables.init_dependencies();
|
||||||
|
melody_effects.init_dependencies();
|
||||||
|
endemic_life_buffs.init_dependencies();
|
||||||
|
skills.init_dependencies();
|
||||||
|
dangos.init_dependencies();
|
||||||
|
abnormal_statuses.init_dependencies();
|
||||||
|
|
||||||
|
damage_hook.init_dependencies();
|
||||||
|
players.init_dependencies();
|
||||||
|
non_players.init_dependencies();
|
||||||
|
quest_status.init_dependencies();
|
||||||
|
|
||||||
|
env_creature_hook.init_dependencies();
|
||||||
|
env_creature.init_dependencies();
|
||||||
|
|
||||||
|
body_part.init_dependencies();
|
||||||
|
ailments.init_dependencies();
|
||||||
|
large_monster.init_dependencies();
|
||||||
|
monster_hook.init_dependencies();
|
||||||
|
small_monster.init_dependencies();
|
||||||
|
ailment_hook.init_dependencies();
|
||||||
|
ailment_buildup.init_dependencies();
|
||||||
|
|
||||||
|
label_customization.init_dependencies();
|
||||||
|
bar_customization.init_dependencies();
|
||||||
|
line_customization.init_dependencies();
|
||||||
|
large_monster_UI_customization.init_dependencies();
|
||||||
|
|
||||||
|
label_customization.init_dependencies();
|
||||||
|
bar_customization.init_dependencies();
|
||||||
|
health_customization.init_dependencies();
|
||||||
|
stamina_customization.init_dependencies();
|
||||||
|
rage_customization.init_dependencies();
|
||||||
|
body_parts_customization.init_dependencies();
|
||||||
|
ailments_customization.init_dependencies();
|
||||||
|
ailment_buildups_customization.init_dependencies();
|
||||||
|
module_visibility_customization.init_dependencies();
|
||||||
|
customization_menu.init_dependencies();
|
||||||
|
|
||||||
|
drawing.init_dependencies();
|
||||||
|
|
||||||
|
damage_meter_UI.init_dependencies();
|
||||||
|
large_monster_UI.init_dependencies();
|
||||||
|
small_monster_UI.init_dependencies();
|
||||||
|
time_UI.init_dependencies();
|
||||||
|
env_creature_UI.init_dependencies();
|
||||||
|
buff_UI.init_dependencies();
|
||||||
|
|
||||||
|
keyboard.init_dependencies();
|
||||||
|
|
||||||
|
------------------------------------------------------------
|
||||||
|
|
||||||
|
error_handler.init_module();
|
||||||
|
language.init_module();
|
||||||
|
config.init_module();
|
||||||
|
part_names.init_module();
|
||||||
|
|
||||||
screen.init_module();
|
screen.init_module();
|
||||||
singletons.init_module();
|
singletons.init_module();
|
||||||
utils.init_module();
|
utils.init_module();
|
||||||
time.init_module();
|
time.init_module();
|
||||||
|
|
||||||
language.init_module();
|
|
||||||
config.init_module();
|
|
||||||
part_names.init_module();
|
|
||||||
|
|
||||||
damage_UI_entity.init_module();
|
damage_UI_entity.init_module();
|
||||||
health_UI_entity.init_module();
|
health_UI_entity.init_module();
|
||||||
stamina_UI_entity.init_module();
|
stamina_UI_entity.init_module();
|
||||||
@@ -108,9 +189,15 @@ rage_UI_entity.init_module();
|
|||||||
ailment_UI_entity.init_module();
|
ailment_UI_entity.init_module();
|
||||||
ailment_buildup_UI_entity.init_module();
|
ailment_buildup_UI_entity.init_module();
|
||||||
body_part_UI_entity.init_module();
|
body_part_UI_entity.init_module();
|
||||||
--buff_UI_entity.init_module();
|
buff_UI_entity.init_module();
|
||||||
|
|
||||||
--buffs.init_module();
|
buffs.init_module();
|
||||||
|
consumables.init_module();
|
||||||
|
melody_effects.init_module();
|
||||||
|
endemic_life_buffs.init_module();
|
||||||
|
skills.init_module();
|
||||||
|
dangos.init_module();
|
||||||
|
abnormal_statuses.init_module();
|
||||||
|
|
||||||
damage_hook.init_module();
|
damage_hook.init_module();
|
||||||
players.init_module();
|
players.init_module();
|
||||||
@@ -151,7 +238,7 @@ large_monster_UI.init_module();
|
|||||||
small_monster_UI.init_module();
|
small_monster_UI.init_module();
|
||||||
time_UI.init_module();
|
time_UI.init_module();
|
||||||
env_creature_UI.init_module();
|
env_creature_UI.init_module();
|
||||||
--buff_UI.init_module();
|
buff_UI.init_module();
|
||||||
|
|
||||||
keyboard.init_module();
|
keyboard.init_module();
|
||||||
|
|
||||||
@@ -166,63 +253,54 @@ local function draw_modules(module_visibility_config, flow_state_name)
|
|||||||
if module_visibility_config.small_monster_UI and config.current_config.small_monster_UI.enabled then
|
if module_visibility_config.small_monster_UI and config.current_config.small_monster_UI.enabled then
|
||||||
local success = pcall(small_monster_UI.draw);
|
local success = pcall(small_monster_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Small Monster UI Drawing Function threw an Exception", flow_state_name);
|
error_handler.report("MHR_Overlay.draw_modules", string.format("[%s] Small Monster UI Drawing Function threw an Exception", flow_state_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local large_monster_UI_config = config.current_config.large_monster_UI;
|
local large_monster_UI_config = config.current_config.large_monster_UI;
|
||||||
|
|
||||||
local dynamic_enabled = large_monster_UI_config.dynamic.enabled and
|
local dynamic_enabled = large_monster_UI_config.dynamic.enabled and module_visibility_config.large_monster_dynamic_UI;
|
||||||
module_visibility_config.large_monster_dynamic_UI;
|
local static_enabled = large_monster_UI_config.static.enabled and module_visibility_config.large_monster_static_UI;
|
||||||
local static_enabled = large_monster_UI_config.static.enabled and
|
local highlighted_enabled = large_monster_UI_config.highlighted.enabled and module_visibility_config.large_monster_highlighted_UI;
|
||||||
module_visibility_config.large_monster_static_UI;
|
|
||||||
local highlighted_enabled = large_monster_UI_config.highlighted.enabled and
|
|
||||||
module_visibility_config.large_monster_highlighted_UI;
|
|
||||||
|
|
||||||
if dynamic_enabled or static_enabled or highlighted_enabled then
|
if dynamic_enabled or static_enabled or highlighted_enabled then
|
||||||
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Large Monster UI Drawing Function threw an Exception", flow_state_name);
|
error_handler.report("MHR_Overlay.draw_modules", string.format("[%s] Large Monster UI Drawing Function threw an Exception", flow_state_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.current_config.time_UI.enabled and module_visibility_config.time_UI then
|
if config.current_config.time_UI.enabled and module_visibility_config.time_UI then
|
||||||
local success = pcall(time_UI.draw);
|
local success = pcall(time_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Time UI Drawing Function threw an Exception", flow_state_name);
|
error_handler.report("MHR_Overlay.draw_modules", string.format("[%s] Time UI Drawing Function threw an Exception", flow_state_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.current_config.damage_meter_UI.enabled and module_visibility_config.damage_meter_UI then
|
if config.current_config.damage_meter_UI.enabled and module_visibility_config.damage_meter_UI then
|
||||||
local success = pcall(damage_meter_UI.draw);
|
local success = pcall(damage_meter_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Damage Meter UI Drawing Function threw an Exception", flow_state_name);
|
error_handler.report("MHR_Overlay.draw_modules", string.format("[%s] Damage Meter UI Drawing Function threw an Exception", flow_state_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.current_config.endemic_life_UI.enabled and module_visibility_config.endemic_life_UI then
|
if config.current_config.endemic_life_UI.enabled and module_visibility_config.endemic_life_UI then
|
||||||
local success = pcall(env_creature_UI.draw);
|
local success = pcall(env_creature_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Endemic Life UI Drawing Function threw an Exception", flow_state_name);
|
error_handler.report("MHR_Overlay.draw_modules", string.format("[%s] Endemic Life UI Drawing Function threw an Exception", flow_state_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[if config.current_config.buff_UI.enabled and module_visibility_config.buff_UI then
|
if config.current_config.buff_UI.enabled and module_visibility_config.buff_UI then
|
||||||
local success = truepcall(buff_UI.draw);
|
local success = pcall(buff_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Buff UI Drawing Function threw an Exception", flow_state_name);
|
error_handler.report("MHR_Overlay.draw_modules", string.format("[%s] Buff UI Drawing Function threw an Exception", flow_state_name));
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end]]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function main_loop()
|
local function main_loop()
|
||||||
customization_menu.status = "OK";
|
time.update_timers();
|
||||||
singletons.init();
|
|
||||||
screen.update_window_size();
|
|
||||||
players.update_myself_position();
|
|
||||||
quest_status.update_is_online();
|
|
||||||
--quest_status.update_is_quest_host();
|
|
||||||
time.tick();
|
|
||||||
|
|
||||||
if quest_status.flow_state == quest_status.flow_states.IN_TRAINING_AREA then
|
if quest_status.flow_state == quest_status.flow_states.IN_TRAINING_AREA then
|
||||||
|
|
||||||
@@ -236,30 +314,30 @@ local function main_loop()
|
|||||||
if dynamic_enabled or static_enabled or highlighted_enabled then
|
if dynamic_enabled or static_enabled or highlighted_enabled then
|
||||||
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = "[In Training Area] Large Monster UI Drawing Function threw an Exception";
|
error_handler.report("MHR_Overlay.main_loop", "[In Training Area] Large Monster UI Drawing Function threw an Exception");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.current_config.damage_meter_UI.enabled and module_visibility_config.damage_meter_UI then
|
if config.current_config.damage_meter_UI.enabled and module_visibility_config.damage_meter_UI then
|
||||||
local success = pcall(damage_meter_UI.draw);
|
local success = pcall(damage_meter_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = "[In Training Area] Damage Meter UI Drawing Function threw an Exception";
|
error_handler.report("MHR_Overlay.main_loop", "[In Training Area] Damage Meter UI Drawing Function threw an Exception");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.current_config.endemic_life_UI.enabled and module_visibility_config.endemic_life_UI then
|
if config.current_config.endemic_life_UI.enabled and module_visibility_config.endemic_life_UI then
|
||||||
local success = pcall(env_creature_UI.draw);
|
local success = pcall(env_creature_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = "[In Training Area] Endemic Life UI Drawing Function threw an Exception";
|
error_handler.report("MHR_Overlay.main_loop", "[In Training Area] Endemic Life UI Drawing Function threw an Exception");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[if config.current_config.buff_UI.enabled and module_visibility_config.buff_UI then
|
if config.current_config.buff_UI.enabled and module_visibility_config.buff_UI then
|
||||||
local success = pcall(buff_UI.draw);
|
local success = pcall(buff_UI.draw);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = "[In Training Area] Buff UI Drawing Function threw an Exception";
|
error_handler.report("MHR_Overlay.main_loop", "[In Training Area] Buff UI Drawing Function threw an Exception");
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end]]
|
|
||||||
|
|
||||||
|
|
||||||
elseif quest_status.flow_state == quest_status.flow_states.CUTSCENE then
|
elseif quest_status.flow_state == quest_status.flow_states.CUTSCENE then
|
||||||
@@ -292,16 +370,14 @@ end
|
|||||||
-- #region
|
-- #region
|
||||||
re.on_draw_ui(function()
|
re.on_draw_ui(function()
|
||||||
if imgui.button(language.current_language.customization_menu.mod_name .. " v" .. config.current_config.version) then
|
if imgui.button(language.current_language.customization_menu.mod_name .. " v" .. config.current_config.version) then
|
||||||
customization_menu.is_opened = not customization_menu.is_opened;
|
local cached_config = config.current_config.customization_menu;
|
||||||
|
cached_config.visible = not cached_config.visible;
|
||||||
|
config.save_current();
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
|
||||||
re.on_frame(function()
|
re.on_frame(function()
|
||||||
if not reframework:is_drawing_ui() then
|
if reframework:is_drawing_ui() then
|
||||||
customization_menu.is_opened = false;
|
|
||||||
end
|
|
||||||
|
|
||||||
if customization_menu.is_opened then
|
|
||||||
pcall(customization_menu.draw);
|
pcall(customization_menu.draw);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
308
reframework/autorun/MHR_Overlay/Buffs/abnormal_statuses.lua
Normal file
308
reframework/autorun/MHR_Overlay/Buffs/abnormal_statuses.lua
Normal file
@@ -0,0 +1,308 @@
|
|||||||
|
local this = {};
|
||||||
|
|
||||||
|
local buffs;
|
||||||
|
local buff_UI_entity;
|
||||||
|
local config;
|
||||||
|
local singletons;
|
||||||
|
local players;
|
||||||
|
local utils;
|
||||||
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
|
local sdk = sdk;
|
||||||
|
local tostring = tostring;
|
||||||
|
local pairs = pairs;
|
||||||
|
local ipairs = ipairs;
|
||||||
|
local tonumber = tonumber;
|
||||||
|
local require = require;
|
||||||
|
local pcall = pcall;
|
||||||
|
local table = table;
|
||||||
|
local string = string;
|
||||||
|
local Vector3f = Vector3f;
|
||||||
|
local d2d = d2d;
|
||||||
|
local math = math;
|
||||||
|
local json = json;
|
||||||
|
local log = log;
|
||||||
|
local fs = fs;
|
||||||
|
local next = next;
|
||||||
|
local type = type;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
local getmetatable = getmetatable;
|
||||||
|
local assert = assert;
|
||||||
|
local select = select;
|
||||||
|
local coroutine = coroutine;
|
||||||
|
local utf8 = utf8;
|
||||||
|
local re = re;
|
||||||
|
local imgui = imgui;
|
||||||
|
local draw = draw;
|
||||||
|
local Vector2f = Vector2f;
|
||||||
|
local reframework = reframework;
|
||||||
|
local os = os;
|
||||||
|
local ValueType = ValueType;
|
||||||
|
local package = package;
|
||||||
|
|
||||||
|
this.list = {
|
||||||
|
--poison = nil,
|
||||||
|
--stun = nil,
|
||||||
|
--sleep = nil,
|
||||||
|
--paralyze = nil,
|
||||||
|
--quake = nil,
|
||||||
|
--ear = nil,
|
||||||
|
--defense_down = nil,
|
||||||
|
--resistance_down = nil,
|
||||||
|
--stink = nil,
|
||||||
|
--onibomb = nil,
|
||||||
|
--bomb = nil,
|
||||||
|
--beto = nil,
|
||||||
|
--fire = nil,
|
||||||
|
};
|
||||||
|
|
||||||
|
local frenzy_infected_duration = 121;
|
||||||
|
|
||||||
|
local player_quest_base_type_def = sdk.find_type_definition("snow.player.PlayerQuestBase");
|
||||||
|
|
||||||
|
-- Fireblight
|
||||||
|
local fire_duration_timer = player_quest_base_type_def:get_field("_FireLDurationTimer");
|
||||||
|
-- Waterblight
|
||||||
|
local water_duration_timer = player_quest_base_type_def:get_field("_WaterLDurationTimer");
|
||||||
|
-- Iceblight
|
||||||
|
local ice_duration_timer = player_quest_base_type_def:get_field("_IceLDurationTimer");
|
||||||
|
-- Thunderblight
|
||||||
|
local thunder_duration_timer = player_quest_base_type_def:get_field("_ThunderLDurationTimer");
|
||||||
|
-- Dragonblight
|
||||||
|
local dragon_duration_timer = player_quest_base_type_def:get_field("_DragonLDurationTimer");
|
||||||
|
-- blastblight
|
||||||
|
local bomb_duration_timer = player_quest_base_type_def:get_field("_BombDurationTimer");
|
||||||
|
-- Bubbleblight
|
||||||
|
local bubble_damage_timer = player_quest_base_type_def:get_field("_BubbleDamageTimer");
|
||||||
|
-- Hellfireblight
|
||||||
|
local oni_bomb_duration_timer = player_quest_base_type_def:get_field("_OniBombDurationTimer");
|
||||||
|
-- Bloodblight
|
||||||
|
local mystery_debuff_timer = player_quest_base_type_def:get_field("_MysteryDebuffTimer");
|
||||||
|
-- Frostblight
|
||||||
|
local get_is_frozen_damage_method = player_quest_base_type_def:get_method("get_IsFrozenDamage");
|
||||||
|
|
||||||
|
-- Poison
|
||||||
|
local poison_duration_timer = player_quest_base_type_def:get_field("_PoisonDurationTimer");
|
||||||
|
-- Stun
|
||||||
|
local stun_duration_timer = player_quest_base_type_def:get_field("_StunDurationTimer");
|
||||||
|
-- Sleep
|
||||||
|
local sleep_duration_timer = player_quest_base_type_def:get_field("_SleepDurationTimer");
|
||||||
|
-- Paralysis
|
||||||
|
local paralyze_duration_timer = player_quest_base_type_def:get_field("_ParalyzeDurationTimer");
|
||||||
|
|
||||||
|
-- Defense Down
|
||||||
|
local defense_down_duration_timer = player_quest_base_type_def:get_field("_DefenceDownDurationTimer");
|
||||||
|
-- Resistance Down
|
||||||
|
local resistance_down_duration_timer = player_quest_base_type_def:get_field("_ResistanceDownDurationTimer");
|
||||||
|
|
||||||
|
-- Tremor
|
||||||
|
local quake_duration_timer = player_quest_base_type_def:get_field("_QuakeDurationTimer");
|
||||||
|
-- Roar
|
||||||
|
local ear_duration_timer = player_quest_base_type_def:get_field("_EarDurationTimer");
|
||||||
|
-- Webbed
|
||||||
|
local beto_duration_timer = player_quest_base_type_def:get_field("_BetoDurationTimer");
|
||||||
|
-- Stench
|
||||||
|
local stink_duration_timer = player_quest_base_type_def:get_field("_StinkDurationTimer");
|
||||||
|
-- Leeched
|
||||||
|
local blooding_enemy_timer = player_quest_base_type_def:get_field("_BloodingEnemyTimer");
|
||||||
|
-- Bleeding
|
||||||
|
local bleeding_debuff_timer = player_quest_base_type_def:get_field("_BleedingDebuffTimer");
|
||||||
|
-- Engulfed
|
||||||
|
local get_is_vacuum_damage_method = player_quest_base_type_def:get_method("get__IsVacuumDamage");
|
||||||
|
-- Muck
|
||||||
|
local get_is_mud_damage_method = player_quest_base_type_def:get_method("get__IsMudDamage");
|
||||||
|
local get_is_gold_mud_damage_method = player_quest_base_type_def:get_method("get__IsGoldMudDamage");
|
||||||
|
|
||||||
|
-- Frenzy Infected
|
||||||
|
local virus_accumulator_field = player_quest_base_type_def:get_field("_VirusAccumulator");
|
||||||
|
local virus_timer_field = player_quest_base_type_def:get_field("_VirusTimer");
|
||||||
|
-- Frenzy
|
||||||
|
local virus_onset_timer_field = player_quest_base_type_def:get_field("_VirusOnsetTimer");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
local player_data_type_def = sdk.find_type_definition("snow.player.PlayerData");
|
||||||
|
|
||||||
|
-- Frenzy Overcome
|
||||||
|
local virus_overcome_buff_timer_field = player_data_type_def:get_field("_VirusOvercomeBuffTimer");
|
||||||
|
|
||||||
|
|
||||||
|
local system_array_type_def = sdk.find_type_definition("System.Array");
|
||||||
|
local length_method = system_array_type_def:get_method("get_Length");
|
||||||
|
local get_value_method = system_array_type_def:get_method("GetValue(System.Int32)");
|
||||||
|
|
||||||
|
function this.update(player, player_data)
|
||||||
|
--local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager);
|
||||||
|
--if item_parameter == nil then
|
||||||
|
-- error_handler.report("consumables.update", "Failed to access Data: item_parameter");
|
||||||
|
-- return;
|
||||||
|
--end
|
||||||
|
|
||||||
|
-- Missing:
|
||||||
|
-- Whirlwind
|
||||||
|
|
||||||
|
this.update_muck(player);
|
||||||
|
this.update_frenzy_infection(player);
|
||||||
|
|
||||||
|
this.update_generic_timer("fireblight", player, fire_duration_timer);
|
||||||
|
this.update_generic_timer("waterblight", player, water_duration_timer);
|
||||||
|
this.update_generic_timer("iceblight", player, ice_duration_timer);
|
||||||
|
this.update_generic_timer("thunderblight", player, thunder_duration_timer);
|
||||||
|
this.update_generic_timer("dragonblight", player, dragon_duration_timer);
|
||||||
|
|
||||||
|
this.update_generic_timer("blastblight", player, bomb_duration_timer);
|
||||||
|
this.update_generic_timer("bubbleblight", player, bubble_damage_timer);
|
||||||
|
this.update_generic_timer("hellfireblight", player, oni_bomb_duration_timer);
|
||||||
|
this.update_generic_timer("bloodblight", player, mystery_debuff_timer);
|
||||||
|
|
||||||
|
this.update_generic_timer("poison", player, poison_duration_timer);
|
||||||
|
this.update_generic_timer("stun", player, stun_duration_timer);
|
||||||
|
this.update_generic_timer("paralysis", player, paralyze_duration_timer);
|
||||||
|
this.update_generic_timer("sleep", player, sleep_duration_timer);
|
||||||
|
|
||||||
|
this.update_generic_timer("defense_down", player, defense_down_duration_timer);
|
||||||
|
this.update_generic_timer("resistance_down", player, resistance_down_duration_timer);
|
||||||
|
|
||||||
|
this.update_generic_timer("tremor", player, quake_duration_timer);
|
||||||
|
this.update_generic_timer("roar", player, ear_duration_timer);
|
||||||
|
this.update_generic_timer("webbed", player, beto_duration_timer);
|
||||||
|
this.update_generic_timer("stench", player, stink_duration_timer);
|
||||||
|
this.update_generic_timer("leeched", player, blooding_enemy_timer, true);
|
||||||
|
-- whirlwind?
|
||||||
|
this.update_generic_timer("bleeding", player, bleeding_debuff_timer);
|
||||||
|
this.update_generic_timer("frenzy", player, virus_onset_timer_field);
|
||||||
|
this.update_generic_timer("frenzy_overcome", player_data, virus_overcome_buff_timer_field);
|
||||||
|
|
||||||
|
this.update_generic_boolean_value_method("engulfed", player, get_is_vacuum_damage_method);
|
||||||
|
this.update_generic_boolean_value_method("frostblight", player, get_is_frozen_damage_method);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic_timer(debuff_key, timer_owner, timer_field, is_infinite)
|
||||||
|
if is_infinite == nil then is_infinite = false; end
|
||||||
|
|
||||||
|
local timer = timer_field:get_data(timer_owner);
|
||||||
|
if timer == nil then
|
||||||
|
error_handler.report("abnormal_statuses.update_generic_timer", string.format("Failed to access Data: %s_timer", debuff_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if timer == 0 then
|
||||||
|
this.list[debuff_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if is_infinite then
|
||||||
|
timer = nil;
|
||||||
|
else
|
||||||
|
timer = timer / 60;
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic(debuff_key, timer);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic_boolean_value_method(debuff_key, value_owner, value_method)
|
||||||
|
local value = value_method:call(value_owner);
|
||||||
|
if value == nil then
|
||||||
|
error_handler.report("abnormal_statuses.update_generic_boolean_value_method", string.format("Failed to access Data: %s_value", debuff_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if not value then
|
||||||
|
this.list[debuff_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic(debuff_key, nil);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_muck(player)
|
||||||
|
local is_mud_damage = get_is_mud_damage_method:call(player);
|
||||||
|
if is_mud_damage == nil then
|
||||||
|
error_handler.report("abnormal_statuses.update_generic_boolean_value_method", "Failed to access Data: is_mud_damage");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local is_gold_mud_damage = get_is_gold_mud_damage_method:call(player);
|
||||||
|
if is_gold_mud_damage == nil then
|
||||||
|
error_handler.report("abnormal_statuses.update_generic_boolean_value_method", "Failed to access Data: is_gold_mud_damage");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if not is_mud_damage and not is_gold_mud_damage then
|
||||||
|
this.list.muck = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic("muck", nil);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_frenzy_infection(player)
|
||||||
|
local virus_accumulator_value = virus_accumulator_field:get_data(player);
|
||||||
|
if virus_accumulator_value == nil then
|
||||||
|
error_handler.report("abnormal_statuses.update_frenzy_infection", "Failed to access Data: virus_accumulator_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local virus_timer = virus_timer_field:get_data(player);
|
||||||
|
if virus_timer == nil then
|
||||||
|
error_handler.report("abnormal_statuses.update_frenzy_infection", "Failed to access Data: virus_timer");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if virus_accumulator_value == 0 and virus_timer == 0 then
|
||||||
|
this.list.frenzy_infection = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local timer = frenzy_infected_duration - (virus_accumulator_value + virus_timer / 60);
|
||||||
|
|
||||||
|
this.update_generic("frenzy_infection", timer, frenzy_infected_duration);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic(debuff_key, timer, duration)
|
||||||
|
duration = duration or timer;
|
||||||
|
|
||||||
|
local debuff = this.list[debuff_key];
|
||||||
|
if debuff == nil then
|
||||||
|
local name = language.current_language.ailments[debuff_key];
|
||||||
|
if name == nil then
|
||||||
|
name = debuff_key;
|
||||||
|
end
|
||||||
|
|
||||||
|
debuff = buffs.new(buffs.types.debuff, debuff_key, name, 1, duration);
|
||||||
|
this.list[debuff_key] = debuff;
|
||||||
|
|
||||||
|
elseif timer ~= nil then
|
||||||
|
buffs.update_timer(debuff, timer);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_names()
|
||||||
|
for debuff_key, debuff in pairs(this.list) do
|
||||||
|
local name = language.current_language.ailments[debuff_key];
|
||||||
|
|
||||||
|
if name == nil then
|
||||||
|
name = debuff_key;
|
||||||
|
end
|
||||||
|
|
||||||
|
debuff.name = name;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
end
|
||||||
|
|
||||||
|
return this;
|
||||||
@@ -2,6 +2,19 @@ local this = {};
|
|||||||
|
|
||||||
local buff_UI_entity;
|
local buff_UI_entity;
|
||||||
local config;
|
local config;
|
||||||
|
local singletons;
|
||||||
|
local players;
|
||||||
|
local consumables;
|
||||||
|
local melody_effects;
|
||||||
|
local utils;
|
||||||
|
local language;
|
||||||
|
local time;
|
||||||
|
local quest_status;
|
||||||
|
local error_handler;
|
||||||
|
local endemic_life_buffs;
|
||||||
|
local skills;
|
||||||
|
local dangos;
|
||||||
|
local abnormal_statuses;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -35,14 +48,52 @@ local os = os;
|
|||||||
local ValueType = ValueType;
|
local ValueType = ValueType;
|
||||||
local package = package;
|
local package = package;
|
||||||
|
|
||||||
this.list = {};
|
this.types = {
|
||||||
|
consumable = 0,
|
||||||
|
melody_effect = 1,
|
||||||
|
dango = 2,
|
||||||
|
skill = 4,
|
||||||
|
debuff = 8
|
||||||
|
};
|
||||||
|
|
||||||
|
local player_manager_type_def = sdk.find_type_definition("snow.player.PlayerManager");
|
||||||
|
local get_player_method = player_manager_type_def:get_method("getPlayer");
|
||||||
|
local find_master_player_method = player_manager_type_def:get_method("findMasterPlayer");
|
||||||
|
|
||||||
|
local player_base_type_def = find_master_player_method:get_return_type();
|
||||||
|
local get_player_data_method = player_base_type_def:get_method("get_PlayerData");
|
||||||
|
local music_data_field = player_base_type_def:get_field("_MusicData");
|
||||||
|
|
||||||
|
local system_array_type_def = sdk.find_type_definition("System.Array");
|
||||||
|
local length_method = system_array_type_def:get_method("get_Length");
|
||||||
|
local get_value_method = system_array_type_def:get_method("GetValue(System.Int32)");
|
||||||
|
|
||||||
|
function this.new(type, key, name, level, duration)
|
||||||
|
local is_infinite = false;
|
||||||
|
|
||||||
|
if name == nil then
|
||||||
|
name = utils.constants.uninitialized_string;
|
||||||
|
end
|
||||||
|
|
||||||
|
if duration == nil then
|
||||||
|
duration = 0;
|
||||||
|
end
|
||||||
|
|
||||||
|
if duration == 0 then
|
||||||
|
is_infinite = true;
|
||||||
|
end
|
||||||
|
|
||||||
|
level = level or 1;
|
||||||
|
|
||||||
function this.new(name)
|
|
||||||
local buff = {};
|
local buff = {};
|
||||||
|
|
||||||
|
buff.type = type;
|
||||||
|
buff.key = key;
|
||||||
buff.name = name;
|
buff.name = name;
|
||||||
buff.timer = 0;
|
buff.level = level;
|
||||||
buff.duration = 0;
|
|
||||||
|
buff.timer = duration;
|
||||||
|
buff.duration = duration;
|
||||||
|
|
||||||
buff.is_active = true;
|
buff.is_active = true;
|
||||||
|
|
||||||
@@ -51,7 +102,9 @@ function this.new(name)
|
|||||||
buff.minutes_left = 0;
|
buff.minutes_left = 0;
|
||||||
buff.seconds_left = 0;
|
buff.seconds_left = 0;
|
||||||
|
|
||||||
buff.is_infinite = false;
|
buff.is_infinite = is_infinite;
|
||||||
|
|
||||||
|
this.update_timer(buff, buff.timer);
|
||||||
|
|
||||||
this.init_UI(buff);
|
this.init_UI(buff);
|
||||||
|
|
||||||
@@ -67,42 +120,117 @@ function this.init_UI(buff)
|
|||||||
buff.buff_UI = buff_UI_entity.new(cached_config.bar, cached_config.name_label, cached_config.timer_label);
|
buff.buff_UI = buff_UI_entity.new(cached_config.bar, cached_config.name_label, cached_config.timer_label);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.init_names()
|
||||||
|
consumables.init_names();
|
||||||
|
melody_effects.init_names();
|
||||||
|
endemic_life_buffs.init_names();
|
||||||
|
skills.init_names();
|
||||||
|
dangos.init_names();
|
||||||
|
abnormal_statuses.init_names();
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update()
|
||||||
|
if not config.current_config.buff_UI.enabled then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if singletons.player_manager == nil then
|
||||||
|
error_handler.report("buffs.update", "Failed to access Data: player_manager");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if quest_status.flow_state <= quest_status.flow_states.IN_LOBBY
|
||||||
|
or quest_status.flow_state == quest_status.flow_states.CUTSCENE
|
||||||
|
or quest_status.flow_state >= quest_status.flow_states.QUEST_END_ANIMATION then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local master_player = find_master_player_method:call(singletons.player_manager);
|
||||||
|
if master_player == nil then
|
||||||
|
error_handler.report("buffs.update", "Failed to access Data: master_player");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
abnormal_statuses.update(master_player);
|
||||||
|
|
||||||
|
local master_player_data = get_player_data_method:call(master_player);
|
||||||
|
if master_player_data ~= nil then
|
||||||
|
consumables.update(master_player_data);
|
||||||
|
endemic_life_buffs.update(master_player_data);
|
||||||
|
skills.update(master_player, master_player_data);
|
||||||
|
dangos.update(master_player_data);
|
||||||
|
else
|
||||||
|
error_handler.report("buffs.update", "Failed to access Data: master_player_data");
|
||||||
|
end
|
||||||
|
|
||||||
|
--xy = master_player_data._Attack;
|
||||||
|
|
||||||
|
local music_data_array = music_data_field:get_data(master_player);
|
||||||
|
if music_data_array ~= nil then
|
||||||
|
local music_data_table = {};
|
||||||
|
|
||||||
|
local length = length_method:call(music_data_array) - 1;
|
||||||
|
for i = 0, length do
|
||||||
|
local music_data = get_value_method:call(music_data_array, i);
|
||||||
|
if music_data == nil then
|
||||||
|
error_handler.report("buffs.update", "Failed to access Data: music_data No." .. tostring(i));
|
||||||
|
music_data = "";
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(music_data_table, music_data);
|
||||||
|
end
|
||||||
|
|
||||||
|
melody_effects.update(music_data_table);
|
||||||
|
else
|
||||||
|
error_handler.report("buffs.update", "Failed to access Data: music_data_array");
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_timer(buff, timer)
|
||||||
|
if timer < 0 then
|
||||||
|
timer = 0;
|
||||||
|
end
|
||||||
|
|
||||||
|
if timer > buff.duration then
|
||||||
|
buff.duration = timer;
|
||||||
|
end
|
||||||
|
|
||||||
|
local minutes_left = math.floor(timer / 60);
|
||||||
|
|
||||||
|
buff.timer = timer;
|
||||||
|
buff.minutes_left = minutes_left;
|
||||||
|
buff.seconds_left = math.floor(timer - 60 * minutes_left);
|
||||||
|
|
||||||
|
if buff.duration ~= 0 then
|
||||||
|
buff.timer_percentage = timer / buff.duration;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function this.draw(buff, buff_UI, position_on_screen, opacity_scale)
|
function this.draw(buff, buff_UI, position_on_screen, opacity_scale)
|
||||||
buff_UI_entity.draw(buff, buff_UI, position_on_screen, opacity_scale);
|
buff_UI_entity.draw(buff, buff_UI, position_on_screen, opacity_scale);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
|
||||||
|
function this.init_dependencies()
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
consumables = require("MHR_Overlay.Buffs.consumables");
|
||||||
|
melody_effects = require("MHR_Overlay.Buffs.melody_effects");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
endemic_life_buffs = require("MHR_Overlay.Buffs.endemic_life_buffs");
|
||||||
|
skills = require("MHR_Overlay.Buffs.skills");
|
||||||
|
dangos = require("MHR_Overlay.Buffs.dangos");
|
||||||
|
abnormal_statuses = require("MHR_Overlay.Buffs.abnormal_statuses");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
local buff = this.new("Enviroment Damage Negated");
|
time.new_timer(this.update, 1/60);
|
||||||
buff.duration = 90;
|
|
||||||
buff.timer = 65;
|
|
||||||
buff.timer_percentage = 0.66;
|
|
||||||
buff.minutes_left = 1;
|
|
||||||
buff.seconds_left = 5
|
|
||||||
|
|
||||||
this.list["Enviroment Damage Negated"] = buff;
|
|
||||||
|
|
||||||
local buff = this.new("Sharpness Loss Reduced");
|
|
||||||
buff.duration = 120;
|
|
||||||
buff.timer = 70;
|
|
||||||
buff.timer_percentage = 0.583;
|
|
||||||
buff.minutes_left = 1;
|
|
||||||
buff.seconds_left = 10
|
|
||||||
|
|
||||||
this.list["Sharpness Loss Reduced"] = buff;
|
|
||||||
|
|
||||||
local buff = this.new("Sharpness Loss Reduced 2");
|
|
||||||
buff.duration = 120;
|
|
||||||
buff.timer = 70;
|
|
||||||
buff.timer_percentage = 0.583;
|
|
||||||
buff.minutes_left = 1;
|
|
||||||
buff.seconds_left = 10
|
|
||||||
buff.is_infinite = true;
|
|
||||||
|
|
||||||
this.list["Sharpness Loss Reduced 2"] = buff;
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
331
reframework/autorun/MHR_Overlay/Buffs/consumables.lua
Normal file
331
reframework/autorun/MHR_Overlay/Buffs/consumables.lua
Normal file
@@ -0,0 +1,331 @@
|
|||||||
|
local this = {};
|
||||||
|
|
||||||
|
local buffs;
|
||||||
|
local buff_UI_entity;
|
||||||
|
local config;
|
||||||
|
local singletons;
|
||||||
|
local players;
|
||||||
|
local utils;
|
||||||
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
|
local sdk = sdk;
|
||||||
|
local tostring = tostring;
|
||||||
|
local pairs = pairs;
|
||||||
|
local ipairs = ipairs;
|
||||||
|
local tonumber = tonumber;
|
||||||
|
local require = require;
|
||||||
|
local pcall = pcall;
|
||||||
|
local table = table;
|
||||||
|
local string = string;
|
||||||
|
local Vector3f = Vector3f;
|
||||||
|
local d2d = d2d;
|
||||||
|
local math = math;
|
||||||
|
local json = json;
|
||||||
|
local log = log;
|
||||||
|
local fs = fs;
|
||||||
|
local next = next;
|
||||||
|
local type = type;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
local getmetatable = getmetatable;
|
||||||
|
local assert = assert;
|
||||||
|
local select = select;
|
||||||
|
local coroutine = coroutine;
|
||||||
|
local utf8 = utf8;
|
||||||
|
local re = re;
|
||||||
|
local imgui = imgui;
|
||||||
|
local draw = draw;
|
||||||
|
local Vector2f = Vector2f;
|
||||||
|
local reframework = reframework;
|
||||||
|
local os = os;
|
||||||
|
local ValueType = ValueType;
|
||||||
|
local package = package;
|
||||||
|
|
||||||
|
this.list = {
|
||||||
|
demondrug = nil,
|
||||||
|
mega_demondrug = nil,
|
||||||
|
armorskin = nil,
|
||||||
|
mega_armorskin = nil,
|
||||||
|
might_seed = nil,
|
||||||
|
adamant_seed = nil,
|
||||||
|
demon_powder = nil,
|
||||||
|
hardshell_powder = nil,
|
||||||
|
immunizer = nil,
|
||||||
|
dash_juice = nil,
|
||||||
|
gourmet_fish = nil,
|
||||||
|
};
|
||||||
|
|
||||||
|
local player_manager_type_def = sdk.find_type_definition("snow.player.PlayerManager");
|
||||||
|
local get_player_data_method = player_manager_type_def:get_method("get_PlayerData");
|
||||||
|
local get_ref_item_parameter_method = player_manager_type_def:get_method("get_RefItemParameter");
|
||||||
|
|
||||||
|
local player_user_data_item_parameter_type_def = get_ref_item_parameter_method:get_return_type();
|
||||||
|
|
||||||
|
local demondrug_atk_up_field = player_user_data_item_parameter_type_def:get_field("_DemondrugAtkUp");
|
||||||
|
local great_demondrug_atk_up_field = player_user_data_item_parameter_type_def:get_field("_GreatDemondrugAtkUp");
|
||||||
|
local armorskin_def_up_field = player_user_data_item_parameter_type_def:get_field("_ArmorSkinDefUp");
|
||||||
|
local great_armorskin_def_up_field = player_user_data_item_parameter_type_def:get_field("_GreatArmorSkinDefUp");
|
||||||
|
|
||||||
|
local might_seed_timer_field = player_user_data_item_parameter_type_def:get_field("_MightSeedTimer");
|
||||||
|
local adamant_seed_timer_field = player_user_data_item_parameter_type_def:get_field("_AdamantSeedTimer");
|
||||||
|
local demondrug_powder_timer_field = player_user_data_item_parameter_type_def:get_field("_DemondrugPowderTimer");
|
||||||
|
local armorskin_powder_timer_field = player_user_data_item_parameter_type_def:get_field("_ArmorSkinPowderTimer");
|
||||||
|
local vitalizer_timer_const_field = player_user_data_item_parameter_type_def:get_field("_VitalizerTimer");
|
||||||
|
local stamina_up_buff_second_field = player_user_data_item_parameter_type_def:get_field("_StaminaUpBuffSecond");
|
||||||
|
|
||||||
|
local player_data_type_def = sdk.find_type_definition("snow.player.PlayerData");
|
||||||
|
-- Demondrug/Mega Demondrug
|
||||||
|
local atk_up_alive_field = player_data_type_def:get_field("_AtkUpAlive");
|
||||||
|
-- Armorskin/Mega Armorskin
|
||||||
|
local def_up_alive_field = player_data_type_def:get_field("_DefUpAlive");
|
||||||
|
-- Might Seed
|
||||||
|
local atk_up_buff_second_field = player_data_type_def:get_field("_AtkUpBuffSecond");
|
||||||
|
local atk_up_buff_second_timer_field = player_data_type_def:get_field("_AtkUpBuffSecondTimer");
|
||||||
|
-- Adamant Seed
|
||||||
|
local def_up_buff_second_field = player_data_type_def:get_field("_DefUpBuffSecond");
|
||||||
|
local def_up_buff_second_timer_field = player_data_type_def:get_field("_DefUpBuffSecondTimer");
|
||||||
|
-- Demon Powder
|
||||||
|
local atk_up_item_second_field = player_data_type_def:get_field("_AtkUpItemSecond");
|
||||||
|
local atk_up_item_second_timer_field = player_data_type_def:get_field("_AtkUpItemSecondTimer");
|
||||||
|
-- Hardshell Powder
|
||||||
|
local def_up_item_second_field = player_data_type_def:get_field("_DefUpItemSecond");
|
||||||
|
local def_up_item_second_timer_field = player_data_type_def:get_field("_DefUpItemSecondTimer");
|
||||||
|
-- Immunizer
|
||||||
|
local vitalizer_timer_field = player_data_type_def:get_field("_VitalizerTimer");
|
||||||
|
-- Dash Juice
|
||||||
|
local stamina_up_buff_second_timer_field = player_data_type_def:get_field("_StaminaUpBuffSecondTimer");
|
||||||
|
-- Gourmet Fish
|
||||||
|
local fish_regene_enable_field = player_data_type_def:get_field("_FishRegeneEnableTimer");
|
||||||
|
|
||||||
|
local system_array_type_def = sdk.find_type_definition("System.Array");
|
||||||
|
local length_method = system_array_type_def:get_method("get_Length");
|
||||||
|
local get_value_method = system_array_type_def:get_method("GetValue(System.Int32)");
|
||||||
|
|
||||||
|
function this.update(player_data)
|
||||||
|
local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager);
|
||||||
|
if item_parameter == nil then
|
||||||
|
error_handler.report("consumables.update", "Failed to access Data: item_parameter");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_demondrug(player_data, item_parameter);
|
||||||
|
this.update_armorskin(player_data, item_parameter);
|
||||||
|
this.update_gourmet_fish(player_data, item_parameter);
|
||||||
|
|
||||||
|
this.update_generic("might_seed", player_data, item_parameter,
|
||||||
|
atk_up_buff_second_field, atk_up_buff_second_timer_field, might_seed_timer_field);
|
||||||
|
|
||||||
|
this.update_generic("adamant_seed", player_data, item_parameter,
|
||||||
|
def_up_buff_second_field, def_up_buff_second_timer_field, adamant_seed_timer_field);
|
||||||
|
|
||||||
|
this.update_generic("demon_powder", player_data, item_parameter,
|
||||||
|
atk_up_item_second_field, atk_up_item_second_timer_field, demondrug_powder_timer_field);
|
||||||
|
|
||||||
|
this.update_generic("hardshell_powder", player_data, item_parameter,
|
||||||
|
def_up_item_second_field, def_up_item_second_timer_field, armorskin_powder_timer_field);
|
||||||
|
|
||||||
|
this.update_generic("immunizer", player_data, item_parameter,
|
||||||
|
nil, vitalizer_timer_field, vitalizer_timer_const_field);
|
||||||
|
|
||||||
|
this.update_generic("dash_juice", player_data, item_parameter,
|
||||||
|
nil, stamina_up_buff_second_timer_field, stamina_up_buff_second_field);
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic(consumable_key, player_data, item_parameter, value_field, timer_field, timer_const_value_field)
|
||||||
|
if value_field ~= nil then
|
||||||
|
|
||||||
|
local value = value_field:get_data(player_data);
|
||||||
|
if value == nil then
|
||||||
|
error_handler.report("consumables.update_generic", string.format("Failed to access Data: %s_value", consumable_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value == 0 then
|
||||||
|
this.list[consumable_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local timer = timer_field:get_data(player_data);
|
||||||
|
if timer == nil then
|
||||||
|
error_handler.report("consumables.update_generic", string.format("Failed to access Data: %s_timer", consumable_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value_field == nil and timer == 0 then
|
||||||
|
this.list[consumable_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local consumable = this.list[consumable_key];
|
||||||
|
if consumable == nil then
|
||||||
|
local timer_const_value = timer_const_value_field:get_data(item_parameter);
|
||||||
|
if timer_const_value == nil then
|
||||||
|
error_handler.report("consumables.update_generic", string.format("Failed to access Data: %s_timer_const_value", consumable_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local name = language.current_language.consumables[consumable_key];
|
||||||
|
|
||||||
|
consumable = buffs.new(buffs.types.consumable, consumable_key, name, 1, timer_const_value);
|
||||||
|
this.list[consumable_key] = consumable;
|
||||||
|
else
|
||||||
|
buffs.update_timer(consumable, timer / 60);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_demondrug(player_data, item_parameter)
|
||||||
|
local demondrug_value = atk_up_alive_field:get_data(player_data);
|
||||||
|
if demondrug_value == nil then
|
||||||
|
error_handler.report("consumables.update_demondrug", "Failed to access Data: demondrug_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if demondrug_value == 0 then
|
||||||
|
this.list.demondrug = nil;
|
||||||
|
this.list.mega_demondrug = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local demondrug_const_value = demondrug_atk_up_field:get_data(item_parameter);
|
||||||
|
if demondrug_const_value == nil then
|
||||||
|
error_handler.report("consumables.update_demondrug", "Failed to access Data: demondrug_const_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local mega_demondrug_const_value = great_demondrug_atk_up_field:get_data(item_parameter);
|
||||||
|
if mega_demondrug_const_value == nil then
|
||||||
|
error_handler.report("consumables.update_demondrug", "Failed to access Data: mega_demondrug_const_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
if demondrug_value == demondrug_const_value then
|
||||||
|
local buff = this.list.demondrug;
|
||||||
|
if buff ~= nil and buff.value == demondrug_value then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local name = language.current_language.consumables.demondrug;
|
||||||
|
|
||||||
|
this.list.demondrug = buffs.new(buffs.types.consumable, "demondrug", name);
|
||||||
|
this.list.mega_demondrug = nil;
|
||||||
|
|
||||||
|
elseif demondrug_value == mega_demondrug_const_value then
|
||||||
|
local buff = this.list.mega_demondrug;
|
||||||
|
if buff ~= nil and buff.value == demondrug_value then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local name = language.current_language.consumables.mega_demondrug;
|
||||||
|
|
||||||
|
this.list.demondrug = nil;
|
||||||
|
this.list.mega_demondrug = buffs.new(buffs.types.consumable, "mega_demondrug", name);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_armorskin(player_data, item_parameter)
|
||||||
|
local armorskin_value = def_up_alive_field:get_data(player_data);
|
||||||
|
if armorskin_value == nil then
|
||||||
|
error_handler.report("consumables.update_armorskin", "Failed to access Data: armorskin_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if armorskin_value == 0 then
|
||||||
|
this.list.armorskin = nil;
|
||||||
|
this.list.mega_armorskin = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local armorskin_const_value = armorskin_def_up_field:get_data(item_parameter);
|
||||||
|
if armorskin_const_value == nil then
|
||||||
|
error_handler.report("consumables.update_armorskin", "Failed to access Data: armorskin_const_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local mega_armorskin_const_value = great_armorskin_def_up_field:get_data(item_parameter);
|
||||||
|
if mega_armorskin_const_value == nil then
|
||||||
|
error_handler.report("consumables.update_armorskin", "Failed to access Data: mega_armorskin_const_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if armorskin_value == armorskin_const_value then
|
||||||
|
local buff = this.list.armorskin;
|
||||||
|
if buff ~= nil and buff.value == armorskin_value then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local name = language.current_language.consumables.armorskin;
|
||||||
|
|
||||||
|
this.list.armorskin = buffs.new(buffs.types.consumable, "armorskin", name);
|
||||||
|
this.list.mega_armorskin = nil;
|
||||||
|
|
||||||
|
elseif armorskin_value == mega_armorskin_const_value then
|
||||||
|
local buff = this.list.mega_armorskin;
|
||||||
|
if buff ~= nil and buff.value == armorskin_value then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local name = language.current_language.consumables.mega_armorskin;
|
||||||
|
|
||||||
|
this.list.armorskin = nil;
|
||||||
|
this.list.mega_armorskin = buffs.new(buffs.types.consumable, "mega_armorskin", name);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_gourmet_fish(player_data, item_parameter)
|
||||||
|
local gourmet_fish_timer = fish_regene_enable_field:get_data(player_data);
|
||||||
|
if gourmet_fish_timer == nil then
|
||||||
|
error_handler.report("consumables.update_gourmet_fish", "Failed to access Data: gourmet_fish_timer");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if gourmet_fish_timer == 0 then
|
||||||
|
this.list.gourmet_fish = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local buff = this.list.gourmet_fish;
|
||||||
|
|
||||||
|
if buff == nil then
|
||||||
|
--local gourmet_fish_timer_const_value = stamina_up_buff_second_field:get_data(item_parameter);
|
||||||
|
--if gourmet_fish_timer_const_value == nil then
|
||||||
|
-- error_handler.report("consumables.update_gourmet_fish", "Failed to access Data: gourmet_fish_timer_const_value");
|
||||||
|
-- return;
|
||||||
|
--end
|
||||||
|
|
||||||
|
local name = language.current_language.consumables.gourmet_fish;
|
||||||
|
|
||||||
|
buff = buffs.new(buffs.types.consumable, "gourmet_fish", name, 1, gourmet_fish_timer);
|
||||||
|
this.list.gourmet_fish = buff;
|
||||||
|
else
|
||||||
|
buffs.update_timer(buff, gourmet_fish_timer / 60);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_names()
|
||||||
|
for consumable_key, consumable in pairs(this.list) do
|
||||||
|
local name = language.current_language.consumables[consumable_key];
|
||||||
|
|
||||||
|
if name == nil then
|
||||||
|
name = consumable_key;
|
||||||
|
end
|
||||||
|
|
||||||
|
consumable.name = name;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
end
|
||||||
|
|
||||||
|
return this;
|
||||||
133
reframework/autorun/MHR_Overlay/Buffs/dangos.lua
Normal file
133
reframework/autorun/MHR_Overlay/Buffs/dangos.lua
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
local this = {};
|
||||||
|
|
||||||
|
local buffs;
|
||||||
|
local buff_UI_entity;
|
||||||
|
local config;
|
||||||
|
local singletons;
|
||||||
|
local players;
|
||||||
|
local utils;
|
||||||
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
|
local sdk = sdk;
|
||||||
|
local tostring = tostring;
|
||||||
|
local pairs = pairs;
|
||||||
|
local ipairs = ipairs;
|
||||||
|
local tonumber = tonumber;
|
||||||
|
local require = require;
|
||||||
|
local pcall = pcall;
|
||||||
|
local table = table;
|
||||||
|
local string = string;
|
||||||
|
local Vector3f = Vector3f;
|
||||||
|
local d2d = d2d;
|
||||||
|
local math = math;
|
||||||
|
local json = json;
|
||||||
|
local log = log;
|
||||||
|
local fs = fs;
|
||||||
|
local next = next;
|
||||||
|
local type = type;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
local getmetatable = getmetatable;
|
||||||
|
local assert = assert;
|
||||||
|
local select = select;
|
||||||
|
local coroutine = coroutine;
|
||||||
|
local utf8 = utf8;
|
||||||
|
local re = re;
|
||||||
|
local imgui = imgui;
|
||||||
|
local draw = draw;
|
||||||
|
local Vector2f = Vector2f;
|
||||||
|
local reframework = reframework;
|
||||||
|
local os = os;
|
||||||
|
local ValueType = ValueType;
|
||||||
|
local package = package;
|
||||||
|
|
||||||
|
this.list = {
|
||||||
|
dango_defender = nil,
|
||||||
|
};
|
||||||
|
|
||||||
|
local player_manager_type_def = sdk.find_type_definition("snow.player.PlayerManager");
|
||||||
|
local get_player_data_method = player_manager_type_def:get_method("get_PlayerData");
|
||||||
|
local get_ref_item_parameter_method = player_manager_type_def:get_method("get_RefItemParameter");
|
||||||
|
|
||||||
|
local player_user_data_item_parameter_type_def = get_ref_item_parameter_method:get_return_type();
|
||||||
|
|
||||||
|
local demondrug_atk_up_field = player_user_data_item_parameter_type_def:get_field("_DemondrugAtkUp");
|
||||||
|
local great_demondrug_atk_up_field = player_user_data_item_parameter_type_def:get_field("_GreatDemondrugAtkUp");
|
||||||
|
local armorskin_def_up_field = player_user_data_item_parameter_type_def:get_field("_ArmorSkinDefUp");
|
||||||
|
local great_armorskin_def_up_field = player_user_data_item_parameter_type_def:get_field("_GreatArmorSkinDefUp");
|
||||||
|
|
||||||
|
local might_seed_timer_field = player_user_data_item_parameter_type_def:get_field("_MightSeedTimer");
|
||||||
|
local adamant_seed_timer_field = player_user_data_item_parameter_type_def:get_field("_AdamantSeedTimer");
|
||||||
|
local demondrug_powder_timer_field = player_user_data_item_parameter_type_def:get_field("_DemondrugPowderTimer");
|
||||||
|
local armorskin_powder_timer_field = player_user_data_item_parameter_type_def:get_field("_ArmorSkinPowderTimer");
|
||||||
|
local vitalizer_timer_const_field = player_user_data_item_parameter_type_def:get_field("_VitalizerTimer");
|
||||||
|
local stamina_up_buff_second_field = player_user_data_item_parameter_type_def:get_field("_StaminaUpBuffSecond");
|
||||||
|
|
||||||
|
local player_data_type_def = sdk.find_type_definition("snow.player.PlayerData");
|
||||||
|
-- Dango Defender
|
||||||
|
local kitchen_skill_048_field = player_data_type_def:get_field("_KitchenSkill048_Damage");
|
||||||
|
|
||||||
|
local system_array_type_def = sdk.find_type_definition("System.Array");
|
||||||
|
local length_method = system_array_type_def:get_method("get_Length");
|
||||||
|
local get_value_method = system_array_type_def:get_method("GetValue(System.Int32)");
|
||||||
|
|
||||||
|
function this.update(player_data)
|
||||||
|
local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager);
|
||||||
|
if item_parameter == nil then
|
||||||
|
error_handler.report("dangos.update", "Failed to access Data: item_parameter");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
--this.update_dango_defender(player_data, item_parameter);
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Not working??
|
||||||
|
function this.update_dango_defender(player_data, item_parameter)
|
||||||
|
local dango_defender_value = kitchen_skill_048_field:get_data(player_data);
|
||||||
|
if dango_defender_value == nil then
|
||||||
|
error_handler.report("dangos.update_dango_defender", "Failed to access Data: dango_defender_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if dango_defender_value < 200 then
|
||||||
|
this.list.dango_defender = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local buff = this.list.dango_defender;
|
||||||
|
if buff ~= nil then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local name = language.current_language.dangos.dango_defender_hi;
|
||||||
|
|
||||||
|
this.list.dango_defender = buffs.new(buffs.types.dango, "dango_defender", name, 1);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_names()
|
||||||
|
for dango_key, dango in pairs(this.list) do
|
||||||
|
local name = language.current_language.dangos[dango_key];
|
||||||
|
|
||||||
|
if name == nil then
|
||||||
|
name = dango_key;
|
||||||
|
end
|
||||||
|
|
||||||
|
dango.name = name;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
end
|
||||||
|
|
||||||
|
return this;
|
||||||
156
reframework/autorun/MHR_Overlay/Buffs/endemic_life_buffs.lua
Normal file
156
reframework/autorun/MHR_Overlay/Buffs/endemic_life_buffs.lua
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
local this = {};
|
||||||
|
|
||||||
|
local buffs;
|
||||||
|
local buff_UI_entity;
|
||||||
|
local config;
|
||||||
|
local singletons;
|
||||||
|
local players;
|
||||||
|
local utils;
|
||||||
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
local env_creature;
|
||||||
|
|
||||||
|
local sdk = sdk;
|
||||||
|
local tostring = tostring;
|
||||||
|
local pairs = pairs;
|
||||||
|
local ipairs = ipairs;
|
||||||
|
local tonumber = tonumber;
|
||||||
|
local require = require;
|
||||||
|
local pcall = pcall;
|
||||||
|
local table = table;
|
||||||
|
local string = string;
|
||||||
|
local Vector3f = Vector3f;
|
||||||
|
local d2d = d2d;
|
||||||
|
local math = math;
|
||||||
|
local json = json;
|
||||||
|
local log = log;
|
||||||
|
local fs = fs;
|
||||||
|
local next = next;
|
||||||
|
local type = type;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
local getmetatable = getmetatable;
|
||||||
|
local assert = assert;
|
||||||
|
local select = select;
|
||||||
|
local coroutine = coroutine;
|
||||||
|
local utf8 = utf8;
|
||||||
|
local re = re;
|
||||||
|
local imgui = imgui;
|
||||||
|
local draw = draw;
|
||||||
|
local Vector2f = Vector2f;
|
||||||
|
local reframework = reframework;
|
||||||
|
local os = os;
|
||||||
|
local ValueType = ValueType;
|
||||||
|
local package = package;
|
||||||
|
|
||||||
|
this.list = {
|
||||||
|
cutterfly = nil,
|
||||||
|
clothfly = nil
|
||||||
|
};
|
||||||
|
|
||||||
|
local player_manager_type_def = sdk.find_type_definition("snow.player.PlayerManager");
|
||||||
|
local get_player_data_method = player_manager_type_def:get_method("get_PlayerData");
|
||||||
|
local get_ref_item_parameter_method = player_manager_type_def:get_method("get_RefItemParameter");
|
||||||
|
|
||||||
|
local player_user_data_item_parameter_type_def = get_ref_item_parameter_method:get_return_type();
|
||||||
|
local demondrug_atk_up_field = player_user_data_item_parameter_type_def:get_field("_DemondrugAtkUp");
|
||||||
|
|
||||||
|
local player_data_type_def = sdk.find_type_definition("snow.player.PlayerData");
|
||||||
|
-- Cutterfly
|
||||||
|
local crit_up_ec_second_timer_field = player_data_type_def:get_field("_CritUpEcSecondTimer");
|
||||||
|
-- Clothfly
|
||||||
|
local def_up_buff_second_rate_timer_field = player_data_type_def:get_field("_DefUpBuffSecondRateTimer");
|
||||||
|
|
||||||
|
local system_array_type_def = sdk.find_type_definition("System.Array");
|
||||||
|
local length_method = system_array_type_def:get_method("get_Length");
|
||||||
|
local get_value_method = system_array_type_def:get_method("GetValue(System.Int32)");
|
||||||
|
|
||||||
|
local message_manager_type_def = sdk.find_type_definition("snow.gui.MessageManager");
|
||||||
|
local get_env_creature_name_message_method = message_manager_type_def:get_method("getEnvCreatureNameMessage");
|
||||||
|
|
||||||
|
function this.update(player_data)
|
||||||
|
local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager);
|
||||||
|
if item_parameter == nil then
|
||||||
|
error_handler.report("endemic_life_buffs.update", "Failed to access Data: item_parameter");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_cutterfly(player_data, item_parameter);
|
||||||
|
this.update_clothfly(player_data, item_parameter);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_cutterfly(player_data, item_parameter)
|
||||||
|
local cutterfly_timer = crit_up_ec_second_timer_field:get_data(player_data);
|
||||||
|
if cutterfly_timer == nil then
|
||||||
|
error_handler.report("endemic_life_buffs.update_cutterfly", "Failed to access Data: cutterfly_timer");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if cutterfly_timer == 0 then
|
||||||
|
this.list.cutterfly = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local buff = this.list.cutterfly;
|
||||||
|
|
||||||
|
if buff == nil then
|
||||||
|
local name = get_env_creature_name_message_method:call(singletons.message_manager, env_creature.creature_ids.cutterfly);
|
||||||
|
if name == nil then
|
||||||
|
error_handler.report("endemic_life_buffs.update_cutterfly", "Failed to access Data: name");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
buff = buffs.new(buffs.types.consumable, "cutterfly", name, 1, cutterfly_timer / 60);
|
||||||
|
this.list.cutterfly = buff;
|
||||||
|
else
|
||||||
|
buffs.update_timer(buff, cutterfly_timer / 60);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_clothfly(player_data, item_parameter)
|
||||||
|
local clothfly_timer = def_up_buff_second_rate_timer_field:get_data(player_data);
|
||||||
|
if clothfly_timer == nil then
|
||||||
|
error_handler.report("endemic_life_buffs.update_clothfly", "Failed to access Data: clothfly_timer");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if clothfly_timer == 0 then
|
||||||
|
this.list.clothfly = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local buff = this.list.clothfly;
|
||||||
|
|
||||||
|
if buff == nil then
|
||||||
|
local name = get_env_creature_name_message_method:call(singletons.message_manager, env_creature.creature_ids.clothfly);
|
||||||
|
if name == nil then
|
||||||
|
error_handler.report("endemic_life_buffs.update_clothfly", "Failed to access Data: name");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
buff = buffs.new(buffs.types.consumable, "clothfly", name, 1, clothfly_timer / 60);
|
||||||
|
this.list.clothfly = buff;
|
||||||
|
else
|
||||||
|
buffs.update_timer(buff, clothfly_timer / 60);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_names()
|
||||||
|
-- Nothing to do here
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
end
|
||||||
|
|
||||||
|
return this;
|
||||||
170
reframework/autorun/MHR_Overlay/Buffs/melody_effects.lua
Normal file
170
reframework/autorun/MHR_Overlay/Buffs/melody_effects.lua
Normal file
@@ -0,0 +1,170 @@
|
|||||||
|
local this = {};
|
||||||
|
|
||||||
|
local buffs;
|
||||||
|
local buff_UI_entity;
|
||||||
|
local config;
|
||||||
|
local singletons;
|
||||||
|
local players;
|
||||||
|
local utils;
|
||||||
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
|
local sdk = sdk;
|
||||||
|
local tostring = tostring;
|
||||||
|
local pairs = pairs;
|
||||||
|
local ipairs = ipairs;
|
||||||
|
local tonumber = tonumber;
|
||||||
|
local require = require;
|
||||||
|
local pcall = pcall;
|
||||||
|
local table = table;
|
||||||
|
local string = string;
|
||||||
|
local Vector3f = Vector3f;
|
||||||
|
local d2d = d2d;
|
||||||
|
local math = math;
|
||||||
|
local json = json;
|
||||||
|
local log = log;
|
||||||
|
local fs = fs;
|
||||||
|
local next = next;
|
||||||
|
local type = type;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
local getmetatable = getmetatable;
|
||||||
|
local assert = assert;
|
||||||
|
local select = select;
|
||||||
|
local coroutine = coroutine;
|
||||||
|
local utf8 = utf8;
|
||||||
|
local re = re;
|
||||||
|
local imgui = imgui;
|
||||||
|
local draw = draw;
|
||||||
|
local Vector2f = Vector2f;
|
||||||
|
local reframework = reframework;
|
||||||
|
local os = os;
|
||||||
|
local ValueType = ValueType;
|
||||||
|
local package = package;
|
||||||
|
|
||||||
|
local ids = {
|
||||||
|
self_improvement = 0,
|
||||||
|
attack_up = 1,
|
||||||
|
defense_up = 2,
|
||||||
|
affinity_up = 3,
|
||||||
|
elemental_attack_boost = 4,
|
||||||
|
attack_and_defense_up = 5,
|
||||||
|
attack_and_affinity_up = 6,
|
||||||
|
knockbacks_negated = 7,
|
||||||
|
earplugs_s = 8,
|
||||||
|
earplugs_l = 9,
|
||||||
|
tremors_negated = 10,
|
||||||
|
wind_pressure_negated = 11,
|
||||||
|
stun_negated = 12,
|
||||||
|
blight_negated = 13,
|
||||||
|
divine_protection = 14,
|
||||||
|
health_recovery_s = 15,
|
||||||
|
health_recovery_l = 16,
|
||||||
|
health_recovery_s_antidote = 17,
|
||||||
|
health_regeneration = 18,
|
||||||
|
stamina_use_reduced = 19,
|
||||||
|
stamina_recovery_up = 20,
|
||||||
|
sharpness_loss_reduced = 21,
|
||||||
|
environment_damage_negated = 22,
|
||||||
|
sonic_wave = 23,
|
||||||
|
sonic_barrier = 24,
|
||||||
|
infernal_melody = 25,
|
||||||
|
sharpness_regeneration = 26,
|
||||||
|
sharpness_extension = 27
|
||||||
|
};
|
||||||
|
|
||||||
|
local melody_effect_keys = {
|
||||||
|
"self_improvement",
|
||||||
|
"attack_up",
|
||||||
|
"defense_up",
|
||||||
|
"affinity_up",
|
||||||
|
"elemental_attack_boost",
|
||||||
|
"attack_and_defense_up",
|
||||||
|
"attack_and_affinity_up",
|
||||||
|
"knockbacks_negated",
|
||||||
|
"earplugs_s",
|
||||||
|
"earplugs_l",
|
||||||
|
"tremors_negated",
|
||||||
|
"wind_pressure_negated",
|
||||||
|
"stun_negated",
|
||||||
|
"blight_negated",
|
||||||
|
"divine_protection",
|
||||||
|
"health_recovery_s",
|
||||||
|
"health_recovery_l",
|
||||||
|
"health_recovery_s_antidote",
|
||||||
|
"health_regeneration",
|
||||||
|
"stamina_use_reduced",
|
||||||
|
"stamina_recovery_up",
|
||||||
|
"sharpness_loss_reduced",
|
||||||
|
"environment_damage_negated",
|
||||||
|
"sonic_wave",
|
||||||
|
"sonic_barrier",
|
||||||
|
"infernal_melody",
|
||||||
|
"sharpness_regeneration",
|
||||||
|
"sharpness_extension"
|
||||||
|
};
|
||||||
|
|
||||||
|
this.list = {};
|
||||||
|
|
||||||
|
local music_data_type_def = sdk.find_type_definition("snow.player.Horn.MusicData");
|
||||||
|
local time_field = music_data_type_def:get_field("_Time");
|
||||||
|
|
||||||
|
function this.update(melody_data_table)
|
||||||
|
for lua_index, melody_data in ipairs(melody_data_table) do
|
||||||
|
if melody_data ~= "" then
|
||||||
|
this.update_melody_effect(lua_index, melody_data);
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_melody_effect(lua_index, melody_data)
|
||||||
|
local melody_timer = time_field:get_data(melody_data);
|
||||||
|
if melody_timer == nil then
|
||||||
|
error_handler.report("melody_effects.update", "Failed to access Data: melody_timer No. " .. tostring(lua_index - 1));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if melody_timer == 0 then
|
||||||
|
this.list[lua_index] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local melody_effect = this.list[lua_index];
|
||||||
|
if melody_effect == nil then
|
||||||
|
local melody_effect_key = melody_effect_keys[lua_index];
|
||||||
|
local name = language.current_language.melody_effects[melody_effect_key];
|
||||||
|
|
||||||
|
melody_effect = buffs.new(buffs.types.melody_effect, melody_effect_key, name, 1, melody_timer / 60);
|
||||||
|
this.list[lua_index] = melody_effect;
|
||||||
|
else
|
||||||
|
buffs.update_timer(melody_effect, melody_timer / 60);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_names()
|
||||||
|
for index, dango in pairs(this.list) do
|
||||||
|
local name = language.current_language.dangos[dango.key];
|
||||||
|
|
||||||
|
if name == nil then
|
||||||
|
name = dango.key;
|
||||||
|
end
|
||||||
|
|
||||||
|
dango.name = name;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
end
|
||||||
|
|
||||||
|
return this;
|
||||||
575
reframework/autorun/MHR_Overlay/Buffs/skills.lua
Normal file
575
reframework/autorun/MHR_Overlay/Buffs/skills.lua
Normal file
@@ -0,0 +1,575 @@
|
|||||||
|
local this = {};
|
||||||
|
|
||||||
|
local buffs;
|
||||||
|
local buff_UI_entity;
|
||||||
|
local config;
|
||||||
|
local singletons;
|
||||||
|
local players;
|
||||||
|
local utils;
|
||||||
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
local env_creature;
|
||||||
|
|
||||||
|
local sdk = sdk;
|
||||||
|
local tostring = tostring;
|
||||||
|
local pairs = pairs;
|
||||||
|
local ipairs = ipairs;
|
||||||
|
local tonumber = tonumber;
|
||||||
|
local require = require;
|
||||||
|
local pcall = pcall;
|
||||||
|
local table = table;
|
||||||
|
local string = string;
|
||||||
|
local Vector3f = Vector3f;
|
||||||
|
local d2d = d2d;
|
||||||
|
local math = math;
|
||||||
|
local json = json;
|
||||||
|
local log = log;
|
||||||
|
local fs = fs;
|
||||||
|
local next = next;
|
||||||
|
local type = type;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
local getmetatable = getmetatable;
|
||||||
|
local assert = assert;
|
||||||
|
local select = select;
|
||||||
|
local coroutine = coroutine;
|
||||||
|
local utf8 = utf8;
|
||||||
|
local re = re;
|
||||||
|
local imgui = imgui;
|
||||||
|
local draw = draw;
|
||||||
|
local Vector2f = Vector2f;
|
||||||
|
local reframework = reframework;
|
||||||
|
local os = os;
|
||||||
|
local ValueType = ValueType;
|
||||||
|
local package = package;
|
||||||
|
|
||||||
|
this.list = {
|
||||||
|
burst = nil,
|
||||||
|
kushala_daora_soul = nil,
|
||||||
|
intrepid_heart = nil,
|
||||||
|
dereliction = nil,
|
||||||
|
latent_power = nil,
|
||||||
|
wind_mantle = nil,
|
||||||
|
grinder_s = nil,
|
||||||
|
counterstrike = nil,
|
||||||
|
affinity_sliding = nil,
|
||||||
|
coalescence = nil,
|
||||||
|
adrenaline_rush = nil,
|
||||||
|
wall_runner = nil,
|
||||||
|
offensive_guard = nil,
|
||||||
|
hellfire_cloak = nil,
|
||||||
|
agitator = nil,
|
||||||
|
furious = nil,
|
||||||
|
heaven_sent = nil,
|
||||||
|
heroics = nil,
|
||||||
|
resuscitate = nil
|
||||||
|
};
|
||||||
|
|
||||||
|
local skill_data_list = {
|
||||||
|
peak_performance = { id = 3, is_equipped = false },
|
||||||
|
resentment = { id = 4, is_equipped = false },
|
||||||
|
resuscitate = { id = 5, is_equipped = false },
|
||||||
|
maximum_might = { id = 10, is_equipped = false },
|
||||||
|
heroics = { id = 91, is_equipped = false },
|
||||||
|
dragonheart = { id = 103, is_equipped = false },
|
||||||
|
dereliction = { id = 113, is_equipped = false }
|
||||||
|
}
|
||||||
|
|
||||||
|
local burst_breakpoint = 5;
|
||||||
|
local kushara_daora_soul_breakpoint = 5;
|
||||||
|
local intrepid_heart_minimal_value = 400;
|
||||||
|
local dereliction_breakpoints = {100, 50};
|
||||||
|
|
||||||
|
local wind_mantle_duration = 15;
|
||||||
|
local wind_mantle_breakpoints = { 20, 10 }; -- Sword & Shield, Lance, Hammer, Switch Axe, Insect Glaive, Long Sword, Hunting Horn
|
||||||
|
local wind_mantle_special_breakpoints = {
|
||||||
|
[0] = { 10, 5 }, -- Great Sword
|
||||||
|
[3] = { 60, 30 }, -- Light Bowgun
|
||||||
|
[4] = { 60, 30 }, -- Heavy Bowgun
|
||||||
|
[6] = { 30, 15 }, -- Gunlance
|
||||||
|
[9] = { 40, 20 }, -- Dual Blades
|
||||||
|
[11] = { 30, 15 }, -- Charge Blade
|
||||||
|
[13] = { 60, 30 }, -- Bow
|
||||||
|
}
|
||||||
|
|
||||||
|
local player_manager_type_def = sdk.find_type_definition("snow.player.PlayerManager");
|
||||||
|
local get_player_data_method = player_manager_type_def:get_method("get_PlayerData");
|
||||||
|
local get_ref_item_parameter_method = player_manager_type_def:get_method("get_RefItemParameter");
|
||||||
|
|
||||||
|
local player_user_data_item_parameter_type_def = get_ref_item_parameter_method:get_return_type();
|
||||||
|
local demondrug_atk_up_field = player_user_data_item_parameter_type_def:get_field("_DemondrugAtkUp");
|
||||||
|
|
||||||
|
local player_data_type_def = sdk.find_type_definition("snow.player.PlayerData");
|
||||||
|
-- Burst
|
||||||
|
local rengeki_power_up_count_field = player_data_type_def:get_field("_RengekiPowerUpCnt");
|
||||||
|
local rengeki_power_up_timer_field = player_data_type_def:get_field("_RengekiPowerUpTimer");
|
||||||
|
-- Kushala Daora Soul
|
||||||
|
local hyakuryu_dragon_power_up_count_field = player_data_type_def:get_field("_HyakuryuDragonPowerUpCnt");
|
||||||
|
local hyakuryu_dragon_power_up_timer_field = player_data_type_def:get_field("_HyakuryuDragonPowerUpTimer");
|
||||||
|
-- Intrepid Heart
|
||||||
|
local equip_skill_223_accumulator_field = player_data_type_def:get_field("_EquipSkill223Accumulator");
|
||||||
|
-- Derelection
|
||||||
|
local symbiosis_skill_lost_vital_field = player_data_type_def:get_field("_SymbiosisSkillLostVital");
|
||||||
|
-- Grinder (S)
|
||||||
|
local brand_new_sharpness_adjust_up_timer_field = player_data_type_def:get_field("_BrandNewSharpnessAdjustUpTimer");
|
||||||
|
-- Counterstrike
|
||||||
|
local counterattack_powerup_timer_field = player_data_type_def:get_field("_CounterattackPowerupTimer");
|
||||||
|
-- Affinity Sliding
|
||||||
|
local sliding_powerup_timer_field = player_data_type_def:get_field("_SlidingPowerupTimer");
|
||||||
|
-- Coalescence
|
||||||
|
local disaster_turn_powerup_timer_field = player_data_type_def:get_field("_DisasterTurnPowerUpTimer");
|
||||||
|
-- Adrenaline Rush
|
||||||
|
local equip_skill_208_atk_up_field = player_data_type_def:get_field("_EquipSkill208_AtkUpTimer");
|
||||||
|
-- Wall Runner
|
||||||
|
local wall_run_powerup_timer_field = player_data_type_def:get_field("_WallRunPowerupTimer");
|
||||||
|
-- Offensive Guard
|
||||||
|
local equip_skill_036_timer_field = player_data_type_def:get_field("_EquipSkill_036_Timer");
|
||||||
|
-- Hellfire Cloak
|
||||||
|
local onibi_powerup_timer_field = player_data_type_def:get_field("_OnibiPowerUpTiemr");
|
||||||
|
-- Agitator
|
||||||
|
local challenge_timer_field = player_data_type_def:get_field("_ChallengeTimer");
|
||||||
|
-- Furious
|
||||||
|
local furious_skill_stamina_buff_second_timer_field = player_data_type_def:get_field("_FuriousSkillStaminaBuffSecondTimer");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
local player_base_type_def = sdk.find_type_definition("snow.player.PlayerBase");
|
||||||
|
local player_weapon_type_field = player_base_type_def:get_field("_playerWeaponType");
|
||||||
|
local get_player_skill_list_method = player_base_type_def:get_method("get_PlayerSkillList");
|
||||||
|
|
||||||
|
-- Latent Power
|
||||||
|
local power_freedom_timer_field = player_base_type_def:get_field("_PowerFreedomTimer");
|
||||||
|
-- Protective Polish
|
||||||
|
local sharpness_gauge_boost_timer_field = player_base_type_def:get_field("_SharpnessGaugeBoostTimer");
|
||||||
|
-- Heroics
|
||||||
|
local is_predicament_power_up_method = player_base_type_def:get_method("isPredicamentPowerUp");
|
||||||
|
-- Resuscitate
|
||||||
|
local is_debuff_state_method = player_base_type_def:get_method("isDebuffState");
|
||||||
|
|
||||||
|
|
||||||
|
local player_skill_list_type_def = get_player_skill_list_method:get_return_type();
|
||||||
|
local has_skill_method = player_skill_list_type_def:get_method("hasSkill");
|
||||||
|
|
||||||
|
local player_quest_base_type_def = sdk.find_type_definition("snow.player.PlayerQuestBase");
|
||||||
|
-- Wind Mantle
|
||||||
|
local equip_skill_226_attack_count_field = player_quest_base_type_def:get_field("_EquipSkill226AttackCount");
|
||||||
|
local equip_skill_226_attack_off_timer_field = player_quest_base_type_def:get_field("_EquipSkill226AttackOffTimer");
|
||||||
|
-- Heaven-Sent
|
||||||
|
local is_active_equip_skill_230_method = player_quest_base_type_def:get_method("isActiveEquipSkill230");
|
||||||
|
|
||||||
|
local system_array_type_def = sdk.find_type_definition("System.Array");
|
||||||
|
local length_method = system_array_type_def:get_method("get_Length");
|
||||||
|
local get_value_method = system_array_type_def:get_method("GetValue(System.Int32)");
|
||||||
|
|
||||||
|
function this.update(player, player_data)
|
||||||
|
--local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager);
|
||||||
|
--if item_parameter == nil then
|
||||||
|
-- error_handler.report("skills.update", "Failed to access Data: item_parameter");
|
||||||
|
-- return;
|
||||||
|
--end
|
||||||
|
|
||||||
|
this.update_equipped_skill_data(player);
|
||||||
|
|
||||||
|
this.update_dereliction(player_data);
|
||||||
|
this.update_wind_mantle(player);
|
||||||
|
|
||||||
|
this.update_generic_number_value_field("burst", player_data,
|
||||||
|
rengeki_power_up_count_field, rengeki_power_up_timer_field, false, nil, burst_breakpoint);
|
||||||
|
|
||||||
|
this.update_generic_number_value_field("kushala_daora_soul", player_data,
|
||||||
|
hyakuryu_dragon_power_up_count_field, hyakuryu_dragon_power_up_timer_field, false, nil, kushara_daora_soul_breakpoint);
|
||||||
|
|
||||||
|
this.update_generic_number_value_field("intrepid_heart", player_data, equip_skill_223_accumulator_field, nil, true, intrepid_heart_minimal_value);
|
||||||
|
this.update_generic_timer("latent_power", player, power_freedom_timer_field);
|
||||||
|
this.update_generic_timer("protective_polish", player, sharpness_gauge_boost_timer_field);
|
||||||
|
this.update_generic_timer("grinder_s", player_data, brand_new_sharpness_adjust_up_timer_field);
|
||||||
|
this.update_generic_timer("counterstrike", player_data, counterattack_powerup_timer_field);
|
||||||
|
this.update_generic_timer("affinity_sliding", player_data, sliding_powerup_timer_field);
|
||||||
|
this.update_generic_timer("coalescence", player_data, disaster_turn_powerup_timer_field);
|
||||||
|
this.update_generic_timer("adrenaline_rush", player_data, equip_skill_208_atk_up_field);
|
||||||
|
this.update_generic_timer("wall_runner", player_data, wall_run_powerup_timer_field);
|
||||||
|
this.update_generic_timer("offensive_guard", player_data, equip_skill_036_timer_field);
|
||||||
|
this.update_generic_timer("hellfire_cloak", player_data, onibi_powerup_timer_field);
|
||||||
|
this.update_generic_timer("agitator", player_data, challenge_timer_field, true);
|
||||||
|
this.update_generic_timer("furious", player_data, furious_skill_stamina_buff_second_timer_field);
|
||||||
|
|
||||||
|
this.update_generic_boolean_value_method("heaven_sent", player, is_active_equip_skill_230_method);
|
||||||
|
this.update_generic_boolean_value_method("heroics", player, is_predicament_power_up_method);
|
||||||
|
this.update_generic_boolean_value_method("resuscitate", player, is_debuff_state_method);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_equipped_skill_data(player)
|
||||||
|
local player_skill_list = get_player_skill_list_method:call(player);
|
||||||
|
if player_skill_list == nil then
|
||||||
|
error_handler.report("skills.update_equipped_skill_data", "Failed to access Data: player_skill_list");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
for skill_key, skill_data in pairs(skill_data_list) do
|
||||||
|
local has_skill = has_skill_method:call(player_skill_list, skill_data.id, 1);
|
||||||
|
if has_skill == nil then
|
||||||
|
error_handler.report("skills.update_equipped_skill_data", string.format("Failed to access Data: %s -> has_skill", skill_key));
|
||||||
|
goto continue;
|
||||||
|
end
|
||||||
|
|
||||||
|
skill_data.is_equipped = has_skill;
|
||||||
|
|
||||||
|
::continue::
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic_timer(skill_key, timer_owner, timer_field, is_infinite)
|
||||||
|
if is_infinite == nil then is_infinite = false; end
|
||||||
|
|
||||||
|
local skill_data = skill_data_list[skill_key];
|
||||||
|
if skill_data ~= nil and not skill_data.is_equipped then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local timer = nil;
|
||||||
|
if timer_field ~= nil then
|
||||||
|
timer = timer_field:get_data(timer_owner);
|
||||||
|
if timer == nil then
|
||||||
|
error_handler.report("skills.update_generic_timer", string.format("Failed to access Data: %s_timer", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if timer == 0 then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if is_infinite then
|
||||||
|
timer = nil;
|
||||||
|
else
|
||||||
|
timer = timer / 60;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic(skill_key, 1, timer);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic_number_value_field(skill_key, timer_owner, value_field, timer_field, is_infinite, minimal_value, breakpoint)
|
||||||
|
if minimal_value == nil then minimal_value = 1; end
|
||||||
|
breakpoint = breakpoint or 1000000;
|
||||||
|
if is_infinite == nil then is_infinite = false; end
|
||||||
|
|
||||||
|
local skill_data = skill_data_list[skill_key];
|
||||||
|
if skill_data ~= nil and not skill_data.is_equipped then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local level = 1;
|
||||||
|
|
||||||
|
if value_field ~= nil then
|
||||||
|
local value = value_field:get_data(timer_owner);
|
||||||
|
|
||||||
|
if value == nil then
|
||||||
|
error_handler.report("skills.update_generic_number_value_field", string.format("Failed to access Data: %s_value", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value < minimal_value then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value >= breakpoint then
|
||||||
|
level = 2;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local timer = nil;
|
||||||
|
if timer_field ~= nil then
|
||||||
|
timer = timer_field:get_data(timer_owner);
|
||||||
|
if timer == nil then
|
||||||
|
error_handler.report("skills.update_generic_number_value_field", string.format("Failed to access Data: %s_timer", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value_field == nil and timer == 0 then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if is_infinite then
|
||||||
|
timer = nil;
|
||||||
|
else
|
||||||
|
timer = timer / 60;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic(skill_key, level, timer);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic_boolean_value_field(skill_key, timer_owner, value_field, timer_field, is_infinite, minimal_value)
|
||||||
|
if minimal_value == nil then minimal_value = true; end
|
||||||
|
if is_infinite == nil then is_infinite = false; end
|
||||||
|
|
||||||
|
local skill_data = skill_data_list[skill_key];
|
||||||
|
if skill_data ~= nil and not skill_data.is_equipped then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value_field ~= nil then
|
||||||
|
local value = value_field:get_data(timer_owner);
|
||||||
|
|
||||||
|
if value == nil then
|
||||||
|
error_handler.report("skills.update_generic_boolean_value_field", string.format("Failed to access Data: %s_value", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value < minimal_value then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local timer = nil;
|
||||||
|
if timer_field ~= nil then
|
||||||
|
timer = timer_field:get_data(timer_owner);
|
||||||
|
if timer == nil then
|
||||||
|
error_handler.report("skills.update_generic_boolean_value_field", string.format("Failed to access Data: %s_timer", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value_field == nil and timer == 0 then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if is_infinite then
|
||||||
|
timer = nil;
|
||||||
|
else
|
||||||
|
timer = timer / 60;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic(skill_key, 1, timer);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic_number_value_method(skill_key, timer_owner, value_method, timer_field, is_infinite, minimal_value, breakpoint)
|
||||||
|
if minimal_value == nil then minimal_value = 1; end
|
||||||
|
breakpoint = breakpoint or 1000000;
|
||||||
|
if is_infinite == nil then is_infinite = false; end
|
||||||
|
|
||||||
|
local skill_data = skill_data_list[skill_key];
|
||||||
|
if skill_data ~= nil and not skill_data.is_equipped then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local level = 1;
|
||||||
|
|
||||||
|
if value_method ~= nil then
|
||||||
|
local value = value_method:call(timer_owner);
|
||||||
|
|
||||||
|
if value == nil then
|
||||||
|
error_handler.report("skills.update_generic_number_value_method", string.format("Failed to access Data: %s_value", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value < minimal_value then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value >= breakpoint then
|
||||||
|
level = 2;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local timer = nil;
|
||||||
|
if timer_field ~= nil then
|
||||||
|
timer = timer_field:get_data(timer_owner);
|
||||||
|
if timer == nil then
|
||||||
|
error_handler.report("skills.update_generic_number_value_method", string.format("Failed to access Data: %s_timer", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value_method == nil and timer == 0 then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if is_infinite then
|
||||||
|
timer = nil;
|
||||||
|
else
|
||||||
|
timer = timer / 60;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic(skill_key, level, timer);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic_boolean_value_method(skill_key, timer_owner, value_method, timer_field, is_infinite, minimal_value)
|
||||||
|
if minimal_value == nil then minimal_value = true; end
|
||||||
|
if is_infinite == nil then is_infinite = false; end
|
||||||
|
|
||||||
|
local skill_data = skill_data_list[skill_key];
|
||||||
|
if skill_data ~= nil and not skill_data.is_equipped then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value_method ~= nil then
|
||||||
|
local value = value_method:call(timer_owner);
|
||||||
|
|
||||||
|
if value == nil then
|
||||||
|
error_handler.report("skills.update_generic_boolean_value_method", string.format("Failed to access Data: %s_value", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value ~= minimal_value then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local timer = nil;
|
||||||
|
if timer_field ~= nil then
|
||||||
|
timer = timer_field:get_data(timer_owner);
|
||||||
|
if timer == nil then
|
||||||
|
error_handler.report("skills.update_generic_boolean_value_method", string.format("Failed to access Data: %s_timer", skill_key));
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if value_method == nil and timer == 0 then
|
||||||
|
this.list[skill_key] = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if is_infinite then
|
||||||
|
timer = nil;
|
||||||
|
else
|
||||||
|
timer = timer / 60;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
this.update_generic(skill_key, 1, timer);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_generic(skill_key, level, timer)
|
||||||
|
local skill = this.list[skill_key];
|
||||||
|
if skill == nil then
|
||||||
|
local name = language.current_language.skills[skill_key];
|
||||||
|
|
||||||
|
skill = buffs.new(buffs.types.skill, skill_key, name, level, timer);
|
||||||
|
this.list[skill_key] = skill;
|
||||||
|
else
|
||||||
|
skill.level = level;
|
||||||
|
|
||||||
|
if timer ~= nil then
|
||||||
|
buffs.update_timer(skill, timer);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_dereliction(player_data)
|
||||||
|
local dereliction_value = symbiosis_skill_lost_vital_field:get_data(player_data);
|
||||||
|
if dereliction_value == nil then
|
||||||
|
error_handler.report("skills.update_derelection", "Failed to access Data: dereliction_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if dereliction_value == 0 then
|
||||||
|
this.list.dereliction = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local level = 1;
|
||||||
|
for index, breakpoint in ipairs(dereliction_breakpoints) do
|
||||||
|
if dereliction_value >= breakpoint then
|
||||||
|
level = 4 - index;
|
||||||
|
break;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local skill = this.list.dereliction;
|
||||||
|
if skill == nil then
|
||||||
|
local name = language.current_language.skills.dereliction;
|
||||||
|
|
||||||
|
skill = buffs.new(buffs.types.skill, "dereliction", name, level);
|
||||||
|
this.list.dereliction = skill;
|
||||||
|
else
|
||||||
|
skill.level = level;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_wind_mantle(player)
|
||||||
|
local wind_mantle_timer = equip_skill_226_attack_off_timer_field:get_data(player);
|
||||||
|
if wind_mantle_timer == nil then
|
||||||
|
error_handler.report("skills.update_wind_mantle", "Failed to access Data: wind_mantle_timer");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if wind_mantle_timer == 0 then
|
||||||
|
this.list.wind_mantle = nil;
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local wind_mantle_value = equip_skill_226_attack_count_field:get_data(player);
|
||||||
|
if wind_mantle_value == nil then
|
||||||
|
error_handler.report("skills.update_wind_mantle", "Failed to access Data: wind_mantle_value");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local weapon_type = player_weapon_type_field:get_data(player);
|
||||||
|
if player == nil then
|
||||||
|
error_handler.report("skills.update_wind_mantle", "Failed to access Data: weapon_type");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local breakpoints = wind_mantle_breakpoints;
|
||||||
|
for weapon_type_index, special_breakpoints in pairs(wind_mantle_special_breakpoints) do
|
||||||
|
if weapon_type == weapon_type_index then
|
||||||
|
breakpoints = special_breakpoints;
|
||||||
|
break;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local level = 1;
|
||||||
|
for index, breakpoint in ipairs(breakpoints) do
|
||||||
|
if wind_mantle_value >= breakpoint then
|
||||||
|
level = 4 - index;
|
||||||
|
break;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local buff = this.list.wind_mantle;
|
||||||
|
if buff == nil then
|
||||||
|
local name = language.current_language.skills.wind_mantle;
|
||||||
|
|
||||||
|
buff = buffs.new(buffs.types.skill, "wind_mantle", name, level, wind_mantle_duration);
|
||||||
|
this.list.wind_mantle = buff;
|
||||||
|
else
|
||||||
|
buff.level = level;
|
||||||
|
buffs.update_timer(buff, wind_mantle_duration - (wind_mantle_timer / 60));
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_names()
|
||||||
|
for skill_key, skill in pairs(this.list) do
|
||||||
|
local name = language.current_language.skills[skill_key];
|
||||||
|
|
||||||
|
if name == nil then
|
||||||
|
name = skill_key;
|
||||||
|
end
|
||||||
|
|
||||||
|
skill.name = name;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
end
|
||||||
|
|
||||||
|
return this;
|
||||||
@@ -8,6 +8,7 @@ local ailments;
|
|||||||
local singletons;
|
local singletons;
|
||||||
local non_players;
|
local non_players;
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -106,11 +107,13 @@ function this.update_damage(enemy, enemy_calc_damage_info)
|
|||||||
local is_large_monster = is_boss_enemy_method:call(enemy);
|
local is_large_monster = is_boss_enemy_method:call(enemy);
|
||||||
|
|
||||||
if is_large_monster == nil then
|
if is_large_monster == nil then
|
||||||
|
error_handler.report("damage_hook.update_damage", "Failed to access Data: is_large_monster");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local dead_or_captured = check_die_method:call(enemy);
|
local dead_or_captured = check_die_method:call(enemy);
|
||||||
if dead_or_captured == nil then
|
if dead_or_captured == nil then
|
||||||
|
error_handler.report("damage_hook.update_damage", "Failed to access Data: dead_or_captured");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -260,8 +263,10 @@ end
|
|||||||
function this.cart(dead_player_id, flag_cat_skill_insurance)
|
function this.cart(dead_player_id, flag_cat_skill_insurance)
|
||||||
-- flag_cat_skill_insurance = 0
|
-- flag_cat_skill_insurance = 0
|
||||||
-- flag_cat_skill_insurance = 1
|
-- flag_cat_skill_insurance = 1
|
||||||
|
|
||||||
local player = players.list[dead_player_id];
|
local player = players.list[dead_player_id];
|
||||||
if player == nil then
|
if player == nil then
|
||||||
|
error_handler.report("damage_hook.cart", "No Dead Player Found");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -295,6 +300,7 @@ function this.on_stock_direct_marionette_finish_shoot_hit_parts_damage(enemy, da
|
|||||||
end
|
end
|
||||||
|
|
||||||
if player == nil then
|
if player == nil then
|
||||||
|
error_handler.report("damage_hook.on_stock_direct_marionette_finish_shoot_hit_parts_damage", "Failed to create Player Entry");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -354,11 +360,13 @@ function this.on_anomaly_core_break(anomaly_core_part)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if anomaly_monster == nil then
|
if anomaly_monster == nil then
|
||||||
|
error_handler.report("damage_hook.on_anomaly_core_break", "No Anomaly Monster Found");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local anomaly_core_break_damage_rate = get_mystery_core_break_damage_rate_method:call(anomaly_monster.enemy);
|
local anomaly_core_break_damage_rate = get_mystery_core_break_damage_rate_method:call(anomaly_monster.enemy);
|
||||||
if anomaly_core_break_damage_rate == nil then
|
if anomaly_core_break_damage_rate == nil then
|
||||||
|
error_handler.report("damage_hook.on_anomaly_core_break", "Failed to access Data: anomaly_core_break_damage_rate");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -373,7 +381,7 @@ function this.on_anomaly_core_break(anomaly_core_part)
|
|||||||
players.update_damage(players.total, players.damage_types.anomaly_core, true, damage_object);
|
players.update_damage(players.total, players.damage_types.anomaly_core, true, damage_object);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
||||||
@@ -382,7 +390,10 @@ function this.init_module()
|
|||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
sdk.hook(stock_direct_marionette_finish_shoot_hit_parts_damage_method, function(args)
|
sdk.hook(stock_direct_marionette_finish_shoot_hit_parts_damage_method, function(args)
|
||||||
local enemy = sdk.to_managed_object(args[2]);
|
local enemy = sdk.to_managed_object(args[2]);
|
||||||
local damage_rate = sdk.to_float(args[3]);
|
local damage_rate = sdk.to_float(args[3]);
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ local quest_status;
|
|||||||
local drawing;
|
local drawing;
|
||||||
local language;
|
local language;
|
||||||
local players;
|
local players;
|
||||||
|
local error_handler;
|
||||||
|
local utils;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -55,8 +57,8 @@ function this.new(id, name, level, type)
|
|||||||
|
|
||||||
non_player.type = type;
|
non_player.type = type;
|
||||||
|
|
||||||
non_player.join_time = -1;
|
non_player.join_time = utils.constants.uninitialized_int;
|
||||||
non_player.first_hit_time = -1;
|
non_player.first_hit_time = utils.constants.uninitialized_int;
|
||||||
non_player.dps = 0;
|
non_player.dps = 0;
|
||||||
|
|
||||||
non_player.small_monsters = players.init_damage_sources()
|
non_player.small_monsters = players.init_damage_sources()
|
||||||
@@ -132,17 +134,19 @@ function this.update_servant_list()
|
|||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
|
|
||||||
if singletons.servant_manager == nil then
|
if singletons.servant_manager == nil then
|
||||||
|
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local quest_servant_id_list = get_quest_servant_id_list_method:call(singletons.servant_manager);
|
local quest_servant_id_list = get_quest_servant_id_list_method:call(singletons.servant_manager);
|
||||||
if quest_servant_id_list == nil then
|
if quest_servant_id_list == nil then
|
||||||
|
error_handler.report("non_players.update_servant_list", "Failed to access Data: quest_servant_id_list");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local servant_count = servant_get_count_method:call(quest_servant_id_list);
|
local servant_count = servant_get_count_method:call(quest_servant_id_list);
|
||||||
if servant_count == nil then
|
if servant_count == nil then
|
||||||
customization_menu.status = "No quest servant id list count";
|
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -150,19 +154,20 @@ function this.update_servant_list()
|
|||||||
for i = 0, servant_count - 1 do
|
for i = 0, servant_count - 1 do
|
||||||
local servant_id = servant_get_item_method:call(quest_servant_id_list, i);
|
local servant_id = servant_get_item_method:call(quest_servant_id_list, i);
|
||||||
if servant_id == nil then
|
if servant_id == nil then
|
||||||
|
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_id No." .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local ai_control = get_ai_control_by_servant_id_method:call(singletons.servant_manager, servant_id);
|
local ai_control = get_ai_control_by_servant_id_method:call(singletons.servant_manager, servant_id);
|
||||||
if ai_control == nil then
|
if ai_control == nil then
|
||||||
customization_menu.status = "No quest servant ai control";
|
error_handler.report("non_players.update_servant_list", "Failed to access Data: ai_control No." .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local servant_info = get_servant_info_method:call(ai_control);
|
local servant_info = get_servant_info_method:call(ai_control);
|
||||||
if servant_info == nil then
|
if servant_info == nil then
|
||||||
customization_menu.status = "No quest servant info";
|
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_info No." .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -213,8 +218,14 @@ function this.update_my_otomos()
|
|||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
|
|
||||||
local first_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 0);
|
local first_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 0);
|
||||||
if first_otomo ~= nil then
|
if first_otomo == nil then
|
||||||
|
error_handler.report("non_players.update_my_otomos", "Failed to access Data: first_otomo");
|
||||||
|
else
|
||||||
local name = otomo_create_data_name_field:get_data(first_otomo);
|
local name = otomo_create_data_name_field:get_data(first_otomo);
|
||||||
|
if name == nil then
|
||||||
|
error_handler.report("non_players.update_my_otomos", "Failed to access Data: first_otomo -> name");
|
||||||
|
end
|
||||||
|
|
||||||
if name ~= nil and name ~= "" then
|
if name ~= nil and name ~= "" then
|
||||||
local level = otomo_create_data_level_field:get_data(first_otomo) or 0;
|
local level = otomo_create_data_level_field:get_data(first_otomo) or 0;
|
||||||
|
|
||||||
@@ -230,8 +241,14 @@ function this.update_my_otomos()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local second_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 1);
|
local second_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 1);
|
||||||
if second_otomo ~= nil then
|
if second_otomo == nil then
|
||||||
|
error_handler.report("non_players.update_my_otomos", "Failed to access Data: second_otomo");
|
||||||
|
else
|
||||||
local name = otomo_create_data_name_field:get_data(second_otomo);
|
local name = otomo_create_data_name_field:get_data(second_otomo);
|
||||||
|
if name == nil then
|
||||||
|
error_handler.report("non_players.update_my_otomos", "Failed to access Data: second_otomo -> name");
|
||||||
|
end
|
||||||
|
|
||||||
if name ~= nil and name ~= "" then
|
if name ~= nil and name ~= "" then
|
||||||
local level = otomo_create_data_level_field:get_data(second_otomo) or 0;
|
local level = otomo_create_data_level_field:get_data(second_otomo) or 0;
|
||||||
|
|
||||||
@@ -252,20 +269,21 @@ function this.update_servant_otomos()
|
|||||||
|
|
||||||
local servant_otomo_list = get_servant_otomo_list_method:call(singletons.otomo_manager);
|
local servant_otomo_list = get_servant_otomo_list_method:call(singletons.otomo_manager);
|
||||||
if servant_otomo_list == nil then
|
if servant_otomo_list == nil then
|
||||||
customization_menu.status = "No servant otomo list";
|
error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo_list");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = otomo_get_count_method:call(servant_otomo_list);
|
local count = otomo_get_count_method:call(servant_otomo_list);
|
||||||
if count == nil then
|
if count == nil then
|
||||||
customization_menu.status = "No servant otomo list count";
|
error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo_list -> count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, count - 1 do
|
for i = 0, count - 1 do
|
||||||
local servant_otomo = otomo_get_item_method:call(servant_otomo_list, i);
|
local servant_otomo = otomo_get_item_method:call(servant_otomo_list, i);
|
||||||
if servant_otomo == nil then
|
if servant_otomo == nil then
|
||||||
goto continue
|
error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo No. " .. tostring(i));
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local otomo_create_data = servant_otomo:call("get_OtCreateData");
|
local otomo_create_data = servant_otomo:call("get_OtCreateData");
|
||||||
@@ -275,6 +293,7 @@ function this.update_servant_otomos()
|
|||||||
local member_id = otomo_create_data:get_field("MemberID");
|
local member_id = otomo_create_data:get_field("MemberID");
|
||||||
|
|
||||||
if name == nil then
|
if name == nil then
|
||||||
|
error_handler.report("non_players.update_servant_otomos", string.format("Failed to access Data: servant_otomo No. %d -> name", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -296,30 +315,33 @@ function this.update_otomos(otomo_info_field_)
|
|||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
|
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
|
error_handler.report("non_players.update_otomos", "Failed to access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- other players
|
-- other players
|
||||||
local otomo_info_list = otomo_info_field_:get_data(singletons.lobby_manager);
|
local otomo_info_list = otomo_info_field_:get_data(singletons.lobby_manager);
|
||||||
if otomo_info_list == nil then
|
if otomo_info_list == nil then
|
||||||
customization_menu.status = "No otomo info list";
|
error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info_list");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = otomo_info_get_count_method:call(otomo_info_list);
|
local count = otomo_info_get_count_method:call(otomo_info_list);
|
||||||
if count == nil then
|
if count == nil then
|
||||||
customization_menu.status = "No otomo info list count";
|
error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info_list -> count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for id = 0, count - 1 do
|
for id = 0, count - 1 do
|
||||||
local otomo_info = otomo_info_get_item_method:call(otomo_info_list, id);
|
local otomo_info = otomo_info_get_item_method:call(otomo_info_list, id);
|
||||||
if otomo_info == nil then
|
if otomo_info == nil then
|
||||||
|
error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info No. " .. tostring(id));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local name = otomo_info_name_field:get_data(otomo_info);
|
local name = otomo_info_name_field:get_data(otomo_info);
|
||||||
if name == nil then
|
if name == nil then
|
||||||
|
error_handler.report("non_players.update_otomos", string.format("Failed to access Data: otomo_info No. %d -> name", id));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -377,7 +399,7 @@ function this.init_UI(non_player)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -387,7 +409,11 @@ function this.init_module()
|
|||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.init();
|
this.init();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ local drawing;
|
|||||||
local language;
|
local language;
|
||||||
local non_players;
|
local non_players;
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -90,8 +91,8 @@ function this.new(id, name, master_rank, hunter_rank, type)
|
|||||||
|
|
||||||
player.cart_count = 0;
|
player.cart_count = 0;
|
||||||
|
|
||||||
player.join_time = -1;
|
player.join_time = utils.constants.uninitialized_int;
|
||||||
player.first_hit_time = -1;
|
player.first_hit_time = utils.constants.uninitialized_int;
|
||||||
player.dps = 0;
|
player.dps = 0;
|
||||||
|
|
||||||
player.small_monsters = this.init_damage_sources();
|
player.small_monsters = this.init_damage_sources();
|
||||||
@@ -140,7 +141,7 @@ function this.update_damage(player, damage_source_type, is_large_monster, damage
|
|||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if player.first_hit_time == -1 then
|
if player.first_hit_time == utils.constants.uninitialized_int then
|
||||||
player.first_hit_time = time.total_elapsed_script_seconds;
|
player.first_hit_time = time.total_elapsed_script_seconds;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -155,6 +156,7 @@ end
|
|||||||
|
|
||||||
function this.update_display(player)
|
function this.update_display(player)
|
||||||
if player == nil then
|
if player == nil then
|
||||||
|
error_handler.report("players.update_display", "Missing Parameter: player");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -335,6 +337,20 @@ function this.merge_damage(first, second)
|
|||||||
return first;
|
return first;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.update_display_list()
|
||||||
|
local is_on_quest = quest_status.flow_state ~= quest_status.flow_states.IN_LOBBY and quest_status.flow_state ~= quest_status.flow_states.IN_TRAINING_AREA;
|
||||||
|
|
||||||
|
this.display_list = {};
|
||||||
|
this.update_player_list(is_on_quest);
|
||||||
|
non_players.update_servant_list();
|
||||||
|
non_players.update_otomo_list(is_on_quest, quest_status.is_online);
|
||||||
|
|
||||||
|
this.update_dps(false);
|
||||||
|
this.sort_players();
|
||||||
|
|
||||||
|
quest_status.get_cart_count();
|
||||||
|
end
|
||||||
|
|
||||||
function this.update_dps(bypass_freeze)
|
function this.update_dps(bypass_freeze)
|
||||||
local cached_config = config.current_config.damage_meter_UI.settings;
|
local cached_config = config.current_config.damage_meter_UI.settings;
|
||||||
|
|
||||||
@@ -359,7 +375,7 @@ end
|
|||||||
function this.update_player_dps(player)
|
function this.update_player_dps(player)
|
||||||
local cached_config = config.current_config.damage_meter_UI.settings;
|
local cached_config = config.current_config.damage_meter_UI.settings;
|
||||||
|
|
||||||
if player.join_time == -1 then
|
if player.join_time == utils.constants.uninitialized_int then
|
||||||
player.join_time = time.total_elapsed_script_seconds;
|
player.join_time = time.total_elapsed_script_seconds;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -436,20 +452,27 @@ local get_pos_field = player_base_type_def:get_method("get_Pos");
|
|||||||
|
|
||||||
function this.update_myself_position()
|
function this.update_myself_position()
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
customization_menu.status = "No player manager";
|
error_handler.report("players.update_myself_position", "Failed to access Data: player_manager");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if quest_status.flow_state == quest_status.flow_states.NONE
|
||||||
|
or quest_status.flow_state == quest_status.flow_states.CUTSCENE then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local master_player = find_master_player_method:call(singletons.player_manager);
|
local master_player = find_master_player_method:call(singletons.player_manager);
|
||||||
if master_player == nil then
|
if master_player == nil then
|
||||||
customization_menu.status = "No master player";
|
error_handler.report("players.update_myself_position", "Failed to access Data: master_player");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local position = get_pos_field:call(master_player);
|
local position = get_pos_field:call(master_player);
|
||||||
if position ~= nil then
|
if position == nil then
|
||||||
this.myself_position = position;
|
error_handler.report("players.update_myself_position", "Failed to access Data: position");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
this.myself_position = position;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init()
|
function this.init()
|
||||||
@@ -498,23 +521,25 @@ function this.update_player_list_(hunter_info_field_)
|
|||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
|
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
|
error_handler.report("players.update_player_list_", "Failed to access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if singletons.progress_manager == nil then
|
if singletons.progress_manager == nil then
|
||||||
|
error_handler.report("players.update_player_list_", "Failed to access Data: progress_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- myself player
|
-- myself player
|
||||||
local myself_player_info = my_hunter_info_field:get_data(singletons.lobby_manager);
|
local myself_player_info = my_hunter_info_field:get_data(singletons.lobby_manager);
|
||||||
if myself_player_info == nil then
|
if myself_player_info == nil then
|
||||||
customization_menu.status = "No myself player info list";
|
error_handler.report("players.update_player_list_", "Failed to access Data: myself_player_info");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local myself_player_name = name_field:get_data(myself_player_info);
|
local myself_player_name = name_field:get_data(myself_player_info);
|
||||||
if myself_player_name == nil then
|
if myself_player_name == nil then
|
||||||
customization_menu.status = "No myself player name";
|
error_handler.report("players.update_player_list_", "Failed to access Data: myself_player_name");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -524,7 +549,7 @@ function this.update_player_list_(hunter_info_field_)
|
|||||||
local myself_id = get_master_player_id_method:call(singletons.player_manager);
|
local myself_id = get_master_player_id_method:call(singletons.player_manager);
|
||||||
|
|
||||||
if myself_id == nil then
|
if myself_id == nil then
|
||||||
customization_menu.status = "No myself player id";
|
error_handler.report("players.update_player_list_", "Failed to access Data: myself_id");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -535,28 +560,29 @@ function this.update_player_list_(hunter_info_field_)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- other players
|
-- other players
|
||||||
local player_info_list = hunter_info_field_:get_data(singletons.lobby_manager);
|
local player_info_array = hunter_info_field_:get_data(singletons.lobby_manager);
|
||||||
if player_info_list == nil then
|
if player_info_array == nil then
|
||||||
customization_menu.status = "No player info list";
|
error_handler.report("players.update_player_list_", "Failed to access Data: player_info_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = get_count_method:call(player_info_list);
|
local count = get_count_method:call(player_info_array);
|
||||||
if count == nil then
|
if count == nil then
|
||||||
customization_menu.status = "No player info list count";
|
error_handler.report("players.update_player_list_", "Failed to access Data: player_info_array -> count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, count - 1 do
|
for i = 0, count - 1 do
|
||||||
local player_info = get_item_method:call(player_info_list, i);
|
local player_info = get_item_method:call(player_info_array, i);
|
||||||
if player_info == nil then
|
if player_info == nil then
|
||||||
goto continue
|
error_handler.report("players.update_player_list_", "Failed to access Data: player_info No. " .. tostring(i));
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local id = member_index_field:get_data(player_info);
|
local id = member_index_field:get_data(player_info);
|
||||||
|
|
||||||
if id == nil then
|
if id == nil then
|
||||||
goto continue
|
error_handler.report("players.update_player_list_", string.format("Failed to access Data: player_info No. %d -> id", i));
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local hunter_rank = hunter_rank_field:get_data(player_info) or 0;
|
local hunter_rank = hunter_rank_field:get_data(player_info) or 0;
|
||||||
@@ -564,13 +590,13 @@ function this.update_player_list_(hunter_info_field_)
|
|||||||
|
|
||||||
local name = name_field:get_data(player_info);
|
local name = name_field:get_data(player_info);
|
||||||
if name == nil then
|
if name == nil then
|
||||||
goto continue
|
error_handler.report("players.update_player_list_", string.format("Failed to access Data: player_info No. %d -> name", i));
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local player = this.list[id];
|
local player = this.list[id];
|
||||||
|
|
||||||
if player == nil then
|
if player == nil then
|
||||||
|
|
||||||
if name == this.myself.name then
|
if name == this.myself.name then
|
||||||
player = this.new(id, name, master_rank, hunter_rank, this.types.myself);
|
player = this.new(id, name, master_rank, hunter_rank, this.types.myself);
|
||||||
this.myself = player;
|
this.myself = player;
|
||||||
@@ -622,7 +648,7 @@ function this.draw(player, position_on_screen, opacity_scale, top_damage, top_dp
|
|||||||
damage_UI_entity.draw(player, position_on_screen, opacity_scale, top_damage, top_dps);
|
damage_UI_entity.draw(player, position_on_screen, opacity_scale, top_damage, top_dps);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -633,8 +659,13 @@ function this.init_module()
|
|||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.init();
|
this.init();
|
||||||
|
time.new_timer(this.update_display_list, 0.5);
|
||||||
|
time.new_timer(this.update_myself_position, 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ local customization_menu;
|
|||||||
local singletons;
|
local singletons;
|
||||||
local config;
|
local config;
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -40,6 +41,11 @@ local package = package;
|
|||||||
|
|
||||||
this.list = {};
|
this.list = {};
|
||||||
|
|
||||||
|
this.creature_ids = {
|
||||||
|
cutterfly = 50,
|
||||||
|
clothfly = 7
|
||||||
|
};
|
||||||
|
|
||||||
function this.new(REcreature)
|
function this.new(REcreature)
|
||||||
local creature = {};
|
local creature = {};
|
||||||
|
|
||||||
@@ -80,15 +86,17 @@ local get_pos_method = environment_creature_base_type_def:get_method("get_Pos");
|
|||||||
function this.init(creature, REcreature)
|
function this.init(creature, REcreature)
|
||||||
local creature_type = creature_type_field:get_data(REcreature);
|
local creature_type = creature_type_field:get_data(REcreature);
|
||||||
if creature_type == nil then
|
if creature_type == nil then
|
||||||
customization_menu.status = "No env creature type";
|
error_handler.report("env_creature.init", "Failed to access Data: creature_type");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local creature_name = get_env_creature_name_message_method:call(singletons.message_manager,
|
local creature_name = get_env_creature_name_message_method:call(singletons.message_manager, creature_type);
|
||||||
creature_type);
|
if creature_name == nil then
|
||||||
if creature_name ~= nil then
|
error_handler.report("env_creature.init", "Failed to access Data: creature_name");
|
||||||
creature.name = creature_name;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
creature.name = creature_name;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_UI(creature)
|
function this.init_UI(creature)
|
||||||
@@ -110,9 +118,11 @@ function this.update_position(REcreature, creature)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local position = get_pos_method:call(REcreature);
|
local position = get_pos_method:call(REcreature);
|
||||||
if position ~= nil then
|
if position == nil then
|
||||||
creature.position = position;
|
error_handler.report("env_creature.update_position", "Failed to access Data: position");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
creature.position = position;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.update(REcreature, creature)
|
function this.update(REcreature, creature)
|
||||||
@@ -125,9 +135,11 @@ function this.update(REcreature, creature)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local is_inactive = creature_is_inactive_field:get_data(REcreature);
|
local is_inactive = creature_is_inactive_field:get_data(REcreature);
|
||||||
if is_inactive ~= nil then
|
if is_inactive == nil then
|
||||||
creature.is_inactive = is_inactive;
|
error_handler.report("env_creature.update", "Failed to access Data: is_inactive");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
creature.is_inactive = is_inactive;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.draw(creature, position_on_screen, opacity_scale)
|
function this.draw(creature, position_on_screen, opacity_scale)
|
||||||
@@ -143,7 +155,7 @@ function this.init_list()
|
|||||||
this.list = {};
|
this.list = {};
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -154,6 +166,10 @@ function this.init_module()
|
|||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
--ailments = require("MHR_Overlay.Monsters.ailments");
|
--ailments = require("MHR_Overlay.Monsters.ailments");
|
||||||
--ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
|
--ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ local this = {};
|
|||||||
local env_creature;
|
local env_creature;
|
||||||
local config;
|
local config;
|
||||||
local time;
|
local time;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -45,11 +46,14 @@ function this.update(REcreature)
|
|||||||
env_creature.update_position(REcreature, creature);
|
env_creature.update_position(REcreature, creature);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
||||||
time = require("MHR_Overlay.Game_Handler.time");
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
sdk.hook(update_method, function(args)
|
sdk.hook(update_method, function(args)
|
||||||
pcall(this.update, sdk.to_managed_object(args[2]));
|
pcall(this.update, sdk.to_managed_object(args[2]));
|
||||||
end, function(retval)
|
end, function(retval)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ local small_monster;
|
|||||||
local large_monster;
|
local large_monster;
|
||||||
local damage_meter_UI;
|
local damage_meter_UI;
|
||||||
local time;
|
local time;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -333,16 +334,15 @@ this.keys = {
|
|||||||
--[254] = "Clear"
|
--[254] = "Clear"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function this.update()
|
function this.update()
|
||||||
if singletons.game_keyboard == nil then
|
if singletons.game_keyboard == nil then
|
||||||
customization_menu.status = "No game keyboard";
|
error_handler.report("keyboard.update", "Failed to access Data: game_keyboard");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local hard_keyboard = hard_keyboard_field:get_data(singletons.game_keyboard);
|
local hard_keyboard = hard_keyboard_field:get_data(singletons.game_keyboard);
|
||||||
if hard_keyboard == nil then
|
if hard_keyboard == nil then
|
||||||
customization_menu.status = "No hard keyboard";
|
error_handler.report("keyboard.update", "Failed to access Data: hard_keyboard");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -350,10 +350,8 @@ function this.update()
|
|||||||
|
|
||||||
local new_hotkey_registered = this.register_hotkey(hard_keyboard);
|
local new_hotkey_registered = this.register_hotkey(hard_keyboard);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if new_hotkey_registered then
|
if new_hotkey_registered then
|
||||||
config.save();
|
config.save_current();
|
||||||
else
|
else
|
||||||
this.check_hotkeys(hard_keyboard);
|
this.check_hotkeys(hard_keyboard);
|
||||||
end
|
end
|
||||||
@@ -493,8 +491,13 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.all_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.all_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.all_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.all_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.all_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.all_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard, math.tointeger(cached_config.all_UI.key)) then
|
|
||||||
|
|
||||||
|
local all_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.all_UI.key));
|
||||||
|
|
||||||
|
if all_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: all_UI_key_release");
|
||||||
|
|
||||||
|
elseif all_UI_key_release then
|
||||||
local is_any_enabled = config.current_config.time_UI.enabled
|
local is_any_enabled = config.current_config.time_UI.enabled
|
||||||
or config.current_config.small_monster_UI.enabled
|
or config.current_config.small_monster_UI.enabled
|
||||||
or config.current_config.large_monster_UI.dynamic.enabled
|
or config.current_config.large_monster_UI.dynamic.enabled
|
||||||
@@ -514,7 +517,13 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.small_monster_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.small_monster_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.small_monster_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.small_monster_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.small_monster_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.small_monster_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard, math.tointeger(cached_config.small_monster_UI.key)) then
|
|
||||||
|
local small_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.small_monster_UI.key));
|
||||||
|
|
||||||
|
if small_monster_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: small_monster_UI_key_release");
|
||||||
|
|
||||||
|
elseif small_monster_UI_key_release then
|
||||||
config.current_config.small_monster_UI.enabled = not config.current_config.small_monster_UI.enabled;
|
config.current_config.small_monster_UI.enabled = not config.current_config.small_monster_UI.enabled;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -522,7 +531,13 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.large_monster_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.large_monster_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.large_monster_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.large_monster_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.large_monster_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.large_monster_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_UI.key)) then
|
|
||||||
|
local large_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_UI.key));
|
||||||
|
|
||||||
|
if large_monster_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_UI_key_release");
|
||||||
|
|
||||||
|
elseif large_monster_UI_key_release then
|
||||||
local is_any_enabled = config.current_config.large_monster_UI.dynamic.enabled
|
local is_any_enabled = config.current_config.large_monster_UI.dynamic.enabled
|
||||||
or config.current_config.large_monster_UI.static.enabled
|
or config.current_config.large_monster_UI.static.enabled
|
||||||
or config.current_config.large_monster_UI.highlighted.enabled;
|
or config.current_config.large_monster_UI.highlighted.enabled;
|
||||||
@@ -536,8 +551,13 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.large_monster_dynamic_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.large_monster_dynamic_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.large_monster_dynamic_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.large_monster_dynamic_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.large_monster_dynamic_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.large_monster_dynamic_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard,
|
|
||||||
math.tointeger(cached_config.large_monster_dynamic_UI.key)) then
|
local large_monster_dynamic_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_dynamic_UI.key));
|
||||||
|
|
||||||
|
if large_monster_dynamic_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_dynamic_UI_key_release");
|
||||||
|
|
||||||
|
elseif large_monster_dynamic_UI_key_release then
|
||||||
config.current_config.large_monster_UI.dynamic.enabled = not config.current_config.large_monster_UI.dynamic.enabled;
|
config.current_config.large_monster_UI.dynamic.enabled = not config.current_config.large_monster_UI.dynamic.enabled;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -545,8 +565,13 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.large_monster_static_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.large_monster_static_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.large_monster_static_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.large_monster_static_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.large_monster_static_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.large_monster_static_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard,
|
|
||||||
math.tointeger(cached_config.large_monster_static_UI.key)) then
|
local large_monster_static_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_static_UI.key));
|
||||||
|
|
||||||
|
if large_monster_static_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_static_UI_key_release");
|
||||||
|
|
||||||
|
elseif large_monster_static_UI_key_release then
|
||||||
config.current_config.large_monster_UI.static.enabled = not config.current_config.large_monster_UI.static.enabled;
|
config.current_config.large_monster_UI.static.enabled = not config.current_config.large_monster_UI.static.enabled;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -554,17 +579,27 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.large_monster_highlighted_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.large_monster_highlighted_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.large_monster_highlighted_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.large_monster_highlighted_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.large_monster_highlighted_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.large_monster_highlighted_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard,
|
|
||||||
math.tointeger(cached_config.large_monster_highlighted_UI.key)) then
|
local large_monster_highlighted_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_highlighted_UI.key));
|
||||||
config.current_config.large_monster_UI.highlighted.enabled = not
|
|
||||||
config.current_config.large_monster_UI.highlighted.enabled;
|
if large_monster_highlighted_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_highlighted_UI_key_release");
|
||||||
|
|
||||||
|
elseif large_monster_highlighted_UI_key_release then
|
||||||
|
config.current_config.large_monster_UI.highlighted.enabled = not config.current_config.large_monster_UI.highlighted.enabled;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not (cached_config.time_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.time_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.time_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.time_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.time_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.time_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard, math.tointeger(cached_config.time_UI.key)) then
|
|
||||||
|
local time_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.time_UI.key));
|
||||||
|
|
||||||
|
if time_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: time_UI_key_release");
|
||||||
|
|
||||||
|
elseif time_UI_key_release then
|
||||||
config.current_config.time_UI.enabled = not config.current_config.time_UI.enabled;
|
config.current_config.time_UI.enabled = not config.current_config.time_UI.enabled;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -572,7 +607,13 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.damage_meter_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.damage_meter_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.damage_meter_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.damage_meter_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.damage_meter_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.damage_meter_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard, math.tointeger(cached_config.damage_meter_UI.key)) then
|
|
||||||
|
local damage_meter_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.damage_meter_UI.key));
|
||||||
|
|
||||||
|
if damage_meter_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: damage_meter_UI_key_release");
|
||||||
|
|
||||||
|
elseif damage_meter_UI_key_release then
|
||||||
config.current_config.damage_meter_UI.enabled = not config.current_config.damage_meter_UI.enabled;
|
config.current_config.damage_meter_UI.enabled = not config.current_config.damage_meter_UI.enabled;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -580,7 +621,13 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
if not (cached_config.endemic_life_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
if not (cached_config.endemic_life_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||||
and not (cached_config.endemic_life_UI.shift and not this.hotkey_modifiers_down.shift)
|
and not (cached_config.endemic_life_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||||
and not (cached_config.endemic_life_UI.alt and not this.hotkey_modifiers_down.alt) then
|
and not (cached_config.endemic_life_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||||
if get_release_method:call(hard_keyboard, math.tointeger(cached_config.endemic_life_UI.key)) then
|
|
||||||
|
local endemic_life_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.endemic_life_UI.key));
|
||||||
|
|
||||||
|
if endemic_life_UI_key_release == nil then
|
||||||
|
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: endemic_life_UI_key_release");
|
||||||
|
|
||||||
|
elseif endemic_life_UI_key_release then
|
||||||
config.current_config.endemic_life_UI.enabled = not config.current_config.endemic_life_UI.enabled;
|
config.current_config.endemic_life_UI.enabled = not config.current_config.endemic_life_UI.enabled;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -604,7 +651,7 @@ function this.get_hotkey_name(hotkey)
|
|||||||
return hotkey_name .. tostring(this.keys[hotkey.key]);
|
return hotkey_name .. tostring(this.keys[hotkey.key]);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
config = require "MHR_Overlay.Misc.config"
|
config = require "MHR_Overlay.Misc.config"
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -613,6 +660,10 @@ function this.init_module()
|
|||||||
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
||||||
damage_meter_UI = require("MHR_Overlay.UI.Modules.damage_meter_UI");
|
damage_meter_UI = require("MHR_Overlay.UI.Modules.damage_meter_UI");
|
||||||
time = require("MHR_Overlay.Game_Handler.time");
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -9,6 +9,7 @@ local damage_meter_UI;
|
|||||||
local time;
|
local time;
|
||||||
local env_creature;
|
local env_creature;
|
||||||
local non_players;
|
local non_players;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -153,16 +154,20 @@ end
|
|||||||
|
|
||||||
function this.get_cart_count()
|
function this.get_cart_count()
|
||||||
local death_num = get_death_num_method:call(singletons.quest_manager);
|
local death_num = get_death_num_method:call(singletons.quest_manager);
|
||||||
if death_num ~= nil then
|
if death_num == nil then
|
||||||
this.cart_count = death_num;
|
error_handler.report("quest_status.get_cart_count", "Failed to access Data: death_num");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
this.cart_count = death_num;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.get_max_cart_count()
|
function this.get_max_cart_count()
|
||||||
local quest_life = get_quest_life_method:call(singletons.quest_manager);
|
local quest_life = get_quest_life_method:call(singletons.quest_manager);
|
||||||
if quest_life ~= nil then
|
if quest_life == nil then
|
||||||
this.max_cart_count = quest_life;
|
error_handler.report("quest_status.get_max_cart_count", "Failed to access Data: quest_life");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
this.max_cart_count = quest_life;
|
||||||
end
|
end
|
||||||
|
|
||||||
--type 2 = quest start
|
--type 2 = quest start
|
||||||
@@ -170,6 +175,7 @@ end
|
|||||||
--type 5 = end screen
|
--type 5 = end screen
|
||||||
function this.on_demo_request_activation(request_data_base)
|
function this.on_demo_request_activation(request_data_base)
|
||||||
if request_data_base == nil then
|
if request_data_base == nil then
|
||||||
|
error_handler.report("quest_status.on_demo_request_activation", "Missing Parameter: request_data_base");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -179,6 +185,7 @@ function this.on_demo_request_activation(request_data_base)
|
|||||||
|
|
||||||
local request_data_type = request_data_base:call("get_Type");
|
local request_data_type = request_data_base:call("get_Type");
|
||||||
if request_data_type == nil then
|
if request_data_type == nil then
|
||||||
|
error_handler.report("quest_status.on_demo_request_activation", "Failed to access Data: request_data_type");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -278,6 +285,7 @@ end
|
|||||||
|
|
||||||
function this.on_village_fast_travel(area)
|
function this.on_village_fast_travel(area)
|
||||||
if area == nil then
|
if area == nil then
|
||||||
|
error_handler.report("quest_status.on_village_fast_travel", "Missing Parameter: area");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -289,6 +297,11 @@ function this.on_village_fast_travel(area)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function this.on_changed_game_status(new_quest_status)
|
function this.on_changed_game_status(new_quest_status)
|
||||||
|
if new_quest_status == nil then
|
||||||
|
error_handler.report("quest_status.on_changed_game_status", "Missing Parameter: new_quest_status");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
this.index = new_quest_status;
|
this.index = new_quest_status;
|
||||||
|
|
||||||
if this.index == 0 then
|
if this.index == 0 then
|
||||||
@@ -304,12 +317,13 @@ end
|
|||||||
|
|
||||||
function this.init()
|
function this.init()
|
||||||
if singletons.quest_manager == nil then
|
if singletons.quest_manager == nil then
|
||||||
|
error_handler.report("quest_status.init", "Failed to access Data: quest_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local new_quest_status = get_status_method:call(singletons.game_manager);
|
local new_quest_status = get_status_method:call(singletons.game_manager);
|
||||||
if new_quest_status == nil then
|
if new_quest_status == nil then
|
||||||
customization_menu.status = "No quest status";
|
error_handler.report("quest_status.init", "Failed to access Data: new_quest_status");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -330,11 +344,13 @@ end
|
|||||||
|
|
||||||
function this.update_is_online()
|
function this.update_is_online()
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
|
error_handler.report("quest_status.update_is_online", "Failed to access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_quest_online = is_quest_online_method:call(singletons.lobby_manager);
|
local is_quest_online = is_quest_online_method:call(singletons.lobby_manager);
|
||||||
if is_quest_online == nil then
|
if is_quest_online == nil then
|
||||||
|
error_handler.report("quest_status.update_is_online", "Failed to access Data: is_quest_online");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -343,11 +359,13 @@ end
|
|||||||
|
|
||||||
--[[function quest_status.update_is_quest_host()
|
--[[function quest_status.update_is_quest_host()
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
|
error_handler.report("quest_status.update_is_quest_host", "Failed to access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_quest_host = is_quest_host_method:call(singletons.lobby_manager, true);
|
local is_quest_host = is_quest_host_method:call(singletons.lobby_manager, true);
|
||||||
if is_quest_host == nil then
|
if is_quest_host == nil then
|
||||||
|
error_handler.report("quest_status.update_is_quest_host", "Failed to access Data: is_quest_host");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -356,21 +374,22 @@ end--]]
|
|||||||
|
|
||||||
function this.update_is_training_area()
|
function this.update_is_training_area()
|
||||||
if singletons.village_area_manager == nil then
|
if singletons.village_area_manager == nil then
|
||||||
customization_menu.status = "No village area manager";
|
error_handler.report("quest_status.update_is_training_area", "Failed to access Data: village_area_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local _is_training_area = check_current_area_training_area_method:call(singletons.village_area_manager);
|
local is_training_area = check_current_area_training_area_method:call(singletons.village_area_manager);
|
||||||
if _is_training_area == nil then
|
if is_training_area == nil then
|
||||||
|
error_handler.report("quest_status.update_is_training_area", "Failed to access Data: is_training_area");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if _is_training_area then
|
if is_training_area then
|
||||||
this.set_flow_state(this.flow_states.IN_TRAINING_AREA);
|
this.set_flow_state(this.flow_states.IN_TRAINING_AREA);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
@@ -380,9 +399,14 @@ function this.init_module()
|
|||||||
time = require("MHR_Overlay.Game_Handler.time");
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
||||||
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.init();
|
this.init();
|
||||||
|
|
||||||
|
time.new_timer(this.update_is_online, 1);
|
||||||
|
|
||||||
sdk.hook(on_changed_game_status_method, function(args)
|
sdk.hook(on_changed_game_status_method, function(args)
|
||||||
this.on_changed_game_status(sdk.to_int64(args[3]));
|
this.on_changed_game_status(sdk.to_int64(args[3]));
|
||||||
end, function(retval) return retval; end);
|
end, function(retval) return retval; end);
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ local this = {};
|
|||||||
|
|
||||||
local config;
|
local config;
|
||||||
local singletons;
|
local singletons;
|
||||||
|
local utils;
|
||||||
|
local time;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -70,26 +73,26 @@ function this.get_game_window_size()
|
|||||||
scene_view = sdk.call_native_func(singletons.scene_manager, sdk.find_type_definition("via.SceneManager") , "get_MainView");
|
scene_view = sdk.call_native_func(singletons.scene_manager, sdk.find_type_definition("via.SceneManager") , "get_MainView");
|
||||||
|
|
||||||
if scene_view == nil then
|
if scene_view == nil then
|
||||||
--log.error("[MHR_Overlay.lua] No scene view");
|
error_handler.report("screen.get_game_window_size", "Failed to access Data: scene_view");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local size = get_size_method:call(scene_view);
|
local size = get_size_method:call(scene_view);
|
||||||
if size == nil then
|
if size == nil then
|
||||||
--log.error("[MHR_Overlay.lua] No scene view size");
|
error_handler.report("screen.get_game_window_size", "Failed to access Data: size");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local screen_width = width_field:get_data(size);
|
local screen_width = width_field:get_data(size);
|
||||||
if screen_width == nil then
|
if screen_width == nil then
|
||||||
--log.error("[MHR_Overlay.lua] No screen width");
|
error_handler.report("screen.get_game_window_size", "Failed to access Data: screen_width");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local screen_height = height_field:get_data(size);
|
local screen_height = height_field:get_data(size);
|
||||||
if screen_height == nil then
|
if screen_height == nil then
|
||||||
--log.error("[MHR_Overlay.lua] No screen height");
|
error_handler.report("screen.get_game_window_size", "Failed to access Data: screen_height");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -131,9 +134,16 @@ function this.calculate_absolute_coordinates(position)
|
|||||||
return { x = _position.x, y = _position.y };
|
return { x = _position.x, y = _position.y };
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
time.new_timer(this.update_window_size, 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
local this = {};
|
local this = {};
|
||||||
|
|
||||||
|
local time;
|
||||||
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
local pairs = pairs;
|
local pairs = pairs;
|
||||||
@@ -61,39 +65,27 @@ function this.init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function this.init_message_manager()
|
function this.init_message_manager()
|
||||||
if this.message_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.message_manager = sdk.get_managed_singleton("snow.gui.MessageManager");
|
this.message_manager = sdk.get_managed_singleton("snow.gui.MessageManager");
|
||||||
if this.message_manager == nil then
|
if this.message_manager == nil then
|
||||||
--log.error("[MHR Overlay] No message manager");
|
error_handler.report("singletons.init_message_manager", "Failed to access Data: message_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.message_manager;
|
return this.message_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_enemy_manager()
|
function this.init_enemy_manager()
|
||||||
if this.enemy_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.enemy_manager = sdk.get_managed_singleton("snow.enemy.EnemyManager");
|
this.enemy_manager = sdk.get_managed_singleton("snow.enemy.EnemyManager");
|
||||||
if this.enemy_manager == nil then
|
if this.enemy_manager == nil then
|
||||||
--log.error("[MHR Overlay] No enemy manager");
|
error_handler.report("singletons.init_enemy_manager", "Failed to access Data: enemy_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.enemy_manager;
|
return this.enemy_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_lobby_manager()
|
function this.init_lobby_manager()
|
||||||
if this.lobby_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.lobby_manager = sdk.get_managed_singleton("snow.LobbyManager");
|
this.lobby_manager = sdk.get_managed_singleton("snow.LobbyManager");
|
||||||
if this.lobby_manager == nil then
|
if this.lobby_manager == nil then
|
||||||
--log.error("[MHR Overlay] No lobby manager");
|
error_handler.report("singletons.init_lobby_manager", "Failed to access Data: lobby_manager");
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -101,13 +93,9 @@ function this.init_lobby_manager()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function this.init_progress_manager()
|
function this.init_progress_manager()
|
||||||
if this.progress_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.progress_manager = sdk.get_managed_singleton("snow.progress.ProgressManager");
|
this.progress_manager = sdk.get_managed_singleton("snow.progress.ProgressManager");
|
||||||
if this.progress_manager == nil then
|
if this.progress_manager == nil then
|
||||||
--log.error("[MHR Overlay] No progress manager");
|
error_handler.report("singletons.init_lobby_manager", "Failed to access Data: progress_manager");
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -115,124 +103,95 @@ function this.init_progress_manager()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function this.init_quest_manager()
|
function this.init_quest_manager()
|
||||||
if this.quest_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.quest_manager = sdk.get_managed_singleton("snow.QuestManager");
|
this.quest_manager = sdk.get_managed_singleton("snow.QuestManager");
|
||||||
if this.quest_manager == nil then
|
if this.quest_manager == nil then
|
||||||
--log.error("[MHR Overlay] No quest manager");
|
error_handler.report("singletons.init_quest_manager", "Failed to access Data: quest_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.quest_manager;
|
return this.quest_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_player_manager()
|
function this.init_player_manager()
|
||||||
if this.player_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.player_manager = sdk.get_managed_singleton("snow.player.PlayerManager");
|
this.player_manager = sdk.get_managed_singleton("snow.player.PlayerManager");
|
||||||
if this.player_manager == nil then
|
if this.player_manager == nil then
|
||||||
--log.error("[MHR Overlay] No player manager");
|
error_handler.report("singletons.init_player_manager", "Failed to access Data: player_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.player_manager;
|
return this.player_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_village_area_manager()
|
function this.init_village_area_manager()
|
||||||
if this.village_area_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.village_area_manager = sdk.get_managed_singleton("snow.VillageAreaManager");
|
this.village_area_manager = sdk.get_managed_singleton("snow.VillageAreaManager");
|
||||||
if this.village_area_manager == nil then
|
if this.village_area_manager == nil then
|
||||||
--log.error("[MHR Overlay] No village area manager");
|
error_handler.report("singletons.init_village_area_manager", "Failed to access Data: village_area_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.village_area_manager;
|
return this.village_area_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_gui_manager()
|
function this.init_gui_manager()
|
||||||
if this.gui_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.gui_manager = sdk.get_managed_singleton("snow.gui.GuiManager");
|
this.gui_manager = sdk.get_managed_singleton("snow.gui.GuiManager");
|
||||||
if this.gui_manager == nil then
|
if this.gui_manager == nil then
|
||||||
--log.error("[MHR Overlay] No gui manager");
|
error_handler.report("singletons.init_gui_manager", "Failed to access Data: gui_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.gui_manager;
|
return this.gui_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_game_keyboard()
|
function this.init_game_keyboard()
|
||||||
if this.game_keyboard ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.game_keyboard = sdk.get_managed_singleton("snow.GameKeyboard");
|
this.game_keyboard = sdk.get_managed_singleton("snow.GameKeyboard");
|
||||||
if this.game_keyboard == nil then
|
if this.game_keyboard == nil then
|
||||||
--log.error("[MHR Overlay] No game keyboard");
|
error_handler.report("singletons.init_game_keyboard", "Failed to access Data: game_keyboard");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.game_keyboard;
|
return this.game_keyboard;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_scene_manager()
|
function this.init_scene_manager()
|
||||||
if this.scene_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.scene_manager = sdk.get_native_singleton("via.SceneManager");
|
this.scene_manager = sdk.get_native_singleton("via.SceneManager");
|
||||||
if this.scene_manager == nil then
|
if this.scene_manager == nil then
|
||||||
--log.error("[MHR Overlay] No enemy manager");
|
error_handler.report("singletons.init_scene_manager", "Failed to access Data: scene_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.scene_manager;
|
return this.scene_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_game_manager()
|
function this.init_game_manager()
|
||||||
if this.game_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.game_manager = sdk.get_managed_singleton("snow.SnowGameManager");
|
this.game_manager = sdk.get_managed_singleton("snow.SnowGameManager");
|
||||||
if this.game_manager == nil then
|
if this.game_manager == nil then
|
||||||
--log.error("[MHR Overlay] No enemy manager");
|
error_handler.report("singletons.init_game_manager", "Failed to access Data: game_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.game_manager;
|
return this.game_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_servant_manager()
|
function this.init_servant_manager()
|
||||||
if this.servant_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.servant_manager = sdk.get_managed_singleton("snow.ai.ServantManager");
|
this.servant_manager = sdk.get_managed_singleton("snow.ai.ServantManager");
|
||||||
if this.servant_manager == nil then
|
if this.servant_manager == nil then
|
||||||
--log.error("[MHR Overlay] No enemy manager");
|
error_handler.report("singletons.init_servant_manager", "Failed to access Data: servant_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.servant_manager;
|
return this.servant_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_otomo_manager()
|
function this.init_otomo_manager()
|
||||||
if this.otomo_manager ~= nil then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
this.otomo_manager = sdk.get_managed_singleton("snow.otomo.OtomoManager");
|
this.otomo_manager = sdk.get_managed_singleton("snow.otomo.OtomoManager");
|
||||||
if this.otomo_manager == nil then
|
if this.otomo_manager == nil then
|
||||||
--log.error("[MHR Overlay] No enemy manager");
|
error_handler.report("singletons.init_otomo_manager", "Failed to access Data: otomo_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.otomo_manager;
|
return this.otomo_manager;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_module()
|
||||||
this.init();
|
this.init();
|
||||||
|
time.new_timer(this.init, 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ local players;
|
|||||||
local non_players;
|
local non_players;
|
||||||
local config;
|
local config;
|
||||||
local small_monster;
|
local small_monster;
|
||||||
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -49,51 +51,68 @@ this.elapsed_minutes = 0;
|
|||||||
this.elapsed_seconds = 0;
|
this.elapsed_seconds = 0;
|
||||||
|
|
||||||
this.total_elapsed_script_seconds = 0;
|
this.total_elapsed_script_seconds = 0;
|
||||||
this.last_elapsed_script_seconds = 0;
|
|
||||||
|
this.list = {};
|
||||||
|
|
||||||
|
function this.new_timer(callback, cooldown_seconds, start_offset_seconds)
|
||||||
|
start_offset_seconds = start_offset_seconds or utils.math.random();
|
||||||
|
|
||||||
|
if callback == nil or cooldown_seconds == nil then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
local timer = {};
|
||||||
|
timer.callback = callback;
|
||||||
|
timer.cooldown = cooldown_seconds;
|
||||||
|
|
||||||
|
timer.last_trigger_time = os.clock() + start_offset_seconds;
|
||||||
|
|
||||||
|
table.insert(this.list, timer);
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.update_timers()
|
||||||
|
this.update_script_time();
|
||||||
|
|
||||||
|
for _, timer in ipairs(this.list) do
|
||||||
|
if this.total_elapsed_script_seconds - timer.last_trigger_time > timer.cooldown then
|
||||||
|
timer.last_trigger_time = this.total_elapsed_script_seconds;
|
||||||
|
timer.callback();
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function this.update_script_time()
|
function this.update_script_time()
|
||||||
this.total_elapsed_script_seconds = os.clock();
|
this.total_elapsed_script_seconds = os.clock();
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.tick()
|
function this.update_quest_time()
|
||||||
this.update_script_time();
|
|
||||||
|
|
||||||
if singletons.quest_manager == nil then
|
if singletons.quest_manager == nil then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if quest_status.flow_state == quest_status.flow_states.IN_LOBBY
|
||||||
|
or quest_status.flow_state >= quest_status.flow_states.QUEST_END_TIMER then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
local quest_time_elapsed_minutes = get_quest_elapsed_time_min_method:call(singletons.quest_manager);
|
local quest_time_elapsed_minutes = get_quest_elapsed_time_min_method:call(singletons.quest_manager);
|
||||||
if quest_time_elapsed_minutes == nil then
|
if quest_time_elapsed_minutes == nil then
|
||||||
customization_menu.status = "No quest time elapsed minutes";
|
error_handler.report("time.update_quest_time", "Failed to access Data: quest_time_elapsed_minutes");
|
||||||
else
|
else
|
||||||
this.elapsed_minutes = quest_time_elapsed_minutes;
|
this.elapsed_minutes = quest_time_elapsed_minutes;
|
||||||
end
|
end
|
||||||
|
|
||||||
local quest_time_total_elapsed_seconds = get_quest_elapsed_time_sec_method:call(singletons.quest_manager);
|
local quest_time_total_elapsed_seconds = get_quest_elapsed_time_sec_method:call(singletons.quest_manager);
|
||||||
if quest_time_total_elapsed_seconds == nil then
|
if quest_time_total_elapsed_seconds == nil then
|
||||||
customization_menu.status = "No quest time total elapsed seconds";
|
error_handler.report("time.update_quest_time", "Failed to access Data: quest_time_total_elapsed_seconds");
|
||||||
else
|
else
|
||||||
this.total_elapsed_seconds = quest_time_total_elapsed_seconds;
|
this.total_elapsed_seconds = quest_time_total_elapsed_seconds;
|
||||||
end
|
end
|
||||||
|
|
||||||
this.elapsed_seconds = quest_time_total_elapsed_seconds - quest_time_elapsed_minutes * 60;
|
this.elapsed_seconds = quest_time_total_elapsed_seconds - quest_time_elapsed_minutes * 60;
|
||||||
|
|
||||||
if this.total_elapsed_script_seconds - this.last_elapsed_script_seconds > 0.5 then
|
|
||||||
this.last_elapsed_script_seconds = this.total_elapsed_script_seconds;
|
|
||||||
|
|
||||||
local is_on_quest = quest_status.flow_state ~= quest_status.flow_states.IN_LOBBY and quest_status.flow_state ~= quest_status.flow_states.IN_TRAINING_AREA;
|
|
||||||
|
|
||||||
players.display_list = {};
|
|
||||||
players.update_player_list(is_on_quest);
|
|
||||||
non_players.update_servant_list();
|
|
||||||
non_players.update_otomo_list(is_on_quest, quest_status.is_online);
|
|
||||||
|
|
||||||
players.update_dps(false);
|
|
||||||
players.sort_players();
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -101,6 +120,12 @@ function this.init_module()
|
|||||||
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
||||||
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
this.new_timer(this.update_quest_time, 1 / 60);
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ local this = {};
|
|||||||
|
|
||||||
local utils;
|
local utils;
|
||||||
local language;
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -89,7 +90,7 @@ function this.init_default()
|
|||||||
large_monster_highlighted_UI = true,
|
large_monster_highlighted_UI = true,
|
||||||
damage_meter_UI = true,
|
damage_meter_UI = true,
|
||||||
endemic_life_UI = true,
|
endemic_life_UI = true,
|
||||||
--buff_UI = true
|
buff_UI = true
|
||||||
},
|
},
|
||||||
|
|
||||||
cutscene = {
|
cutscene = {
|
||||||
@@ -100,7 +101,7 @@ function this.init_default()
|
|||||||
time_UI = false,
|
time_UI = false,
|
||||||
damage_meter_UI = false,
|
damage_meter_UI = false,
|
||||||
endemic_life_UI = false,
|
endemic_life_UI = false,
|
||||||
--buff_UI = false
|
buff_UI = false
|
||||||
},
|
},
|
||||||
|
|
||||||
loading_quest = {
|
loading_quest = {
|
||||||
@@ -111,7 +112,7 @@ function this.init_default()
|
|||||||
time_UI = false,
|
time_UI = false,
|
||||||
damage_meter_UI = false,
|
damage_meter_UI = false,
|
||||||
endemic_life_UI = false,
|
endemic_life_UI = false,
|
||||||
--buff_UI = false
|
buff_UI = false
|
||||||
},
|
},
|
||||||
|
|
||||||
quest_start_animation = {
|
quest_start_animation = {
|
||||||
@@ -122,7 +123,7 @@ function this.init_default()
|
|||||||
time_UI = true,
|
time_UI = true,
|
||||||
damage_meter_UI = true,
|
damage_meter_UI = true,
|
||||||
endemic_life_UI = true,
|
endemic_life_UI = true,
|
||||||
--buff_UI = true
|
buff_UI = true
|
||||||
},
|
},
|
||||||
|
|
||||||
playing_quest = {
|
playing_quest = {
|
||||||
@@ -133,7 +134,7 @@ function this.init_default()
|
|||||||
time_UI = true,
|
time_UI = true,
|
||||||
damage_meter_UI = true,
|
damage_meter_UI = true,
|
||||||
endemic_life_UI = true,
|
endemic_life_UI = true,
|
||||||
--buff_UI = true
|
buff_UI = true
|
||||||
},
|
},
|
||||||
|
|
||||||
killcam = {
|
killcam = {
|
||||||
@@ -144,7 +145,7 @@ function this.init_default()
|
|||||||
time_UI = true,
|
time_UI = true,
|
||||||
damage_meter_UI = true,
|
damage_meter_UI = true,
|
||||||
endemic_life_UI = true,
|
endemic_life_UI = true,
|
||||||
--buff_UI = true
|
buff_UI = true
|
||||||
},
|
},
|
||||||
|
|
||||||
quest_end_timer = {
|
quest_end_timer = {
|
||||||
@@ -155,7 +156,7 @@ function this.init_default()
|
|||||||
time_UI = true,
|
time_UI = true,
|
||||||
damage_meter_UI = true,
|
damage_meter_UI = true,
|
||||||
endemic_life_UI = true,
|
endemic_life_UI = true,
|
||||||
--buff_UI = true
|
buff_UI = true
|
||||||
},
|
},
|
||||||
|
|
||||||
quest_end_animation = {
|
quest_end_animation = {
|
||||||
@@ -166,7 +167,7 @@ function this.init_default()
|
|||||||
time_UI = false,
|
time_UI = false,
|
||||||
damage_meter_UI = false,
|
damage_meter_UI = false,
|
||||||
endemic_life_UI = false,
|
endemic_life_UI = false,
|
||||||
--buff_UI = false
|
buff_UI = false
|
||||||
},
|
},
|
||||||
|
|
||||||
quest_end_screen = {
|
quest_end_screen = {
|
||||||
@@ -177,7 +178,7 @@ function this.init_default()
|
|||||||
time_UI = false,
|
time_UI = false,
|
||||||
damage_meter_UI = false,
|
damage_meter_UI = false,
|
||||||
endemic_life_UI = false,
|
endemic_life_UI = false,
|
||||||
--buff_UI = false
|
buff_UI = false
|
||||||
},
|
},
|
||||||
|
|
||||||
reward_screen = {
|
reward_screen = {
|
||||||
@@ -188,7 +189,7 @@ function this.init_default()
|
|||||||
time_UI = true,
|
time_UI = true,
|
||||||
damage_meter_UI = true,
|
damage_meter_UI = true,
|
||||||
endemic_life_UI = false,
|
endemic_life_UI = false,
|
||||||
--buff_UI = false
|
buff_UI = false
|
||||||
},
|
},
|
||||||
|
|
||||||
summary_screen = {
|
summary_screen = {
|
||||||
@@ -199,7 +200,7 @@ function this.init_default()
|
|||||||
time_UI = true,
|
time_UI = true,
|
||||||
damage_meter_UI = true,
|
damage_meter_UI = true,
|
||||||
endemic_life_UI = false,
|
endemic_life_UI = false,
|
||||||
--buff_UI = false
|
buff_UI = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -476,6 +477,11 @@ function this.init_default()
|
|||||||
y = 40
|
y = 40
|
||||||
},
|
},
|
||||||
|
|
||||||
|
relative_offset = {
|
||||||
|
x = 0,
|
||||||
|
y = 45
|
||||||
|
},
|
||||||
|
|
||||||
spacing = {
|
spacing = {
|
||||||
x = 0,
|
x = 0,
|
||||||
y = 24
|
y = 24
|
||||||
@@ -7034,10 +7040,10 @@ function this.init_default()
|
|||||||
visibility = true,
|
visibility = true,
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
right_alignment_shift = 0
|
right_alignment_shift = 6
|
||||||
},
|
},
|
||||||
|
|
||||||
text_formatting = "%6.1f%%",
|
text_formatting = "%.1f%%",
|
||||||
|
|
||||||
offset = {
|
offset = {
|
||||||
x = 262,
|
x = 262,
|
||||||
@@ -7452,7 +7458,7 @@ function this.init_default()
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
--[[buff_UI = {
|
buff_UI = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
@@ -7487,6 +7493,10 @@ function this.init_default()
|
|||||||
|
|
||||||
text_formatting = "%s",
|
text_formatting = "%s",
|
||||||
|
|
||||||
|
include = {
|
||||||
|
skill_level = true
|
||||||
|
},
|
||||||
|
|
||||||
offset = {
|
offset = {
|
||||||
x = 5,
|
x = 5,
|
||||||
y = 0
|
y = 0
|
||||||
@@ -7564,7 +7574,30 @@ function this.init_default()
|
|||||||
outline = 0xC0000000
|
outline = 0xC0000000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]]
|
},
|
||||||
|
|
||||||
|
debug = {
|
||||||
|
history_size = 64
|
||||||
|
},
|
||||||
|
|
||||||
|
customization_menu = {
|
||||||
|
visible = false,
|
||||||
|
|
||||||
|
position = {
|
||||||
|
x = 360,
|
||||||
|
y = 50
|
||||||
|
},
|
||||||
|
|
||||||
|
size = {
|
||||||
|
width = 785,
|
||||||
|
height = 500
|
||||||
|
},
|
||||||
|
|
||||||
|
pivot = {
|
||||||
|
x = 0,
|
||||||
|
y = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -7572,7 +7605,7 @@ function this.load_current_config_value()
|
|||||||
local loaded_config = json.load_file(this.current_config_value_file_name);
|
local loaded_config = json.load_file(this.current_config_value_file_name);
|
||||||
if loaded_config ~= nil then
|
if loaded_config ~= nil then
|
||||||
if loaded_config.config == nil then
|
if loaded_config.config == nil then
|
||||||
log.info("[MHR Overlay] old config.json loaded successfully");
|
log.info("[MHR Overlay] Old config.json Loaded Successfully");
|
||||||
|
|
||||||
local config_save = {
|
local config_save = {
|
||||||
config = this.current_config_name
|
config = this.current_config_name
|
||||||
@@ -7590,11 +7623,12 @@ function this.load_current_config_value()
|
|||||||
|
|
||||||
is_old_config_transferred = true;
|
is_old_config_transferred = true;
|
||||||
else
|
else
|
||||||
log.info("[MHR Overlay] config.json loaded successfully");
|
log.info("[MHR Overlay] config.json Loaded Successfully");
|
||||||
this.current_config_name = loaded_config.config;
|
this.current_config_name = loaded_config.config;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
log.error("[MHR Overlay] Failed to load config.json");
|
log.error("[MHR Overlay] Failed to Load config.json");
|
||||||
|
error_handler.report("config.load_current_config_value", "Failed to Load config.json");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -7615,8 +7649,7 @@ function this.load_configs()
|
|||||||
|
|
||||||
local loaded_config = json.load_file(config_file_name);
|
local loaded_config = json.load_file(config_file_name);
|
||||||
if loaded_config ~= nil then
|
if loaded_config ~= nil then
|
||||||
log.info("[MHR Overlay] " .. config_name .. ".json loaded successfully");
|
log.info(string.format("[MHR Overlay] %s.json Loaded Successfully", config_name));
|
||||||
|
|
||||||
|
|
||||||
local merged_config = utils.table.merge(this.default_config, loaded_config);
|
local merged_config = utils.table.merge(this.default_config, loaded_config);
|
||||||
merged_config.version = this.version;
|
merged_config.version = this.version;
|
||||||
@@ -7630,7 +7663,8 @@ function this.load_configs()
|
|||||||
this.current_config = merged_config;
|
this.current_config = merged_config;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
log.error("[MHR Overlay] Failed to load " .. config_name .. ".json");
|
log.error(string.format("[MHR Overlay] Failed to Load %s.json", config_name));
|
||||||
|
error_handler.report("config.load_configs", string.format("Failed to Load %s.json", config_name));
|
||||||
end
|
end
|
||||||
|
|
||||||
::continue::
|
::continue::
|
||||||
@@ -7664,7 +7698,8 @@ function this.save(file_name, config_table)
|
|||||||
if success then
|
if success then
|
||||||
log.info("[MHR Overlay] " .. file_name .. " saved successfully");
|
log.info("[MHR Overlay] " .. file_name .. " saved successfully");
|
||||||
else
|
else
|
||||||
log.error("[MHR Overlay] Failed to save " .. file_name);
|
error_handler.report("config.load_configs", string.format("Failed to Save %s", file_name));
|
||||||
|
log.error(string.format("[MHR Overlay] Failed to Save %s", file_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -7716,10 +7751,13 @@ function this.update(index)
|
|||||||
this.save_current_config_name();
|
this.save_current_config_name();
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.init_default();
|
this.init_default();
|
||||||
this.load_current_config_value();
|
this.load_current_config_value();
|
||||||
this.load_configs();
|
this.load_configs();
|
||||||
|
|||||||
92
reframework/autorun/MHR_Overlay/Misc/error_handler.lua
Normal file
92
reframework/autorun/MHR_Overlay/Misc/error_handler.lua
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
local this = {};
|
||||||
|
|
||||||
|
local time;
|
||||||
|
local utils;
|
||||||
|
local config;
|
||||||
|
|
||||||
|
local sdk = sdk;
|
||||||
|
local tostring = tostring;
|
||||||
|
local pairs = pairs;
|
||||||
|
local ipairs = ipairs;
|
||||||
|
local tonumber = tonumber;
|
||||||
|
local require = require;
|
||||||
|
local pcall = pcall;
|
||||||
|
local table = table;
|
||||||
|
local string = string;
|
||||||
|
local Vector3f = Vector3f;
|
||||||
|
local d2d = d2d;
|
||||||
|
local math = math;
|
||||||
|
local json = json;
|
||||||
|
local log = log;
|
||||||
|
local fs = fs;
|
||||||
|
local next = next;
|
||||||
|
local type = type;
|
||||||
|
local setmetatable = setmetatable;
|
||||||
|
local getmetatable = getmetatable;
|
||||||
|
local assert = assert;
|
||||||
|
local select = select;
|
||||||
|
local coroutine = coroutine;
|
||||||
|
local utf8 = utf8;
|
||||||
|
local re = re;
|
||||||
|
local imgui = imgui;
|
||||||
|
local draw = draw;
|
||||||
|
local Vector2f = Vector2f;
|
||||||
|
local reframework = reframework;
|
||||||
|
local os = os;
|
||||||
|
local ValueType = ValueType;
|
||||||
|
local package = package;
|
||||||
|
|
||||||
|
this.list = {};
|
||||||
|
this.is_empty = true;
|
||||||
|
|
||||||
|
this.history = {};
|
||||||
|
|
||||||
|
function this.report(error_key, error_message)
|
||||||
|
if error_key == nil or error_key == ""
|
||||||
|
or error_message == nil or error_message == "" then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local error_time = time.total_elapsed_script_seconds;
|
||||||
|
|
||||||
|
if error_time == 0 then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local error = {
|
||||||
|
key = error_key,
|
||||||
|
time = error_time,
|
||||||
|
message = error_message
|
||||||
|
};
|
||||||
|
|
||||||
|
this.list[error_key] = error;
|
||||||
|
this.is_empty = false;
|
||||||
|
|
||||||
|
this.add_to_history(error_key, error);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.add_to_history(error_key, error)
|
||||||
|
this.clear_history();
|
||||||
|
|
||||||
|
table.insert(this.history, error);
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.clear_history()
|
||||||
|
local history_size = config.current_config.debug.history_size;
|
||||||
|
|
||||||
|
while #this.history >= history_size do
|
||||||
|
table.remove(this.history, 1);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
return this;
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
local this = {};
|
local this = {};
|
||||||
|
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -174,8 +175,9 @@ this.default_language = {
|
|||||||
blast = "Blast",
|
blast = "Blast",
|
||||||
exhaust = "Exhaust",
|
exhaust = "Exhaust",
|
||||||
ride = "Wyvern Riding",
|
ride = "Wyvern Riding",
|
||||||
waterblight = "Waterblight",
|
|
||||||
fireblight = "Fireblight",
|
fireblight = "Fireblight",
|
||||||
|
waterblight = "Waterblight",
|
||||||
iceblight = "Iceblight",
|
iceblight = "Iceblight",
|
||||||
thunderblight = "Thunderblight",
|
thunderblight = "Thunderblight",
|
||||||
|
|
||||||
@@ -186,7 +188,101 @@ this.default_language = {
|
|||||||
steel_fang = "Steel Fang",
|
steel_fang = "Steel Fang",
|
||||||
quick_sand = "Quick Sand",
|
quick_sand = "Quick Sand",
|
||||||
fall_otomo_trap = "Fall Buddy Trap",
|
fall_otomo_trap = "Fall Buddy Trap",
|
||||||
shock_otomo_trap = "Shock Buddy Trap"
|
shock_otomo_trap = "Shock Buddy Trap",
|
||||||
|
|
||||||
|
dragonblight = "Dragonblight",
|
||||||
|
blastblight = "Blastblight",
|
||||||
|
bubbleblight = "Bubbleblight",
|
||||||
|
hellfireblight = "Hellfireblight",
|
||||||
|
bloodblight = "Bloodblight",
|
||||||
|
frostblight = "Frostblight",
|
||||||
|
|
||||||
|
defense_down = "Defense Down",
|
||||||
|
resistance_down = "Resistance Down",
|
||||||
|
|
||||||
|
tremor = "Tremor",
|
||||||
|
roar = "Roar",
|
||||||
|
webbed = "Webbed",
|
||||||
|
stench = "Stench",
|
||||||
|
leeched = "Leeched",
|
||||||
|
bleeding = "Bleeding",
|
||||||
|
engulfed = "Engulfed",
|
||||||
|
muck = "Muck",
|
||||||
|
frenzy = "Frenzy",
|
||||||
|
frenzy_infection = "Frenzy Infection",
|
||||||
|
frenzy_overcome = "Frenzy Overcome"
|
||||||
|
},
|
||||||
|
|
||||||
|
consumables = {
|
||||||
|
demondrug = "Demondrug",
|
||||||
|
mega_demondrug = "Mega Demondrug",
|
||||||
|
armorskin = "Armorskin",
|
||||||
|
mega_armorskin = "Mega Armorskin",
|
||||||
|
might_seed = "Might Seed",
|
||||||
|
adamant_seed = "Adamant Seed",
|
||||||
|
demon_powder = "Demon Powder",
|
||||||
|
hardshell_powder = "Hardshell Powder",
|
||||||
|
immunizer = "Immunizer",
|
||||||
|
dash_juice = "Dash Juice",
|
||||||
|
gourmet_fish = "Gourmet Fish"
|
||||||
|
},
|
||||||
|
|
||||||
|
melody_effects = {
|
||||||
|
self_improvement = "Self-Improvement",
|
||||||
|
attack_up = "Attack Up",
|
||||||
|
defense_up = "Defense Up",
|
||||||
|
affinity_up = "Affinity Up",
|
||||||
|
elemental_attack_boost = "Elemental Attack Boost",
|
||||||
|
attack_and_defense_up = "Attack and Defense Up",
|
||||||
|
attack_and_affinity_up = "Attack and Affinity Up",
|
||||||
|
knockbacks_negated = "Knockbacks Negated",
|
||||||
|
earplugs_s = "Earplugs (S)",
|
||||||
|
earplugs_l = "Earplugs (L)",
|
||||||
|
tremors_negated = "Tremors Negated",
|
||||||
|
wind_pressure_negated = "Wind Pressure Negated",
|
||||||
|
stun_negated = "Stun Negated",
|
||||||
|
blight_negated = "Blight Negated",
|
||||||
|
divine_protection = "Divine Protection",
|
||||||
|
health_recovery_s = "Health Recovery (S)",
|
||||||
|
health_recovery_l = "Health Recovery (L)",
|
||||||
|
health_recovery_s_antidote = "Health Recovery (S) + Antidote",
|
||||||
|
health_regeneration = "Health Regeneration",
|
||||||
|
stamina_use_reduced = "Stamina Use Reduced",
|
||||||
|
stamina_recovery_up = "Stamina Recovery Up",
|
||||||
|
sharpness_loss_reduced = "Sharpness Loss Reduced",
|
||||||
|
environment_damage_negated = "Environment Damage Negated",
|
||||||
|
sonic_wave = "Sonic Wave",
|
||||||
|
sonic_barrier = "Sonic Barrier",
|
||||||
|
infernal_melody = "Infernal Melody",
|
||||||
|
sharpness_regeneration = "Sharpness Regeneration",
|
||||||
|
sharpness_extension = "Sharpness Extension"
|
||||||
|
},
|
||||||
|
|
||||||
|
skills = {
|
||||||
|
burst = "Burst",
|
||||||
|
kushala_daora_soul = "Kushala Daora Soul",
|
||||||
|
intrepid_heart = "Intrepid Heart",
|
||||||
|
dereliction = "Dereliction",
|
||||||
|
latent_power = "Latent Power",
|
||||||
|
protective_polish = "Protective Polish",
|
||||||
|
wind_mantle = "Wind Mantle",
|
||||||
|
heaven_sent = "Heaven-Sent",
|
||||||
|
grinder_s = "Grinder (S)",
|
||||||
|
counterstrike = "Counterstrike",
|
||||||
|
affinity_sliding = "Affinity Sliding",
|
||||||
|
coalescence = "Coalescence",
|
||||||
|
adrenaline_rush = "Adrenaline Rush",
|
||||||
|
wall_runner = "Wall Runner",
|
||||||
|
offensive_guard = "Offensive Guard",
|
||||||
|
hellfire_cloak = "Hellfire Cloak",
|
||||||
|
agitator = "Agitator",
|
||||||
|
furious = "Furious",
|
||||||
|
heroics = "Heroics",
|
||||||
|
resuscitate = "Resuscitate"
|
||||||
|
},
|
||||||
|
|
||||||
|
dangos = {
|
||||||
|
dango_defender_hi = "Dango Defender (Hi)"
|
||||||
},
|
},
|
||||||
|
|
||||||
UI = {
|
UI = {
|
||||||
@@ -563,7 +659,13 @@ this.default_language = {
|
|||||||
top_to_bottom = "Top to Bottom",
|
top_to_bottom = "Top to Bottom",
|
||||||
bottom_to_top = "Bottom to Top",
|
bottom_to_top = "Bottom to Top",
|
||||||
|
|
||||||
right_alignment_shift = "Right Alignment Shift"
|
right_alignment_shift = "Right Alignment Shift",
|
||||||
|
|
||||||
|
debug = "Debug",
|
||||||
|
current_time = "Current Time",
|
||||||
|
everything_seems_to_be_ok = "Everything seems to be OK!",
|
||||||
|
history = "History",
|
||||||
|
history_size = "History Size"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -582,18 +684,17 @@ function this.load()
|
|||||||
|
|
||||||
local loaded_language = json.load_file(language_file_name);
|
local loaded_language = json.load_file(language_file_name);
|
||||||
if loaded_language ~= nil then
|
if loaded_language ~= nil then
|
||||||
|
log.info(string.format("[MHR Overlay] %s.json Loaded Successfully", language_file_name));
|
||||||
|
|
||||||
log.info("[MHR Overlay] " .. language_file_name .. ".json loaded successfully");
|
|
||||||
table.insert(this.language_names, language_name);
|
table.insert(this.language_names, language_name);
|
||||||
|
|
||||||
local merged_language = utils.table.merge(this.default_language, loaded_language);
|
local merged_language = utils.table.merge(this.default_language, loaded_language);
|
||||||
table.insert(this.languages, merged_language);
|
table.insert(this.languages, merged_language);
|
||||||
|
|
||||||
this.save(language_file_name, merged_language);
|
this.save(language_file_name, merged_language);
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
log.error("[MHR Overlay] Failed to load " .. language_file_name .. ".json");
|
error_handler.report("language.load", string.format("Failed to load %s.json", language_file_name));
|
||||||
|
log.error(string.format("[MHR Overlay] Failed to Load %s.json", language_file_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -601,9 +702,10 @@ end
|
|||||||
function this.save(file_name, language_table)
|
function this.save(file_name, language_table)
|
||||||
local success = json.dump_file(file_name, language_table);
|
local success = json.dump_file(file_name, language_table);
|
||||||
if success then
|
if success then
|
||||||
log.info("[MHR Overlay] " .. file_name .. " saved successfully");
|
log.info(string.format("[MHR Overlay] %s Saved Successfully", file_name));
|
||||||
else
|
else
|
||||||
log.error("[MHR Overlay] Failed to save " .. file_name);
|
error_handler.report("language.save", string.format("[MHR Overlay] Failed to Save %s", file_name));
|
||||||
|
log.error(string.format("[MHR Overlay] Failed to Save %s", file_name));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -615,9 +717,12 @@ function this.update(index)
|
|||||||
this.current_language = this.languages[index];
|
this.current_language = this.languages[index];
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.save_default();
|
this.save_default();
|
||||||
this.load();
|
this.load();
|
||||||
this.current_language = this.default_language;
|
this.current_language = this.default_language;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
local this = {};
|
local this = {};
|
||||||
|
|
||||||
local language;
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -954,9 +955,12 @@ function this.get_part_name(monster_id, part_id)
|
|||||||
return part_name;
|
return part_name;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.init();
|
this.init();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
local this = {};
|
local this = {};
|
||||||
|
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
local pairs = pairs;
|
local pairs = pairs;
|
||||||
@@ -39,6 +41,7 @@ local is_empty;
|
|||||||
local unicode_map;
|
local unicode_map;
|
||||||
local unicode_relative_position;
|
local unicode_relative_position;
|
||||||
local unicode_chars;
|
local unicode_chars;
|
||||||
|
local epsilon = 0.000001;
|
||||||
|
|
||||||
this.table = {};
|
this.table = {};
|
||||||
this.number = {};
|
this.number = {};
|
||||||
@@ -49,6 +52,11 @@ this.vec4 = {};
|
|||||||
this.math = {};
|
this.math = {};
|
||||||
this.unicode = {};
|
this.unicode = {};
|
||||||
|
|
||||||
|
this.constants = {};
|
||||||
|
this.constants.uninitialized_int = -420;
|
||||||
|
this.constants.uninitialized_string = "Uninitialized";
|
||||||
|
this.constants.epsilon = epsilon;
|
||||||
|
|
||||||
function this.table.tostring(table_)
|
function this.table.tostring(table_)
|
||||||
if type(table_) == "number" or type(table_) == "boolean" or type(table_) == "string" then
|
if type(table_) == "number" or type(table_) == "boolean" or type(table_) == "string" then
|
||||||
return tostring(table_);
|
return tostring(table_);
|
||||||
@@ -223,6 +231,14 @@ function this.number.is_even(value)
|
|||||||
return value % 2 == 0;
|
return value % 2 == 0;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.number.is_equal(value1, value2)
|
||||||
|
if math.abs(value1 - value2) < epsilon then
|
||||||
|
return true;
|
||||||
|
end
|
||||||
|
|
||||||
|
return false;
|
||||||
|
end
|
||||||
|
|
||||||
function this.string.trim(str)
|
function this.string.trim(str)
|
||||||
return str:match("^%s*(.-)%s*$");
|
return str:match("^%s*(.-)%s*$");
|
||||||
end
|
end
|
||||||
@@ -413,6 +429,10 @@ function this.unicode.sub(str, i, j)
|
|||||||
return string.sub(str, i, b + c - 1);
|
return string.sub(str, i, b + c - 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ local time;
|
|||||||
local small_monster;
|
local small_monster;
|
||||||
local large_monster;
|
local large_monster;
|
||||||
local drawing;
|
local drawing;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -52,28 +53,27 @@ function this.draw(monster, ailment_buildup_UI, cached_config, ailment_buildups_
|
|||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
for id, ailment in pairs(monster.ailments) do
|
for id, ailment in pairs(monster.ailments) do
|
||||||
if id == ailments.stun_id then
|
if id == ailments.stun_id then
|
||||||
if not cached_config.filter.stun then
|
if not cached_config.filter.stun then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif id == ailments.poison_id then
|
elseif id == ailments.poison_id then
|
||||||
if not cached_config.filter.poison then
|
if not cached_config.filter.poison then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == ailments.blast_id then
|
elseif id == ailments.blast_id then
|
||||||
if not cached_config.filter.blast then
|
if not cached_config.filter.blast then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.time_limit ~= 0 and
|
if cached_config.settings.time_limit ~= 0 and
|
||||||
time.total_elapsed_script_seconds - ailment.last_change_time > cached_config.settings.time_limit then
|
time.total_elapsed_script_seconds - ailment.last_change_time > cached_config.settings.time_limit then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ function this.draw(monster, ailment_buildup_UI, cached_config, ailment_buildups_
|
|||||||
end
|
end
|
||||||
|
|
||||||
if total_buildup == 0 then
|
if total_buildup == 0 then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.sorting.type == "Normal" then
|
if cached_config.sorting.type == "Normal" then
|
||||||
@@ -227,11 +227,9 @@ function this.draw(monster, ailment_buildup_UI, cached_config, ailment_buildups_
|
|||||||
|
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -241,6 +239,10 @@ function this.init_module()
|
|||||||
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
||||||
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local small_monster;
|
|||||||
local large_monster;
|
local large_monster;
|
||||||
local config;
|
local config;
|
||||||
local ailments;
|
local ailments;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -62,16 +63,19 @@ local blast_adjust_rate_method = blast_param_type:get_method("get_BlastDamageAdj
|
|||||||
|
|
||||||
function this.poison_proc(poison_param)
|
function this.poison_proc(poison_param)
|
||||||
if poison_param == nil then
|
if poison_param == nil then
|
||||||
|
error_handler.report("ailment_hook.poison_proc", "Missing Parameter: poison_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local enemy = get_enemy_method:call(poison_param);
|
local enemy = get_enemy_method:call(poison_param);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
|
error_handler.report("ailment_hook.poison_proc", "Failed to access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_large = is_boss_enemy_method:call(enemy);
|
local is_large = is_boss_enemy_method:call(enemy);
|
||||||
if is_large == nil then
|
if is_large == nil then
|
||||||
|
error_handler.report("ailment_hook.poison_proc", "Failed to access Data: is_large");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -90,16 +94,19 @@ end
|
|||||||
|
|
||||||
function this.blast_proc(blast_param)
|
function this.blast_proc(blast_param)
|
||||||
if blast_param == nil then
|
if blast_param == nil then
|
||||||
|
error_handler.report("ailment_hook.blast_proc", "Missing Parameter: blast_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local enemy = get_enemy_method:call(blast_param);
|
local enemy = get_enemy_method:call(blast_param);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
|
error_handler.report("ailment_hook.blast_proc", "Failed to access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_large = is_boss_enemy_method:call(enemy);
|
local is_large = is_boss_enemy_method:call(enemy);
|
||||||
if is_large == nil then
|
if is_large == nil then
|
||||||
|
error_handler.report("ailment_hook.blast_proc", "Failed to access Data: is_large");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -113,7 +120,6 @@ function this.blast_proc(blast_param)
|
|||||||
local blast_damage = blast_damage_method:call(blast_param);
|
local blast_damage = blast_damage_method:call(blast_param);
|
||||||
local blast_adjust_rate = blast_adjust_rate_method:call(blast_param);
|
local blast_adjust_rate = blast_adjust_rate_method:call(blast_param);
|
||||||
|
|
||||||
|
|
||||||
ailments.apply_ailment_damage(monster, ailments.blast_id, blast_damage * blast_adjust_rate);
|
ailments.apply_ailment_damage(monster, ailments.blast_id, blast_damage * blast_adjust_rate);
|
||||||
ailments.clear_ailment_contribution(monster, ailments.blast_id);
|
ailments.clear_ailment_contribution(monster, ailments.blast_id);
|
||||||
end
|
end
|
||||||
@@ -122,10 +128,15 @@ function this.stock_damage()
|
|||||||
for enemy, monster in pairs(large_monster.list) do
|
for enemy, monster in pairs(large_monster.list) do
|
||||||
local damage_param = get_damage_param_method:call(enemy);
|
local damage_param = get_damage_param_method:call(enemy);
|
||||||
if damage_param == nil then
|
if damage_param == nil then
|
||||||
goto continue
|
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: large_monster -> damage_param");
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local poison_param = poison_param_field:get_data(damage_param);
|
local poison_param = poison_param_field:get_data(damage_param);
|
||||||
|
if poison_param == nil then
|
||||||
|
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: large_monster -> poison_param");
|
||||||
|
goto continue;
|
||||||
|
end
|
||||||
|
|
||||||
ailments.update_poison(monster, poison_param);
|
ailments.update_poison(monster, poison_param);
|
||||||
::continue::
|
::continue::
|
||||||
@@ -134,22 +145,30 @@ function this.stock_damage()
|
|||||||
for enemy, monster in pairs(small_monster.list) do
|
for enemy, monster in pairs(small_monster.list) do
|
||||||
local damage_param = get_damage_param_method:call(enemy);
|
local damage_param = get_damage_param_method:call(enemy);
|
||||||
if damage_param == nil then
|
if damage_param == nil then
|
||||||
goto continue
|
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: small_monster -> damage_param");
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local poison_param = poison_param_field:get_data(damage_param);
|
local poison_param = poison_param_field:get_data(damage_param);
|
||||||
|
if poison_param == nil then
|
||||||
|
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: small_monster -> poison_param");
|
||||||
|
goto continue;
|
||||||
|
end
|
||||||
|
|
||||||
ailments.update_poison(monster, poison_param);
|
ailments.update_poison(monster, poison_param);
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
||||||
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
ailments = require("MHR_Overlay.Monsters.ailments");
|
ailments = require("MHR_Overlay.Monsters.ailments");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
sdk.hook(stock_damage_method, function(args)
|
sdk.hook(stock_damage_method, function(args)
|
||||||
pcall(this.stock_damage, sdk.to_managed_object(args[2]));
|
pcall(this.stock_damage, sdk.to_managed_object(args[2]));
|
||||||
end, function(retval)
|
end, function(retval)
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ local time;
|
|||||||
local small_monster;
|
local small_monster;
|
||||||
local large_monster;
|
local large_monster;
|
||||||
local non_players;
|
local non_players;
|
||||||
|
local error_handler;
|
||||||
|
local utils;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -94,7 +96,7 @@ function this.new(_ailments, ailment_id)
|
|||||||
new_ailment.buildup_percentage = 0;
|
new_ailment.buildup_percentage = 0;
|
||||||
|
|
||||||
new_ailment.timer = 0;
|
new_ailment.timer = 0;
|
||||||
new_ailment.duration = 100000;
|
new_ailment.duration = 0;
|
||||||
new_ailment.timer_percentage = 0;
|
new_ailment.timer_percentage = 0;
|
||||||
|
|
||||||
new_ailment.minutes_left = 0;
|
new_ailment.minutes_left = 0;
|
||||||
@@ -247,8 +249,6 @@ end
|
|||||||
local enemy_character_base_type_def = sdk.find_type_definition("snow.enemy.EnemyCharacterBase");
|
local enemy_character_base_type_def = sdk.find_type_definition("snow.enemy.EnemyCharacterBase");
|
||||||
local get_damage_param_method = enemy_character_base_type_def:get_method("get_DamageParam");
|
local get_damage_param_method = enemy_character_base_type_def:get_method("get_DamageParam");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local damage_param_type_def = get_damage_param_method:get_return_type();
|
local damage_param_type_def = get_damage_param_method:get_return_type();
|
||||||
local get_condition_param_method = damage_param_type_def:get_method("get_ConditionParam");
|
local get_condition_param_method = damage_param_type_def:get_method("get_ConditionParam");
|
||||||
|
|
||||||
@@ -277,10 +277,13 @@ local get_value_method = system_array_type_def:get_method("GetValue(System.Int32
|
|||||||
|
|
||||||
function this.update_ailments(enemy, monster)
|
function this.update_ailments(enemy, monster)
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
|
error_handler.report("ailments.update_ailments", "Missing Parameter: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local damage_param = get_damage_param_method:call(enemy);
|
local damage_param = get_damage_param_method:call(enemy);
|
||||||
if damage_param == nil then
|
if damage_param == nil then
|
||||||
|
error_handler.report("ailments.update_ailments", "Failed to access Data: damage_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -297,24 +300,26 @@ function this.update_ailments(enemy, monster)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local condition_param_array = get_condition_param_method:call(damage_param);
|
local condition_param_array = get_condition_param_method:call(damage_param);
|
||||||
|
|
||||||
if condition_param_array == nil then
|
if condition_param_array == nil then
|
||||||
|
error_handler.report("ailments.update_ailments", "Failed to access Data: condition_param_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local condition_param_array_length = length_method:call(condition_param_array);
|
local condition_param_array_length = length_method:call(condition_param_array);
|
||||||
if condition_param_array_length == nil then
|
if condition_param_array_length == nil then
|
||||||
|
error_handler.report("ailments.update_ailments", "Failed to access Data: condition_param_array_length");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for id = 0, condition_param_array_length - 1 do
|
for id = 0, condition_param_array_length - 1 do
|
||||||
if id == this.stun_id or id == this.poison_id or id == this.blast_id then
|
if id == this.stun_id or id == this.poison_id or id == this.blast_id then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local ailment_param = get_value_method:call(condition_param_array, id);
|
local ailment_param = get_value_method:call(condition_param_array, id);
|
||||||
if ailment_param == nil then
|
if ailment_param == nil then
|
||||||
goto continue
|
error_handler.report("ailments.update_ailments", "Failed to access Data: ailment_param No. " .. tostring(id));
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
this.update_ailment(monster, ailment_param, id);
|
this.update_ailment(monster, ailment_param, id);
|
||||||
@@ -326,16 +331,22 @@ function this.update_stun_poison_blast_ailments(monster, damage_param)
|
|||||||
local stun_param = stun_param_field:get_data(damage_param);
|
local stun_param = stun_param_field:get_data(damage_param);
|
||||||
if stun_param ~= nil then
|
if stun_param ~= nil then
|
||||||
this.update_ailment(monster, stun_param, this.stun_id);
|
this.update_ailment(monster, stun_param, this.stun_id);
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: stun_param");
|
||||||
end
|
end
|
||||||
|
|
||||||
local poison_param = poison_param_field:get_data(damage_param);
|
local poison_param = poison_param_field:get_data(damage_param);
|
||||||
if poison_param ~= nil then
|
if poison_param ~= nil then
|
||||||
this.update_ailment(monster, poison_param, this.poison_id);
|
this.update_ailment(monster, poison_param, this.poison_id);
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: poison_param");
|
||||||
end
|
end
|
||||||
|
|
||||||
local blast_param = blast_param_field:get_data(damage_param);
|
local blast_param = blast_param_field:get_data(damage_param);
|
||||||
if blast_param ~= nil then
|
if blast_param ~= nil then
|
||||||
this.update_ailment(monster, blast_param, this.blast_id);
|
this.update_ailment(monster, blast_param, this.blast_id);
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: blast_param");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -348,9 +359,9 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
local duration = get_active_time_method:call(ailment_param);
|
local duration = get_active_time_method:call(ailment_param);
|
||||||
local is_active = get_is_active_method:call(ailment_param);
|
local is_active = get_is_active_method:call(ailment_param);
|
||||||
|
|
||||||
local activate_count = -999;
|
local activate_count = nil;
|
||||||
local buildup = -999;
|
local buildup = nil;
|
||||||
local buildup_limit = 9999;
|
local buildup_limit = nil;
|
||||||
|
|
||||||
if activate_count_array ~= nil then
|
if activate_count_array ~= nil then
|
||||||
local activate_count_array_length = length_method:call(activate_count_array);
|
local activate_count_array_length = length_method:call(activate_count_array);
|
||||||
@@ -361,14 +372,16 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
local activate_count_valuetype = get_value_method:call(activate_count_array, 0);
|
local activate_count_valuetype = get_value_method:call(activate_count_array, 0);
|
||||||
|
|
||||||
if activate_count_valuetype ~= nil then
|
if activate_count_valuetype ~= nil then
|
||||||
local _activate_count = activate_count_valuetype:get_field("mValue");
|
activate_count = activate_count_valuetype:get_field("mValue");
|
||||||
|
else
|
||||||
if _activate_count ~= nil then
|
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_valuetype");
|
||||||
activate_count = _activate_count;
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_array_length");
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_array");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup_array ~= nil then
|
if buildup_array ~= nil then
|
||||||
@@ -380,14 +393,16 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
local buildup_valuetype = get_value_method:call(buildup_array, 0);
|
local buildup_valuetype = get_value_method:call(buildup_array, 0);
|
||||||
|
|
||||||
if buildup_valuetype ~= nil then
|
if buildup_valuetype ~= nil then
|
||||||
local _buildup = buildup_valuetype:get_field("mValue");
|
buildup = buildup_valuetype:get_field("mValue");
|
||||||
|
else
|
||||||
if _buildup ~= nil then
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_valuetype");
|
||||||
buildup = _buildup;
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_array_length");
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_array");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup_limit_array ~= nil then
|
if buildup_limit_array ~= nil then
|
||||||
@@ -399,14 +414,16 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
local buildup_limit_valuetype = get_value_method:call(buildup_limit_array, 0);
|
local buildup_limit_valuetype = get_value_method:call(buildup_limit_array, 0);
|
||||||
|
|
||||||
if buildup_limit_valuetype ~= nil then
|
if buildup_limit_valuetype ~= nil then
|
||||||
local _buildup_limit = buildup_limit_valuetype:get_field("mValue");
|
buildup_limit = buildup_limit_valuetype:get_field("mValue");
|
||||||
|
else
|
||||||
if _buildup_limit ~= nil then
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_valuetype");
|
||||||
buildup_limit = _buildup_limit;
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_array_length");
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_array");
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_enable == nil then
|
if is_enable == nil then
|
||||||
@@ -429,6 +446,8 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
monster.ailments[id].activate_count = activate_count;
|
monster.ailments[id].activate_count = activate_count;
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup ~= nil then
|
if buildup ~= nil then
|
||||||
@@ -437,6 +456,8 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
monster.ailments[id].total_buildup = buildup;
|
monster.ailments[id].total_buildup = buildup;
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup_limit ~= nil then
|
if buildup_limit ~= nil then
|
||||||
@@ -445,6 +466,8 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
monster.ailments[id].buildup_limit = buildup_limit;
|
monster.ailments[id].buildup_limit = buildup_limit;
|
||||||
|
else
|
||||||
|
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup ~= nil and buildup_limit ~= nil and buildup_limit ~= 0 then
|
if buildup ~= nil and buildup_limit ~= nil and buildup_limit ~= 0 then
|
||||||
@@ -503,19 +526,34 @@ end
|
|||||||
-- Code by coavins
|
-- Code by coavins
|
||||||
function this.update_poison(monster, poison_param)
|
function this.update_poison(monster, poison_param)
|
||||||
if monster == nil then
|
if monster == nil then
|
||||||
|
error_handler.report("ailments.update_poison", "Missing Parameter: monster");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if poison_param == nil then
|
||||||
|
error_handler.report("ailments.update_poison", "Missing Parameter: poison_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if poison_param ~= nil then
|
|
||||||
--if poison tick, apply damage
|
--if poison tick, apply damage
|
||||||
local is_damage = poison_get_is_damage_method:call(poison_param);
|
local is_damage = poison_get_is_damage_method:call(poison_param);
|
||||||
if is_damage then
|
if is_damage == nil then
|
||||||
|
error_handler.report("ailments.update_poison", "Failed to access Data: is_damage");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if not is_damage then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
local poison_damage = poison_damage_field:get_data(poison_param);
|
local poison_damage = poison_damage_field:get_data(poison_param);
|
||||||
|
if poison_damage == nil then
|
||||||
|
error_handler.report("ailments.update_poison", "Failed to access Data: poison_damage");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
this.apply_ailment_damage(monster, this.poison_id, poison_damage);
|
this.apply_ailment_damage(monster, this.poison_id, poison_damage);
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function this.draw(monster, ailment_UI, cached_config, ailments_position_on_screen, opacity_scale)
|
function this.draw(monster, ailment_UI, cached_config, ailments_position_on_screen, opacity_scale)
|
||||||
local cached_config = cached_config.ailments;
|
local cached_config = cached_config.ailments;
|
||||||
@@ -526,115 +564,118 @@ function this.draw(monster, ailment_UI, cached_config, ailments_position_on_scre
|
|||||||
for id, ailment in pairs(monster.ailments) do
|
for id, ailment in pairs(monster.ailments) do
|
||||||
if id == this.paralyze_id then
|
if id == this.paralyze_id then
|
||||||
if not cached_config.filter.paralysis then
|
if not cached_config.filter.paralysis then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.sleep_id then
|
elseif id == this.sleep_id then
|
||||||
if not cached_config.filter.sleep then
|
if not cached_config.filter.sleep then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.stun_id then
|
elseif id == this.stun_id then
|
||||||
if not cached_config.filter.stun then
|
if not cached_config.filter.stun then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.flash_id then
|
elseif id == this.flash_id then
|
||||||
if not cached_config.filter.flash then
|
if not cached_config.filter.flash then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.poison_id then
|
elseif id == this.poison_id then
|
||||||
if not cached_config.filter.poison then
|
if not cached_config.filter.poison then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.blast_id then
|
elseif id == this.blast_id then
|
||||||
if not cached_config.filter.blast then
|
if not cached_config.filter.blast then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.exhaust_id then
|
elseif id == this.exhaust_id then
|
||||||
if not cached_config.filter.exhaust then
|
if not cached_config.filter.exhaust then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.ride_id then
|
elseif id == this.ride_id then
|
||||||
if not cached_config.filter.ride then
|
if not cached_config.filter.ride then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.water_id then
|
elseif id == this.water_id then
|
||||||
if not cached_config.filter.waterblight then
|
if not cached_config.filter.waterblight then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.fire_id then
|
elseif id == this.fire_id then
|
||||||
if not cached_config.filter.fireblight then
|
if not cached_config.filter.fireblight then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.ice_id then
|
elseif id == this.ice_id then
|
||||||
if not cached_config.filter.iceblight then
|
if not cached_config.filter.iceblight then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.thunder_id then
|
elseif id == this.thunder_id then
|
||||||
if not cached_config.filter.thunderblight then
|
if not cached_config.filter.thunderblight then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.fall_trap_id then
|
elseif id == this.fall_trap_id then
|
||||||
if not cached_config.filter.fall_trap then
|
if not cached_config.filter.fall_trap then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.shock_trap_id then
|
elseif id == this.shock_trap_id then
|
||||||
if not cached_config.filter.shock_trap then
|
if not cached_config.filter.shock_trap then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.capture_id then
|
elseif id == this.capture_id then
|
||||||
if not cached_config.filter.tranq_bomb then
|
if not cached_config.filter.tranq_bomb then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.koyashi_id then
|
elseif id == this.koyashi_id then
|
||||||
if not cached_config.filter.dung_bomb then
|
if not cached_config.filter.dung_bomb then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.steel_fang_id then
|
elseif id == this.steel_fang_id then
|
||||||
if not cached_config.filter.steel_fang then
|
if not cached_config.filter.steel_fang then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.fall_quick_sand_id then
|
elseif id == this.fall_quick_sand_id then
|
||||||
if not cached_config.filter.quick_sand then
|
if not cached_config.filter.quick_sand then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.fall_otomo_trap_id then
|
elseif id == this.fall_otomo_trap_id then
|
||||||
if not cached_config.filter.fall_otomo_trap then
|
if not cached_config.filter.fall_otomo_trap then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif id == this.shock_otomo_trap_id then
|
elseif id == this.shock_otomo_trap_id then
|
||||||
if not cached_config.filter.shock_otomo_trap then
|
if not cached_config.filter.shock_otomo_trap then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.hide_ailments_with_zero_buildup and ailment.total_buildup == 0 and
|
if cached_config.settings.hide_ailments_with_zero_buildup
|
||||||
ailment.buildup_limit ~= 0
|
and ailment.total_buildup == 0
|
||||||
and ailment.activate_count == 0 and not ailment.is_active then
|
and ailment.buildup_limit ~= 0
|
||||||
goto continue
|
and ailment.activate_count == 0
|
||||||
|
and not ailment.is_active then
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.hide_inactive_ailments_with_no_buildup_support and ailment.buildup_limit == 0 and
|
if cached_config.settings.hide_inactive_ailments_with_no_buildup_support
|
||||||
not ailment.is_active then
|
and ailment.buildup_limit == 0
|
||||||
goto continue
|
and not ailment.is_active then
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.hide_all_inactive_ailments and not ailment.is_active then
|
if cached_config.settings.hide_all_inactive_ailments and not ailment.is_active then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.hide_all_active_ailments and ailment.is_active then
|
if cached_config.settings.hide_all_active_ailments and ailment.is_active then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.hide_disabled_ailments and not ailment.is_enable then
|
if cached_config.settings.hide_disabled_ailments and not ailment.is_enable then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.time_limit ~= 0 and
|
if cached_config.settings.time_limit ~= 0
|
||||||
time.total_elapsed_script_seconds - ailment.last_change_time > cached_config.settings.time_limit and
|
and time.total_elapsed_script_seconds - ailment.last_change_time > cached_config.settings.time_limit
|
||||||
not ailment.is_active then
|
and not ailment.is_active then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(displayed_ailments, ailment);
|
table.insert(displayed_ailments, ailment);
|
||||||
@@ -682,14 +723,21 @@ function this.draw(monster, ailment_UI, cached_config, ailments_position_on_scre
|
|||||||
|
|
||||||
ailment_UI_entity.draw(ailment, ailment_UI, cached_config, ailment_position_on_screen, opacity_scale);
|
ailment_UI_entity.draw(ailment, ailment_UI, cached_config, ailment_position_on_screen, opacity_scale);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.apply_ailment_buildup(monster, player, otomo, ailment_type, ailment_buildup)
|
function this.apply_ailment_buildup(monster, player, otomo, ailment_type, ailment_buildup)
|
||||||
if monster == nil or
|
if monster == nil then
|
||||||
(ailment_type ~= this.poison_id and ailment_type ~= this.blast_id and ailment_type ~= this.stun_id)
|
error_handler.report("ailments.apply_ailment_buildup", "Missing Parameter: monster");
|
||||||
or (ailment_buildup == 0 or ailment_buildup == nil) then
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if ailment_buildup == nil then
|
||||||
|
error_handler.report("ailments.apply_ailment_buildup", "Missing Parameter: ailment_buildup");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if (ailment_type ~= this.poison_id and ailment_type ~= this.blast_id and ailment_type ~= this.stun_id)
|
||||||
|
or ailment_buildup == 0 then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -709,7 +757,6 @@ function this.apply_ailment_buildup(monster, player, otomo, ailment_type, ailmen
|
|||||||
monster.ailments[ailment_type].otomo_buildup[otomo] = (monster.ailments[ailment_type].otomo_buildup[otomo] or 0) + ailment_buildup;
|
monster.ailments[ailment_type].otomo_buildup[otomo] = (monster.ailments[ailment_type].otomo_buildup[otomo] or 0) + ailment_buildup;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
this.calculate_ailment_contribution(monster, ailment_type);
|
this.calculate_ailment_contribution(monster, ailment_type);
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -751,7 +798,17 @@ end
|
|||||||
-- Code by coavins
|
-- Code by coavins
|
||||||
function this.apply_ailment_damage(monster, ailment_type, ailment_damage)
|
function this.apply_ailment_damage(monster, ailment_type, ailment_damage)
|
||||||
-- we only track poison and blast for now
|
-- we only track poison and blast for now
|
||||||
if ailment_type == nil or ailment_damage == nil then
|
if monster == nil then
|
||||||
|
error_handler.report("ailments.apply_ailment_damage", "Missing Parameter: monster");
|
||||||
|
end
|
||||||
|
|
||||||
|
if ailment_type == nil then
|
||||||
|
error_handler.report("ailments.apply_ailment_damage", "Missing Parameter: ailment_type");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if ailment_damage == nil then
|
||||||
|
error_handler.report("ailments.apply_ailment_damage", "Missing Parameter: ailment_damage");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -798,10 +855,7 @@ function this.apply_ailment_damage(monster, ailment_type, ailment_damage)
|
|||||||
|
|
||||||
local player = players.get_player(otomo.id);
|
local player = players.get_player(otomo.id);
|
||||||
|
|
||||||
if player ~= nil then
|
|
||||||
players.update_damage(player, otomo_damage_source_type, monster.is_large, damage_object);
|
players.update_damage(player, otomo_damage_source_type, monster.is_large, damage_object);
|
||||||
end
|
|
||||||
|
|
||||||
players.update_damage(otomo, otomo_damage_source_type, monster.is_large, damage_object);
|
players.update_damage(otomo, otomo_damage_source_type, monster.is_large, damage_object);
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -814,7 +868,7 @@ function this.apply_ailment_damage(monster, ailment_type, ailment_damage)
|
|||||||
players.update_damage(players.total, damage_source_type, monster.is_large, damage_object);
|
players.update_damage(players.total, damage_source_type, monster.is_large, damage_object);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
@@ -824,6 +878,11 @@ function this.init_module()
|
|||||||
time = require("MHR_Overlay.Game_Handler.time");
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
||||||
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ local drawing;
|
|||||||
local part_names;
|
local part_names;
|
||||||
local time;
|
local time;
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -50,7 +51,6 @@ this.list = {};
|
|||||||
function this.new(id, name)
|
function this.new(id, name)
|
||||||
local part = {};
|
local part = {};
|
||||||
|
|
||||||
|
|
||||||
part.id = id;
|
part.id = id;
|
||||||
part.name = name;
|
part.name = name;
|
||||||
|
|
||||||
@@ -316,19 +316,19 @@ function this.draw(monster, part_UI, cached_config, parts_position_on_screen, op
|
|||||||
and ((part.break_health == part.break_max_health and part.break_count == 0) or not break_supported)
|
and ((part.break_health == part.break_max_health and part.break_count == 0) or not break_supported)
|
||||||
and ((part.loss_health == part.loss_max_health and not part.is_severed) or not sever_supported)
|
and ((part.loss_health == part.loss_max_health and not part.is_severed) or not sever_supported)
|
||||||
and ((part.anomaly_health == part.anomaly_max_health) or not anomaly_supported) then
|
and ((part.anomaly_health == part.anomaly_max_health) or not anomaly_supported) then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if (not part_UI.flinch_visibility or not health_supported)
|
if (not part_UI.flinch_visibility or not health_supported)
|
||||||
and (not part_UI.break_visibility or not break_supported or part.break_count >= part.break_max_count)
|
and (not part_UI.break_visibility or not break_supported or part.break_count >= part.break_max_count)
|
||||||
and (not part_UI.loss_visibility or not sever_supported or part.is_severed)
|
and (not part_UI.loss_visibility or not sever_supported or part.is_severed)
|
||||||
and (not part_UI.anomaly_visibility or not anomaly_supported) then
|
and (not part_UI.anomaly_visibility or not anomaly_supported) then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.time_limit ~= 0 and
|
if cached_config.settings.time_limit ~= 0 and
|
||||||
time.total_elapsed_script_seconds - part.last_change_time > cached_config.settings.time_limit then
|
time.total_elapsed_script_seconds - part.last_change_time > cached_config.settings.time_limit then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(displayed_parts, part);
|
table.insert(displayed_parts, part);
|
||||||
@@ -462,7 +462,7 @@ function this.draw(monster, part_UI, cached_config, parts_position_on_screen, op
|
|||||||
return last_part_position_on_screen;
|
return last_part_position_on_screen;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -475,6 +475,10 @@ function this.init_module()
|
|||||||
part_names = require("MHR_Overlay.Misc.part_names");
|
part_names = require("MHR_Overlay.Misc.part_names");
|
||||||
time = require("MHR_Overlay.Game_Handler.time");
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ local players;
|
|||||||
local time;
|
local time;
|
||||||
local body_part;
|
local body_part;
|
||||||
local part_names;
|
local part_names;
|
||||||
|
local error_handler;
|
||||||
|
local quest_status;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -53,9 +55,18 @@ local ValueType = ValueType;
|
|||||||
local package = package;
|
local package = package;
|
||||||
|
|
||||||
this.list = {};
|
this.list = {};
|
||||||
|
this.highlighted_id = -1;
|
||||||
|
|
||||||
|
this.monster_ids = {
|
||||||
|
chameleos = 25,
|
||||||
|
toadversary = 131,
|
||||||
|
lucent_nargacuga = 549,
|
||||||
|
risen_chameleos = 2073
|
||||||
|
}
|
||||||
|
|
||||||
function this.new(enemy)
|
function this.new(enemy)
|
||||||
local monster = {};
|
local monster = {};
|
||||||
|
|
||||||
monster.enemy = enemy;
|
monster.enemy = enemy;
|
||||||
monster.is_large = true;
|
monster.is_large = true;
|
||||||
|
|
||||||
@@ -63,9 +74,10 @@ function this.new(enemy)
|
|||||||
monster.unique_id = 0;
|
monster.unique_id = 0;
|
||||||
|
|
||||||
monster.health = 0;
|
monster.health = 0;
|
||||||
monster.max_health = 999999;
|
monster.max_health = 0;
|
||||||
monster.health_percentage = 0;
|
monster.health_percentage = 0;
|
||||||
monster.missing_health = 0;
|
monster.missing_health = 0;
|
||||||
|
monster.is_health_initialized = false;
|
||||||
|
|
||||||
monster.is_capturable = true;
|
monster.is_capturable = true;
|
||||||
monster.capture_health = 0;
|
monster.capture_health = 0;
|
||||||
@@ -78,12 +90,12 @@ function this.new(enemy)
|
|||||||
|
|
||||||
monster.is_tired = false;
|
monster.is_tired = false;
|
||||||
monster.stamina = 0;
|
monster.stamina = 0;
|
||||||
monster.max_stamina = 1000;
|
monster.max_stamina = 0;
|
||||||
monster.stamina_percentage = 0;
|
monster.stamina_percentage = 0;
|
||||||
monster.missing_stamina = 0;
|
monster.missing_stamina = 0;
|
||||||
|
|
||||||
monster.tired_timer = 0;
|
monster.tired_timer = 0;
|
||||||
monster.tired_duration = 600;
|
monster.tired_duration = 0;
|
||||||
|
|
||||||
monster.tired_total_seconds_left = 0;
|
monster.tired_total_seconds_left = 0;
|
||||||
monster.tired_minutes_left = 0;
|
monster.tired_minutes_left = 0;
|
||||||
@@ -92,12 +104,12 @@ function this.new(enemy)
|
|||||||
|
|
||||||
monster.is_in_rage = false;
|
monster.is_in_rage = false;
|
||||||
monster.rage_point = 0;
|
monster.rage_point = 0;
|
||||||
monster.rage_limit = 3000;
|
monster.rage_limit = 0;
|
||||||
monster.rage_count = 0;
|
monster.rage_count = 0;
|
||||||
monster.rage_percentage = 0;
|
monster.rage_percentage = 0;
|
||||||
|
|
||||||
monster.rage_timer = 0;
|
monster.rage_timer = 0;
|
||||||
monster.rage_duration = 600;
|
monster.rage_duration = 0;
|
||||||
|
|
||||||
monster.rage_total_seconds_left = 0;
|
monster.rage_total_seconds_left = 0;
|
||||||
monster.rage_minutes_left = 0;
|
monster.rage_minutes_left = 0;
|
||||||
@@ -108,17 +120,16 @@ function this.new(enemy)
|
|||||||
monster.distance = 0;
|
monster.distance = 0;
|
||||||
|
|
||||||
monster.name = "Large Monster";
|
monster.name = "Large Monster";
|
||||||
monster.size = 1;
|
monster.size = 0;
|
||||||
monster.small_border = 0;
|
monster.small_border = 0;
|
||||||
monster.big_border = 5;
|
monster.big_border = 0;
|
||||||
monster.king_border = 10;
|
monster.king_border = 0;
|
||||||
monster.crown = "";
|
monster.crown = "";
|
||||||
|
|
||||||
monster.is_anomaly = false;
|
monster.is_anomaly = false;
|
||||||
monster.parts = {};
|
monster.parts = {};
|
||||||
|
|
||||||
monster.ailments = ailments.init_ailments();
|
monster.ailments = ailments.init_ailments();
|
||||||
|
|
||||||
monster.rider_id = -1;
|
monster.rider_id = -1;
|
||||||
|
|
||||||
monster.dynamic_UI = {};
|
monster.dynamic_UI = {};
|
||||||
@@ -131,17 +142,12 @@ function this.new(enemy)
|
|||||||
this.init_UI(monster, monster.highlighted_UI, config.current_config.large_monster_UI.highlighted);
|
this.init_UI(monster, monster.highlighted_UI, config.current_config.large_monster_UI.highlighted);
|
||||||
|
|
||||||
this.update_position(enemy, monster);
|
this.update_position(enemy, monster);
|
||||||
|
|
||||||
local physical_param = this.update_health(enemy, monster);
|
|
||||||
|
|
||||||
this.update_stamina(enemy, monster, nil);
|
this.update_stamina(enemy, monster, nil);
|
||||||
this.update_stamina_timer(enemy, monster, nil);
|
this.update_stamina_timer(enemy, monster, nil);
|
||||||
|
|
||||||
this.update_rage(enemy, monster, nil);
|
this.update_rage(enemy, monster, nil);
|
||||||
this.update_rage_timer(enemy, monster, nil);
|
this.update_rage_timer(enemy, monster, nil);
|
||||||
|
|
||||||
this.update(enemy, monster);
|
this.update(enemy, monster);
|
||||||
pcall(this.update_parts, enemy, monster, physical_param);
|
|
||||||
pcall(this.update_anomaly_parts, enemy, monster, nil);
|
pcall(this.update_anomaly_parts, enemy, monster, nil);
|
||||||
|
|
||||||
if this.list[enemy] == nil then
|
if this.list[enemy] == nil then
|
||||||
@@ -156,6 +162,7 @@ function this.get_monster(enemy)
|
|||||||
if monster == nil then
|
if monster == nil then
|
||||||
monster = this.new(enemy);
|
monster = this.new(enemy);
|
||||||
end
|
end
|
||||||
|
|
||||||
return monster;
|
return monster;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -256,33 +263,46 @@ local core_parts_get_is_active_method = enemy_mystery_core_parts_type_def:get_me
|
|||||||
local core_parts_get_dying_vital_threashold_method = enemy_mystery_core_parts_type_def:get_method("get_DyingVitalThreashold");
|
local core_parts_get_dying_vital_threashold_method = enemy_mystery_core_parts_type_def:get_method("get_DyingVitalThreashold");
|
||||||
local on_break_method = enemy_mystery_core_parts_type_def:get_method("onBreak");
|
local on_break_method = enemy_mystery_core_parts_type_def:get_method("onBreak");
|
||||||
|
|
||||||
|
local gui_manager_type_def = sdk.find_type_definition("snow.gui.GuiManager");
|
||||||
|
local get_tg_camera_method = gui_manager_type_def:get_method("get_refGuiHud_TgCamera");
|
||||||
|
|
||||||
|
local tg_camera_type_def = get_tg_camera_method:get_return_type();
|
||||||
|
local get_targeting_enemy_index_field = tg_camera_type_def:get_field("OldTargetingEmIndex");
|
||||||
|
|
||||||
function this.init(monster, enemy)
|
function this.init(monster, enemy)
|
||||||
local enemy_type = enemy_type_field:get_data(enemy);
|
local monster_id = enemy_type_field:get_data(enemy);
|
||||||
if enemy_type == nil then
|
if monster_id == nil then
|
||||||
customization_menu.status = "No enemy type";
|
error_handler.report("large_monster.init", "Failed to access Data: enemy_type");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
monster.id = enemy_type;
|
monster.id = monster_id;
|
||||||
|
|
||||||
if monster.id == 549 or monster.id == 25 or monster.id == 2073 then
|
if monster_id == this.monster_ids.lucent_nargacuga or monster_id == this.monster_ids.chameleos or monster_id == this.monster_ids.risen_chameleos then
|
||||||
monster.can_go_stealth = true;
|
monster.can_go_stealth = true;
|
||||||
end
|
end
|
||||||
|
|
||||||
local enemy_name = get_enemy_name_message_method:call(singletons.message_manager, enemy_type);
|
local enemy_name = get_enemy_name_message_method:call(singletons.message_manager, monster_id);
|
||||||
if enemy_name ~= nil then
|
if enemy_name ~= nil then
|
||||||
monster.name = enemy_name;
|
monster.name = enemy_name;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: enemy_name");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if monster_id ~= this.monster_ids.toadversary then
|
||||||
local set_info = get_set_info_method:call(enemy);
|
local set_info = get_set_info_method:call(enemy);
|
||||||
if set_info ~= nil then
|
if set_info ~= nil then
|
||||||
local unique_id = get_unique_id_method:call(set_info);
|
local unique_id = get_unique_id_method:call(set_info);
|
||||||
if unique_id ~= nil then
|
if unique_id ~= nil then
|
||||||
monster.unique_id = unique_id;
|
monster.unique_id = unique_id;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: unique_id");
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: set_info");
|
||||||
end
|
end
|
||||||
|
|
||||||
local size_info = find_enemy_size_info_method:call(singletons.enemy_manager, enemy_type);
|
local size_info = find_enemy_size_info_method:call(singletons.enemy_manager, monster_id);
|
||||||
if size_info ~= nil then
|
if size_info ~= nil then
|
||||||
local small_border = get_small_border_method:call(size_info);
|
local small_border = get_small_border_method:call(size_info);
|
||||||
local big_border = get_big_border_method:call(size_info);
|
local big_border = get_big_border_method:call(size_info);
|
||||||
@@ -292,18 +312,26 @@ function this.init(monster, enemy)
|
|||||||
|
|
||||||
if small_border ~= nil then
|
if small_border ~= nil then
|
||||||
monster.small_border = small_border;
|
monster.small_border = small_border;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: small_border");
|
||||||
end
|
end
|
||||||
|
|
||||||
if big_border ~= nil then
|
if big_border ~= nil then
|
||||||
monster.big_border = big_border;
|
monster.big_border = big_border;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: big_border");
|
||||||
end
|
end
|
||||||
|
|
||||||
if king_border ~= nil then
|
if king_border ~= nil then
|
||||||
monster.king_border = king_border;
|
monster.king_border = king_border;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: king_border");
|
||||||
end
|
end
|
||||||
|
|
||||||
if size ~= nil then
|
if size ~= nil then
|
||||||
monster.size = size;
|
monster.size = size;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: size");
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster.size <= monster.small_border then
|
if monster.size <= monster.small_border then
|
||||||
@@ -313,6 +341,9 @@ function this.init(monster, enemy)
|
|||||||
elseif monster.size >= monster.big_border then
|
elseif monster.size >= monster.big_border then
|
||||||
monster.crown = language.current_language.UI.silver;
|
monster.crown = language.current_language.UI.silver;
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: size_info");
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_capture_enable = true;
|
local is_capture_enable = true;
|
||||||
@@ -325,11 +356,16 @@ function this.init(monster, enemy)
|
|||||||
local is_capture_enable_ = capture_param:call("get_IsEnable");
|
local is_capture_enable_ = capture_param:call("get_IsEnable");
|
||||||
if is_capture_enable_ ~= nil then
|
if is_capture_enable_ ~= nil then
|
||||||
is_capture_enable = is_capture_enable_;
|
is_capture_enable = is_capture_enable_;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: is_capture_enable_");
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: capture_param");
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.init", "Failed to access Data: damage_param");
|
||||||
end
|
end
|
||||||
|
|
||||||
--local curia_param = enemy:get_field("<CuriaParam>k__BackingField");
|
|
||||||
local mystery_param = get_mystery_param_method:call(enemy);
|
local mystery_param = get_mystery_param_method:call(enemy);
|
||||||
local is_anomaly = mystery_param ~= nil;
|
local is_anomaly = mystery_param ~= nil;
|
||||||
|
|
||||||
@@ -426,15 +462,17 @@ function this.init_UI(monster, monster_UI, cached_config)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function this.update_position(enemy, monster)
|
function this.update_position(enemy, monster)
|
||||||
if not config.current_config.large_monster_UI.dynamic.enabled and
|
if not config.current_config.large_monster_UI.dynamic.enabled
|
||||||
config.current_config.large_monster_UI.static.sorting.type ~= "Distance" then
|
and config.current_config.large_monster_UI.static.sorting.type ~= "Distance" then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local position = get_pos_field:call(enemy);
|
local position = get_pos_field:call(enemy);
|
||||||
if position ~= nil then
|
if position == nil then
|
||||||
monster.position = position;
|
error_handler.report("large_monster.update_position", "Failed to access Data: position");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
monster.position = position;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Code by coavins
|
-- Code by coavins
|
||||||
@@ -442,26 +480,31 @@ function this.update_all_riders()
|
|||||||
for enemy, monster in pairs(this.list) do
|
for enemy, monster in pairs(this.list) do
|
||||||
-- get marionette rider
|
-- get marionette rider
|
||||||
local mario_param = get_mario_param_method:call(enemy);
|
local mario_param = get_mario_param_method:call(enemy);
|
||||||
if mario_param ~= nil then
|
if mario_param == nil then
|
||||||
local is_marionette = get_is_marionette_method:call(mario_param);
|
error_handler.report("large_monster.update_all_riders", "Failed to access Data: mario_param");
|
||||||
|
goto continue;
|
||||||
|
end
|
||||||
|
|
||||||
|
local is_marionette = get_is_marionette_method:call(mario_param);
|
||||||
if is_marionette == nil then
|
if is_marionette == nil then
|
||||||
|
error_handler.report("large_monster.update_all_riders", "Failed to access Data: is_marionette");
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_marionette then
|
if is_marionette then
|
||||||
local player_id = get_mario_player_index_method:call(mario_param);
|
local player_id = get_mario_player_index_method:call(mario_param);
|
||||||
if player_id ~= nil then
|
if player_id == nil then
|
||||||
monster.rider_id = player_id;
|
error_handler.report("large_monster.update_all_riders", "Failed to access Data: player_id");
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
monster.rider_id = player_id;
|
||||||
else
|
else
|
||||||
monster.rider_id = -1;
|
monster.rider_id = -1;
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.update(enemy, monster)
|
function this.update(enemy, monster)
|
||||||
@@ -476,38 +519,48 @@ function this.update(enemy, monster)
|
|||||||
local dead_or_captured = check_die_method:call(enemy);
|
local dead_or_captured = check_die_method:call(enemy);
|
||||||
if dead_or_captured ~= nil then
|
if dead_or_captured ~= nil then
|
||||||
monster.dead_or_captured = dead_or_captured;
|
monster.dead_or_captured = dead_or_captured;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update", "Failed to access Data: dead_or_captured");
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_disp_icon_mini_map = is_disp_icon_mini_map_method:call(enemy);
|
local is_disp_icon_mini_map = is_disp_icon_mini_map_method:call(enemy);
|
||||||
if is_disp_icon_mini_map ~= nil then
|
if is_disp_icon_mini_map ~= nil then
|
||||||
monster.is_disp_icon_mini_map = is_disp_icon_mini_map;
|
monster.is_disp_icon_mini_map = is_disp_icon_mini_map;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update", "Failed to access Data: is_disp_icon_mini_map");
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster.id == 549 or monster.id == 25 or monster.id == 2073 then
|
if monster.id == this.monster_ids.lucent_nargacuga or monster.id == this.monster_ids.chameleos or monster.id == this.monster_ids.risen_chameleos then
|
||||||
monster.can_go_stealth = true;
|
monster.can_go_stealth = true;
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster.can_go_stealth then
|
if monster.can_go_stealth then
|
||||||
-- Lucent Nargacuga
|
-- Lucent Nargacuga
|
||||||
if monster.id == 549 then
|
if monster.id == this.monster_ids.lucent_nargacuga then
|
||||||
local is_stealth = is_stealth_method:call(enemy);
|
local is_stealth = is_stealth_method:call(enemy);
|
||||||
if is_stealth ~= nil then
|
if is_stealth == nil then
|
||||||
monster.is_stealth = is_stealth;
|
monster.is_stealth = is_stealth;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update", "Failed to access Data: is_stealth");
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Chameleos and Risen Chameleos
|
-- Chameleos and Risen Chameleos
|
||||||
elseif monster.id == 25 or monster.id == 2073 then
|
elseif monster.id == this.monster_ids.chameleos or monster.id == this.monster_ids.risen_chameleos then
|
||||||
local stealth_controller = get_stealth_ctrl_method:call(enemy);
|
local stealth_controller = get_stealth_ctrl_method:call(enemy);
|
||||||
if stealth_controller ~= nil then
|
if stealth_controller ~= nil then
|
||||||
local status = get_current_status_method:call(stealth_controller);
|
local status = get_current_status_method:call(stealth_controller);
|
||||||
|
|
||||||
if status >= 2 then
|
if status == nil then
|
||||||
|
error_handler.report("large_monster.update", "Failed to access Data: status");
|
||||||
|
elseif status >= 2 then
|
||||||
monster.is_stealth = true;
|
monster.is_stealth = true;
|
||||||
else
|
else
|
||||||
monster.is_stealth = false;
|
monster.is_stealth = false;
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update", "Failed to access Data: stealth_controller");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
pcall(ailments.update_ailments, enemy, monster);
|
pcall(ailments.update_ailments, enemy, monster);
|
||||||
@@ -530,26 +583,45 @@ function this.update_health(enemy, monster)
|
|||||||
|
|
||||||
local physical_param = get_physical_param_method:call(enemy);
|
local physical_param = get_physical_param_method:call(enemy);
|
||||||
if physical_param == nil then
|
if physical_param == nil then
|
||||||
customization_menu.status = "No physical param";
|
error_handler.report("large_monster.update_health", "Failed to access Data: physical_param");
|
||||||
return nil;
|
return nil;
|
||||||
end
|
end
|
||||||
|
|
||||||
local vital_param = get_vital_method:call(physical_param, 0, 0);
|
local vital_param = get_vital_method:call(physical_param, 0, 0);
|
||||||
if vital_param == nil then
|
if vital_param == nil then
|
||||||
customization_menu.status = "No vital param";
|
error_handler.report("large_monster.update_health", "Failed to access Data: vital_param");
|
||||||
return nil;
|
return nil;
|
||||||
end
|
end
|
||||||
|
|
||||||
monster.health = get_current_method:call(vital_param) or monster.health;
|
local health = get_current_method:call(vital_param);
|
||||||
monster.max_health = get_max_method:call(vital_param) or monster.max_health;
|
if health ~= nil then
|
||||||
monster.capture_health = get_capture_hp_vital_method:call(physical_param) or monster.capture_health;
|
monster.health = health;
|
||||||
|
else
|
||||||
monster.missing_health = monster.max_health - monster.health;
|
error_handler.report("large_monster.update_health", "Failed to access Data: health");
|
||||||
if monster.max_health ~= 0 then
|
|
||||||
monster.health_percentage = monster.health / monster.max_health;
|
|
||||||
monster.capture_percentage = monster.capture_health / monster.max_health;
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local max_health = get_max_method:call(vital_param);
|
||||||
|
if max_health ~= nil then
|
||||||
|
monster.max_health = max_health;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_health", "Failed to access Data: max_health");
|
||||||
|
end
|
||||||
|
|
||||||
|
local capture_health = get_capture_hp_vital_method:call(physical_param);
|
||||||
|
if capture_health ~= nil then
|
||||||
|
monster.capture_health = capture_health;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_health", "Failed to access Data: capture_health");
|
||||||
|
end
|
||||||
|
|
||||||
|
monster.missing_health = max_health - health;
|
||||||
|
if monster.max_health ~= 0 then
|
||||||
|
monster.health_percentage = health / max_health;
|
||||||
|
monster.capture_percentage = capture_health / max_health;
|
||||||
|
end
|
||||||
|
|
||||||
|
monster.is_health_initialized = true;
|
||||||
|
|
||||||
return physical_param;
|
return physical_param;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -571,7 +643,7 @@ function this.update_stamina(enemy, monster, stamina_param)
|
|||||||
if stamina_param == nil then
|
if stamina_param == nil then
|
||||||
stamina_param = get_stamina_param_method:call(enemy);
|
stamina_param = get_stamina_param_method:call(enemy);
|
||||||
if stamina_param == nil then
|
if stamina_param == nil then
|
||||||
customization_menu.status = "No stamina param";
|
error_handler.report("large_monster.update_stamina", "Failed to access Data: stamina_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -579,14 +651,34 @@ function this.update_stamina(enemy, monster, stamina_param)
|
|||||||
local is_tired = is_tired_method:call(stamina_param, false);
|
local is_tired = is_tired_method:call(stamina_param, false);
|
||||||
if is_tired ~= nil then
|
if is_tired ~= nil then
|
||||||
monster.is_tired = is_tired;
|
monster.is_tired = is_tired;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_stamina", "Failed to access Data: is_tired");
|
||||||
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
monster.stamina = get_stamina_method:call(stamina_param) or monster.stamina;
|
if is_tired then
|
||||||
monster.max_stamina = get_max_stamina_method:call(stamina_param) or monster.max_stamina;
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
monster.missing_stamina = monster.max_stamina - monster.stamina;
|
local stamina = get_stamina_method:call(stamina_param);
|
||||||
if monster.max_stamina ~= 0 then
|
if stamina ~= nil then
|
||||||
monster.stamina_percentage = monster.stamina / monster.max_stamina;
|
monster.stamina = stamina;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_stamina", "Failed to access Data: stamina");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local max_stamina = get_max_stamina_method:call(stamina_param);
|
||||||
|
if max_stamina ~= nil then
|
||||||
|
monster.max_stamina = max_stamina;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_stamina", "Failed to access Data: max_stamina");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
monster.missing_stamina = max_stamina - stamina;
|
||||||
|
if max_stamina ~= 0 then
|
||||||
|
monster.stamina_percentage = stamina / max_stamina;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -608,7 +700,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param)
|
|||||||
if stamina_param == nil then
|
if stamina_param == nil then
|
||||||
stamina_param = get_stamina_param_method:call(enemy);
|
stamina_param = get_stamina_param_method:call(enemy);
|
||||||
if stamina_param == nil then
|
if stamina_param == nil then
|
||||||
customization_menu.status = "No stamina param";
|
error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: stamina_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -616,14 +708,32 @@ function this.update_stamina_timer(enemy, monster, stamina_param)
|
|||||||
local is_tired = is_tired_method:call(stamina_param, false);
|
local is_tired = is_tired_method:call(stamina_param, false);
|
||||||
if is_tired ~= nil then
|
if is_tired ~= nil then
|
||||||
monster.is_tired = is_tired;
|
monster.is_tired = is_tired;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: is_tired");
|
||||||
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not is_tired then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
monster.tired_timer = get_remaining_tired_time_method:call(stamina_param) or monster.tired_timer;
|
local tired_timer = get_remaining_tired_time_method:call(stamina_param);
|
||||||
monster.tired_duration = get_total_tired_time_method:call(stamina_param) or monster.tired_duration;
|
if tired_timer ~= nil then
|
||||||
|
monster.tired_timer = tired_timer;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: tired_timer");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
if monster.is_tired then
|
local tired_duration = get_total_tired_time_method:call(stamina_param);
|
||||||
monster.tired_total_seconds_left = monster.tired_timer;
|
if tired_duration ~= nil then
|
||||||
|
monster.tired_duration = tired_duration;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: tired_duration");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
monster.tired_total_seconds_left = tired_timer;
|
||||||
if monster.tired_total_seconds_left < 0 then
|
if monster.tired_total_seconds_left < 0 then
|
||||||
monster.tired_total_seconds_left = 0;
|
monster.tired_total_seconds_left = 0;
|
||||||
end
|
end
|
||||||
@@ -631,9 +741,8 @@ function this.update_stamina_timer(enemy, monster, stamina_param)
|
|||||||
monster.tired_minutes_left = math.floor(monster.tired_total_seconds_left / 60);
|
monster.tired_minutes_left = math.floor(monster.tired_total_seconds_left / 60);
|
||||||
monster.tired_seconds_left = monster.tired_total_seconds_left - 60 * monster.tired_minutes_left;
|
monster.tired_seconds_left = monster.tired_total_seconds_left - 60 * monster.tired_minutes_left;
|
||||||
|
|
||||||
if monster.tired_duration ~= 0 then
|
if tired_duration ~= 0 then
|
||||||
monster.tired_timer_percentage = monster.tired_total_seconds_left / monster.tired_duration;
|
monster.tired_timer_percentage = monster.tired_total_seconds_left / tired_duration;
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -655,17 +764,42 @@ function this.update_rage(enemy, monster, anger_param)
|
|||||||
if anger_param == nil then
|
if anger_param == nil then
|
||||||
anger_param = get_anger_param_method:call(enemy);
|
anger_param = get_anger_param_method:call(enemy);
|
||||||
if anger_param == nil then
|
if anger_param == nil then
|
||||||
customization_menu.status = "No anger param";
|
error_handler.report("large_monster.update_rage", "Failed to access Data: anger_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local is_in_rage = is_anger_method:call(anger_param);
|
||||||
|
if is_in_rage ~= nil then
|
||||||
|
--xy = xy .. tostring(is_in_rage) .. "\n";
|
||||||
|
monster.is_in_rage = is_in_rage;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_rage", "Failed to access Data: is_in_rage");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
monster.rage_point = get_anger_point_method:call(anger_param) or monster.rage_point;
|
if is_in_rage then
|
||||||
monster.rage_limit = get_limit_anger_method:call(anger_param) or monster.rage_limit;
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
if monster.rage_limit ~= 0 then
|
local rage_point = get_anger_point_method:call(anger_param);
|
||||||
monster.rage_percentage = monster.rage_point / monster.rage_limit;
|
if rage_point ~= nil then
|
||||||
|
monster.rage_point = rage_point;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_rage", "Failed to access Data: rage_point");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local rage_limit = get_limit_anger_method:call(anger_param);
|
||||||
|
if rage_limit ~= nil then
|
||||||
|
monster.rage_limit = rage_limit;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_rage", "Failed to access Data: rage_limit");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if rage_limit ~= 0 then
|
||||||
|
monster.rage_percentage = rage_point / rage_limit;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -687,7 +821,7 @@ function this.update_rage_timer(enemy, monster, anger_param)
|
|||||||
if anger_param == nil then
|
if anger_param == nil then
|
||||||
anger_param = get_anger_param_method:call(enemy);
|
anger_param = get_anger_param_method:call(enemy);
|
||||||
if anger_param == nil then
|
if anger_param == nil then
|
||||||
customization_menu.status = "No anger param";
|
error_handler.report("large_monster.update_rage_timer", "Failed to access Data: anger_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -695,13 +829,32 @@ function this.update_rage_timer(enemy, monster, anger_param)
|
|||||||
local is_in_rage = is_anger_method:call(anger_param);
|
local is_in_rage = is_anger_method:call(anger_param);
|
||||||
if is_in_rage ~= nil then
|
if is_in_rage ~= nil then
|
||||||
monster.is_in_rage = is_in_rage;
|
monster.is_in_rage = is_in_rage;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_rage_timer", "Failed to access Data: is_in_rage");
|
||||||
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
monster.rage_timer = get_remaining_anger_time_method:call(anger_param) or monster.rage_timer;
|
if not is_in_rage then
|
||||||
monster.rage_duration = get_total_anger_time_method:call(anger_param) or monster.rage_duration;
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
if monster.is_in_rage then
|
local rage_timer = get_remaining_anger_time_method:call(anger_param);
|
||||||
monster.rage_total_seconds_left = monster.rage_timer;
|
if rage_timer ~= nil then
|
||||||
|
monster.rage_timer = rage_timer;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_rage_timer", "Failed to access Data: rage_timer");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local rage_duration = get_total_anger_time_method:call(anger_param);
|
||||||
|
if rage_duration ~= nil then
|
||||||
|
monster.rage_duration = rage_duration;
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_rage_timer", "Failed to access Data: rage_duration");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
monster.rage_total_seconds_left = rage_timer;
|
||||||
if monster.rage_total_seconds_left < 0 then
|
if monster.rage_total_seconds_left < 0 then
|
||||||
monster.rage_total_seconds_left = 0;
|
monster.rage_total_seconds_left = 0;
|
||||||
end
|
end
|
||||||
@@ -709,9 +862,8 @@ function this.update_rage_timer(enemy, monster, anger_param)
|
|||||||
monster.rage_minutes_left = math.floor(monster.rage_total_seconds_left / 60);
|
monster.rage_minutes_left = math.floor(monster.rage_total_seconds_left / 60);
|
||||||
monster.rage_seconds_left = monster.rage_total_seconds_left - 60 * monster.rage_minutes_left;
|
monster.rage_seconds_left = monster.rage_total_seconds_left - 60 * monster.rage_minutes_left;
|
||||||
|
|
||||||
if monster.rage_duration ~= 0 then
|
if rage_duration ~= 0 then
|
||||||
monster.rage_timer_percentage = monster.rage_total_seconds_left / monster.rage_duration;
|
monster.rage_timer_percentage = monster.rage_total_seconds_left / rage_duration;
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -745,31 +897,32 @@ function this.update_parts(enemy, monster, physical_param)
|
|||||||
if physical_param == nil then
|
if physical_param == nil then
|
||||||
physical_param = get_physical_param_method:call(enemy);
|
physical_param = get_physical_param_method:call(enemy);
|
||||||
if physical_param == nil then
|
if physical_param == nil then
|
||||||
customization_menu.status = "No physical param";
|
error_handler.report("large_monster.update_parts", "Failed to access Data: physical_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local damage_param = get_damage_param_method:call(enemy);
|
local damage_param = get_damage_param_method:call(enemy);
|
||||||
if damage_param == nil then
|
if damage_param == nil then
|
||||||
customization_menu.status = "No damage param";
|
error_handler.report("large_monster.update_parts", "Failed to access Data: damage_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local enemy_parts_damage_info = enemy_parts_damage_info_field:get_data(damage_param);
|
local enemy_parts_damage_info = enemy_parts_damage_info_field:get_data(damage_param);
|
||||||
if enemy_parts_damage_info == nil then
|
if enemy_parts_damage_info == nil then
|
||||||
customization_menu.status = "No parts damage info";
|
error_handler.report("large_monster.update_parts", "Failed to access Data: enemy_parts_damage_info");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local core_parts_array = get_part_info_array_method:call(enemy_parts_damage_info);
|
local core_parts_array = get_part_info_array_method:call(enemy_parts_damage_info);
|
||||||
if core_parts_array == nil then
|
if core_parts_array == nil then
|
||||||
customization_menu.status = "No parts damage info array";
|
error_handler.report("large_monster.update_parts", "Failed to access Data: core_parts_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local core_parts_array_length = length_method:call(core_parts_array);
|
local core_parts_array_length = length_method:call(core_parts_array);
|
||||||
if core_parts_array_length == nil then
|
if core_parts_array_length == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", "Failed to access Data: core_parts_array_length");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -778,7 +931,8 @@ function this.update_parts(enemy, monster, physical_param)
|
|||||||
|
|
||||||
local enemy_parts_info = get_value_method:call(core_parts_array, i);
|
local enemy_parts_info = get_value_method:call(core_parts_array, i);
|
||||||
if enemy_parts_info == nil then
|
if enemy_parts_info == nil then
|
||||||
goto continue
|
error_handler.report("large_monster.update_parts", "Failed to access Data: enemy_parts_info No. " .. tostring(i));
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local part = monster.parts[part_id];
|
local part = monster.parts[part_id];
|
||||||
@@ -795,53 +949,91 @@ function this.update_parts(enemy, monster, physical_param)
|
|||||||
if cached_config.dynamic.body_parts.part_health.visibility
|
if cached_config.dynamic.body_parts.part_health.visibility
|
||||||
or cached_config.static.body_parts.part_health.visibility
|
or cached_config.static.body_parts.part_health.visibility
|
||||||
or cached_config.highlighted.body_parts.part_health.visibility then
|
or cached_config.highlighted.body_parts.part_health.visibility then
|
||||||
|
|
||||||
local part_vital = get_vital_method:call(physical_param, 1, i);
|
local part_vital = get_vital_method:call(physical_param, 1, i);
|
||||||
if part_vital ~= nil then
|
if part_vital ~= nil then
|
||||||
local part_current = get_current_method:call(part_vital) or -1;
|
|
||||||
local part_max = get_max_method:call(part_vital) or -1;
|
|
||||||
|
|
||||||
|
local part_current = get_current_method:call(part_vital);
|
||||||
|
if part_current == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_current", i));
|
||||||
|
end
|
||||||
|
|
||||||
|
local part_max = get_max_method:call(part_vital);
|
||||||
|
if part_max == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_max", i));
|
||||||
|
end
|
||||||
|
|
||||||
|
if part_current ~= nil and part_max ~= nil then
|
||||||
body_part.update_flinch(part, part_current, part_max);
|
body_part.update_flinch(part, part_current, part_max);
|
||||||
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_vital", i));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.dynamic.body_parts.part_break.visibility
|
if cached_config.dynamic.body_parts.part_break.visibility
|
||||||
or cached_config.static.body_parts.part_break.visibility
|
or cached_config.static.body_parts.part_break.visibility
|
||||||
or cached_config.highlighted.body_parts.part_break.visibility then
|
or cached_config.highlighted.body_parts.part_break.visibility then
|
||||||
|
|
||||||
local part_break_vital = get_vital_method:call(physical_param, 2, i);
|
local part_break_vital = get_vital_method:call(physical_param, 2, i);
|
||||||
if part_break_vital ~= nil then
|
if part_break_vital ~= nil then
|
||||||
local part_break_current = get_current_method:call(part_break_vital) or -1;
|
|
||||||
local part_break_max = get_max_method:call(part_break_vital) or -1;
|
|
||||||
local part_break_count = -1;
|
|
||||||
local part_break_max_count = -1;
|
|
||||||
|
|
||||||
if enemy_parts_info ~= nil then
|
local part_break_current = get_current_method:call(part_break_vital);
|
||||||
part_break_count = get_parts_break_damage_level_method:call(enemy_parts_info) or part_break_count;
|
if part_break_current == nil then
|
||||||
part_break_max_count = get_parts_break_damage_max_level_method:call(enemy_parts_info) or part_break_max_count;
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_current", i));
|
||||||
end
|
end
|
||||||
|
|
||||||
body_part.update_break(part, part_break_current, part_break_max, part_break_count, part_break_max_count)
|
local part_break_max = get_max_method:call(part_break_vital);
|
||||||
|
if part_break_max == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_max", i));
|
||||||
|
end
|
||||||
|
|
||||||
|
local part_break_count = get_parts_break_damage_level_method:call(enemy_parts_info);
|
||||||
|
if part_break_count == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_count", i));
|
||||||
|
end
|
||||||
|
|
||||||
|
local part_break_max_count = get_parts_break_damage_max_level_method:call(enemy_parts_info);
|
||||||
|
if part_break_max_count == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_max_count", i));
|
||||||
|
end
|
||||||
|
|
||||||
|
if part_break_current ~= nil and part_break_max ~= nil and part_break_count ~= nil and part_break_max_count ~= nil then
|
||||||
|
body_part.update_break(part, part_break_current, part_break_max, part_break_count, part_break_max_count);
|
||||||
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_vital", i));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.dynamic.body_parts.part_loss.visibility
|
if cached_config.dynamic.body_parts.part_loss.visibility
|
||||||
or cached_config.static.body_parts.part_loss.visibility
|
or cached_config.static.body_parts.part_loss.visibility
|
||||||
or cached_config.highlighted.body_parts.part_loss.visibility then
|
or cached_config.highlighted.body_parts.part_loss.visibility then
|
||||||
|
|
||||||
local part_loss_vital = get_vital_method:call(physical_param, 3, i);
|
local part_loss_vital = get_vital_method:call(physical_param, 3, i);
|
||||||
if part_loss_vital ~= nil then
|
if part_loss_vital ~= nil then
|
||||||
local part_loss_current = get_current_method:call(part_loss_vital) or -1;
|
|
||||||
local part_loss_max = get_max_method:call(part_loss_vital) or -1;
|
|
||||||
local is_severed = false;
|
|
||||||
|
|
||||||
if enemy_parts_info ~= nil then
|
local part_loss_current = get_current_method:call(part_loss_vital);
|
||||||
local _is_severed = get_parts_loss_state_method:call(enemy_parts_info);
|
if part_loss_current == nil then
|
||||||
if _is_severed ~= nil then
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_current", i));
|
||||||
is_severed = _is_severed;
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local part_loss_max = get_max_method:call(part_loss_vital);
|
||||||
|
if part_loss_max == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_max", i));
|
||||||
|
end
|
||||||
|
|
||||||
|
local is_severed = get_parts_loss_state_method:call(enemy_parts_info);
|
||||||
|
if is_severed == nil then
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> is_severed", i));
|
||||||
|
end
|
||||||
|
|
||||||
|
if part_loss_current ~= nil and part_loss_max ~= nil and is_severed ~= nil then
|
||||||
body_part.update_loss(part, part_loss_current, part_loss_max, is_severed);
|
body_part.update_loss(part, part_loss_current, part_loss_max, is_severed);
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_vital", i));
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
::continue::
|
::continue::
|
||||||
@@ -878,12 +1070,13 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
|
|||||||
|
|
||||||
local core_parts_array = core_parts_array_field:get_data(mystery_param);
|
local core_parts_array = core_parts_array_field:get_data(mystery_param);
|
||||||
if core_parts_array == nil then
|
if core_parts_array == nil then
|
||||||
customization_menu.status = "No core parts array";
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_parts_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local core_parts_array_length = length_method:call(core_parts_array);
|
local core_parts_array_length = length_method:call(core_parts_array);
|
||||||
if core_parts_array_length == nil then
|
if core_parts_array_length == nil then
|
||||||
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_parts_array_length");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -892,7 +1085,8 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
|
|||||||
|
|
||||||
local core_part = get_value_method:call(core_parts_array, i);
|
local core_part = get_value_method:call(core_parts_array, i);
|
||||||
if core_part == nil then
|
if core_part == nil then
|
||||||
goto continue
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_part No. " .. tostring(i));
|
||||||
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local part = monster.parts[part_id];
|
local part = monster.parts[part_id];
|
||||||
@@ -907,18 +1101,36 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local part_vital = core_parts_get_vital_method:call(core_part);
|
local part_vital = core_parts_get_vital_method:call(core_part);
|
||||||
local part_is_active = core_parts_get_is_active_method:call(core_part);
|
if part_vital == nil then
|
||||||
--local part_dying_vital_threshold = core_parts_get_dying_vital_threashold_method:call(core_part);
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_vital No. " .. tostring(i));
|
||||||
|
return;
|
||||||
if part_is_active == nil then
|
|
||||||
part_is_active = false;
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if part_vital ~= nil then
|
local part_is_active = core_parts_get_is_active_method:call(core_part);
|
||||||
local part_current = get_current_method:call(part_vital) or -1;
|
if part_is_active == nil then
|
||||||
local part_max = get_max_method:call(part_vital) or -1;
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_is_active No. " .. tostring(i));
|
||||||
local part_is_enabled = is_enable_method:call(part_vital);
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
--local part_dying_vital_threshold = core_parts_get_dying_vital_threashold_method:call(core_part);
|
||||||
|
|
||||||
|
local part_current = get_current_method:call(part_vital);
|
||||||
|
if part_current == nil then
|
||||||
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_current No. " .. tostring(i));
|
||||||
|
goto continue;
|
||||||
|
end
|
||||||
|
|
||||||
|
local part_max = get_max_method:call(part_vital);
|
||||||
|
if part_max == nil then
|
||||||
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_max No. " .. tostring(i));
|
||||||
|
goto continue;
|
||||||
|
end
|
||||||
|
|
||||||
|
local part_is_enabled = is_enable_method:call(part_vital);
|
||||||
|
if part_is_enabled == nil then
|
||||||
|
error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_is_enabled No. " .. tostring(i));
|
||||||
|
goto continue;
|
||||||
|
end
|
||||||
|
|
||||||
if not part_is_enabled then
|
if not part_is_enabled then
|
||||||
goto continue;
|
goto continue;
|
||||||
@@ -926,12 +1138,38 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
|
|||||||
|
|
||||||
body_part.update_anomaly(part, core_part, part_current, part_max, part_is_active);
|
body_part.update_anomaly(part, core_part, part_current, part_max, part_is_active);
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.update_highlighted_id()
|
||||||
|
if quest_status.flow_state <= quest_status.flow_states.IN_LOBBY
|
||||||
|
or quest_status.flow_state == quest_status.flow_states.LOADING_QUEST
|
||||||
|
or quest_status.flow_state == quest_status.flow_states.CUTSCENE
|
||||||
|
or quest_status.flow_state >= quest_status.flow_states.QUEST_END_ANIMATION then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
if singletons.gui_manager == nil then
|
||||||
|
error_handler.report("large_monster.update_highlighted_id", "Failed to access Data: gui_manager");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local gui_hud_target_camera = get_tg_camera_method:call(singletons.gui_manager);
|
||||||
|
if gui_hud_target_camera == nil then
|
||||||
|
error_handler.report("large_monster.update_highlighted_id", "Failed to access Data: gui_hud_target_camera");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local highlighted_id = get_targeting_enemy_index_field:get_data(gui_hud_target_camera);
|
||||||
|
if highlighted_id == nil then
|
||||||
|
error_handler.report("large_monster_UI.update_highlighted_id", "Failed to access Data: highlighted_id");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
this.highlighted_id = highlighted_id;
|
||||||
|
end
|
||||||
|
|
||||||
function this.draw(monster, type, cached_config, position_on_screen, opacity_scale)
|
function this.draw(monster, type, cached_config, position_on_screen, opacity_scale)
|
||||||
local monster_UI;
|
local monster_UI;
|
||||||
|
|
||||||
@@ -951,20 +1189,29 @@ function this.draw(monster, type, cached_config, position_on_screen, opacity_sca
|
|||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.monster_name_label.include.monster_id then
|
if cached_config.monster_name_label.include.monster_id then
|
||||||
monster_name_text = monster_name_text .. tostring(monster.id) .. " ";
|
monster_name_text = string.format("%s%s ", monster_name_text, tostring(monster.id));
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.monster_name_label.include.crown and monster.crown ~= "" then
|
if cached_config.monster_name_label.include.crown and monster.crown ~= "" then
|
||||||
monster_name_text = monster_name_text .. string.format("%s ", monster.crown);
|
monster_name_text = string.format("%s%s ", monster_name_text, monster.crown);
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.monster_name_label.include.size then
|
if cached_config.monster_name_label.include.size and monster.size ~= -1 then
|
||||||
monster_name_text = monster_name_text .. string.format("#%.0f ", 100 * monster.size);
|
monster_name_text = string.format("%s#%.0f ", monster_name_text, 100 * monster.size);
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.monster_name_label.include.scrown_thresholds then
|
if cached_config.monster_name_label.include.crown_thresholds then
|
||||||
monster_name_text = monster_name_text .. string.format("<=%.0f >=%.0f >=%.0f", 100 * monster.small_border,
|
if monster.small_border ~= -1 then
|
||||||
100 * monster.big_border, 100 * monster.king_border);
|
monster_name_text = string.format("%s<=%.0f ", monster_name_text, 100 * monster.small_border);
|
||||||
|
end
|
||||||
|
|
||||||
|
if monster.big_border ~= -1 then
|
||||||
|
monster_name_text = string.format("%s>=%.0f ", monster_name_text, 100 * monster.big_border);
|
||||||
|
end
|
||||||
|
|
||||||
|
if monster.king_border ~= -1 then
|
||||||
|
monster_name_text = string.format("%s>=%.0f ", monster_name_text, 100 * monster.king_border);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster.is_capturable and monster.health < monster.capture_health then
|
if monster.is_capturable and monster.health < monster.capture_health then
|
||||||
@@ -1033,13 +1280,15 @@ function this.init_list()
|
|||||||
this.list = {};
|
this.list = {};
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
body_part = require("MHR_Overlay.Monsters.body_part");
|
body_part = require("MHR_Overlay.Monsters.body_part");
|
||||||
|
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
|
|
||||||
health_UI_entity = require("MHR_Overlay.UI.UI_Entities.health_UI_entity");
|
health_UI_entity = require("MHR_Overlay.UI.UI_Entities.health_UI_entity");
|
||||||
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
||||||
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
||||||
@@ -1054,6 +1303,11 @@ function this.init_module()
|
|||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
time = require("MHR_Overlay.Game_Handler.time");
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
ailment_buildup = require("MHR_Overlay.Monsters.ailment_buildup");
|
ailment_buildup = require("MHR_Overlay.Monsters.ailment_buildup");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
time.new_timer(this.update_highlighted_id, 1/30);
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -6,6 +6,7 @@ local config;
|
|||||||
local ailments;
|
local ailments;
|
||||||
local players;
|
local players;
|
||||||
local quest_status;
|
local quest_status;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -153,7 +154,8 @@ function this.update_large_monster(enemy)
|
|||||||
large_monster.update_stamina_timer(enemy, monster, nil);
|
large_monster.update_stamina_timer(enemy, monster, nil);
|
||||||
large_monster.update_rage_timer(enemy, monster, nil);
|
large_monster.update_rage_timer(enemy, monster, nil);
|
||||||
|
|
||||||
if quest_status.is_online and players.myself.id ~= 0 then
|
if (quest_status.is_online and players.myself.id ~= 0)
|
||||||
|
or not monster.is_health_initialized then
|
||||||
local physical_param = large_monster.update_health(enemy, monster);
|
local physical_param = large_monster.update_health(enemy, monster);
|
||||||
pcall(large_monster.update_parts, enemy, monster, physical_param);
|
pcall(large_monster.update_parts, enemy, monster, physical_param);
|
||||||
pcall(large_monster.update_anomaly_parts, enemy, monster, nil);
|
pcall(large_monster.update_anomaly_parts, enemy, monster, nil);
|
||||||
@@ -194,7 +196,8 @@ function this.update_small_monster(enemy)
|
|||||||
|
|
||||||
small_monster.update(enemy, monster);
|
small_monster.update(enemy, monster);
|
||||||
|
|
||||||
if quest_status.is_online and players.myself.id ~= 0 then
|
if (quest_status.is_online and players.myself.id ~= 0)
|
||||||
|
or not monster.is_health_initialized then
|
||||||
small_monster.update_health(enemy, monster);
|
small_monster.update_health(enemy, monster);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -202,11 +205,13 @@ end
|
|||||||
function this.update_health(enemy_damage_check)
|
function this.update_health(enemy_damage_check)
|
||||||
local enemy = get_ref_enemy:call(enemy_damage_check);
|
local enemy = get_ref_enemy:call(enemy_damage_check);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
|
error_handler.report("monster_hook.update_health", "Failed to access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_large = is_boss_enemy_method:call(enemy);
|
local is_large = is_boss_enemy_method:call(enemy);
|
||||||
if is_large == nil then
|
if is_large == nil then
|
||||||
|
error_handler.report("monster_hook.update_health", "Failed to access Data: is_large");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -229,6 +234,7 @@ function this.update_stamina(stamina_param, stamina_sub)
|
|||||||
|
|
||||||
local enemy = get_enemy_method:call(stamina_param);
|
local enemy = get_enemy_method:call(stamina_param);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
|
error_handler.report("monster_hook.update_stamina", "Failed to access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -255,14 +261,17 @@ function this.update_rage_timer(anger_param, enemy)
|
|||||||
large_monster.update_rage_timer(enemy, monster, anger_param);
|
large_monster.update_rage_timer(enemy, monster, anger_param);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
small_monster = require("MHR_Overlay.Monsters.small_monster");
|
||||||
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
large_monster = require("MHR_Overlay.Monsters.large_monster");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
ailments = require("MHR_Overlay.Monsters.ailments");
|
ailments = require("MHR_Overlay.Monsters.ailments");
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
sdk.hook(enemy_character_base_update_method, function(args)
|
sdk.hook(enemy_character_base_update_method, function(args)
|
||||||
pcall(this.update_monster, sdk.to_managed_object(args[2]));
|
pcall(this.update_monster, sdk.to_managed_object(args[2]));
|
||||||
end, function(retval)
|
end, function(retval)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ local ailments;
|
|||||||
local ailment_UI_entity;
|
local ailment_UI_entity;
|
||||||
local ailment_buildup;
|
local ailment_buildup;
|
||||||
local ailment_buildup_UI_entity;
|
local ailment_buildup_UI_entity;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -52,7 +53,7 @@ function this.new(enemy)
|
|||||||
monster.is_large = false;
|
monster.is_large = false;
|
||||||
|
|
||||||
monster.health = 0;
|
monster.health = 0;
|
||||||
monster.max_health = 999999;
|
monster.max_health = 0;
|
||||||
monster.health_percentage = 0;
|
monster.health_percentage = 0;
|
||||||
monster.missing_health = 0;
|
monster.missing_health = 0;
|
||||||
monster.capture_health = 0;
|
monster.capture_health = 0;
|
||||||
@@ -70,7 +71,6 @@ function this.new(enemy)
|
|||||||
this.init_UI(monster);
|
this.init_UI(monster);
|
||||||
|
|
||||||
this.update_position(enemy, monster);
|
this.update_position(enemy, monster);
|
||||||
this.update_health(enemy, monster);
|
|
||||||
this.update(enemy, monster);
|
this.update(enemy, monster);
|
||||||
|
|
||||||
if this.list[enemy] == nil then
|
if this.list[enemy] == nil then
|
||||||
@@ -98,16 +98,18 @@ local get_enemy_name_message_method = message_manager_type_def:get_method("getEn
|
|||||||
function this.init(monster, enemy)
|
function this.init(monster, enemy)
|
||||||
local enemy_type = enemy_type_field:get_data(enemy);
|
local enemy_type = enemy_type_field:get_data(enemy);
|
||||||
if enemy_type == nil then
|
if enemy_type == nil then
|
||||||
customization_menu.status = "No enemy type";
|
error_handler.report("small_monster.init", "Failed to access Data: enemy_type");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
monster.id = enemy_type;
|
monster.id = enemy_type;
|
||||||
|
|
||||||
local enemy_name = get_enemy_name_message_method:call(singletons.message_manager, enemy_type);
|
local enemy_name = get_enemy_name_message_method:call(singletons.message_manager, enemy_type);
|
||||||
if enemy_name ~= nil then
|
if enemy_name == nil then
|
||||||
monster.name = enemy_name;
|
error_handler.report("small_monster.init", "Failed to access Data: enemy_name");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
monster.name = enemy_name;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_UI(monster)
|
function this.init_UI(monster)
|
||||||
@@ -161,7 +163,7 @@ local vital_param_type = get_vital_method:get_return_type();
|
|||||||
local get_current_method = vital_param_type:get_method("get_Current");
|
local get_current_method = vital_param_type:get_method("get_Current");
|
||||||
local get_max_method = vital_param_type:get_method("get_Max");
|
local get_max_method = vital_param_type:get_method("get_Max");
|
||||||
|
|
||||||
local get_pos_field = enemy_character_base_type_def:get_method("get_Pos");
|
local get_pos_method = enemy_character_base_type_def:get_method("get_Pos");
|
||||||
|
|
||||||
function this.update_position(enemy, monster)
|
function this.update_position(enemy, monster)
|
||||||
local cached_config = config.current_config.small_monster_UI;
|
local cached_config = config.current_config.small_monster_UI;
|
||||||
@@ -174,10 +176,13 @@ function this.update_position(enemy, monster)
|
|||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local position = get_pos_field:call(enemy);
|
|
||||||
if position ~= nil then
|
local position = get_pos_method:call(enemy);
|
||||||
monster.position = position;
|
if position == nil then
|
||||||
|
error_handler.report("small_monster.update_position", "Failed to access Data: position");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
monster.position = position;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.update(enemy, monster)
|
function this.update(enemy, monster)
|
||||||
@@ -188,6 +193,8 @@ function this.update(enemy, monster)
|
|||||||
local dead_or_captured = check_die_method:call(enemy);
|
local dead_or_captured = check_die_method:call(enemy);
|
||||||
if dead_or_captured ~= nil then
|
if dead_or_captured ~= nil then
|
||||||
monster.dead_or_captured = dead_or_captured;
|
monster.dead_or_captured = dead_or_captured;
|
||||||
|
else
|
||||||
|
error_handler.report("small_monster.update", "Failed to access Data: dead_or_captured");
|
||||||
end
|
end
|
||||||
|
|
||||||
pcall(ailments.update_ailments, enemy, monster);
|
pcall(ailments.update_ailments, enemy, monster);
|
||||||
@@ -200,24 +207,38 @@ function this.update_health(enemy, monster)
|
|||||||
|
|
||||||
local physical_param = get_physical_param_method:call(enemy);
|
local physical_param = get_physical_param_method:call(enemy);
|
||||||
if physical_param == nil then
|
if physical_param == nil then
|
||||||
customization_menu.status = "No physical param";
|
error_handler.report("small_monster.update_health", "Failed to access Data: physical_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local vital_param = get_vital_method:call(physical_param, 0, 0);
|
local vital_param = get_vital_method:call(physical_param, 0, 0);
|
||||||
if vital_param == nil then
|
if vital_param == nil then
|
||||||
customization_menu.status = "No vital param";
|
error_handler.report("small_monster.update_health", "Failed to access Data: vital_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
monster.health = get_current_method:call(vital_param) or monster.health;
|
local health = get_current_method:call(vital_param);
|
||||||
monster.max_health = get_max_method:call(vital_param) or monster.max_health;
|
if health ~= nil then
|
||||||
|
monster.health = health;
|
||||||
monster.missing_health = monster.max_health - monster.health;
|
else
|
||||||
if monster.max_health ~= 0 then
|
error_handler.report("small_monster.update_health", "Failed to access Data: health");
|
||||||
monster.health_percentage = monster.health / monster.max_health;
|
return;
|
||||||
monster.capture_percentage = monster.capture_health / monster.max_health;
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local max_health = get_max_method:call(vital_param);
|
||||||
|
if max_health ~= nil then
|
||||||
|
monster.max_health = max_health;
|
||||||
|
else
|
||||||
|
error_handler.report("small_monster.update_health", "Failed to access Data: max_health");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
monster.missing_health = max_health - health;
|
||||||
|
if max_health ~= 0 then
|
||||||
|
monster.health_percentage = health / max_health;
|
||||||
|
end
|
||||||
|
|
||||||
|
monster.is_health_initialized = true;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.draw(monster, cached_config, position_on_screen, opacity_scale)
|
function this.draw(monster, cached_config, position_on_screen, opacity_scale)
|
||||||
@@ -249,7 +270,7 @@ function this.init_list()
|
|||||||
this.list = {};
|
this.list = {};
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -262,6 +283,10 @@ function this.init_module()
|
|||||||
ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
|
ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
|
||||||
ailment_buildup = require("MHR_Overlay.Monsters.ailment_buildup");
|
ailment_buildup = require("MHR_Overlay.Monsters.ailment_buildup");
|
||||||
ailment_buildup_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_buildup_UI_entity");
|
ailment_buildup_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_buildup_UI_entity");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ local keyboard;
|
|||||||
local customization_menu;
|
local customization_menu;
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -255,7 +256,7 @@ function this.draw(cached_config)
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -271,6 +272,10 @@ function this.init_module()
|
|||||||
|
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -14,6 +14,7 @@ local keyboard;
|
|||||||
local customization_menu;
|
local customization_menu;
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -386,7 +387,7 @@ function this.draw(cached_config)
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -401,6 +402,10 @@ function this.init_module()
|
|||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -13,6 +13,7 @@ local time_UI;
|
|||||||
local keyboard;
|
local keyboard;
|
||||||
local customization_menu;
|
local customization_menu;
|
||||||
local line_customization;
|
local line_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -149,15 +150,13 @@ function this.draw(bar_name, bar)
|
|||||||
bar.outline.offset, 0.1, -screen.height, screen.height, "%.1f");
|
bar.outline.offset, 0.1, -screen.height, screen.height, "%.1f");
|
||||||
bar_changed = bar_changed or changed;
|
bar_changed = bar_changed or changed;
|
||||||
|
|
||||||
|
|
||||||
changed, index = imgui.combo(cached_language.style,
|
changed, index = imgui.combo(cached_language.style,
|
||||||
utils.table.find_index(this.outline_styles,
|
utils.table.find_index(outline_styles, bar.outline.style),
|
||||||
bar.outline.style),
|
displayed_outline_styles);
|
||||||
this.displayed_outline_styles);
|
|
||||||
bar_changed = bar_changed or changed;
|
bar_changed = bar_changed or changed;
|
||||||
|
|
||||||
if changed then
|
if changed then
|
||||||
bar.outline.style = this.outline_styles[index];
|
bar.outline.style = outline_styles[index];
|
||||||
end
|
end
|
||||||
|
|
||||||
imgui.tree_pop();
|
imgui.tree_pop();
|
||||||
@@ -243,7 +242,7 @@ function this.draw(bar_name, bar)
|
|||||||
return bar_changed;
|
return bar_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -257,6 +256,10 @@ function this.init_module()
|
|||||||
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
line_customization = require("MHR_Overlay.UI.Customizations.line_customization");
|
line_customization = require("MHR_Overlay.UI.Customizations.line_customization");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ local keyboard;
|
|||||||
local customization_menu;
|
local customization_menu;
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -511,7 +512,7 @@ function this.draw(cached_config)
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -526,6 +527,10 @@ function this.init_module()
|
|||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -13,6 +13,7 @@ local keyboard;
|
|||||||
local customization_menu;
|
local customization_menu;
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -88,7 +89,7 @@ function this.draw(cached_config)
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -102,6 +103,10 @@ function this.init_module()
|
|||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -11,6 +11,7 @@ local part_names;
|
|||||||
local time_UI;
|
local time_UI;
|
||||||
local keyboard;
|
local keyboard;
|
||||||
local customization_menu;
|
local customization_menu;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -61,6 +62,17 @@ function this.draw(label_name, label)
|
|||||||
imgui.tree_pop();
|
imgui.tree_pop();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if label.include ~= nil then
|
||||||
|
if imgui.tree_node(cached_language.include) then
|
||||||
|
for include_name, include in pairs(label.include) do
|
||||||
|
changed, label.include[include_name] = imgui.checkbox(cached_language[include_name], label.include[include_name]);
|
||||||
|
label_changed = label_changed or changed;
|
||||||
|
end
|
||||||
|
|
||||||
|
imgui.tree_pop();
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if imgui.tree_node(cached_language.offset) then
|
if imgui.tree_node(cached_language.offset) then
|
||||||
changed, label.offset.x = imgui.drag_float(cached_language.x, label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
|
changed, label.offset.x = imgui.drag_float(cached_language.x, label.offset.x, 0.1, -screen.width, screen.width, "%.1f");
|
||||||
label_changed = label_changed or changed;
|
label_changed = label_changed or changed;
|
||||||
@@ -79,8 +91,7 @@ function this.draw(label_name, label)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if imgui.tree_node(cached_language.shadow) then
|
if imgui.tree_node(cached_language.shadow) then
|
||||||
changed, label.shadow.visibility = imgui.checkbox(cached_language
|
changed, label.shadow.visibility = imgui.checkbox(cached_language.visible, label.shadow.visibility);
|
||||||
.visible, label.shadow.visibility);
|
|
||||||
label_changed = label_changed or changed;
|
label_changed = label_changed or changed;
|
||||||
|
|
||||||
if imgui.tree_node(cached_language.offset) then
|
if imgui.tree_node(cached_language.offset) then
|
||||||
@@ -112,7 +123,7 @@ function this.draw(label_name, label)
|
|||||||
return label_changed;
|
return label_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -124,6 +135,10 @@ function this.init_module()
|
|||||||
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
||||||
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ local part_names;
|
|||||||
local time_UI;
|
local time_UI;
|
||||||
local keyboard;
|
local keyboard;
|
||||||
local customization_menu;
|
local customization_menu;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
@@ -81,7 +82,7 @@ function this.draw(cached_config)
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -93,9 +94,10 @@ function this.init_module()
|
|||||||
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
||||||
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
|
|
||||||
health_customization = require("MHR_Overlay.UI.Customizations.health_customization");
|
health_customization = require("MHR_Overlay.UI.Customizations.health_customization");
|
||||||
stamina_customization = require("MHR_Overlay.UI.Customizations.stamina_customization");
|
stamina_customization = require("MHR_Overlay.UI.Customizations.stamina_customization");
|
||||||
rage_customization = require("MHR_Overlay.UI.Customizations.rage_customization");
|
rage_customization = require("MHR_Overlay.UI.Customizations.rage_customization");
|
||||||
@@ -104,4 +106,7 @@ function this.init_module()
|
|||||||
ailment_buildups_customization = require("MHR_Overlay.UI.Customizations.ailment_buildups_customization");
|
ailment_buildups_customization = require("MHR_Overlay.UI.Customizations.ailment_buildups_customization");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -11,6 +11,7 @@ local part_names;
|
|||||||
local time_UI;
|
local time_UI;
|
||||||
local keyboard;
|
local keyboard;
|
||||||
local customization_menu;
|
local customization_menu;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -95,7 +96,7 @@ function this.draw(line_name, line)
|
|||||||
return line_changed;
|
return line_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -107,6 +108,10 @@ function this.init_module()
|
|||||||
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
||||||
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ local keyboard;
|
|||||||
local customization_menu;
|
local customization_menu;
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -92,16 +93,16 @@ function this.draw(cached_config)
|
|||||||
|
|
||||||
config_changed = config_changed or changed;
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
--[[changed, cached_config.buff_UI = imgui.checkbox(
|
changed, cached_config.buff_UI = imgui.checkbox(
|
||||||
language.current_language.customization_menu.buff_UI,
|
language.current_language.customization_menu.buff_UI,
|
||||||
cached_config.buff_UI);
|
cached_config.buff_UI);
|
||||||
|
|
||||||
config_changed = config_changed or changed;]]
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -113,6 +114,10 @@ function this.init_module()
|
|||||||
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
||||||
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -13,6 +13,7 @@ local keyboard;
|
|||||||
local customization_menu;
|
local customization_menu;
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -91,7 +92,7 @@ function this.draw(cached_config)
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -105,6 +106,10 @@ function this.init_module()
|
|||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -13,6 +13,7 @@ local keyboard;
|
|||||||
local customization_menu;
|
local customization_menu;
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -91,7 +92,7 @@ function this.draw(cached_config)
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -105,6 +106,10 @@ function this.init_module()
|
|||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -3,7 +3,15 @@ local this = {};
|
|||||||
local buff_UI_entity;
|
local buff_UI_entity;
|
||||||
local config;
|
local config;
|
||||||
local buffs;
|
local buffs;
|
||||||
|
local consumables;
|
||||||
|
local melody_effects;
|
||||||
|
local endemic_life_buff;
|
||||||
local screen;
|
local screen;
|
||||||
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
local skills;
|
||||||
|
local dangos;
|
||||||
|
local abnormal_statuses;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -43,17 +51,69 @@ function this.draw()
|
|||||||
|
|
||||||
local displayed_buffs = {};
|
local displayed_buffs = {};
|
||||||
|
|
||||||
for _, buff in pairs(buffs.list) do
|
for key, consumable in pairs(consumables.list) do
|
||||||
|
|
||||||
if not buff.is_active then
|
if not consumable.is_active then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(displayed_buffs, buff);
|
table.insert(displayed_buffs, consumable);
|
||||||
|
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for _, melody_effect in pairs(melody_effects.list) do
|
||||||
|
|
||||||
|
if not melody_effect.is_active then
|
||||||
|
goto continue2;
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(displayed_buffs, melody_effect);
|
||||||
|
|
||||||
|
::continue2::
|
||||||
|
end
|
||||||
|
|
||||||
|
for key, endemic_life_buff in pairs(endemic_life_buff.list) do
|
||||||
|
if not endemic_life_buff.is_active then
|
||||||
|
goto continue3;
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(displayed_buffs, endemic_life_buff);
|
||||||
|
|
||||||
|
::continue3::
|
||||||
|
end
|
||||||
|
|
||||||
|
for key, skill in pairs(skills.list) do
|
||||||
|
if not skill.is_active then
|
||||||
|
goto continue4;
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(displayed_buffs, skill);
|
||||||
|
|
||||||
|
::continue4::
|
||||||
|
end
|
||||||
|
|
||||||
|
for key, dango_buff in pairs(dangos.list) do
|
||||||
|
if not dango_buff.is_active then
|
||||||
|
goto continue5;
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(displayed_buffs, dango_buff);
|
||||||
|
|
||||||
|
::continue5::
|
||||||
|
end
|
||||||
|
|
||||||
|
for key, abnormal_status in pairs(abnormal_statuses.list) do
|
||||||
|
if not abnormal_status.is_active then
|
||||||
|
goto continue5;
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(displayed_buffs, abnormal_status);
|
||||||
|
|
||||||
|
::continue5::
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- sort
|
-- sort
|
||||||
if cached_config.sorting.type == "Name" then
|
if cached_config.sorting.type == "Name" then
|
||||||
if cached_config.sorting.reversed_order then
|
if cached_config.sorting.reversed_order then
|
||||||
@@ -87,15 +147,13 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
local position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
||||||
|
|
||||||
-- draw
|
-- draw
|
||||||
for _, buff in ipairs(displayed_buffs) do
|
for _, buff in ipairs(displayed_buffs) do
|
||||||
|
|
||||||
if not buff.is_active then
|
if not buff.is_active then
|
||||||
goto continue2
|
goto continue3;
|
||||||
end
|
end
|
||||||
|
|
||||||
buffs.draw(buff, buff.buff_UI, position_on_screen, 1);
|
buffs.draw(buff, buff.buff_UI, position_on_screen, 1);
|
||||||
@@ -106,13 +164,15 @@ function this.draw()
|
|||||||
position_on_screen.y = position_on_screen.y + cached_config.spacing.y * global_scale_modifier;
|
position_on_screen.y = position_on_screen.y + cached_config.spacing.y * global_scale_modifier;
|
||||||
end
|
end
|
||||||
|
|
||||||
::continue2::
|
::continue3::
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||||
|
consumables = require("MHR_Overlay.Buffs.consumables");
|
||||||
|
melody_effects = require("MHR_Overlay.Buffs.melody_effects");
|
||||||
buffs = require("MHR_Overlay.Buffs.buffs");
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
--singletons = require("MHR_Overlay.Game_Handler.singletons");
|
--singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -122,6 +182,15 @@ function this.init_module()
|
|||||||
--quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
--quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
--drawing = require("MHR_Overlay.UI.drawing");
|
--drawing = require("MHR_Overlay.UI.drawing");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
endemic_life_buff = require("MHR_Overlay.Buffs.endemic_life_buffs");
|
||||||
|
skills = require("MHR_Overlay.Buffs.skills");
|
||||||
|
dangos = require("MHR_Overlay.Buffs.dangos");
|
||||||
|
abnormal_statuses = require("MHR_Overlay.Buffs.abnormal_statuses");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -10,6 +10,7 @@ local screen;
|
|||||||
local drawing;
|
local drawing;
|
||||||
local language;
|
local language;
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -46,17 +47,6 @@ local package = package;
|
|||||||
this.last_displayed_players = {};
|
this.last_displayed_players = {};
|
||||||
this.freeze_displayed_players = false;
|
this.freeze_displayed_players = false;
|
||||||
|
|
||||||
local lobby_manager_type_def = sdk.find_type_definition("snow.LobbyManager");
|
|
||||||
local quest_hunter_info_field = lobby_manager_type_def:get_field("_questHunterInfo");
|
|
||||||
local hunter_info_field = lobby_manager_type_def:get_field("_hunterInfo");
|
|
||||||
|
|
||||||
local quest_hunter_info_type_def = quest_hunter_info_field:get_type();
|
|
||||||
local get_count_method = quest_hunter_info_type_def:get_method("get_Count");
|
|
||||||
local get_item_method = quest_hunter_info_type_def:get_method("get_Item");
|
|
||||||
|
|
||||||
local hunter_info_type_def = sdk.find_type_definition("snow.LobbyManager.HunterInfo");
|
|
||||||
local member_index_field = hunter_info_type_def:get_field("_memberIndex");
|
|
||||||
|
|
||||||
function this.draw()
|
function this.draw()
|
||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
local global_scale_modifier = config.current_config.global_settings.modifiers.global_scale_modifier;
|
local global_scale_modifier = config.current_config.global_settings.modifiers.global_scale_modifier;
|
||||||
@@ -116,32 +106,32 @@ function this.draw()
|
|||||||
for _, player in ipairs(quest_players) do
|
for _, player in ipairs(quest_players) do
|
||||||
|
|
||||||
if player.display.total_damage == 0 and cached_config.settings.hide_player_if_player_damage_is_zero then
|
if player.display.total_damage == 0 and cached_config.settings.hide_player_if_player_damage_is_zero then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if player.type == players.types.myself then
|
if player.type == players.types.myself then
|
||||||
if cached_config.settings.hide_myself then
|
if cached_config.settings.hide_myself then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif player.type == players.types.servant then
|
elseif player.type == players.types.servant then
|
||||||
if cached_config.settings.hide_servants then
|
if cached_config.settings.hide_servants then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif player.type == players.types.other_player then
|
elseif player.type == players.types.other_player then
|
||||||
if cached_config.settings.hide_other_players then
|
if cached_config.settings.hide_other_players then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif player.type == players.types.my_otomo then
|
elseif player.type == players.types.my_otomo then
|
||||||
if not cached_config.settings.show_my_otomos_separately then
|
if not cached_config.settings.show_my_otomos_separately then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif player.type == players.types.other_player_otomo then
|
elseif player.type == players.types.other_player_otomo then
|
||||||
if not cached_config.settings.show_other_player_otomos_separately then
|
if not cached_config.settings.show_other_player_otomos_separately then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
elseif player.type == players.types.servant_otomo then
|
elseif player.type == players.types.servant_otomo then
|
||||||
if not cached_config.settings.show_servant_otomos_separately then
|
if not cached_config.settings.show_servant_otomos_separately then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -154,7 +144,6 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
::continue::
|
::continue::
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- draw total damage
|
-- draw total damage
|
||||||
@@ -175,7 +164,7 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -186,6 +175,10 @@ function this.init_module()
|
|||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ local health_UI_entity;
|
|||||||
local stamina_UI_entity;
|
local stamina_UI_entity;
|
||||||
local rage_UI_entity;
|
local rage_UI_entity;
|
||||||
local env_creature;
|
local env_creature;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -44,8 +45,6 @@ local os = os;
|
|||||||
local ValueType = ValueType;
|
local ValueType = ValueType;
|
||||||
local package = package;
|
local package = package;
|
||||||
|
|
||||||
local enemy_manager_type_def = sdk.find_type_definition("snow.enemy.EnemyManager");
|
|
||||||
|
|
||||||
function this.draw()
|
function this.draw()
|
||||||
if singletons.enemy_manager == nil then
|
if singletons.enemy_manager == nil then
|
||||||
return;
|
return;
|
||||||
@@ -55,13 +54,12 @@ function this.draw()
|
|||||||
local global_scale_modifier = config.current_config.global_settings.modifiers.global_scale_modifier;
|
local global_scale_modifier = config.current_config.global_settings.modifiers.global_scale_modifier;
|
||||||
|
|
||||||
for REcreature, creature in pairs(env_creature.list) do
|
for REcreature, creature in pairs(env_creature.list) do
|
||||||
|
|
||||||
if cached_config.settings.max_distance == 0 then
|
if cached_config.settings.max_distance == 0 then
|
||||||
break
|
break;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.hide_inactive_creatures and creature.is_inactive then
|
if cached_config.settings.hide_inactive_creatures and creature.is_inactive then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local position_on_screen = {};
|
local position_on_screen = {};
|
||||||
@@ -72,7 +70,7 @@ function this.draw()
|
|||||||
position_on_screen = draw.world_to_screen(creature.position + world_offset);
|
position_on_screen = draw.world_to_screen(creature.position + world_offset);
|
||||||
|
|
||||||
if position_on_screen == nil then
|
if position_on_screen == nil then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
position_on_screen.x = position_on_screen.x + cached_config.viewport_offset.x * global_scale_modifier;
|
position_on_screen.x = position_on_screen.x + cached_config.viewport_offset.x * global_scale_modifier;
|
||||||
@@ -82,7 +80,7 @@ function this.draw()
|
|||||||
|
|
||||||
local opacity_scale = 1;
|
local opacity_scale = 1;
|
||||||
if creature.distance > cached_config.settings.max_distance then
|
if creature.distance > cached_config.settings.max_distance then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.opacity_falloff then
|
if cached_config.settings.opacity_falloff then
|
||||||
@@ -94,7 +92,7 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -106,6 +104,10 @@ function this.init_module()
|
|||||||
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
||||||
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
||||||
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ local drawing;
|
|||||||
local health_UI_entity;
|
local health_UI_entity;
|
||||||
local stamina_UI_entity;
|
local stamina_UI_entity;
|
||||||
local rage_UI_entity;
|
local rage_UI_entity;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -68,37 +69,26 @@ function this.draw(dynamic_enabled, static_enabled, highlighted_enabled)
|
|||||||
and (cached_config.highlighted.auto_highlight.mode == "Closest" or cached_config.highlighted.auto_highlight.mode == "Furthest")
|
and (cached_config.highlighted.auto_highlight.mode == "Closest" or cached_config.highlighted.auto_highlight.mode == "Furthest")
|
||||||
);
|
);
|
||||||
|
|
||||||
local highlighted_id = -1;
|
|
||||||
local monster_id_shift = 0;
|
local monster_id_shift = 0;
|
||||||
local highlighted_monster = nil;
|
local highlighted_monster = nil;
|
||||||
|
|
||||||
if not cached_config.highlighted.auto_highlight.enabled and singletons.gui_manager ~= nil then
|
|
||||||
local gui_hud_target_camera = get_tg_camera_method:call(singletons.gui_manager);
|
|
||||||
if gui_hud_target_camera ~= nil then
|
|
||||||
highlighted_id = get_targeting_enemy_index_field:get_data(gui_hud_target_camera);
|
|
||||||
|
|
||||||
if highlighted_id == nil then
|
|
||||||
highlighted_id = -1;
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local enemy_count = get_boss_enemy_count_method:call(singletons.enemy_manager);
|
local enemy_count = get_boss_enemy_count_method:call(singletons.enemy_manager);
|
||||||
if enemy_count == nil then
|
if enemy_count == nil then
|
||||||
|
error_handler.report("large_monster_UI.draw", "Failed to access Data: enemy_count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, enemy_count - 1 do
|
for i = 0, enemy_count - 1 do
|
||||||
local enemy = get_boss_enemy_method:call(singletons.enemy_manager, i);
|
local enemy = get_boss_enemy_method:call(singletons.enemy_manager, i);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
customization_menu.status = "No enemy";
|
error_handler.report("large_monster_UI.draw", "Failed to access Data: enemy No. " .. tostring(i));
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local monster = large_monster.list[enemy];
|
local monster = large_monster.get_monster(enemy);
|
||||||
if monster == nil then
|
if monster == nil then
|
||||||
customization_menu.status = "No large monster entry";
|
error_handler.report("large_monster_UI.draw", "Failed to create Large Monster Entry No. " .. tostring(i));
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if update_distance then
|
if update_distance then
|
||||||
@@ -143,11 +133,10 @@ function this.draw(dynamic_enabled, static_enabled, highlighted_enabled)
|
|||||||
if monster.dead_or_captured or not monster.is_disp_icon_mini_map then
|
if monster.dead_or_captured or not monster.is_disp_icon_mini_map then
|
||||||
monster_id_shift = monster_id_shift + 1;
|
monster_id_shift = monster_id_shift + 1;
|
||||||
|
|
||||||
elseif i == highlighted_id + monster_id_shift then
|
elseif i == large_monster.highlighted_id + monster_id_shift then
|
||||||
highlighted_monster = monster;
|
highlighted_monster = monster;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(displayed_monsters, monster);
|
table.insert(displayed_monsters, monster);
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
@@ -155,20 +144,21 @@ function this.draw(dynamic_enabled, static_enabled, highlighted_enabled)
|
|||||||
if dynamic_enabled then
|
if dynamic_enabled then
|
||||||
local success = pcall(this.draw_dynamic, displayed_monsters, highlighted_monster, cached_config);
|
local success = pcall(this.draw_dynamic, displayed_monsters, highlighted_monster, cached_config);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Dynamic Large Monster drawing function threw an exception");
|
error_handler.report("large_monster_UI.draw", "Dynamic Large Monster drawing function threw an exception");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if highlighted_enabled then
|
if highlighted_enabled then
|
||||||
local success = pcall(this.draw_highlighted, highlighted_monster, cached_config);
|
local success = pcall(this.draw_highlighted, highlighted_monster, cached_config);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Highlighted Large Monster drawing function threw an exception");
|
error_handler.report("large_monster_UI.draw", "Highlighted Large Monster drawing function threw an exception");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if static_enabled then
|
if static_enabled then
|
||||||
local success = pcall(this.draw_static, displayed_monsters, highlighted_monster, cached_config);
|
local success = pcall(this.draw_static, displayed_monsters, highlighted_monster, cached_config);
|
||||||
if not success then
|
if not success then
|
||||||
customization_menu.status = string.format("[%s] Static Large Monster drawing function threw an exception");
|
error_handler.report("large_monster_UI.draw", "Static Large Monster drawing function threw an exception");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -180,24 +170,24 @@ function this.draw_dynamic(displayed_monsters, highlighted_monster, cached_confi
|
|||||||
local i = 0;
|
local i = 0;
|
||||||
for _, monster in ipairs(displayed_monsters) do
|
for _, monster in ipairs(displayed_monsters) do
|
||||||
if cached_config.settings.max_distance == 0 then
|
if cached_config.settings.max_distance == 0 then
|
||||||
break
|
break;
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster.is_stealth then
|
if monster.is_stealth then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
|
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster == highlighted_monster then
|
if monster == highlighted_monster then
|
||||||
if not cached_config.settings.render_highlighted_monster then
|
if not cached_config.settings.render_highlighted_monster then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if not cached_config.settings.render_not_highlighted_monsters then
|
if not cached_config.settings.render_not_highlighted_monsters then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -208,7 +198,7 @@ function this.draw_dynamic(displayed_monsters, highlighted_monster, cached_confi
|
|||||||
position_on_screen = draw.world_to_screen(monster.position + world_offset);
|
position_on_screen = draw.world_to_screen(monster.position + world_offset);
|
||||||
|
|
||||||
if position_on_screen == nil then
|
if position_on_screen == nil then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
position_on_screen.x = position_on_screen.x + cached_config.viewport_offset.x * global_scale_modifier;
|
position_on_screen.x = position_on_screen.x + cached_config.viewport_offset.x * global_scale_modifier;
|
||||||
@@ -216,7 +206,7 @@ function this.draw_dynamic(displayed_monsters, highlighted_monster, cached_confi
|
|||||||
|
|
||||||
local opacity_scale = 1;
|
local opacity_scale = 1;
|
||||||
if monster.distance > cached_config.settings.max_distance then
|
if monster.distance > cached_config.settings.max_distance then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.opacity_falloff then
|
if cached_config.settings.opacity_falloff then
|
||||||
@@ -280,16 +270,16 @@ function this.draw_static(displayed_monsters, highlighted_monster, cached_config
|
|||||||
local i = 0;
|
local i = 0;
|
||||||
for _, monster in ipairs(displayed_monsters) do
|
for _, monster in ipairs(displayed_monsters) do
|
||||||
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
|
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if monster == highlighted_monster then
|
if monster == highlighted_monster then
|
||||||
if not cached_config.settings.render_highlighted_monster then
|
if not cached_config.settings.render_highlighted_monster then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if not cached_config.settings.render_not_highlighted_monsters then
|
if not cached_config.settings.render_not_highlighted_monsters then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -327,7 +317,7 @@ function this.draw_highlighted(monster, cached_config)
|
|||||||
large_monster.draw(monster, "highlighted", cached_config, position_on_screen, 1);
|
large_monster.draw(monster, "highlighted", cached_config, position_on_screen, 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -338,6 +328,10 @@ function this.init_module()
|
|||||||
health_UI_entity = require("MHR_Overlay.UI.UI_Entities.health_UI_entity");
|
health_UI_entity = require("MHR_Overlay.UI.UI_Entities.health_UI_entity");
|
||||||
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
||||||
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ local players;
|
|||||||
local drawing;
|
local drawing;
|
||||||
local health_UI_entity;
|
local health_UI_entity;
|
||||||
local stamina_UI_entity;
|
local stamina_UI_entity;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -55,28 +56,10 @@ function this.draw()
|
|||||||
|
|
||||||
local displayed_monsters = {};
|
local displayed_monsters = {};
|
||||||
|
|
||||||
local enemy_count = get_zako_enemy_count_method:call(singletons.enemy_manager);
|
for enemy, monster in pairs(small_monster.list) do
|
||||||
if enemy_count == nil then
|
|
||||||
customization_menu.status = "No enemy count";
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
for i = 0, enemy_count - 1 do
|
|
||||||
local enemy = get_zako_enemy_method:call(singletons.enemy_manager, i);
|
|
||||||
if enemy == nil then
|
|
||||||
customization_menu.status = "No enemy";
|
|
||||||
goto continue
|
|
||||||
end
|
|
||||||
|
|
||||||
local monster = small_monster.list[enemy];
|
|
||||||
if monster == nil then
|
|
||||||
customization_menu.status = "No small monster entry";
|
|
||||||
goto continue
|
|
||||||
end
|
|
||||||
|
|
||||||
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
|
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end;
|
||||||
|
|
||||||
table.insert(displayed_monsters, monster);
|
table.insert(displayed_monsters, monster);
|
||||||
::continue::
|
::continue::
|
||||||
@@ -144,7 +127,7 @@ function this.draw()
|
|||||||
position_on_screen = draw.world_to_screen(monster.position + world_offset);
|
position_on_screen = draw.world_to_screen(monster.position + world_offset);
|
||||||
|
|
||||||
if position_on_screen == nil then
|
if position_on_screen == nil then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
position_on_screen.x = position_on_screen.x + cached_config.dynamic_positioning.viewport_offset.x;
|
position_on_screen.x = position_on_screen.x + cached_config.dynamic_positioning.viewport_offset.x;
|
||||||
@@ -159,9 +142,6 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local opacity_scale = 1;
|
local opacity_scale = 1;
|
||||||
if cached_config.dynamic_positioning.enabled then
|
if cached_config.dynamic_positioning.enabled then
|
||||||
if cached_config.dynamic_positioning.max_distance == 0 then
|
if cached_config.dynamic_positioning.max_distance == 0 then
|
||||||
@@ -169,7 +149,7 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if monster.distance > cached_config.dynamic_positioning.max_distance then
|
if monster.distance > cached_config.dynamic_positioning.max_distance then
|
||||||
goto continue
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.dynamic_positioning.opacity_falloff then
|
if cached_config.dynamic_positioning.opacity_falloff then
|
||||||
@@ -177,8 +157,6 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
small_monster.draw(monster, cached_config, position_on_screen, opacity_scale);
|
small_monster.draw(monster, cached_config, position_on_screen, opacity_scale);
|
||||||
|
|
||||||
i = i + 1;
|
i = i + 1;
|
||||||
@@ -186,7 +164,7 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
singletons = require("MHR_Overlay.Game_Handler.singletons");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||||
@@ -196,6 +174,10 @@ function this.init_module()
|
|||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
health_UI_entity = require("MHR_Overlay.UI.UI_Entities.health_UI_entity");
|
health_UI_entity = require("MHR_Overlay.UI.UI_Entities.health_UI_entity");
|
||||||
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ local screen;
|
|||||||
local config;
|
local config;
|
||||||
local drawing;
|
local drawing;
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -62,13 +63,16 @@ function this.init_UI()
|
|||||||
this.label.offset.y = this.label.offset.y * global_scale_modifier;
|
this.label.offset.y = this.label.offset.y * global_scale_modifier;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
time = require("MHR_Overlay.Game_Handler.time");
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.init_UI()
|
this.init_UI()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local config;
|
|||||||
local utils;
|
local utils;
|
||||||
local drawing;
|
local drawing;
|
||||||
local language;
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -118,11 +119,15 @@ function this.draw(ailment, ailment_UI, cached_config, position_on_screen, opaci
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ local drawing;
|
|||||||
local config;
|
local config;
|
||||||
local players;
|
local players;
|
||||||
local language;
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -117,12 +118,16 @@ function this.draw(player, player_buildup, ailment_buildup_UI, cached_config, po
|
|||||||
drawing.draw_label(ailment_buildup_UI.buildup_percentage_label, position_on_screen, opacity_scale, 100 * player_buildup.buildup_share);
|
drawing.draw_label(ailment_buildup_UI.buildup_percentage_label, position_on_screen, opacity_scale, 100 * player_buildup.buildup_share);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
players = require("MHR_Overlay.Damage_Meter.players");
|
players = require("MHR_Overlay.Damage_Meter.players");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ local this = {};
|
|||||||
local config;
|
local config;
|
||||||
local utils;
|
local utils;
|
||||||
local drawing;
|
local drawing;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -302,10 +303,14 @@ function this.draw(part, part_UI, cached_config, position_on_screen, opacity_sca
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local config;
|
|||||||
local utils;
|
local utils;
|
||||||
local drawing;
|
local drawing;
|
||||||
local language;
|
local language;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -72,7 +73,12 @@ function this.draw(buff, buff_UI, position_on_screen, opacity_scale)
|
|||||||
drawing.draw_bar(buff_UI.bar, position_on_screen, opacity_scale, 1);
|
drawing.draw_bar(buff_UI.bar, position_on_screen, opacity_scale, 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
drawing.draw_label(buff_UI.name_label, position_on_screen, opacity_scale, buff.name);
|
local buff_name = buff.name;
|
||||||
|
if cached_config.name_label.include.skill_level and buff.level > 1 then
|
||||||
|
buff_name = string.format("%s %d", buff_name, buff.level);
|
||||||
|
end
|
||||||
|
|
||||||
|
drawing.draw_label(buff_UI.name_label, position_on_screen, opacity_scale, buff_name);
|
||||||
|
|
||||||
if not buff.is_infinite then
|
if not buff.is_infinite then
|
||||||
drawing.draw_label(buff_UI.timer_label, position_on_screen, opacity_scale, buff.minutes_left, buff.seconds_left);
|
drawing.draw_label(buff_UI.timer_label, position_on_screen, opacity_scale, buff.minutes_left, buff.seconds_left);
|
||||||
@@ -81,11 +87,15 @@ function this.draw(buff, buff_UI, position_on_screen, opacity_scale)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -7,6 +7,7 @@ local players;
|
|||||||
local language;
|
local language;
|
||||||
local quest_status;
|
local quest_status;
|
||||||
local non_players;
|
local non_players;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -233,7 +234,7 @@ function this.draw(player, position_on_screen, opacity_scale, top_damage, top_dp
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -241,6 +242,10 @@ function this.init_module()
|
|||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local utils;
|
|||||||
local drawing;
|
local drawing;
|
||||||
local language;
|
local language;
|
||||||
local config;
|
local config;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -91,11 +92,15 @@ function this.draw(monster, health_UI, position_on_screen, opacity_scale)
|
|||||||
drawing.draw_label(health_UI.percentage_label, position_on_screen, opacity_scale, 100 * monster.health_percentage);
|
drawing.draw_label(health_UI.percentage_label, position_on_screen, opacity_scale, 100 * monster.health_percentage);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local utils;
|
|||||||
local drawing;
|
local drawing;
|
||||||
local language;
|
local language;
|
||||||
local config;
|
local config;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -105,11 +106,15 @@ function this.draw(monster, rage_UI, position_on_screen, opacity_scale)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local utils;
|
|||||||
local drawing;
|
local drawing;
|
||||||
local language;
|
local language;
|
||||||
local config;
|
local config;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -102,11 +103,15 @@ function this.draw(monster, stamina_UI, position_on_screen, opacity_scale)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
drawing = require("MHR_Overlay.UI.drawing");
|
drawing = require("MHR_Overlay.UI.drawing");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ local keyboard;
|
|||||||
local non_players;
|
local non_players;
|
||||||
local quest_status;
|
local quest_status;
|
||||||
local buffs;
|
local buffs;
|
||||||
|
local error_handler;
|
||||||
|
local time;
|
||||||
|
|
||||||
local label_customization;
|
local label_customization;
|
||||||
local bar_customization;
|
local bar_customization;
|
||||||
@@ -63,8 +65,6 @@ local package = package;
|
|||||||
|
|
||||||
this.font = nil;
|
this.font = nil;
|
||||||
this.full_font_range = {0x1, 0xFFFF, 0};
|
this.full_font_range = {0x1, 0xFFFF, 0};
|
||||||
this.is_opened = false;
|
|
||||||
this.status = "OK";
|
|
||||||
|
|
||||||
this.window_position = Vector2f.new(480, 200);
|
this.window_position = Vector2f.new(480, 200);
|
||||||
this.window_pivot = Vector2f.new(0, 0);
|
this.window_pivot = Vector2f.new(0, 0);
|
||||||
@@ -325,21 +325,33 @@ function this.init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function this.draw()
|
function this.draw()
|
||||||
imgui.set_next_window_pos(this.window_position, 1 << 3, this.window_pivot);
|
if not config.current_config.customization_menu.visible then
|
||||||
imgui.set_next_window_size(this.window_size, 1 << 3);
|
|
||||||
|
|
||||||
imgui.push_font(this.font);
|
|
||||||
|
|
||||||
this.is_opened = imgui.begin_window(
|
|
||||||
language.current_language.customization_menu.mod_name .. " v" .. config.current_config.version, this.is_opened,
|
|
||||||
this.window_flags);
|
|
||||||
|
|
||||||
if not this.is_opened then
|
|
||||||
imgui.pop_font();
|
|
||||||
imgui.end_window();
|
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local window_position = Vector2f.new(config.current_config.customization_menu.position.x, config.current_config.customization_menu.position.y);
|
||||||
|
local window_pivot = Vector2f.new(config.current_config.customization_menu.pivot.x, config.current_config.customization_menu.pivot.y);
|
||||||
|
local window_size = Vector2f.new(config.current_config.customization_menu.size.width, config.current_config.customization_menu.size.height);
|
||||||
|
|
||||||
|
imgui.set_next_window_pos(window_position, 1 << 3, window_pivot);
|
||||||
|
imgui.set_next_window_size(window_size, 1 << 3);
|
||||||
|
|
||||||
|
imgui.push_font(this.font);
|
||||||
|
|
||||||
|
config.current_config.customization_menu.visible = imgui.begin_window(
|
||||||
|
string.format("%s v%s", language.current_language.customization_menu.mod_name, config.current_config.version),
|
||||||
|
config.current_config.customization_menu.visible,
|
||||||
|
this.window_flags);
|
||||||
|
|
||||||
|
|
||||||
|
if not config.current_config.customization_menu.visible then
|
||||||
|
imgui.pop_font();
|
||||||
|
imgui.end_window();
|
||||||
|
config.save_current();
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
local window_changed = false;
|
||||||
local config_changed = false;
|
local config_changed = false;
|
||||||
local language_changed = false;
|
local language_changed = false;
|
||||||
local modifiers_changed = false;
|
local modifiers_changed = false;
|
||||||
@@ -353,11 +365,27 @@ function this.draw()
|
|||||||
local damage_meter_UI_changed = false;
|
local damage_meter_UI_changed = false;
|
||||||
local endemic_life_UI_changed = false;
|
local endemic_life_UI_changed = false;
|
||||||
local buff_UI_changed = false;
|
local buff_UI_changed = false;
|
||||||
|
local debug_changed = false;
|
||||||
local apply_font_requested = false;
|
local apply_font_requested = false;
|
||||||
|
|
||||||
local status_string = tostring(this.status);
|
local new_window_position = imgui.get_window_pos();
|
||||||
|
if window_position.x ~= new_window_position.x or window_position.y ~= new_window_position.y then
|
||||||
|
window_changed = window_changed or true;
|
||||||
|
|
||||||
imgui.text(language.current_language.customization_menu.status .. ": " .. status_string);
|
config.current_config.customization_menu.position.x = new_window_position.x;
|
||||||
|
config.current_config.customization_menu.position.y = new_window_position.y;
|
||||||
|
end
|
||||||
|
|
||||||
|
local new_window_size = imgui.get_window_size();
|
||||||
|
if window_size.x ~= new_window_size.x or window_size.y ~= new_window_size.y then
|
||||||
|
window_changed = window_changed or true;
|
||||||
|
|
||||||
|
config.current_config.customization_menu.size.width = new_window_size.x;
|
||||||
|
config.current_config.customization_menu.size.height = new_window_size.y;
|
||||||
|
end
|
||||||
|
|
||||||
|
local new_window_size = imgui.get_window_size();
|
||||||
|
window_changed = window_changed or new_window_size.x ~= window_size.x or new_window_size.y ~= window_size.y;
|
||||||
|
|
||||||
config_changed, apply_font_requested = this.draw_config();
|
config_changed, apply_font_requested = this.draw_config();
|
||||||
modules_changed = this.draw_modules();
|
modules_changed = this.draw_modules();
|
||||||
@@ -375,7 +403,10 @@ function this.draw()
|
|||||||
time_UI_changed = this.draw_time_UI();
|
time_UI_changed = this.draw_time_UI();
|
||||||
damage_meter_UI_changed = this.draw_damage_meter_UI();
|
damage_meter_UI_changed = this.draw_damage_meter_UI();
|
||||||
endemic_life_UI_changed = this.draw_endemic_life_UI()
|
endemic_life_UI_changed = this.draw_endemic_life_UI()
|
||||||
--buff_UI_changed = customization_menu.draw_buff_UI();
|
buff_UI_changed = this.draw_buff_UI();
|
||||||
|
|
||||||
|
imgui.new_line();
|
||||||
|
debug_changed = this.draw_debug();
|
||||||
|
|
||||||
imgui.pop_font();
|
imgui.pop_font();
|
||||||
imgui.end_window();
|
imgui.end_window();
|
||||||
@@ -434,22 +465,23 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[if buff_UI_changed or modifiers_changed or config_changed then
|
if buff_UI_changed or modifiers_changed or config_changed then
|
||||||
for _, buff in pairs(buffs.list) do
|
for _, buff in pairs(buffs.list) do
|
||||||
buffs.init_UI(buff);
|
buffs.init_UI(buff);
|
||||||
end
|
end
|
||||||
end]]
|
end
|
||||||
|
|
||||||
if this.menu_font_changed and (apply_font_requested or config_changed) then
|
if this.menu_font_changed and (apply_font_requested or config_changed) then
|
||||||
this.menu_font_changed = false;
|
this.menu_font_changed = false;
|
||||||
this.reload_font();
|
this.reload_font();
|
||||||
end
|
end
|
||||||
|
|
||||||
if modules_changed or global_settings_changed or small_monster_UI_changed or large_monster_dynamic_UI_changed or
|
if window_changed or modules_changed or global_settings_changed or small_monster_UI_changed or large_monster_dynamic_UI_changed or
|
||||||
large_monster_static_UI_changed or large_monster_highlighted_UI_changed or time_UI_changed or damage_meter_UI_changed or
|
large_monster_static_UI_changed or large_monster_highlighted_UI_changed or time_UI_changed or damage_meter_UI_changed or
|
||||||
endemic_life_UI_changed or buff_UI_changed or modifiers_changed or config_changed then
|
endemic_life_UI_changed or buff_UI_changed or modifiers_changed or config_changed or debug_changed then
|
||||||
config.save_current();
|
config.save_current();
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.draw_config()
|
function this.draw_config()
|
||||||
@@ -569,9 +601,9 @@ function this.draw_modules()
|
|||||||
language.current_language.customization_menu.endemic_life_UI, config.current_config.endemic_life_UI.enabled);
|
language.current_language.customization_menu.endemic_life_UI, config.current_config.endemic_life_UI.enabled);
|
||||||
config_changed = config_changed or changed;
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
--[[changed, config.current_config.buff_UI.enabled = imgui.checkbox(
|
changed, config.current_config.buff_UI.enabled = imgui.checkbox(
|
||||||
language.current_language.customization_menu.buff_UI, config.current_config.buff_UI.enabled);
|
language.current_language.customization_menu.buff_UI, config.current_config.buff_UI.enabled);
|
||||||
config_changed = config_changed or changed;]]
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
imgui.tree_pop();
|
imgui.tree_pop();
|
||||||
end
|
end
|
||||||
@@ -1002,11 +1034,11 @@ function this.draw_global_settings(apply_font_requested, language_changed)
|
|||||||
|
|
||||||
config_changed = config_changed or changed;
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
--[[changed, cached_config.module_visibility.in_training_area.buff_UI = imgui.checkbox(
|
changed, cached_config.module_visibility.in_training_area.buff_UI = imgui.checkbox(
|
||||||
language.current_language.customization_menu.buff_UI,
|
language.current_language.customization_menu.buff_UI,
|
||||||
cached_config.module_visibility.in_training_area.buff_UI);
|
cached_config.module_visibility.in_training_area.buff_UI);
|
||||||
|
|
||||||
config_changed = config_changed or changed;]]
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
imgui.tree_pop();
|
imgui.tree_pop();
|
||||||
end
|
end
|
||||||
@@ -2142,7 +2174,7 @@ function this.draw_endemic_life_UI()
|
|||||||
end
|
end
|
||||||
|
|
||||||
changed = label_customization.draw(
|
changed = label_customization.draw(
|
||||||
language.current_language.customization_menu.creature_name_label, cached_config.creature_name_label.visibility);
|
language.current_language.customization_menu.creature_name_label, cached_config.creature_name_label);
|
||||||
|
|
||||||
config_changed = config_changed or changed;
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
@@ -2264,7 +2296,63 @@ function this.draw_buff_UI()
|
|||||||
return config_changed;
|
return config_changed;
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.draw_debug()
|
||||||
|
local cached_config = config.current_config.debug;
|
||||||
|
|
||||||
|
local changed = false;
|
||||||
|
local config_changed = false;
|
||||||
|
|
||||||
|
if imgui.tree_node(language.current_language.customization_menu.debug) then
|
||||||
|
|
||||||
|
imgui.text_colored(string.format("%s:", language.current_language.customization_menu.current_time), 0xFFAAAA66);
|
||||||
|
imgui.same_line();
|
||||||
|
imgui.text(string.format("%.3fs", time.total_elapsed_script_seconds));
|
||||||
|
|
||||||
|
if error_handler.is_empty then
|
||||||
|
imgui.text(language.current_language.customization_menu.everything_seems_to_be_ok);
|
||||||
|
else
|
||||||
|
for error_key, error in pairs(error_handler.list) do
|
||||||
|
|
||||||
|
imgui.button(string.format("%.3fs", error.time));
|
||||||
|
imgui.same_line();
|
||||||
|
imgui.text_colored(error_key, 0xFFAA66AA);
|
||||||
|
imgui.same_line();
|
||||||
|
imgui.text(error.message);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if imgui.tree_node(language.current_language.customization_menu.history) then
|
||||||
|
|
||||||
|
changed, cached_config.history_size = imgui.drag_int(
|
||||||
|
language.current_language.customization_menu.history_size, cached_config.history_size, 1, 0, 1024);
|
||||||
|
|
||||||
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
|
if changed then
|
||||||
|
error_handler.history = {};
|
||||||
|
end
|
||||||
|
|
||||||
|
for index, error in pairs(error_handler.history) do
|
||||||
|
imgui.text_colored(index, 0xFF66AA66);
|
||||||
|
imgui.same_line();
|
||||||
|
imgui.button(string.format("%.3fs", error.time));
|
||||||
|
imgui.same_line();
|
||||||
|
imgui.text_colored(error.key, 0xFFAA66AA);
|
||||||
|
imgui.same_line();
|
||||||
|
imgui.text(error.message);
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
imgui.tree_pop();
|
||||||
|
end
|
||||||
|
|
||||||
|
imgui.tree_pop();
|
||||||
|
end
|
||||||
|
|
||||||
|
return config_changed;
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_dependencies()
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
language = require("MHR_Overlay.Misc.language");
|
language = require("MHR_Overlay.Misc.language");
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
@@ -2279,6 +2367,8 @@ function this.init_module()
|
|||||||
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||||
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
buffs = require("MHR_Overlay.Buffs.buffs");
|
buffs = require("MHR_Overlay.Buffs.buffs");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
time = require("MHR_Overlay.Game_Handler.time");
|
||||||
|
|
||||||
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||||
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
bar_customization = require("MHR_Overlay.UI.Customizations.bar_customization");
|
||||||
@@ -2291,7 +2381,9 @@ function this.init_module()
|
|||||||
ailments_customization = require("MHR_Overlay.UI.Customizations.ailments_customization");
|
ailments_customization = require("MHR_Overlay.UI.Customizations.ailments_customization");
|
||||||
ailment_buildups_customization = require("MHR_Overlay.UI.Customizations.ailment_buildups_customization");
|
ailment_buildups_customization = require("MHR_Overlay.UI.Customizations.ailment_buildups_customization");
|
||||||
module_visibility_customization = require("MHR_Overlay.UI.Customizations.module_visibility_customization");
|
module_visibility_customization = require("MHR_Overlay.UI.Customizations.module_visibility_customization");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
this.init();
|
this.init();
|
||||||
this.reload_font();
|
this.reload_font();
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ local this = {};
|
|||||||
|
|
||||||
local config;
|
local config;
|
||||||
local utils;
|
local utils;
|
||||||
|
local error_handler;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -82,7 +83,7 @@ function this.limit_text_size(text, size_limit)
|
|||||||
limited_text = utils.unicode.sub(limited_text, 1, -5) .. "...";
|
limited_text = utils.unicode.sub(limited_text, 1, -5) .. "...";
|
||||||
|
|
||||||
if limited_text == old_limited_text then
|
if limited_text == old_limited_text then
|
||||||
break
|
break;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -376,9 +377,13 @@ function this.draw_capture_line(health_UI, position, opacity_scale, percentage)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_module()
|
function this.init_dependencies()
|
||||||
config = require("MHR_Overlay.Misc.config");
|
config = require("MHR_Overlay.Misc.config");
|
||||||
utils = require("MHR_Overlay.Misc.utils");
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
|
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.init_module()
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -18,25 +18,57 @@
|
|||||||
},
|
},
|
||||||
"ailments": {
|
"ailments": {
|
||||||
"blast": "Blast",
|
"blast": "Blast",
|
||||||
|
"blastblight": "Blastblight",
|
||||||
|
"bleeding": "Bleeding",
|
||||||
|
"bloodblight": "Bloodblight",
|
||||||
|
"bubbleblight": "Bubbleblight",
|
||||||
|
"defense_down": "Defense Down",
|
||||||
|
"dragonblight": "Dragonblight",
|
||||||
"dung_bomb": "Dung Bomb",
|
"dung_bomb": "Dung Bomb",
|
||||||
|
"engulfed": "Engulfed",
|
||||||
"exhaust": "Exhaust",
|
"exhaust": "Exhaust",
|
||||||
"fall_otomo_trap": "Fall Buddy Trap",
|
"fall_otomo_trap": "Fall Buddy Trap",
|
||||||
"fall_trap": "Fall Trap",
|
"fall_trap": "Fall Trap",
|
||||||
"fireblight": "Fireblight",
|
"fireblight": "Fireblight",
|
||||||
"flash": "Flash",
|
"flash": "Flash",
|
||||||
|
"frenzy": "Frenzy",
|
||||||
|
"frenzy_infection": "Frenzy Infection",
|
||||||
|
"frenzy_overcome": "Frenzy Overcome",
|
||||||
|
"frostblight": "Frostblight",
|
||||||
|
"hellfireblight": "Hellfireblight",
|
||||||
"iceblight": "Iceblight",
|
"iceblight": "Iceblight",
|
||||||
|
"leeched": "Leeched",
|
||||||
|
"muck": "Muck",
|
||||||
"paralysis": "Paralysis",
|
"paralysis": "Paralysis",
|
||||||
"poison": "Poison",
|
"poison": "Poison",
|
||||||
"quick_sand": "Quick Sand",
|
"quick_sand": "Quick Sand",
|
||||||
|
"resistance_down": "Resistance Down",
|
||||||
"ride": "Wyvern Riding",
|
"ride": "Wyvern Riding",
|
||||||
|
"roar": "Roar",
|
||||||
"shock_otomo_trap": "Shock Buddy Trap",
|
"shock_otomo_trap": "Shock Buddy Trap",
|
||||||
"shock_trap": "Shock Trap",
|
"shock_trap": "Shock Trap",
|
||||||
"sleep": "Sleep",
|
"sleep": "Sleep",
|
||||||
"steel_fang": "Steel Fang",
|
"steel_fang": "Steel Fang",
|
||||||
|
"stench": "Stench",
|
||||||
"stun": "Stun",
|
"stun": "Stun",
|
||||||
"thunderblight": "Thunderblight",
|
"thunderblight": "Thunderblight",
|
||||||
"tranq_bomb": "Tranq Bomb",
|
"tranq_bomb": "Tranq Bomb",
|
||||||
"waterblight": "Waterblight"
|
"tremor": "Tremor",
|
||||||
|
"waterblight": "Waterblight",
|
||||||
|
"webbed": "Webbed"
|
||||||
|
},
|
||||||
|
"consumables": {
|
||||||
|
"adamant_seed": "Adamant Seed",
|
||||||
|
"armorskin": "Armorskin",
|
||||||
|
"dash_juice": "Dash Juice",
|
||||||
|
"demon_powder": "Demon Powder",
|
||||||
|
"demondrug": "Demondrug",
|
||||||
|
"gourmet_fish": "Gourmet Fish",
|
||||||
|
"hardshell_powder": "Hardshell Powder",
|
||||||
|
"immunizer": "Immunizer",
|
||||||
|
"mega_armorskin": "Mega Armorskin",
|
||||||
|
"mega_demondrug": "Mega Demondrug",
|
||||||
|
"might_seed": "Might Seed"
|
||||||
},
|
},
|
||||||
"customization_menu": {
|
"customization_menu": {
|
||||||
"UI_font": "UI Font",
|
"UI_font": "UI Font",
|
||||||
@@ -92,6 +124,7 @@
|
|||||||
"crown": "Crown",
|
"crown": "Crown",
|
||||||
"crown_thresholds": "Crown Thresholds",
|
"crown_thresholds": "Crown Thresholds",
|
||||||
"current_state": "Current State",
|
"current_state": "Current State",
|
||||||
|
"current_time": "Current Time",
|
||||||
"current_value": "Current Value",
|
"current_value": "Current Value",
|
||||||
"cutscene": "Cutscene",
|
"cutscene": "Cutscene",
|
||||||
"damage": "Damage",
|
"damage": "Damage",
|
||||||
@@ -100,6 +133,7 @@
|
|||||||
"damage_meter_UI": "Damage Meter UI",
|
"damage_meter_UI": "Damage Meter UI",
|
||||||
"damage_percentage_label": "Damage Percentage Label",
|
"damage_percentage_label": "Damage Percentage Label",
|
||||||
"damage_value_label": "Damage Value Label",
|
"damage_value_label": "Damage Value Label",
|
||||||
|
"debug": "Debug",
|
||||||
"default_state": "Default State",
|
"default_state": "Default State",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"distance": "Distance",
|
"distance": "Distance",
|
||||||
@@ -114,6 +148,7 @@
|
|||||||
"enabled": "Enabled",
|
"enabled": "Enabled",
|
||||||
"endemic_life": "Endemic Life",
|
"endemic_life": "Endemic Life",
|
||||||
"endemic_life_UI": "Endemic Life UI",
|
"endemic_life_UI": "Endemic Life UI",
|
||||||
|
"everything_seems_to_be_ok": "Everything seems to be OK!",
|
||||||
"family": "Family",
|
"family": "Family",
|
||||||
"farthest": "Farthest",
|
"farthest": "Farthest",
|
||||||
"fight_time": "Fight Time",
|
"fight_time": "Fight Time",
|
||||||
@@ -163,6 +198,8 @@
|
|||||||
"highlighted_buildup_bar": "Highlighted Buildup Bar",
|
"highlighted_buildup_bar": "Highlighted Buildup Bar",
|
||||||
"highlighted_damage_bar": "Highlighted Damage Bar",
|
"highlighted_damage_bar": "Highlighted Damage Bar",
|
||||||
"highlighted_targeted": "Highlighted (targeted)",
|
"highlighted_targeted": "Highlighted (targeted)",
|
||||||
|
"history": "History",
|
||||||
|
"history_size": "History Size",
|
||||||
"horizontal": "Horizontal",
|
"horizontal": "Horizontal",
|
||||||
"hotkeys": "Hotkeys",
|
"hotkeys": "Hotkeys",
|
||||||
"hunter_rank": "Hunter Rank",
|
"hunter_rank": "Hunter Rank",
|
||||||
@@ -322,7 +359,40 @@
|
|||||||
"y": "Y",
|
"y": "Y",
|
||||||
"z": "Z"
|
"z": "Z"
|
||||||
},
|
},
|
||||||
|
"dangos": {
|
||||||
|
"dango_defender_hi": "Dango Defender (Hi)"
|
||||||
|
},
|
||||||
"font_name": "",
|
"font_name": "",
|
||||||
|
"melody_effects": {
|
||||||
|
"affinity_up": "Affinity Up",
|
||||||
|
"attack_and_affinity_up": "Attack and Affinity Up",
|
||||||
|
"attack_and_defense_up": "Attack and Defense Up",
|
||||||
|
"attack_up": "Attack Up",
|
||||||
|
"blight_negated": "Blight Negated",
|
||||||
|
"defense_up": "Defense Up",
|
||||||
|
"divine_protection": "Divine Protection",
|
||||||
|
"earplugs_l": "Earplugs (L)",
|
||||||
|
"earplugs_s": "Earplugs (S)",
|
||||||
|
"elemental_attack_boost": "Elemental Attack Boost",
|
||||||
|
"environment_damage_negated": "Environment Damage Negated",
|
||||||
|
"health_recovery_l": "Health Recovery (L)",
|
||||||
|
"health_recovery_s": "Health Recovery (S)",
|
||||||
|
"health_recovery_s_antidote": "Health Recovery (S) + Antidote",
|
||||||
|
"health_regeneration": "Health Regeneration",
|
||||||
|
"infernal_melody": "Infernal Melody",
|
||||||
|
"knockbacks_negated": "Knockbacks Negated",
|
||||||
|
"self_improvement": "Self-Improvement",
|
||||||
|
"sharpness_extension": "Sharpness Extension",
|
||||||
|
"sharpness_loss_reduced": "Sharpness Loss Reduced",
|
||||||
|
"sharpness_regeneration": "Sharpness Regeneration",
|
||||||
|
"sonic_barrier": "Sonic Barrier",
|
||||||
|
"sonic_wave": "Sonic Wave",
|
||||||
|
"stamina_recovery_up": "Stamina Recovery Up",
|
||||||
|
"stamina_use_reduced": "Stamina Use Reduced",
|
||||||
|
"stun_negated": "Stun Negated",
|
||||||
|
"tremors_negated": "Tremors Negated",
|
||||||
|
"wind_pressure_negated": "Wind Pressure Negated"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"abdomen": "Abdomen",
|
"abdomen": "Abdomen",
|
||||||
"amatsu_unknown": "?",
|
"amatsu_unknown": "?",
|
||||||
@@ -392,6 +462,28 @@
|
|||||||
"wingclaws": "Wingclaws",
|
"wingclaws": "Wingclaws",
|
||||||
"wings": "Wings"
|
"wings": "Wings"
|
||||||
},
|
},
|
||||||
|
"skills": {
|
||||||
|
"adrenaline_rush": "Adrenaline Rush",
|
||||||
|
"affinity_sliding": "Affinity Sliding",
|
||||||
|
"agitator": "Agitator",
|
||||||
|
"burst": "Burst",
|
||||||
|
"coalescence": "Coalescence",
|
||||||
|
"counterstrike": "Counterstrike",
|
||||||
|
"dereliction": "Dereliction",
|
||||||
|
"furious": "Furious",
|
||||||
|
"grinder_s": "Grinder (S)",
|
||||||
|
"heaven_sent": "Heaven-Sent",
|
||||||
|
"hellfire_cloak": "Hellfire Cloak",
|
||||||
|
"heroics": "Heroics",
|
||||||
|
"intrepid_heart": "Intrepid Heart",
|
||||||
|
"kushala_daora_soul": "Kushala Daora Soul",
|
||||||
|
"latent_power": "Latent Power",
|
||||||
|
"offensive_guard": "Offensive Guard",
|
||||||
|
"protective_polish": "Protective Polish",
|
||||||
|
"resuscitate": "Resuscitate",
|
||||||
|
"wall_runner": "Wall Runner",
|
||||||
|
"wind_mantle": "Wind Mantle"
|
||||||
|
},
|
||||||
"unicode_glyph_ranges": [
|
"unicode_glyph_ranges": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -18,25 +18,57 @@
|
|||||||
},
|
},
|
||||||
"ailments": {
|
"ailments": {
|
||||||
"blast": "爆破",
|
"blast": "爆破",
|
||||||
|
"blastblight": "Blastblight",
|
||||||
|
"bleeding": "Bleeding",
|
||||||
|
"bloodblight": "Bloodblight",
|
||||||
|
"bubbleblight": "Bubbleblight",
|
||||||
|
"defense_down": "Defense Down",
|
||||||
|
"dragonblight": "Dragonblight",
|
||||||
"dung_bomb": "悪臭",
|
"dung_bomb": "悪臭",
|
||||||
|
"engulfed": "Engulfed",
|
||||||
"exhaust": "疲労",
|
"exhaust": "疲労",
|
||||||
"fall_otomo_trap": "オトモ落とし穴",
|
"fall_otomo_trap": "オトモ落とし穴",
|
||||||
"fall_trap": "落とし穴",
|
"fall_trap": "落とし穴",
|
||||||
"fireblight": "火属性やられ",
|
"fireblight": "火属性やられ",
|
||||||
"flash": "目くらまし",
|
"flash": "目くらまし",
|
||||||
|
"frenzy": "Frenzy",
|
||||||
|
"frenzy_infection": "Frenzy Infection",
|
||||||
|
"frenzy_overcome": "Frenzy Overcome",
|
||||||
|
"frostblight": "Frostblight",
|
||||||
|
"hellfireblight": "Hellfireblight",
|
||||||
"iceblight": "氷属性やられ",
|
"iceblight": "氷属性やられ",
|
||||||
|
"leeched": "Leeched",
|
||||||
|
"muck": "Muck",
|
||||||
"paralysis": "麻痺",
|
"paralysis": "麻痺",
|
||||||
"poison": "毒",
|
"poison": "毒",
|
||||||
"quick_sand": "流砂",
|
"quick_sand": "流砂",
|
||||||
|
"resistance_down": "Resistance Down",
|
||||||
"ride": "操竜",
|
"ride": "操竜",
|
||||||
|
"roar": "Roar",
|
||||||
"shock_otomo_trap": "オトモしびれ罠",
|
"shock_otomo_trap": "オトモしびれ罠",
|
||||||
"shock_trap": "しびれ罠",
|
"shock_trap": "しびれ罠",
|
||||||
"sleep": "睡眠",
|
"sleep": "睡眠",
|
||||||
"steel_fang": "ガルク噛み付き",
|
"steel_fang": "ガルク噛み付き",
|
||||||
|
"stench": "Stench",
|
||||||
"stun": "スタン",
|
"stun": "スタン",
|
||||||
"thunderblight": "雷属性やられ",
|
"thunderblight": "雷属性やられ",
|
||||||
"tranq_bomb": "捕獲用麻酔玉",
|
"tranq_bomb": "捕獲用麻酔玉",
|
||||||
"waterblight": "水属性やられ"
|
"tremor": "Tremor",
|
||||||
|
"waterblight": "水属性やられ",
|
||||||
|
"webbed": "Webbed"
|
||||||
|
},
|
||||||
|
"consumables": {
|
||||||
|
"adamant_seed": "Adamant Seed",
|
||||||
|
"armorskin": "Armorskin",
|
||||||
|
"dash_juice": "Dash Juice",
|
||||||
|
"demon_powder": "Demon Powder",
|
||||||
|
"demondrug": "Demondrug",
|
||||||
|
"gourmet_fish": "Gourmet Fish",
|
||||||
|
"hardshell_powder": "Hardshell Powder",
|
||||||
|
"immunizer": "Immunizer",
|
||||||
|
"mega_armorskin": "Mega Armorskin",
|
||||||
|
"mega_demondrug": "Mega Demondrug",
|
||||||
|
"might_seed": "Might Seed"
|
||||||
},
|
},
|
||||||
"customization_menu": {
|
"customization_menu": {
|
||||||
"UI_font": "UI フォント",
|
"UI_font": "UI フォント",
|
||||||
@@ -92,6 +124,7 @@
|
|||||||
"crown": "王冠",
|
"crown": "王冠",
|
||||||
"crown_thresholds": "王冠の閾値",
|
"crown_thresholds": "王冠の閾値",
|
||||||
"current_state": "Current State",
|
"current_state": "Current State",
|
||||||
|
"current_time": "Current Time",
|
||||||
"current_value": "Current Value",
|
"current_value": "Current Value",
|
||||||
"cutscene": "Cutscene",
|
"cutscene": "Cutscene",
|
||||||
"damage": "ダメージ",
|
"damage": "ダメージ",
|
||||||
@@ -100,6 +133,7 @@
|
|||||||
"damage_meter_UI": "ダメージメーターUI",
|
"damage_meter_UI": "ダメージメーターUI",
|
||||||
"damage_percentage_label": "ダメージ割合(%)ラベル",
|
"damage_percentage_label": "ダメージ割合(%)ラベル",
|
||||||
"damage_value_label": "ダメージラベル",
|
"damage_value_label": "ダメージラベル",
|
||||||
|
"debug": "Debug",
|
||||||
"default_state": "Default State",
|
"default_state": "Default State",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"distance": "距離",
|
"distance": "距離",
|
||||||
@@ -114,6 +148,7 @@
|
|||||||
"enabled": "有効",
|
"enabled": "有効",
|
||||||
"endemic_life": "Endemic Life",
|
"endemic_life": "Endemic Life",
|
||||||
"endemic_life_UI": "環境生物UI",
|
"endemic_life_UI": "環境生物UI",
|
||||||
|
"everything_seems_to_be_ok": "Everything seems to be OK!",
|
||||||
"family": "Family",
|
"family": "Family",
|
||||||
"farthest": "Farthest",
|
"farthest": "Farthest",
|
||||||
"fight_time": "戦闘時間",
|
"fight_time": "戦闘時間",
|
||||||
@@ -163,6 +198,8 @@
|
|||||||
"highlighted_buildup_bar": "ハイライトされた蓄積値バー",
|
"highlighted_buildup_bar": "ハイライトされた蓄積値バー",
|
||||||
"highlighted_damage_bar": "ハイライトされたダメージバー",
|
"highlighted_damage_bar": "ハイライトされたダメージバー",
|
||||||
"highlighted_targeted": "詳細表示 (ターゲット)",
|
"highlighted_targeted": "詳細表示 (ターゲット)",
|
||||||
|
"history": "History",
|
||||||
|
"history_size": "History Size",
|
||||||
"horizontal": "水平",
|
"horizontal": "水平",
|
||||||
"hotkeys": "ホットキー",
|
"hotkeys": "ホットキー",
|
||||||
"hunter_rank": "ハンターランク",
|
"hunter_rank": "ハンターランク",
|
||||||
@@ -322,7 +359,40 @@
|
|||||||
"y": "Y",
|
"y": "Y",
|
||||||
"z": "Z"
|
"z": "Z"
|
||||||
},
|
},
|
||||||
|
"dangos": {
|
||||||
|
"dango_defender_hi": "Dango Defender (Hi)"
|
||||||
|
},
|
||||||
"font_name": "NotoSansJP-Bold.otf",
|
"font_name": "NotoSansJP-Bold.otf",
|
||||||
|
"melody_effects": {
|
||||||
|
"affinity_up": "Affinity Up",
|
||||||
|
"attack_and_affinity_up": "Attack and Affinity Up",
|
||||||
|
"attack_and_defense_up": "Attack and Defense Up",
|
||||||
|
"attack_up": "Attack Up",
|
||||||
|
"blight_negated": "Blight Negated",
|
||||||
|
"defense_up": "Defense Up",
|
||||||
|
"divine_protection": "Divine Protection",
|
||||||
|
"earplugs_l": "Earplugs (L)",
|
||||||
|
"earplugs_s": "Earplugs (S)",
|
||||||
|
"elemental_attack_boost": "Elemental Attack Boost",
|
||||||
|
"environment_damage_negated": "Environment Damage Negated",
|
||||||
|
"health_recovery_l": "Health Recovery (L)",
|
||||||
|
"health_recovery_s": "Health Recovery (S)",
|
||||||
|
"health_recovery_s_antidote": "Health Recovery (S) + Antidote",
|
||||||
|
"health_regeneration": "Health Regeneration",
|
||||||
|
"infernal_melody": "Infernal Melody",
|
||||||
|
"knockbacks_negated": "Knockbacks Negated",
|
||||||
|
"self_improvement": "Self-Improvement",
|
||||||
|
"sharpness_extension": "Sharpness Extension",
|
||||||
|
"sharpness_loss_reduced": "Sharpness Loss Reduced",
|
||||||
|
"sharpness_regeneration": "Sharpness Regeneration",
|
||||||
|
"sonic_barrier": "Sonic Barrier",
|
||||||
|
"sonic_wave": "Sonic Wave",
|
||||||
|
"stamina_recovery_up": "Stamina Recovery Up",
|
||||||
|
"stamina_use_reduced": "Stamina Use Reduced",
|
||||||
|
"stun_negated": "Stun Negated",
|
||||||
|
"tremors_negated": "Tremors Negated",
|
||||||
|
"wind_pressure_negated": "Wind Pressure Negated"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"abdomen": "腹部",
|
"abdomen": "腹部",
|
||||||
"amatsu_unknown": "?",
|
"amatsu_unknown": "?",
|
||||||
@@ -392,6 +462,28 @@
|
|||||||
"wingclaws": "Wingclaws",
|
"wingclaws": "Wingclaws",
|
||||||
"wings": "翼"
|
"wings": "翼"
|
||||||
},
|
},
|
||||||
|
"skills": {
|
||||||
|
"adrenaline_rush": "Adrenaline Rush",
|
||||||
|
"affinity_sliding": "Affinity Sliding",
|
||||||
|
"agitator": "Agitator",
|
||||||
|
"burst": "Burst",
|
||||||
|
"coalescence": "Coalescence",
|
||||||
|
"counterstrike": "Counterstrike",
|
||||||
|
"dereliction": "Dereliction",
|
||||||
|
"furious": "Furious",
|
||||||
|
"grinder_s": "Grinder (S)",
|
||||||
|
"heaven_sent": "Heaven-Sent",
|
||||||
|
"hellfire_cloak": "Hellfire Cloak",
|
||||||
|
"heroics": "Heroics",
|
||||||
|
"intrepid_heart": "Intrepid Heart",
|
||||||
|
"kushala_daora_soul": "Kushala Daora Soul",
|
||||||
|
"latent_power": "Latent Power",
|
||||||
|
"offensive_guard": "Offensive Guard",
|
||||||
|
"protective_polish": "Protective Polish",
|
||||||
|
"resuscitate": "Resuscitate",
|
||||||
|
"wall_runner": "Wall Runner",
|
||||||
|
"wind_mantle": "Wind Mantle"
|
||||||
|
},
|
||||||
"unicode_glyph_ranges": [
|
"unicode_glyph_ranges": [
|
||||||
32,
|
32,
|
||||||
255,
|
255,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"gold": "금관",
|
"gold": "금관",
|
||||||
"mini": "최소",
|
"mini": "최소",
|
||||||
"otomo": "동반자",
|
"otomo": "동반자",
|
||||||
"part_anomaly_core": "Anomaly Core",
|
"part_anomaly_core": "괴이핵",
|
||||||
"part_break": "파괴",
|
"part_break": "파괴",
|
||||||
"part_sever": "절단",
|
"part_sever": "절단",
|
||||||
"player": "헌터",
|
"player": "헌터",
|
||||||
@@ -18,25 +18,57 @@
|
|||||||
},
|
},
|
||||||
"ailments": {
|
"ailments": {
|
||||||
"blast": "폭파",
|
"blast": "폭파",
|
||||||
|
"blastblight": "Blastblight",
|
||||||
|
"bleeding": "Bleeding",
|
||||||
|
"bloodblight": "Bloodblight",
|
||||||
|
"bubbleblight": "Bubbleblight",
|
||||||
|
"defense_down": "Defense Down",
|
||||||
|
"dragonblight": "Dragonblight",
|
||||||
"dung_bomb": "거름탄",
|
"dung_bomb": "거름탄",
|
||||||
|
"engulfed": "Engulfed",
|
||||||
"exhaust": "탈진",
|
"exhaust": "탈진",
|
||||||
"fall_otomo_trap": "동반자 구멍 함정",
|
"fall_otomo_trap": "동반자 구멍 함정",
|
||||||
"fall_trap": "구멍 함정",
|
"fall_trap": "구멍 함정",
|
||||||
"fireblight": "불바위구리",
|
"fireblight": "불바위구리",
|
||||||
"flash": "섬광",
|
"flash": "섬광",
|
||||||
|
"frenzy": "Frenzy",
|
||||||
|
"frenzy_infection": "Frenzy Infection",
|
||||||
|
"frenzy_overcome": "Frenzy Overcome",
|
||||||
|
"frostblight": "Frostblight",
|
||||||
|
"hellfireblight": "Hellfireblight",
|
||||||
"iceblight": "진흙구리",
|
"iceblight": "진흙구리",
|
||||||
|
"leeched": "Leeched",
|
||||||
|
"muck": "Muck",
|
||||||
"paralysis": "마비",
|
"paralysis": "마비",
|
||||||
"poison": "독",
|
"poison": "독",
|
||||||
"quick_sand": "유사(모래함정)",
|
"quick_sand": "유사(모래함정)",
|
||||||
|
"resistance_down": "Resistance Down",
|
||||||
"ride": "용조종",
|
"ride": "용조종",
|
||||||
|
"roar": "Roar",
|
||||||
"shock_otomo_trap": "동반자 마비덫",
|
"shock_otomo_trap": "동반자 마비덫",
|
||||||
"shock_trap": "마비덫",
|
"shock_trap": "마비덫",
|
||||||
"sleep": "수면",
|
"sleep": "수면",
|
||||||
"steel_fang": "강철아",
|
"steel_fang": "강철아",
|
||||||
|
"stench": "Stench",
|
||||||
"stun": "기절",
|
"stun": "기절",
|
||||||
"thunderblight": "번개털구리",
|
"thunderblight": "번개털구리",
|
||||||
"tranq_bomb": "포획용마취옥",
|
"tranq_bomb": "포획용마취옥",
|
||||||
"waterblight": "진흙구리"
|
"tremor": "Tremor",
|
||||||
|
"waterblight": "진흙구리",
|
||||||
|
"webbed": "Webbed"
|
||||||
|
},
|
||||||
|
"consumables": {
|
||||||
|
"adamant_seed": "Adamant Seed",
|
||||||
|
"armorskin": "Armorskin",
|
||||||
|
"dash_juice": "Dash Juice",
|
||||||
|
"demon_powder": "Demon Powder",
|
||||||
|
"demondrug": "Demondrug",
|
||||||
|
"gourmet_fish": "Gourmet Fish",
|
||||||
|
"hardshell_powder": "Hardshell Powder",
|
||||||
|
"immunizer": "Immunizer",
|
||||||
|
"mega_armorskin": "Mega Armorskin",
|
||||||
|
"mega_demondrug": "Mega Demondrug",
|
||||||
|
"might_seed": "Might Seed"
|
||||||
},
|
},
|
||||||
"customization_menu": {
|
"customization_menu": {
|
||||||
"UI_font": "UI 글꼴",
|
"UI_font": "UI 글꼴",
|
||||||
@@ -49,10 +81,10 @@
|
|||||||
"ailments": "상태이상",
|
"ailments": "상태이상",
|
||||||
"all_UI": "모든 UI",
|
"all_UI": "모든 UI",
|
||||||
"anchor": "기준",
|
"anchor": "기준",
|
||||||
"anomaly_cores": "Anomaly Cores",
|
"anomaly_cores": "괴이핵",
|
||||||
"anomaly_filter": "Anomaly Core",
|
"anomaly_filter": "괴이핵",
|
||||||
"anomaly_health": "Anomaly Core Health",
|
"anomaly_health": "괴이핵 체력",
|
||||||
"anomaly_health_percentage": "Anomaly Core Health Percentage",
|
"anomaly_health_percentage": "괴이핵 체력 비율",
|
||||||
"apply": "적용",
|
"apply": "적용",
|
||||||
"assign_new_key": "새 키를 할당",
|
"assign_new_key": "새 키를 할당",
|
||||||
"auto_highlight": "자동 타겟 설정",
|
"auto_highlight": "자동 타겟 설정",
|
||||||
@@ -61,17 +93,17 @@
|
|||||||
"blast": "폭파",
|
"blast": "폭파",
|
||||||
"body_parts": "부위",
|
"body_parts": "부위",
|
||||||
"bold": "굵게",
|
"bold": "굵게",
|
||||||
"bombs": "Bombs",
|
"bombs": "폭탄",
|
||||||
"bottom_left": "좌하단",
|
"bottom_left": "왼쪽 아래",
|
||||||
"bottom_right": "우하단",
|
"bottom_right": "오른쪽 아래",
|
||||||
"bottom_to_top": "Bottom to Top",
|
"bottom_to_top": "아래에서 위로",
|
||||||
"break_anomaly_filter": "Break + Anomaly Core",
|
"break_anomaly_filter": "파괴 + 괴이핵",
|
||||||
"break_count": "파괴 횟수",
|
"break_count": "파괴 횟수",
|
||||||
"break_filter": "파괴",
|
"break_filter": "파괴",
|
||||||
"break_health": "파괴 수치",
|
"break_health": "파괴 수치",
|
||||||
"break_health_percentage": "파괴 수치 비율",
|
"break_health_percentage": "파괴 수치 비율",
|
||||||
"break_max_count": "최대 파괴 횟수",
|
"break_max_count": "최대 파괴 횟수",
|
||||||
"break_sever_anomaly_filter": "Break + Sever + Anomaly Core",
|
"break_sever_anomaly_filter": "파괴 + 절단 + 괴이핵",
|
||||||
"break_sever_filter": "파괴 + 절단",
|
"break_sever_filter": "파괴 + 절단",
|
||||||
"buff_UI": "버프 UI",
|
"buff_UI": "버프 UI",
|
||||||
"buildup": "누적치",
|
"buildup": "누적치",
|
||||||
@@ -91,8 +123,9 @@
|
|||||||
"creature_name_label": "환경생물 이름 정보",
|
"creature_name_label": "환경생물 이름 정보",
|
||||||
"crown": "금관",
|
"crown": "금관",
|
||||||
"crown_thresholds": "금관 판정값",
|
"crown_thresholds": "금관 판정값",
|
||||||
"current_state": "Current State",
|
"current_state": "현재 상태",
|
||||||
"current_value": "Current Value",
|
"current_time": "Current Time",
|
||||||
|
"current_value": "현재 값",
|
||||||
"cutscene": "컷신",
|
"cutscene": "컷신",
|
||||||
"damage": "대미지",
|
"damage": "대미지",
|
||||||
"damage_bar": "대미지 막대",
|
"damage_bar": "대미지 막대",
|
||||||
@@ -100,7 +133,9 @@
|
|||||||
"damage_meter_UI": "대미지 미터 UI",
|
"damage_meter_UI": "대미지 미터 UI",
|
||||||
"damage_percentage_label": "대미지 비율 정보",
|
"damage_percentage_label": "대미지 비율 정보",
|
||||||
"damage_value_label": "대미지 값 정보",
|
"damage_value_label": "대미지 값 정보",
|
||||||
"default_state": "Default State",
|
"debug": "Debug",
|
||||||
|
"debug_errors": "Debug Errors",
|
||||||
|
"default_state": "기본 상태",
|
||||||
"delete": "삭제하기",
|
"delete": "삭제하기",
|
||||||
"distance": "간격",
|
"distance": "간격",
|
||||||
"dps": "DPS",
|
"dps": "DPS",
|
||||||
@@ -112,14 +147,15 @@
|
|||||||
"dynamically_positioned": "유동 위치 UI",
|
"dynamically_positioned": "유동 위치 UI",
|
||||||
"enable_for": "표시 대상",
|
"enable_for": "표시 대상",
|
||||||
"enabled": "사용함",
|
"enabled": "사용함",
|
||||||
"endemic_life": "Endemic Life",
|
"endemic_life": "환경생물",
|
||||||
"endemic_life_UI": "환경생물 UI",
|
"endemic_life_UI": "환경생물 UI",
|
||||||
|
"everything_seems_to_be_ok": "Everything seems to be OK!",
|
||||||
"family": "글꼴",
|
"family": "글꼴",
|
||||||
"farthest": "가장 멀리있는",
|
"farthest": "가장 멀리있는",
|
||||||
"fight_time": "전투 시간",
|
"fight_time": "전투 시간",
|
||||||
"fill_direction": "Fill Direction",
|
"fill_direction": "채우는 방향",
|
||||||
"filter": "필터",
|
"filter": "필터",
|
||||||
"filter_mode": "Filter Mode",
|
"filter_mode": "필터 모드",
|
||||||
"first": "맨 앞",
|
"first": "맨 앞",
|
||||||
"first_hit": "첫 공격",
|
"first_hit": "첫 공격",
|
||||||
"flinch_count": "경직 횟수",
|
"flinch_count": "경직 횟수",
|
||||||
@@ -129,14 +165,14 @@
|
|||||||
"global_scale_modifier": "전역 크기 배율",
|
"global_scale_modifier": "전역 크기 배율",
|
||||||
"global_settings": "전역 설정",
|
"global_settings": "전역 설정",
|
||||||
"health": "체력",
|
"health": "체력",
|
||||||
"health_anomaly_filter": "Health + Anomaly Core",
|
"health_anomaly_filter": "체력 + 괴이핵",
|
||||||
"health_break_anomaly_filter": "Health + Break + Anomaly Core",
|
"health_break_anomaly_filter": "체력 + 파괴 + 괴이핵",
|
||||||
"health_break_filter": "체력 + 파괴",
|
"health_break_filter": "체력 + 파괴",
|
||||||
"health_break_sever_anomaly_filter": "Health + Break + Sever + Anomaly Core",
|
"health_break_sever_anomaly_filter": "체력 + 파괴 + 절단 + 괴이핵",
|
||||||
"health_break_sever_filter": "체력 + 파괴 + 절단",
|
"health_break_sever_filter": "체력 + 파괴 + 절단",
|
||||||
"health_filter": "체력",
|
"health_filter": "체력",
|
||||||
"health_percentage": "체력 비율",
|
"health_percentage": "체력 비율",
|
||||||
"health_sever_anomaly_filter": "Health + Sever + Anomaly Core",
|
"health_sever_anomaly_filter": "체력 + 절단 + 괴이핵",
|
||||||
"health_sever_filter": "체력 + 절단",
|
"health_sever_filter": "체력 + 절단",
|
||||||
"height": "높이",
|
"height": "높이",
|
||||||
"hide_ailments_with_zero_buildup": "누적치가 0이면 상태이상 표시 안 함",
|
"hide_ailments_with_zero_buildup": "누적치가 0이면 상태이상 표시 안 함",
|
||||||
@@ -163,6 +199,8 @@
|
|||||||
"highlighted_buildup_bar": "주시대상 몬스터 누적치 막대",
|
"highlighted_buildup_bar": "주시대상 몬스터 누적치 막대",
|
||||||
"highlighted_damage_bar": "주시대상 몬스터 대미지 막대",
|
"highlighted_damage_bar": "주시대상 몬스터 대미지 막대",
|
||||||
"highlighted_targeted": "주시대상 몬스터 표시",
|
"highlighted_targeted": "주시대상 몬스터 표시",
|
||||||
|
"history": "History",
|
||||||
|
"history_size": "History Size",
|
||||||
"horizontal": "가로",
|
"horizontal": "가로",
|
||||||
"hotkeys": "단축키",
|
"hotkeys": "단축키",
|
||||||
"hunter_rank": "헌터 랭크",
|
"hunter_rank": "헌터 랭크",
|
||||||
@@ -172,11 +210,11 @@
|
|||||||
"in_training_area": "훈련구역 내",
|
"in_training_area": "훈련구역 내",
|
||||||
"include": "포함",
|
"include": "포함",
|
||||||
"inside": "내부",
|
"inside": "내부",
|
||||||
"installations": "Installations",
|
"installations": "설치",
|
||||||
"italic": "기울임",
|
"italic": "기울임",
|
||||||
"join_time": "참가 시간",
|
"join_time": "참가 시간",
|
||||||
"killcam": "처치 영상",
|
"killcam": "처치 영상",
|
||||||
"kunai": "Kunai",
|
"kunai": "쿠나이",
|
||||||
"language": "언어",
|
"language": "언어",
|
||||||
"large_monster_UI": "대형 몬스터 UI",
|
"large_monster_UI": "대형 몬스터 UI",
|
||||||
"large_monster_dynamic_UI": "대형 몬스터 유동 UI",
|
"large_monster_dynamic_UI": "대형 몬스터 유동 UI",
|
||||||
@@ -184,7 +222,7 @@
|
|||||||
"large_monster_static_UI": "대형 몬스터 고정 UI",
|
"large_monster_static_UI": "대형 몬스터 고정 UI",
|
||||||
"large_monsters": "대형 몬스터",
|
"large_monsters": "대형 몬스터",
|
||||||
"last": "맨 뒤",
|
"last": "맨 뒤",
|
||||||
"left_to_right": "Left to Right",
|
"left_to_right": "왼쪽에서 오른쪽",
|
||||||
"level": "레벨",
|
"level": "레벨",
|
||||||
"level_label": "레벨 정보",
|
"level_label": "레벨 정보",
|
||||||
"loading_quest": "퀘스트 로딩 중",
|
"loading_quest": "퀘스트 로딩 중",
|
||||||
@@ -195,7 +233,7 @@
|
|||||||
"master_rank": "마스터 랭크",
|
"master_rank": "마스터 랭크",
|
||||||
"max_distance": "최대 거리",
|
"max_distance": "최대 거리",
|
||||||
"max_monster_updates_per_tick": "틱당 최대 몬스터 갱신 횟수",
|
"max_monster_updates_per_tick": "틱당 최대 몬스터 갱신 횟수",
|
||||||
"max_value": "Max Value",
|
"max_value": "최대값",
|
||||||
"me": "나",
|
"me": "나",
|
||||||
"menu_font": "메뉴 글꼴",
|
"menu_font": "메뉴 글꼴",
|
||||||
"menu_font_change_disclaimer": "언어 및 메뉴 글꼴 크기를 여러 번 변경하면 비정상 종료가 될 수 있습니다!",
|
"menu_font_change_disclaimer": "언어 및 메뉴 글꼴 크기를 여러 번 변경하면 비정상 종료가 될 수 있습니다!",
|
||||||
@@ -203,28 +241,28 @@
|
|||||||
"mode": "모드",
|
"mode": "모드",
|
||||||
"modifiers": "설정 배율",
|
"modifiers": "설정 배율",
|
||||||
"module_visibility_based_on_game_state": "게임 상태에 따라 모듈 표시",
|
"module_visibility_based_on_game_state": "게임 상태에 따라 모듈 표시",
|
||||||
"modules": "UI",
|
"modules": "모듈",
|
||||||
"monster_can_be_captured": "몬스터 포획 가능",
|
"monster_can_be_captured": "몬스터 포획 가능",
|
||||||
"monster_id": "몬스터 ID",
|
"monster_id": "몬스터 ID",
|
||||||
"monster_name": "몬스터명",
|
"monster_name": "몬스터명",
|
||||||
"monster_name_label": "몬스터명 정보",
|
"monster_name_label": "몬스터명 정보",
|
||||||
"monsters": "Monsters",
|
"monsters": "몬스터",
|
||||||
"my_damage_bar_location": "내 대미지 막대 위치",
|
"my_damage_bar_location": "내 대미지 막대 위치",
|
||||||
"my_otomos": "내 동반자",
|
"my_otomos": "내 동반자",
|
||||||
"myself": "나",
|
"myself": "나",
|
||||||
"name": "이름",
|
"name": "이름",
|
||||||
"name_label": "이름 정보",
|
"name_label": "이름 정보",
|
||||||
"new": "새",
|
"new": "새로 만들기",
|
||||||
"none": "없음",
|
"none": "없음",
|
||||||
"normal": "기본",
|
"normal": "기본",
|
||||||
"offset": "오프셋",
|
"offset": "오프셋",
|
||||||
"offset_is_relative_to_parts": "오프셋을 부위 기준으로",
|
"offset_is_relative_to_parts": "오프셋을 부위 기준으로",
|
||||||
"opacity_falloff": "투명도 감소",
|
"opacity_falloff": "투명도 감소",
|
||||||
"orientation": "방향",
|
"orientation": "방향",
|
||||||
"other": "Other",
|
"other": "기타",
|
||||||
"other_player_otomos": "다른 플레이어 동반자",
|
"other_player_otomos": "다른 플레이어 동반자",
|
||||||
"other_players": "다른 헌터",
|
"other_players": "다른 헌터",
|
||||||
"otomos": "Buddies",
|
"otomos": "동반자",
|
||||||
"outline": "외곽선",
|
"outline": "외곽선",
|
||||||
"outside": "외부",
|
"outside": "외부",
|
||||||
"part_health": "부위 수치",
|
"part_health": "부위 수치",
|
||||||
@@ -235,7 +273,7 @@
|
|||||||
"player_name_label": "헌터명 정보",
|
"player_name_label": "헌터명 정보",
|
||||||
"player_name_size_limit": "헌터명 크기 제한",
|
"player_name_size_limit": "헌터명 크기 제한",
|
||||||
"player_spacing": "플레이어 간격",
|
"player_spacing": "플레이어 간격",
|
||||||
"players": "Players",
|
"players": "모든 플레이어",
|
||||||
"playing_quest": "퀘스트 중",
|
"playing_quest": "퀘스트 중",
|
||||||
"poison": "독",
|
"poison": "독",
|
||||||
"position": "위치",
|
"position": "위치",
|
||||||
@@ -251,18 +289,18 @@
|
|||||||
"relative_offset": "상대적 위치 오프셋",
|
"relative_offset": "상대적 위치 오프셋",
|
||||||
"rename": "이름 변경",
|
"rename": "이름 변경",
|
||||||
"render_highlighted_monster": "주시대상 몬스터 표시",
|
"render_highlighted_monster": "주시대상 몬스터 표시",
|
||||||
"render_inactive_anomaly_cores": "Render Inactive Anomaly Cores",
|
"render_inactive_anomaly_cores": "비활성화 된 괴이핵 표시",
|
||||||
"render_not_highlighted_monsters": "주시대상이 아닌 아닌 몬스터 표시",
|
"render_not_highlighted_monsters": "주시대상이 아닌 아닌 몬스터 표시",
|
||||||
"renderer": "렌더링",
|
"renderer": "렌더링",
|
||||||
"reset": "리셋",
|
"reset": "리셋",
|
||||||
"reversed_order": "역순",
|
"reversed_order": "역순",
|
||||||
"reward_screen": "보상 화면",
|
"reward_screen": "보상 화면",
|
||||||
"right_alignment_shift": "Right Alignment Shift",
|
"right_alignment_shift": "우측정렬 이동",
|
||||||
"right_to_left": "Right to Left",
|
"right_to_left": "오른쪽에서 왼쪽",
|
||||||
"servant_otomos": "맹우 동반자",
|
"servant_otomos": "맹우 동반자",
|
||||||
"servants": "맹우",
|
"servants": "맹우",
|
||||||
"settings": "설정",
|
"settings": "설정",
|
||||||
"sever_anomaly_filter": "Sever + Anomaly Core",
|
"sever_anomaly_filter": "절단 + 괴이핵",
|
||||||
"sever_filter": "절단",
|
"sever_filter": "절단",
|
||||||
"shadow": "그림자",
|
"shadow": "그림자",
|
||||||
"show_my_otomos_separately": "내 동반자를 따로",
|
"show_my_otomos_separately": "내 동반자를 따로",
|
||||||
@@ -292,9 +330,9 @@
|
|||||||
"top_buildup": "총 누적치",
|
"top_buildup": "총 누적치",
|
||||||
"top_damage": "최고 대미지",
|
"top_damage": "최고 대미지",
|
||||||
"top_dps": "최고 DPS",
|
"top_dps": "최고 DPS",
|
||||||
"top_left": "좌상단",
|
"top_left": "왼쪽 위",
|
||||||
"top_right": "우상단",
|
"top_right": "오른쪽 위",
|
||||||
"top_to_bottom": "Top to Bottom",
|
"top_to_bottom": "위에서 아래",
|
||||||
"total": "전체",
|
"total": "전체",
|
||||||
"total_buildup": "총 누적치",
|
"total_buildup": "총 누적치",
|
||||||
"total_buildup_label": "총 누적치 정보",
|
"total_buildup_label": "총 누적치 정보",
|
||||||
@@ -317,12 +355,45 @@
|
|||||||
"visible": "표시함",
|
"visible": "표시함",
|
||||||
"width": "너비",
|
"width": "너비",
|
||||||
"world_offset": "전역 오프셋",
|
"world_offset": "전역 오프셋",
|
||||||
"wyvern_riding": "Wyvern Riding",
|
"wyvern_riding": "용조종",
|
||||||
"x": "X",
|
"x": "X",
|
||||||
"y": "Y",
|
"y": "Y",
|
||||||
"z": "Z"
|
"z": "Z"
|
||||||
},
|
},
|
||||||
|
"dangos": {
|
||||||
|
"dango_defender_hi": "Dango Defender (Hi)"
|
||||||
|
},
|
||||||
"font_name": "NotoSansKR-Bold.otf",
|
"font_name": "NotoSansKR-Bold.otf",
|
||||||
|
"melody_effects": {
|
||||||
|
"affinity_up": "Affinity Up",
|
||||||
|
"attack_and_affinity_up": "Attack and Affinity Up",
|
||||||
|
"attack_and_defense_up": "Attack and Defense Up",
|
||||||
|
"attack_up": "Attack Up",
|
||||||
|
"blight_negated": "Blight Negated",
|
||||||
|
"defense_up": "Defense Up",
|
||||||
|
"divine_protection": "Divine Protection",
|
||||||
|
"earplugs_l": "Earplugs (L)",
|
||||||
|
"earplugs_s": "Earplugs (S)",
|
||||||
|
"elemental_attack_boost": "Elemental Attack Boost",
|
||||||
|
"environment_damage_negated": "Environment Damage Negated",
|
||||||
|
"health_recovery_l": "Health Recovery (L)",
|
||||||
|
"health_recovery_s": "Health Recovery (S)",
|
||||||
|
"health_recovery_s_antidote": "Health Recovery (S) + Antidote",
|
||||||
|
"health_regeneration": "Health Regeneration",
|
||||||
|
"infernal_melody": "Infernal Melody",
|
||||||
|
"knockbacks_negated": "Knockbacks Negated",
|
||||||
|
"self_improvement": "Self-Improvement",
|
||||||
|
"sharpness_extension": "Sharpness Extension",
|
||||||
|
"sharpness_loss_reduced": "Sharpness Loss Reduced",
|
||||||
|
"sharpness_regeneration": "Sharpness Regeneration",
|
||||||
|
"sonic_barrier": "Sonic Barrier",
|
||||||
|
"sonic_wave": "Sonic Wave",
|
||||||
|
"stamina_recovery_up": "Stamina Recovery Up",
|
||||||
|
"stamina_use_reduced": "Stamina Use Reduced",
|
||||||
|
"stun_negated": "Stun Negated",
|
||||||
|
"tremors_negated": "Tremors Negated",
|
||||||
|
"wind_pressure_negated": "Wind Pressure Negated"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"abdomen": "배",
|
"abdomen": "배",
|
||||||
"amatsu_unknown": "?",
|
"amatsu_unknown": "?",
|
||||||
@@ -392,6 +463,28 @@
|
|||||||
"wingclaws": "날개발톱",
|
"wingclaws": "날개발톱",
|
||||||
"wings": "날개"
|
"wings": "날개"
|
||||||
},
|
},
|
||||||
|
"skills": {
|
||||||
|
"adrenaline_rush": "Adrenaline Rush",
|
||||||
|
"affinity_sliding": "Affinity Sliding",
|
||||||
|
"agitator": "Agitator",
|
||||||
|
"burst": "Burst",
|
||||||
|
"coalescence": "Coalescence",
|
||||||
|
"counterstrike": "Counterstrike",
|
||||||
|
"dereliction": "Dereliction",
|
||||||
|
"furious": "Furious",
|
||||||
|
"grinder_s": "Grinder (S)",
|
||||||
|
"heaven_sent": "Heaven-Sent",
|
||||||
|
"hellfire_cloak": "Hellfire Cloak",
|
||||||
|
"heroics": "Heroics",
|
||||||
|
"intrepid_heart": "Intrepid Heart",
|
||||||
|
"kushala_daora_soul": "Kushala Daora Soul",
|
||||||
|
"latent_power": "Latent Power",
|
||||||
|
"offensive_guard": "Offensive Guard",
|
||||||
|
"protective_polish": "Protective Polish",
|
||||||
|
"resuscitate": "Resuscitate",
|
||||||
|
"wall_runner": "Wall Runner",
|
||||||
|
"wind_mantle": "Wind Mantle"
|
||||||
|
},
|
||||||
"unicode_glyph_ranges": [
|
"unicode_glyph_ranges": [
|
||||||
32,
|
32,
|
||||||
255,
|
255,
|
||||||
|
|||||||
@@ -18,25 +18,57 @@
|
|||||||
},
|
},
|
||||||
"ailments": {
|
"ailments": {
|
||||||
"blast": "Взрыв",
|
"blast": "Взрыв",
|
||||||
|
"blastblight": "Blastblight",
|
||||||
|
"bleeding": "Bleeding",
|
||||||
|
"bloodblight": "Bloodblight",
|
||||||
|
"bubbleblight": "Bubbleblight",
|
||||||
|
"defense_down": "Defense Down",
|
||||||
|
"dragonblight": "Dragonblight",
|
||||||
"dung_bomb": "Навозная бомба",
|
"dung_bomb": "Навозная бомба",
|
||||||
|
"engulfed": "Engulfed",
|
||||||
"exhaust": "Усталость",
|
"exhaust": "Усталость",
|
||||||
"fall_otomo_trap": "Волчья яма спутника",
|
"fall_otomo_trap": "Волчья яма спутника",
|
||||||
"fall_trap": "Волчья яма",
|
"fall_trap": "Волчья яма",
|
||||||
"fireblight": "Огненная порча",
|
"fireblight": "Огненная порча",
|
||||||
"flash": "Оглушение",
|
"flash": "Оглушение",
|
||||||
|
"frenzy": "Frenzy",
|
||||||
|
"frenzy_infection": "Frenzy Infection",
|
||||||
|
"frenzy_overcome": "Frenzy Overcome",
|
||||||
|
"frostblight": "Frostblight",
|
||||||
|
"hellfireblight": "Hellfireblight",
|
||||||
"iceblight": "Ледяная порча",
|
"iceblight": "Ледяная порча",
|
||||||
|
"leeched": "Leeched",
|
||||||
|
"muck": "Muck",
|
||||||
"paralysis": "Паралич",
|
"paralysis": "Паралич",
|
||||||
"poison": "Отравление",
|
"poison": "Отравление",
|
||||||
"quick_sand": "Зыбучий песок",
|
"quick_sand": "Зыбучий песок",
|
||||||
|
"resistance_down": "Resistance Down",
|
||||||
"ride": "Езда на виверне",
|
"ride": "Езда на виверне",
|
||||||
|
"roar": "Roar",
|
||||||
"shock_otomo_trap": "Шоковая ловушка спутника",
|
"shock_otomo_trap": "Шоковая ловушка спутника",
|
||||||
"shock_trap": "Шоковая ловушка",
|
"shock_trap": "Шоковая ловушка",
|
||||||
"sleep": "Сон",
|
"sleep": "Сон",
|
||||||
"steel_fang": "Стальной клык",
|
"steel_fang": "Стальной клык",
|
||||||
|
"stench": "Stench",
|
||||||
"stun": "Оглушение",
|
"stun": "Оглушение",
|
||||||
"thunderblight": "Грозовая порча",
|
"thunderblight": "Грозовая порча",
|
||||||
"tranq_bomb": "Снотворная порча",
|
"tranq_bomb": "Снотворная порча",
|
||||||
"waterblight": "Водяная порча"
|
"tremor": "Tremor",
|
||||||
|
"waterblight": "Водяная порча",
|
||||||
|
"webbed": "Webbed"
|
||||||
|
},
|
||||||
|
"consumables": {
|
||||||
|
"adamant_seed": "Adamant Seed",
|
||||||
|
"armorskin": "Armorskin",
|
||||||
|
"dash_juice": "Dash Juice",
|
||||||
|
"demon_powder": "Demon Powder",
|
||||||
|
"demondrug": "Demondrug",
|
||||||
|
"gourmet_fish": "Gourmet Fish",
|
||||||
|
"hardshell_powder": "Hardshell Powder",
|
||||||
|
"immunizer": "Immunizer",
|
||||||
|
"mega_armorskin": "Mega Armorskin",
|
||||||
|
"mega_demondrug": "Mega Demondrug",
|
||||||
|
"might_seed": "Might Seed"
|
||||||
},
|
},
|
||||||
"customization_menu": {
|
"customization_menu": {
|
||||||
"UI_font": "Шрифт интерфейса",
|
"UI_font": "Шрифт интерфейса",
|
||||||
@@ -92,6 +124,7 @@
|
|||||||
"crown": "Корона",
|
"crown": "Корона",
|
||||||
"crown_thresholds": "Лимиты корон",
|
"crown_thresholds": "Лимиты корон",
|
||||||
"current_state": "Текущее состояние",
|
"current_state": "Текущее состояние",
|
||||||
|
"current_time": "Current Time",
|
||||||
"current_value": "Текущее значение",
|
"current_value": "Текущее значение",
|
||||||
"cutscene": "Катсцена",
|
"cutscene": "Катсцена",
|
||||||
"damage": "Урон",
|
"damage": "Урон",
|
||||||
@@ -100,6 +133,8 @@
|
|||||||
"damage_meter_UI": "Интерфейс модуля урона",
|
"damage_meter_UI": "Интерфейс модуля урона",
|
||||||
"damage_percentage_label": "Метка урона в процентах",
|
"damage_percentage_label": "Метка урона в процентах",
|
||||||
"damage_value_label": "Метка значений урона",
|
"damage_value_label": "Метка значений урона",
|
||||||
|
"debug": "Debug",
|
||||||
|
"debug_errors": "Debug Errors",
|
||||||
"default_state": "Состояние по умолчанию",
|
"default_state": "Состояние по умолчанию",
|
||||||
"delete": "Удалить",
|
"delete": "Удалить",
|
||||||
"distance": "Расстояние",
|
"distance": "Расстояние",
|
||||||
@@ -114,6 +149,7 @@
|
|||||||
"enabled": "Включить",
|
"enabled": "Включить",
|
||||||
"endemic_life": "Местная живность",
|
"endemic_life": "Местная живность",
|
||||||
"endemic_life_UI": "Интерфейс местной живности",
|
"endemic_life_UI": "Интерфейс местной живности",
|
||||||
|
"everything_seems_to_be_ok": "Everything seems to be OK!",
|
||||||
"family": "Семейство",
|
"family": "Семейство",
|
||||||
"farthest": "Самый дальний",
|
"farthest": "Самый дальний",
|
||||||
"fight_time": "Время в бою",
|
"fight_time": "Время в бою",
|
||||||
@@ -163,6 +199,8 @@
|
|||||||
"highlighted_buildup_bar": "Помеченная шкала накопления",
|
"highlighted_buildup_bar": "Помеченная шкала накопления",
|
||||||
"highlighted_damage_bar": "Помеченная шкала урона",
|
"highlighted_damage_bar": "Помеченная шкала урона",
|
||||||
"highlighted_targeted": "Помеченный",
|
"highlighted_targeted": "Помеченный",
|
||||||
|
"history": "History",
|
||||||
|
"history_size": "History Size",
|
||||||
"horizontal": "Горизонтально",
|
"horizontal": "Горизонтально",
|
||||||
"hotkeys": "Горячие клавиши",
|
"hotkeys": "Горячие клавиши",
|
||||||
"hunter_rank": "Ранг охотника",
|
"hunter_rank": "Ранг охотника",
|
||||||
@@ -322,7 +360,40 @@
|
|||||||
"y": "Y",
|
"y": "Y",
|
||||||
"z": "Z"
|
"z": "Z"
|
||||||
},
|
},
|
||||||
|
"dangos": {
|
||||||
|
"dango_defender_hi": "Dango Defender (Hi)"
|
||||||
|
},
|
||||||
"font_name": "NotoSansKR-Bold.otf",
|
"font_name": "NotoSansKR-Bold.otf",
|
||||||
|
"melody_effects": {
|
||||||
|
"affinity_up": "Affinity Up",
|
||||||
|
"attack_and_affinity_up": "Attack and Affinity Up",
|
||||||
|
"attack_and_defense_up": "Attack and Defense Up",
|
||||||
|
"attack_up": "Attack Up",
|
||||||
|
"blight_negated": "Blight Negated",
|
||||||
|
"defense_up": "Defense Up",
|
||||||
|
"divine_protection": "Divine Protection",
|
||||||
|
"earplugs_l": "Earplugs (L)",
|
||||||
|
"earplugs_s": "Earplugs (S)",
|
||||||
|
"elemental_attack_boost": "Elemental Attack Boost",
|
||||||
|
"environment_damage_negated": "Environment Damage Negated",
|
||||||
|
"health_recovery_l": "Health Recovery (L)",
|
||||||
|
"health_recovery_s": "Health Recovery (S)",
|
||||||
|
"health_recovery_s_antidote": "Health Recovery (S) + Antidote",
|
||||||
|
"health_regeneration": "Health Regeneration",
|
||||||
|
"infernal_melody": "Infernal Melody",
|
||||||
|
"knockbacks_negated": "Knockbacks Negated",
|
||||||
|
"self_improvement": "Self-Improvement",
|
||||||
|
"sharpness_extension": "Sharpness Extension",
|
||||||
|
"sharpness_loss_reduced": "Sharpness Loss Reduced",
|
||||||
|
"sharpness_regeneration": "Sharpness Regeneration",
|
||||||
|
"sonic_barrier": "Sonic Barrier",
|
||||||
|
"sonic_wave": "Sonic Wave",
|
||||||
|
"stamina_recovery_up": "Stamina Recovery Up",
|
||||||
|
"stamina_use_reduced": "Stamina Use Reduced",
|
||||||
|
"stun_negated": "Stun Negated",
|
||||||
|
"tremors_negated": "Tremors Negated",
|
||||||
|
"wind_pressure_negated": "Wind Pressure Negated"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"abdomen": "Брюхо",
|
"abdomen": "Брюхо",
|
||||||
"amatsu_unknown": "?",
|
"amatsu_unknown": "?",
|
||||||
@@ -392,6 +463,28 @@
|
|||||||
"wingclaws": "Крыло-коготь",
|
"wingclaws": "Крыло-коготь",
|
||||||
"wings": "Крылья"
|
"wings": "Крылья"
|
||||||
},
|
},
|
||||||
|
"skills": {
|
||||||
|
"adrenaline_rush": "Adrenaline Rush",
|
||||||
|
"affinity_sliding": "Affinity Sliding",
|
||||||
|
"agitator": "Agitator",
|
||||||
|
"burst": "Burst",
|
||||||
|
"coalescence": "Coalescence",
|
||||||
|
"counterstrike": "Counterstrike",
|
||||||
|
"dereliction": "Dereliction",
|
||||||
|
"furious": "Furious",
|
||||||
|
"grinder_s": "Grinder (S)",
|
||||||
|
"heaven_sent": "Heaven-Sent",
|
||||||
|
"hellfire_cloak": "Hellfire Cloak",
|
||||||
|
"heroics": "Heroics",
|
||||||
|
"intrepid_heart": "Intrepid Heart",
|
||||||
|
"kushala_daora_soul": "Kushala Daora Soul",
|
||||||
|
"latent_power": "Latent Power",
|
||||||
|
"offensive_guard": "Offensive Guard",
|
||||||
|
"protective_polish": "Protective Polish",
|
||||||
|
"resuscitate": "Resuscitate",
|
||||||
|
"wall_runner": "Wall Runner",
|
||||||
|
"wind_mantle": "Wind Mantle"
|
||||||
|
},
|
||||||
"unicode_glyph_ranges": [
|
"unicode_glyph_ranges": [
|
||||||
32,
|
32,
|
||||||
255,
|
255,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"gold": "金冠",
|
"gold": "金冠",
|
||||||
"mini": "小型",
|
"mini": "小型",
|
||||||
"otomo": "随从",
|
"otomo": "随从",
|
||||||
"part_anomaly_core": "Anomaly Core",
|
"part_anomaly_core": "怪异核",
|
||||||
"part_break": "部位破坏",
|
"part_break": "部位破坏",
|
||||||
"part_sever": "部位切断",
|
"part_sever": "部位切断",
|
||||||
"player": "玩家",
|
"player": "玩家",
|
||||||
@@ -18,25 +18,57 @@
|
|||||||
},
|
},
|
||||||
"ailments": {
|
"ailments": {
|
||||||
"blast": "爆破",
|
"blast": "爆破",
|
||||||
|
"blastblight": "Blastblight",
|
||||||
|
"bleeding": "Bleeding",
|
||||||
|
"bloodblight": "Bloodblight",
|
||||||
|
"bubbleblight": "Bubbleblight",
|
||||||
|
"defense_down": "Defense Down",
|
||||||
|
"dragonblight": "Dragonblight",
|
||||||
"dung_bomb": "异臭球",
|
"dung_bomb": "异臭球",
|
||||||
|
"engulfed": "Engulfed",
|
||||||
"exhaust": "减气",
|
"exhaust": "减气",
|
||||||
"fall_otomo_trap": "随从落穴陷阱",
|
"fall_otomo_trap": "随从落穴陷阱",
|
||||||
"fall_trap": "落穴陷阱",
|
"fall_trap": "落穴陷阱",
|
||||||
"fireblight": "火异常状态",
|
"fireblight": "火异常状态",
|
||||||
"flash": "闪光",
|
"flash": "闪光",
|
||||||
|
"frenzy": "Frenzy",
|
||||||
|
"frenzy_infection": "Frenzy Infection",
|
||||||
|
"frenzy_overcome": "Frenzy Overcome",
|
||||||
|
"frostblight": "Frostblight",
|
||||||
|
"hellfireblight": "Hellfireblight",
|
||||||
"iceblight": "冰异常状态",
|
"iceblight": "冰异常状态",
|
||||||
|
"leeched": "Leeched",
|
||||||
|
"muck": "Muck",
|
||||||
"paralysis": "麻痹",
|
"paralysis": "麻痹",
|
||||||
"poison": "中毒",
|
"poison": "中毒",
|
||||||
"quick_sand": "流沙",
|
"quick_sand": "流沙",
|
||||||
|
"resistance_down": "Resistance Down",
|
||||||
"ride": "御龙",
|
"ride": "御龙",
|
||||||
|
"roar": "Roar",
|
||||||
"shock_otomo_trap": "随从麻痹陷阱",
|
"shock_otomo_trap": "随从麻痹陷阱",
|
||||||
"shock_trap": "麻痹陷阱",
|
"shock_trap": "麻痹陷阱",
|
||||||
"sleep": "睡眠",
|
"sleep": "睡眠",
|
||||||
"steel_fang": "双刃锁镰",
|
"steel_fang": "双刃锁镰",
|
||||||
|
"stench": "Stench",
|
||||||
"stun": "昏厥",
|
"stun": "昏厥",
|
||||||
"thunderblight": "雷异常状态",
|
"thunderblight": "雷异常状态",
|
||||||
"tranq_bomb": "捕获用麻醉球",
|
"tranq_bomb": "捕获用麻醉球",
|
||||||
"waterblight": "水异常状态"
|
"tremor": "Tremor",
|
||||||
|
"waterblight": "水异常状态",
|
||||||
|
"webbed": "Webbed"
|
||||||
|
},
|
||||||
|
"consumables": {
|
||||||
|
"adamant_seed": "Adamant Seed",
|
||||||
|
"armorskin": "Armorskin",
|
||||||
|
"dash_juice": "Dash Juice",
|
||||||
|
"demon_powder": "Demon Powder",
|
||||||
|
"demondrug": "Demondrug",
|
||||||
|
"gourmet_fish": "Gourmet Fish",
|
||||||
|
"hardshell_powder": "Hardshell Powder",
|
||||||
|
"immunizer": "Immunizer",
|
||||||
|
"mega_armorskin": "Mega Armorskin",
|
||||||
|
"mega_demondrug": "Mega Demondrug",
|
||||||
|
"might_seed": "Might Seed"
|
||||||
},
|
},
|
||||||
"customization_menu": {
|
"customization_menu": {
|
||||||
"UI_font": "UI字体",
|
"UI_font": "UI字体",
|
||||||
@@ -49,10 +81,10 @@
|
|||||||
"ailments": "状态异常",
|
"ailments": "状态异常",
|
||||||
"all_UI": "所有UI",
|
"all_UI": "所有UI",
|
||||||
"anchor": "锚点",
|
"anchor": "锚点",
|
||||||
"anomaly_cores": "Anomaly Cores",
|
"anomaly_cores": "怪异核",
|
||||||
"anomaly_filter": "Anomaly Core",
|
"anomaly_filter": "怪异核",
|
||||||
"anomaly_health": "Anomaly Core Health",
|
"anomaly_health": "怪异核破坏值",
|
||||||
"anomaly_health_percentage": "Anomaly Core Health Percentage",
|
"anomaly_health_percentage": "怪异核破坏百分比",
|
||||||
"apply": "应用",
|
"apply": "应用",
|
||||||
"assign_new_key": "指定新按键",
|
"assign_new_key": "指定新按键",
|
||||||
"auto_highlight": "自动高亮",
|
"auto_highlight": "自动高亮",
|
||||||
@@ -61,17 +93,17 @@
|
|||||||
"blast": "爆破",
|
"blast": "爆破",
|
||||||
"body_parts": "身体部位",
|
"body_parts": "身体部位",
|
||||||
"bold": "粗体",
|
"bold": "粗体",
|
||||||
"bombs": "Bombs",
|
"bombs": "爆桶",
|
||||||
"bottom_left": "左下",
|
"bottom_left": "左下",
|
||||||
"bottom_right": "右下",
|
"bottom_right": "右下",
|
||||||
"bottom_to_top": "Bottom to Top",
|
"bottom_to_top": "从下到上",
|
||||||
"break_anomaly_filter": "Break + Anomaly Core",
|
"break_anomaly_filter": "破坏+怪异核",
|
||||||
"break_count": "破坏次数",
|
"break_count": "破坏次数",
|
||||||
"break_filter": "破坏",
|
"break_filter": "破坏",
|
||||||
"break_health": "破坏值",
|
"break_health": "破坏值",
|
||||||
"break_health_percentage": "破坏值百分比",
|
"break_health_percentage": "破坏值百分比",
|
||||||
"break_max_count": "最大破坏次数",
|
"break_max_count": "最大破坏次数",
|
||||||
"break_sever_anomaly_filter": "Break + Sever + Anomaly Core",
|
"break_sever_anomaly_filter": "破坏+切断+怪异核",
|
||||||
"break_sever_filter": "破坏+切断",
|
"break_sever_filter": "破坏+切断",
|
||||||
"buff_UI": "Buff UI",
|
"buff_UI": "Buff UI",
|
||||||
"buildup": "积累值",
|
"buildup": "积累值",
|
||||||
@@ -92,6 +124,7 @@
|
|||||||
"crown": "皇冠",
|
"crown": "皇冠",
|
||||||
"crown_thresholds": "皇冠阈值",
|
"crown_thresholds": "皇冠阈值",
|
||||||
"current_state": "当前阶段",
|
"current_state": "当前阶段",
|
||||||
|
"current_time": "Current Time",
|
||||||
"current_value": "当前值",
|
"current_value": "当前值",
|
||||||
"cutscene": "过场动画",
|
"cutscene": "过场动画",
|
||||||
"damage": "伤害",
|
"damage": "伤害",
|
||||||
@@ -100,6 +133,8 @@
|
|||||||
"damage_meter_UI": "伤害统计UI",
|
"damage_meter_UI": "伤害统计UI",
|
||||||
"damage_percentage_label": "伤害百分比标签",
|
"damage_percentage_label": "伤害百分比标签",
|
||||||
"damage_value_label": "伤害量标签",
|
"damage_value_label": "伤害量标签",
|
||||||
|
"debug": "Debug",
|
||||||
|
"debug_errors": "Debug Errors",
|
||||||
"default_state": "默认阶段",
|
"default_state": "默认阶段",
|
||||||
"delete": "删除",
|
"delete": "删除",
|
||||||
"distance": "距离",
|
"distance": "距离",
|
||||||
@@ -112,12 +147,13 @@
|
|||||||
"dynamically_positioned": "动态位置",
|
"dynamically_positioned": "动态位置",
|
||||||
"enable_for": "开启",
|
"enable_for": "开启",
|
||||||
"enabled": "开启",
|
"enabled": "开启",
|
||||||
"endemic_life": "Endemic Life",
|
"endemic_life": "环境生物",
|
||||||
"endemic_life_UI": "环境生物UI",
|
"endemic_life_UI": "环境生物UI",
|
||||||
|
"everything_seems_to_be_ok": "Everything seems to be OK!",
|
||||||
"family": "字体",
|
"family": "字体",
|
||||||
"farthest": "最远",
|
"farthest": "最远",
|
||||||
"fight_time": "战斗时间",
|
"fight_time": "战斗时间",
|
||||||
"fill_direction": "Fill Direction",
|
"fill_direction": "填充方向",
|
||||||
"filter": "筛选器",
|
"filter": "筛选器",
|
||||||
"filter_mode": "筛选方式",
|
"filter_mode": "筛选方式",
|
||||||
"first": "第一",
|
"first": "第一",
|
||||||
@@ -129,14 +165,14 @@
|
|||||||
"global_scale_modifier": "全局比例更改",
|
"global_scale_modifier": "全局比例更改",
|
||||||
"global_settings": "全局设定",
|
"global_settings": "全局设定",
|
||||||
"health": "生命",
|
"health": "生命",
|
||||||
"health_anomaly_filter": "Health + Anomaly Core",
|
"health_anomaly_filter": "生命+怪异核",
|
||||||
"health_break_anomaly_filter": "Health + Break + Anomaly Core",
|
"health_break_anomaly_filter": "生命+破坏+怪异核",
|
||||||
"health_break_filter": "生命+破坏",
|
"health_break_filter": "生命+破坏",
|
||||||
"health_break_sever_anomaly_filter": "Health + Break + Sever + Anomaly Core",
|
"health_break_sever_anomaly_filter": "生命+破坏+切断+怪异核",
|
||||||
"health_break_sever_filter": "生命+破坏+切断",
|
"health_break_sever_filter": "生命+破坏+切断",
|
||||||
"health_filter": "生命",
|
"health_filter": "生命",
|
||||||
"health_percentage": "生命百分比",
|
"health_percentage": "生命百分比",
|
||||||
"health_sever_anomaly_filter": "Health + Sever + Anomaly Core",
|
"health_sever_anomaly_filter": "生命+切断+怪异核",
|
||||||
"health_sever_filter": "生命+切断",
|
"health_sever_filter": "生命+切断",
|
||||||
"height": "高度",
|
"height": "高度",
|
||||||
"hide_ailments_with_zero_buildup": "当积累值为0时隐藏该状态异常",
|
"hide_ailments_with_zero_buildup": "当积累值为0时隐藏该状态异常",
|
||||||
@@ -163,6 +199,8 @@
|
|||||||
"highlighted_buildup_bar": "高亮积累值条",
|
"highlighted_buildup_bar": "高亮积累值条",
|
||||||
"highlighted_damage_bar": "高亮伤害条",
|
"highlighted_damage_bar": "高亮伤害条",
|
||||||
"highlighted_targeted": "高亮目标[锁定目标的UI]",
|
"highlighted_targeted": "高亮目标[锁定目标的UI]",
|
||||||
|
"history": "History",
|
||||||
|
"history_size": "History Size",
|
||||||
"horizontal": "水平",
|
"horizontal": "水平",
|
||||||
"hotkeys": "热键",
|
"hotkeys": "热键",
|
||||||
"hunter_rank": "猎人等级",
|
"hunter_rank": "猎人等级",
|
||||||
@@ -172,11 +210,11 @@
|
|||||||
"in_training_area": "在修炼场",
|
"in_training_area": "在修炼场",
|
||||||
"include": "包含",
|
"include": "包含",
|
||||||
"inside": "里面",
|
"inside": "里面",
|
||||||
"installations": "Installations",
|
"installations": "狩猎设备",
|
||||||
"italic": "斜体",
|
"italic": "斜体",
|
||||||
"join_time": "加入时间",
|
"join_time": "加入时间",
|
||||||
"killcam": "击杀镜头",
|
"killcam": "击杀镜头",
|
||||||
"kunai": "Kunai",
|
"kunai": "苦无",
|
||||||
"language": "语言",
|
"language": "语言",
|
||||||
"large_monster_UI": "大型怪物UI",
|
"large_monster_UI": "大型怪物UI",
|
||||||
"large_monster_dynamic_UI": "大型怪物浮动UI",
|
"large_monster_dynamic_UI": "大型怪物浮动UI",
|
||||||
@@ -184,7 +222,7 @@
|
|||||||
"large_monster_static_UI": "大型怪物固定UI",
|
"large_monster_static_UI": "大型怪物固定UI",
|
||||||
"large_monsters": "大型怪物群",
|
"large_monsters": "大型怪物群",
|
||||||
"last": "最后",
|
"last": "最后",
|
||||||
"left_to_right": "Left to Right",
|
"left_to_right": "从左到右",
|
||||||
"level": "等级",
|
"level": "等级",
|
||||||
"level_label": "等级标签",
|
"level_label": "等级标签",
|
||||||
"loading_quest": "任务加载中",
|
"loading_quest": "任务加载中",
|
||||||
@@ -208,7 +246,7 @@
|
|||||||
"monster_id": "怪物ID",
|
"monster_id": "怪物ID",
|
||||||
"monster_name": "怪物名",
|
"monster_name": "怪物名",
|
||||||
"monster_name_label": "怪物名标签",
|
"monster_name_label": "怪物名标签",
|
||||||
"monsters": "Monsters",
|
"monsters": "怪物",
|
||||||
"my_damage_bar_location": "我的伤害条位置",
|
"my_damage_bar_location": "我的伤害条位置",
|
||||||
"my_otomos": "我的随从",
|
"my_otomos": "我的随从",
|
||||||
"myself": "我自己",
|
"myself": "我自己",
|
||||||
@@ -221,10 +259,10 @@
|
|||||||
"offset_is_relative_to_parts": "根据部位偏移",
|
"offset_is_relative_to_parts": "根据部位偏移",
|
||||||
"opacity_falloff": "透明度增加",
|
"opacity_falloff": "透明度增加",
|
||||||
"orientation": "方向",
|
"orientation": "方向",
|
||||||
"other": "Other",
|
"other": "其它",
|
||||||
"other_player_otomos": "其他玩家的随从",
|
"other_player_otomos": "其他玩家的随从",
|
||||||
"other_players": "其他玩家",
|
"other_players": "其他玩家",
|
||||||
"otomos": "Buddies",
|
"otomos": "随从",
|
||||||
"outline": "轮廓",
|
"outline": "轮廓",
|
||||||
"outside": "外面",
|
"outside": "外面",
|
||||||
"part_health": "部位生命值",
|
"part_health": "部位生命值",
|
||||||
@@ -235,7 +273,7 @@
|
|||||||
"player_name_label": "玩家名标签",
|
"player_name_label": "玩家名标签",
|
||||||
"player_name_size_limit": "玩家名长度限制",
|
"player_name_size_limit": "玩家名长度限制",
|
||||||
"player_spacing": "玩家间距",
|
"player_spacing": "玩家间距",
|
||||||
"players": "Players",
|
"players": "玩家",
|
||||||
"playing_quest": "操作界面/正常游玩时",
|
"playing_quest": "操作界面/正常游玩时",
|
||||||
"poison": "中毒",
|
"poison": "中毒",
|
||||||
"position": "位置",
|
"position": "位置",
|
||||||
@@ -251,18 +289,18 @@
|
|||||||
"relative_offset": "相对偏移",
|
"relative_offset": "相对偏移",
|
||||||
"rename": "重命名",
|
"rename": "重命名",
|
||||||
"render_highlighted_monster": "渲染高亮怪物",
|
"render_highlighted_monster": "渲染高亮怪物",
|
||||||
"render_inactive_anomaly_cores": "Render Inactive Anomaly Cores",
|
"render_inactive_anomaly_cores": "渲染不活跃的怪异核",
|
||||||
"render_not_highlighted_monsters": "渲染非高亮怪物",
|
"render_not_highlighted_monsters": "渲染非高亮怪物",
|
||||||
"renderer": "渲染器",
|
"renderer": "渲染器",
|
||||||
"reset": "重置",
|
"reset": "重置",
|
||||||
"reversed_order": "逆向排序",
|
"reversed_order": "逆向排序",
|
||||||
"reward_screen": "奖励界面",
|
"reward_screen": "奖励界面",
|
||||||
"right_alignment_shift": "Right Alignment Shift",
|
"right_alignment_shift": "右对齐偏移距离",
|
||||||
"right_to_left": "Right to Left",
|
"right_to_left": "从右到左",
|
||||||
"servant_otomos": "盟友随从",
|
"servant_otomos": "盟友随从",
|
||||||
"servants": "盟友",
|
"servants": "盟友",
|
||||||
"settings": "设定",
|
"settings": "设定",
|
||||||
"sever_anomaly_filter": "Sever + Anomaly Core",
|
"sever_anomaly_filter": "切断+怪异核",
|
||||||
"sever_filter": "切断",
|
"sever_filter": "切断",
|
||||||
"shadow": "阴影",
|
"shadow": "阴影",
|
||||||
"show_my_otomos_separately": "分开显示我的随从",
|
"show_my_otomos_separately": "分开显示我的随从",
|
||||||
@@ -290,11 +328,11 @@
|
|||||||
"timer": "计时器",
|
"timer": "计时器",
|
||||||
"timer_label": "计时器标签",
|
"timer_label": "计时器标签",
|
||||||
"top_buildup": "最高积累值",
|
"top_buildup": "最高积累值",
|
||||||
"top_damage": "Top Damage",
|
"top_damage": "最高伤害",
|
||||||
"top_dps": "最高DPS",
|
"top_dps": "最高DPS",
|
||||||
"top_left": "左上",
|
"top_left": "左上",
|
||||||
"top_right": "右上",
|
"top_right": "右上",
|
||||||
"top_to_bottom": "Top to Bottom",
|
"top_to_bottom": "从上到下",
|
||||||
"total": "总计",
|
"total": "总计",
|
||||||
"total_buildup": "总积累值",
|
"total_buildup": "总积累值",
|
||||||
"total_buildup_label": "总积累值标签",
|
"total_buildup_label": "总积累值标签",
|
||||||
@@ -317,12 +355,45 @@
|
|||||||
"visible": "可见",
|
"visible": "可见",
|
||||||
"width": "宽度",
|
"width": "宽度",
|
||||||
"world_offset": "整体偏移",
|
"world_offset": "整体偏移",
|
||||||
"wyvern_riding": "Wyvern Riding",
|
"wyvern_riding": "御龙",
|
||||||
"x": "X轴",
|
"x": "X轴",
|
||||||
"y": "Y轴",
|
"y": "Y轴",
|
||||||
"z": "Z轴"
|
"z": "Z轴"
|
||||||
},
|
},
|
||||||
|
"dangos": {
|
||||||
|
"dango_defender_hi": "Dango Defender (Hi)"
|
||||||
|
},
|
||||||
"font_name": "NotoSansSC-Bold.otf",
|
"font_name": "NotoSansSC-Bold.otf",
|
||||||
|
"melody_effects": {
|
||||||
|
"affinity_up": "Affinity Up",
|
||||||
|
"attack_and_affinity_up": "Attack and Affinity Up",
|
||||||
|
"attack_and_defense_up": "Attack and Defense Up",
|
||||||
|
"attack_up": "Attack Up",
|
||||||
|
"blight_negated": "Blight Negated",
|
||||||
|
"defense_up": "Defense Up",
|
||||||
|
"divine_protection": "Divine Protection",
|
||||||
|
"earplugs_l": "Earplugs (L)",
|
||||||
|
"earplugs_s": "Earplugs (S)",
|
||||||
|
"elemental_attack_boost": "Elemental Attack Boost",
|
||||||
|
"environment_damage_negated": "Environment Damage Negated",
|
||||||
|
"health_recovery_l": "Health Recovery (L)",
|
||||||
|
"health_recovery_s": "Health Recovery (S)",
|
||||||
|
"health_recovery_s_antidote": "Health Recovery (S) + Antidote",
|
||||||
|
"health_regeneration": "Health Regeneration",
|
||||||
|
"infernal_melody": "Infernal Melody",
|
||||||
|
"knockbacks_negated": "Knockbacks Negated",
|
||||||
|
"self_improvement": "Self-Improvement",
|
||||||
|
"sharpness_extension": "Sharpness Extension",
|
||||||
|
"sharpness_loss_reduced": "Sharpness Loss Reduced",
|
||||||
|
"sharpness_regeneration": "Sharpness Regeneration",
|
||||||
|
"sonic_barrier": "Sonic Barrier",
|
||||||
|
"sonic_wave": "Sonic Wave",
|
||||||
|
"stamina_recovery_up": "Stamina Recovery Up",
|
||||||
|
"stamina_use_reduced": "Stamina Use Reduced",
|
||||||
|
"stun_negated": "Stun Negated",
|
||||||
|
"tremors_negated": "Tremors Negated",
|
||||||
|
"wind_pressure_negated": "Wind Pressure Negated"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"abdomen": "腹部",
|
"abdomen": "腹部",
|
||||||
"amatsu_unknown": "?",
|
"amatsu_unknown": "?",
|
||||||
@@ -392,6 +463,28 @@
|
|||||||
"wingclaws": "翼爪",
|
"wingclaws": "翼爪",
|
||||||
"wings": "翼"
|
"wings": "翼"
|
||||||
},
|
},
|
||||||
|
"skills": {
|
||||||
|
"adrenaline_rush": "Adrenaline Rush",
|
||||||
|
"affinity_sliding": "Affinity Sliding",
|
||||||
|
"agitator": "Agitator",
|
||||||
|
"burst": "Burst",
|
||||||
|
"coalescence": "Coalescence",
|
||||||
|
"counterstrike": "Counterstrike",
|
||||||
|
"dereliction": "Dereliction",
|
||||||
|
"furious": "Furious",
|
||||||
|
"grinder_s": "Grinder (S)",
|
||||||
|
"heaven_sent": "Heaven-Sent",
|
||||||
|
"hellfire_cloak": "Hellfire Cloak",
|
||||||
|
"heroics": "Heroics",
|
||||||
|
"intrepid_heart": "Intrepid Heart",
|
||||||
|
"kushala_daora_soul": "Kushala Daora Soul",
|
||||||
|
"latent_power": "Latent Power",
|
||||||
|
"offensive_guard": "Offensive Guard",
|
||||||
|
"protective_polish": "Protective Polish",
|
||||||
|
"resuscitate": "Resuscitate",
|
||||||
|
"wall_runner": "Wall Runner",
|
||||||
|
"wind_mantle": "Wind Mantle"
|
||||||
|
},
|
||||||
"unicode_glyph_ranges": [
|
"unicode_glyph_ranges": [
|
||||||
32,
|
32,
|
||||||
255,
|
255,
|
||||||
|
|||||||
@@ -18,25 +18,57 @@
|
|||||||
},
|
},
|
||||||
"ailments": {
|
"ailments": {
|
||||||
"blast": "爆破",
|
"blast": "爆破",
|
||||||
|
"blastblight": "Blastblight",
|
||||||
|
"bleeding": "Bleeding",
|
||||||
|
"bloodblight": "Bloodblight",
|
||||||
|
"bubbleblight": "Bubbleblight",
|
||||||
|
"defense_down": "Defense Down",
|
||||||
|
"dragonblight": "Dragonblight",
|
||||||
"dung_bomb": "異臭",
|
"dung_bomb": "異臭",
|
||||||
|
"engulfed": "Engulfed",
|
||||||
"exhaust": "疲勞",
|
"exhaust": "疲勞",
|
||||||
"fall_otomo_trap": "隨從地洞陷阱",
|
"fall_otomo_trap": "隨從地洞陷阱",
|
||||||
"fall_trap": "地洞陷阱",
|
"fall_trap": "地洞陷阱",
|
||||||
"fireblight": "火屬性異常",
|
"fireblight": "火屬性異常",
|
||||||
"flash": "失明",
|
"flash": "失明",
|
||||||
|
"frenzy": "Frenzy",
|
||||||
|
"frenzy_infection": "Frenzy Infection",
|
||||||
|
"frenzy_overcome": "Frenzy Overcome",
|
||||||
|
"frostblight": "Frostblight",
|
||||||
|
"hellfireblight": "Hellfireblight",
|
||||||
"iceblight": "冰屬性異常",
|
"iceblight": "冰屬性異常",
|
||||||
|
"leeched": "Leeched",
|
||||||
|
"muck": "Muck",
|
||||||
"paralysis": "麻痺",
|
"paralysis": "麻痺",
|
||||||
"poison": "毒",
|
"poison": "毒",
|
||||||
"quick_sand": "流沙",
|
"quick_sand": "流沙",
|
||||||
|
"resistance_down": "Resistance Down",
|
||||||
"ride": "操龍",
|
"ride": "操龍",
|
||||||
|
"roar": "Roar",
|
||||||
"shock_otomo_trap": "隨從麻痺陷阱",
|
"shock_otomo_trap": "隨從麻痺陷阱",
|
||||||
"shock_trap": "麻痺陷阱",
|
"shock_trap": "麻痺陷阱",
|
||||||
"sleep": "睡眠",
|
"sleep": "睡眠",
|
||||||
"steel_fang": "獵犬鋼牙",
|
"steel_fang": "獵犬鋼牙",
|
||||||
|
"stench": "Stench",
|
||||||
"stun": "暈眩",
|
"stun": "暈眩",
|
||||||
"thunderblight": "雷屬性異常",
|
"thunderblight": "雷屬性異常",
|
||||||
"tranq_bomb": "麻醉",
|
"tranq_bomb": "麻醉",
|
||||||
"waterblight": "水屬性異常"
|
"tremor": "Tremor",
|
||||||
|
"waterblight": "水屬性異常",
|
||||||
|
"webbed": "Webbed"
|
||||||
|
},
|
||||||
|
"consumables": {
|
||||||
|
"adamant_seed": "Adamant Seed",
|
||||||
|
"armorskin": "Armorskin",
|
||||||
|
"dash_juice": "Dash Juice",
|
||||||
|
"demon_powder": "Demon Powder",
|
||||||
|
"demondrug": "Demondrug",
|
||||||
|
"gourmet_fish": "Gourmet Fish",
|
||||||
|
"hardshell_powder": "Hardshell Powder",
|
||||||
|
"immunizer": "Immunizer",
|
||||||
|
"mega_armorskin": "Mega Armorskin",
|
||||||
|
"mega_demondrug": "Mega Demondrug",
|
||||||
|
"might_seed": "Might Seed"
|
||||||
},
|
},
|
||||||
"customization_menu": {
|
"customization_menu": {
|
||||||
"UI_font": "UI 字型",
|
"UI_font": "UI 字型",
|
||||||
@@ -92,6 +124,7 @@
|
|||||||
"crown": "皇冠",
|
"crown": "皇冠",
|
||||||
"crown_thresholds": "皇冠的大小判定範圍",
|
"crown_thresholds": "皇冠的大小判定範圍",
|
||||||
"current_state": "Current State",
|
"current_state": "Current State",
|
||||||
|
"current_time": "Current Time",
|
||||||
"current_value": "Current Value",
|
"current_value": "Current Value",
|
||||||
"cutscene": "Cutscene",
|
"cutscene": "Cutscene",
|
||||||
"damage": "傷害",
|
"damage": "傷害",
|
||||||
@@ -100,6 +133,8 @@
|
|||||||
"damage_meter_UI": "傷害量計算 UI",
|
"damage_meter_UI": "傷害量計算 UI",
|
||||||
"damage_percentage_label": "傷害量百分比",
|
"damage_percentage_label": "傷害量百分比",
|
||||||
"damage_value_label": "傷害量",
|
"damage_value_label": "傷害量",
|
||||||
|
"debug": "Debug",
|
||||||
|
"debug_errors": "Debug Errors",
|
||||||
"default_state": "Default State",
|
"default_state": "Default State",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"distance": "距離",
|
"distance": "距離",
|
||||||
@@ -114,6 +149,7 @@
|
|||||||
"enabled": "啟用",
|
"enabled": "啟用",
|
||||||
"endemic_life": "Endemic Life",
|
"endemic_life": "Endemic Life",
|
||||||
"endemic_life_UI": "環境生物 UI",
|
"endemic_life_UI": "環境生物 UI",
|
||||||
|
"everything_seems_to_be_ok": "Everything seems to be OK!",
|
||||||
"family": "字體",
|
"family": "字體",
|
||||||
"farthest": "最遠的",
|
"farthest": "最遠的",
|
||||||
"fight_time": "戰鬥時間",
|
"fight_time": "戰鬥時間",
|
||||||
@@ -163,6 +199,8 @@
|
|||||||
"highlighted_buildup_bar": "重點累積條",
|
"highlighted_buildup_bar": "重點累積條",
|
||||||
"highlighted_damage_bar": "重點傷害條",
|
"highlighted_damage_bar": "重點傷害條",
|
||||||
"highlighted_targeted": "鎖定的魔物資訊(目標)",
|
"highlighted_targeted": "鎖定的魔物資訊(目標)",
|
||||||
|
"history": "History",
|
||||||
|
"history_size": "History Size",
|
||||||
"horizontal": "水平",
|
"horizontal": "水平",
|
||||||
"hotkeys": "快捷鍵",
|
"hotkeys": "快捷鍵",
|
||||||
"hunter_rank": "獵人等級",
|
"hunter_rank": "獵人等級",
|
||||||
@@ -322,7 +360,40 @@
|
|||||||
"y": "Y軸",
|
"y": "Y軸",
|
||||||
"z": "Z軸"
|
"z": "Z軸"
|
||||||
},
|
},
|
||||||
|
"dangos": {
|
||||||
|
"dango_defender_hi": "Dango Defender (Hi)"
|
||||||
|
},
|
||||||
"font_name": "NotoSansTC-Bold.otf",
|
"font_name": "NotoSansTC-Bold.otf",
|
||||||
|
"melody_effects": {
|
||||||
|
"affinity_up": "Affinity Up",
|
||||||
|
"attack_and_affinity_up": "Attack and Affinity Up",
|
||||||
|
"attack_and_defense_up": "Attack and Defense Up",
|
||||||
|
"attack_up": "Attack Up",
|
||||||
|
"blight_negated": "Blight Negated",
|
||||||
|
"defense_up": "Defense Up",
|
||||||
|
"divine_protection": "Divine Protection",
|
||||||
|
"earplugs_l": "Earplugs (L)",
|
||||||
|
"earplugs_s": "Earplugs (S)",
|
||||||
|
"elemental_attack_boost": "Elemental Attack Boost",
|
||||||
|
"environment_damage_negated": "Environment Damage Negated",
|
||||||
|
"health_recovery_l": "Health Recovery (L)",
|
||||||
|
"health_recovery_s": "Health Recovery (S)",
|
||||||
|
"health_recovery_s_antidote": "Health Recovery (S) + Antidote",
|
||||||
|
"health_regeneration": "Health Regeneration",
|
||||||
|
"infernal_melody": "Infernal Melody",
|
||||||
|
"knockbacks_negated": "Knockbacks Negated",
|
||||||
|
"self_improvement": "Self-Improvement",
|
||||||
|
"sharpness_extension": "Sharpness Extension",
|
||||||
|
"sharpness_loss_reduced": "Sharpness Loss Reduced",
|
||||||
|
"sharpness_regeneration": "Sharpness Regeneration",
|
||||||
|
"sonic_barrier": "Sonic Barrier",
|
||||||
|
"sonic_wave": "Sonic Wave",
|
||||||
|
"stamina_recovery_up": "Stamina Recovery Up",
|
||||||
|
"stamina_use_reduced": "Stamina Use Reduced",
|
||||||
|
"stun_negated": "Stun Negated",
|
||||||
|
"tremors_negated": "Tremors Negated",
|
||||||
|
"wind_pressure_negated": "Wind Pressure Negated"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"abdomen": "腹部",
|
"abdomen": "腹部",
|
||||||
"amatsu_unknown": "?",
|
"amatsu_unknown": "?",
|
||||||
@@ -392,6 +463,28 @@
|
|||||||
"wingclaws": "翼爪",
|
"wingclaws": "翼爪",
|
||||||
"wings": "翅膀"
|
"wings": "翅膀"
|
||||||
},
|
},
|
||||||
|
"skills": {
|
||||||
|
"adrenaline_rush": "Adrenaline Rush",
|
||||||
|
"affinity_sliding": "Affinity Sliding",
|
||||||
|
"agitator": "Agitator",
|
||||||
|
"burst": "Burst",
|
||||||
|
"coalescence": "Coalescence",
|
||||||
|
"counterstrike": "Counterstrike",
|
||||||
|
"dereliction": "Dereliction",
|
||||||
|
"furious": "Furious",
|
||||||
|
"grinder_s": "Grinder (S)",
|
||||||
|
"heaven_sent": "Heaven-Sent",
|
||||||
|
"hellfire_cloak": "Hellfire Cloak",
|
||||||
|
"heroics": "Heroics",
|
||||||
|
"intrepid_heart": "Intrepid Heart",
|
||||||
|
"kushala_daora_soul": "Kushala Daora Soul",
|
||||||
|
"latent_power": "Latent Power",
|
||||||
|
"offensive_guard": "Offensive Guard",
|
||||||
|
"protective_polish": "Protective Polish",
|
||||||
|
"resuscitate": "Resuscitate",
|
||||||
|
"wall_runner": "Wall Runner",
|
||||||
|
"wind_mantle": "Wind Mantle"
|
||||||
|
},
|
||||||
"unicode_glyph_ranges": [
|
"unicode_glyph_ranges": [
|
||||||
32,
|
32,
|
||||||
255,
|
255,
|
||||||
|
|||||||
Reference in New Issue
Block a user