mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-25 04:48:22 -08:00
Misc Buffs: Move/Rename Immunizer to Natural Healing Up
This commit is contained in:
@@ -46,7 +46,7 @@ local package = package;
|
|||||||
this.list = {
|
this.list = {
|
||||||
attack_up = nil,
|
attack_up = nil,
|
||||||
defense_up = nil,
|
defense_up = nil,
|
||||||
stamina_use_down = nil,
|
stamina_use_down = nil
|
||||||
};
|
};
|
||||||
|
|
||||||
local misc_buffs_type_name = "misc_buffs";
|
local misc_buffs_type_name = "misc_buffs";
|
||||||
@@ -65,6 +65,10 @@ local misc_buffs_type_name = "misc_buffs";
|
|||||||
-- Peepersects 1.5min
|
-- Peepersects 1.5min
|
||||||
-- Chameleos Soul 30sec
|
-- Chameleos Soul 30sec
|
||||||
|
|
||||||
|
-- Natural Healing Up
|
||||||
|
-- Immunizer 5min
|
||||||
|
-- Vase of Vitality 20sec
|
||||||
|
|
||||||
local player_data_type_def = sdk.find_type_definition("snow.player.PlayerData");
|
local player_data_type_def = sdk.find_type_definition("snow.player.PlayerData");
|
||||||
-- Attack Up
|
-- Attack Up
|
||||||
local atk_up_buff_second_field = player_data_type_def:get_field("_AtkUpBuffSecond");
|
local atk_up_buff_second_field = player_data_type_def:get_field("_AtkUpBuffSecond");
|
||||||
@@ -76,6 +80,8 @@ local def_up_buff_second_timer_field = player_data_type_def:get_field("_DefUpBuf
|
|||||||
local stamina_up_buff_second_timer_field = player_data_type_def:get_field("_StaminaUpBuffSecondTimer");
|
local stamina_up_buff_second_timer_field = player_data_type_def:get_field("_StaminaUpBuffSecondTimer");
|
||||||
-- Immunity
|
-- Immunity
|
||||||
local debuff_prevention_timer_field = player_data_type_def:get_field("_DebuffPreventionTimer");
|
local debuff_prevention_timer_field = player_data_type_def:get_field("_DebuffPreventionTimer");
|
||||||
|
-- Immunizer
|
||||||
|
local vitalizer_timer_field = player_data_type_def:get_field("_VitalizerTimer");
|
||||||
|
|
||||||
function this.update(player, player_data)
|
function this.update(player, player_data)
|
||||||
buffs.update_generic_buff(this.list, misc_buffs_type_name, "stamina_use_down", this.get_misc_buff_name,
|
buffs.update_generic_buff(this.list, misc_buffs_type_name, "stamina_use_down", this.get_misc_buff_name,
|
||||||
@@ -89,6 +95,9 @@ function this.update(player, player_data)
|
|||||||
|
|
||||||
buffs.update_generic_buff(this.list, misc_buffs_type_name, "immunity", this.get_misc_buff_name,
|
buffs.update_generic_buff(this.list, misc_buffs_type_name, "immunity", this.get_misc_buff_name,
|
||||||
nil, nil, player_data, debuff_prevention_timer_field);
|
nil, nil, player_data, debuff_prevention_timer_field);
|
||||||
|
|
||||||
|
buffs.update_generic_buff(this.list, misc_buffs_type_name, "natural_healing_up", this.get_misc_buff_name,
|
||||||
|
nil, nil, player_data, vitalizer_timer_field);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_names()
|
function this.init_names()
|
||||||
|
|||||||
@@ -286,7 +286,8 @@ this.default_language = {
|
|||||||
attack_up = "Attack Up",
|
attack_up = "Attack Up",
|
||||||
defense_up = "Defense Up",
|
defense_up = "Defense Up",
|
||||||
stamina_use_down = "Stamina Use Down",
|
stamina_use_down = "Stamina Use Down",
|
||||||
immunity = "Immunity"
|
immunity = "Immunity",
|
||||||
|
natural_healing_up = "Natural Healing Up"
|
||||||
},
|
},
|
||||||
|
|
||||||
UI = {
|
UI = {
|
||||||
|
|||||||
@@ -372,6 +372,7 @@
|
|||||||
"attack_up": "Attack Up",
|
"attack_up": "Attack Up",
|
||||||
"defense_up": "Defense Up",
|
"defense_up": "Defense Up",
|
||||||
"immunity": "Immunity",
|
"immunity": "Immunity",
|
||||||
|
"natural_healing_up": "Natural Healing Up",
|
||||||
"stamina_use_down": "Stamina Use Down"
|
"stamina_use_down": "Stamina Use Down"
|
||||||
},
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
|
|||||||
@@ -463,6 +463,7 @@
|
|||||||
"defense_down": "Defense Down",
|
"defense_down": "Defense Down",
|
||||||
"defense_up": "Defense Up",
|
"defense_up": "Defense Up",
|
||||||
"immunity": "Immunity",
|
"immunity": "Immunity",
|
||||||
|
"natural_healing_up": "Natural Healing Up",
|
||||||
"stamina_use_down": "Stamina Use Down"
|
"stamina_use_down": "Stamina Use Down"
|
||||||
},
|
},
|
||||||
"otomo_moves": {
|
"otomo_moves": {
|
||||||
|
|||||||
@@ -464,6 +464,7 @@
|
|||||||
"defense_down": "Defense Down",
|
"defense_down": "Defense Down",
|
||||||
"defense_up": "Defense Up",
|
"defense_up": "Defense Up",
|
||||||
"immunity": "Immunity",
|
"immunity": "Immunity",
|
||||||
|
"natural_healing_up": "Natural Healing Up",
|
||||||
"stamina_use_down": "Stamina Use Down"
|
"stamina_use_down": "Stamina Use Down"
|
||||||
},
|
},
|
||||||
"otomo_moves": {
|
"otomo_moves": {
|
||||||
|
|||||||
@@ -464,6 +464,7 @@
|
|||||||
"defense_down": "Defense Down",
|
"defense_down": "Defense Down",
|
||||||
"defense_up": "Defense Up",
|
"defense_up": "Defense Up",
|
||||||
"immunity": "Immunity",
|
"immunity": "Immunity",
|
||||||
|
"natural_healing_up": "Natural Healing Up",
|
||||||
"stamina_use_down": "Stamina Use Down"
|
"stamina_use_down": "Stamina Use Down"
|
||||||
},
|
},
|
||||||
"otomo_moves": {
|
"otomo_moves": {
|
||||||
|
|||||||
@@ -464,6 +464,7 @@
|
|||||||
"defense_down": "Defense Down",
|
"defense_down": "Defense Down",
|
||||||
"defense_up": "Defense Up",
|
"defense_up": "Defense Up",
|
||||||
"immunity": "Immunity",
|
"immunity": "Immunity",
|
||||||
|
"natural_healing_up": "Natural Healing Up",
|
||||||
"stamina_use_down": "Stamina Use Down"
|
"stamina_use_down": "Stamina Use Down"
|
||||||
},
|
},
|
||||||
"otomo_moves": {
|
"otomo_moves": {
|
||||||
|
|||||||
@@ -464,6 +464,7 @@
|
|||||||
"defense_down": "Defense Down",
|
"defense_down": "Defense Down",
|
||||||
"defense_up": "Defense Up",
|
"defense_up": "Defense Up",
|
||||||
"immunity": "Immunity",
|
"immunity": "Immunity",
|
||||||
|
"natural_healing_up": "Natural Healing Up",
|
||||||
"stamina_use_down": "Stamina Use Down"
|
"stamina_use_down": "Stamina Use Down"
|
||||||
},
|
},
|
||||||
"otomo_moves": {
|
"otomo_moves": {
|
||||||
|
|||||||
Reference in New Issue
Block a user