4 Commits

Author SHA1 Message Date
GreenComfyTea
7346b8d96f Update Korean Localization to v2.4.1 2023-03-01 17:41:02 +02:00
GreenComfyTea
7158c0d367 Uncomment Poison and Stun Ailment Buildup UIs 2023-03-01 16:59:24 +02:00
GreenComfyTea
c145c8a37b Move debug xy 2023-03-01 16:46:29 +02:00
GreenComfyTea
c1464dcc12 Fix poison damage not being accounted due to buildup_share being deep-copied 2023-03-01 16:46:11 +02:00
6 changed files with 110 additions and 110 deletions

View File

@@ -343,8 +343,8 @@ if debug.enabled then
end
if xy ~= "" then
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 6, 31, 0xFF000000);
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 5, 30, 0xFFFFFFFF);
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 256, 71, 0xFF000000);
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 255, 70, 0xFFFFFFFF);
end
end);
end
@@ -355,8 +355,8 @@ if debug.enabled then
end
if xy ~= "" then
draw.text("xy:\n" .. tostring(xy), 6, 31, 0xFF000000);
draw.text("xy:\n" .. tostring(xy), 5, 30, 0xFFFFFFFF);
draw.text("xy:\n" .. tostring(xy), 256, 31, 0xFF000000);
draw.text("xy:\n" .. tostring(xy), 255, 30, 0xFFFFFFFF);
end
end);
end

View File

@@ -203,7 +203,7 @@ function damage_hook.update_damage(enemy, enemy_calc_damage_info)
player = players.get_player(attacker_id);
otomo = non_players.get_otomo(attacker_id);
elseif attacker_id == 4 then
player = players.myself
player = players.myself;
otomo = non_players.get_otomo(non_players.my_second_otomo_id);
else
player = non_players.get_servant(attacker_id - 1);

View File

@@ -53,14 +53,14 @@ function ailment_buildup.draw(monster, ailment_buildup_UI, cached_config, ailmen
for id, ailment in pairs(monster.ailments) do
if id == ailments.stun_id then
--if not cached_config.filter.stun then
if not cached_config.filter.stun then
goto continue
--end
end
elseif id == ailments.poison_id then
--if not cached_config.filter.poison then
if not cached_config.filter.poison then
goto continue
--end
end
elseif id == ailments.blast_id then
if not cached_config.filter.blast then
goto continue

View File

@@ -80,8 +80,9 @@ function ailment_hook.poison_proc(poison_param)
monster = small_monster.get_monster(enemy);
end
monster.ailments[ailments.poison_id].cached_buildup_share = table_helpers.deep_copy(monster.ailments[ailments.poison_id].buildup_share);
monster.ailments[ailments.poison_id].cached_otomo_buildup_share = table_helpers.deep_copy(monster.ailments[ailments.poison_id].otomo_buildup_share);
monster.ailments[ailments.poison_id].cached_buildup_share = monster.ailments[ailments.poison_id].buildup_share;
monster.ailments[ailments.poison_id].cached_otomo_buildup_share = monster.ailments[ailments.poison_id].otomo_buildup_share;
ailments.clear_ailment_contribution(monster, ailments.poison_id);
end

View File

@@ -684,7 +684,6 @@ function ailments.draw(monster, ailment_UI, cached_config, ailments_position_on_
end
function ailments.apply_ailment_buildup(monster, player, otomo, ailment_type, ailment_buildup)
if monster == nil or
(ailment_type ~= ailments.poison_id and ailment_type ~= ailments.blast_id and ailment_type ~= ailments.stun_id)
or (ailment_buildup == 0 or ailment_buildup == nil) then
@@ -723,6 +722,10 @@ function ailments.calculate_ailment_contribution(monster, ailment_type)
total = total + otomo_buildup;
end
if total == 0 then
total = 1;
end
for player, player_buildup in pairs(monster.ailments[ailment_type].buildup) do
-- update ratio for this player
monster.ailments[ailment_type].buildup_share[player] = player_buildup / total;
@@ -735,15 +738,11 @@ function ailments.calculate_ailment_contribution(monster, ailment_type)
end
function ailments.clear_ailment_contribution(monster, ailment_type)
for player, player_buildup in pairs(monster.ailments[ailment_type].buildup) do
monster.ailments[ailment_type].buildup_share[player] = 0;
monster.ailments[ailment_type].buildup[player] = 0;
end
monster.ailments[ailment_type].buildup = {};
monster.ailments[ailment_type].otomo_buildup = {};
for aotomo, otomo_buildup in pairs(monster.ailments[ailment_type].otomo_buildup) do
monster.ailments[ailment_type].otomo_buildup_share[aotomo] = 0;
monster.ailments[ailment_type].otomo_buildup[aotomo] = 0;
end
monster.ailments[ailment_type].buildup_share = {};
monster.ailments[ailment_type].otomo_buildup_share = {};
end
-- Code by coavins
@@ -781,7 +780,7 @@ function ailments.apply_ailment_damage(monster, ailment_type, ailment_damage)
damage_object.elemental_damage = 0;
damage_object.ailment_damage = damage_portion;
players.update_damage(player, damage_source_type, true, damage_object);
players.update_damage(player, damage_source_type, monster.is_large, damage_object);
end
-- split up damage according to ratio of buildup on boss for this type
@@ -797,10 +796,10 @@ function ailments.apply_ailment_damage(monster, ailment_type, ailment_damage)
local player = players.get_player(otomo.id);
if player ~= nil then
players.update_damage(player, otomo_damage_source_type, true, damage_object);
players.update_damage(player, otomo_damage_source_type, monster.is_large, damage_object);
end
players.update_damage(otomo, otomo_damage_source_type, true, damage_object);
players.update_damage(otomo, otomo_damage_source_type, monster.is_large, damage_object);
end
local damage_object = {};
@@ -809,7 +808,7 @@ function ailments.apply_ailment_damage(monster, ailment_type, ailment_damage)
damage_object.elemental_damage = 0;
damage_object.ailment_damage = ailment_damage;
players.update_damage(players.total, damage_source_type, true, damage_object);
players.update_damage(players.total, damage_source_type, monster.is_large, damage_object);
end
function ailments.init_module()

View File

@@ -4,12 +4,12 @@
"buildup": "누적치:",
"gold": "금관",
"mini": "최소",
"otomo": "Buddy",
"otomo": "동반자",
"part_break": "파괴",
"part_sever": "절단",
"player": "헌터",
"rage": "분노:",
"servant": "Follower",
"servant": "맹우",
"silver": "은관",
"stamina": "스태미나:",
"total_buildup": "총 누적치",
@@ -52,7 +52,7 @@
"assign_new_key": "새 키를 할당",
"auto_highlight": "자동 타겟 설정",
"background": "배경색",
"bar": "",
"bar": "막대",
"blast_damage": "폭파 대미지",
"body_parts": "부위",
"bold": "굵게",
@@ -65,10 +65,10 @@
"break_health_percentage": "파괴 수치 비율",
"break_max_count": "최대 파괴 횟수",
"break_severe_filter": "파괴 + 절단",
"buff_UI": "Buff UI",
"buff_UI": "버프 UI",
"buildup": "누적치",
"buildup_bar": "누적치 ",
"buildup_bars_are_relative_to": "기준으로 누적치 ",
"buildup_bar": "누적치 막대",
"buildup_bars_are_relative_to": "기준으로 누적치 막대",
"buildup_percentage": "누적치 비율",
"buildup_percentage_label": "누적치 비율 정보",
"buildup_value_label": "누적치 값 정보",
@@ -79,24 +79,24 @@
"closest": "가장 가까운",
"color": "색상",
"colors": "색상",
"config": "Config",
"config": "설정",
"creature_name_label": "환경생물 이름 정보",
"crown": "금관",
"crown_thresholds": "금관 판정값",
"cutscene": "Cutscene",
"cutscene": "컷신",
"damage": "대미지",
"damage_bar": "대미지 ",
"damage_bars_are_relative_to": "기준으로 대미지 바",
"damage_bar": "대미지 막대",
"damage_bars_are_relative_to": "대미지 막대 순서",
"damage_meter_UI": "대미지 미터 UI",
"damage_percentage_label": "대미지 비율 정보",
"damage_value_label": "대미지 값 정보",
"delete": "Delete",
"distance": "거리",
"delete": "삭제하기",
"distance": "간격",
"dps": "DPS",
"dps_label": "DPS 정보",
"dps_mode": "DPS 모드",
"duplicate": "Duplicate",
"duration": "Duration",
"duplicate": "복제하기",
"duration": "지속시간",
"dynamic_positioning": "유동 위치",
"dynamically_positioned": "유동 위치 UI",
"enable_for": "표시 대상",
@@ -107,11 +107,11 @@
"farthest": "가장 멀리있는",
"fight_time": "전투 시간",
"filter": "필터",
"first": "처음",
"first": "맨 앞",
"first_hit": "첫 공격",
"flinch_count": "경직 횟수",
"foreground": "전경색",
"freeze_dps_on_quest_end": "Freeze DPS on Quest End",
"freeze_dps_on_quest_end": "퀘스트 종료시 DPS 멈춤",
"global_position_modifier": "전역 위치 배율",
"global_scale_modifier": "전역 크기 배율",
"global_settings": "전역 설정",
@@ -122,54 +122,54 @@
"health_percentage": "체력 비율",
"health_severe_filter": "체력 + 절단",
"height": "높이",
"hide_ailments_with_zero_buildup": "누적치가 0이면 상태이상 숨김",
"hide_all_active_ailments": "걸린 상태이상 모두 숨김",
"hide_all_inactive_ailments": "걸리지 않은 상태이상 모두 숨김",
"hide_bar_for_infinite_buffs": "Hide Bar for infinite Buffs",
"hide_dead_or_captured": "토벌되거나 포획되면 숨김",
"hide_disabled_ailments": "비활성화된 상태이상 숨김",
"hide_inactive_ailments_with_no_buildup_support": "누적치가 없고 걸리지 않은 상태이상 숨김",
"hide_inactive_creatures": "쿨타임인 환경생물 숨김",
"hide_module_if_total_damage_is_zero": "총 대미지가 0이면 UI 숨김",
"hide_myself": "내 정보 숨김",
"hide_other_players": "다른 헌터 정보 숨김",
"hide_player_if_player_damage_is_zero": "헌터 대미지가 0이면 헌터 숨김",
"hide_servants": "Hide Followers",
"hide_timer_for_infinite_buffs": "Hide Timer for infinite Buffs",
"hide_total_damage": "모든 대미지 숨김",
"hide_total_if_total_damage_is_zero": "총 대미지가 0이면 모두 숨김이 높은",
"hide_undamaged_parts": "피해를 입히지 않은 부위 숨김",
"hide_ailments_with_zero_buildup": "누적치가 0이면 상태이상 표시 안 함",
"hide_all_active_ailments": "걸린 상태이상 모두 표시 안 함",
"hide_all_inactive_ailments": "걸리지 않은 상태이상 모두 표시 안 함",
"hide_bar_for_infinite_buffs": "무한 버프의 막대는 표시 안 함",
"hide_dead_or_captured": "토벌되거나 포획되면 표시 안 함",
"hide_disabled_ailments": "비활성화된 상태이상 표시 안 함",
"hide_inactive_ailments_with_no_buildup_support": "누적치가 없고 걸리지 않은 상태이상 표시 안 함",
"hide_inactive_creatures": "쿨타임인 환경생물 표시 안 함",
"hide_module_if_total_damage_is_zero": "총 대미지가 0이면 UI 표시 안 함",
"hide_myself": "내 정보 표시 안 함",
"hide_other_players": "다른 헌터 정보 표시 안 함",
"hide_player_if_player_damage_is_zero": "헌터 대미지가 0이면 헌터 표시 안 함",
"hide_servants": "맹우 표시 안 함",
"hide_timer_for_infinite_buffs": "무한 버프는 표시 안 함",
"hide_total_damage": "모든 대미지 표시 안 함",
"hide_total_if_total_damage_is_zero": "총 대미지가 0이면 모두 표시 안 함",
"hide_undamaged_parts": "피해를 입히지 않은 부위 표시 안 함",
"highest_health": "가장 체력이 높은",
"highest_health_percentage": "가장 체력 비율이 높은",
"highlighted": "Highlighted",
"highlighted_bar": "타겟이 된 몬스터 ",
"highlighted_buildup_bar": "타겟이 된 몬스터 누적치 ",
"highlighted_damage_bar": "타겟이 된 몬스터 대미지 ",
"highlighted_targeted": "타겟이 된 몬스터 표시",
"highlighted": "주시대상",
"highlighted_bar": "주시대상 몬스터 막대",
"highlighted_buildup_bar": "주시대상 몬스터 누적치 막대",
"highlighted_damage_bar": "주시대상 몬스터 대미지 막대",
"highlighted_targeted": "주시대상 몬스터 표시",
"horizontal": "가로",
"hotkeys": "단축키",
"hunter_rank": "헌터 랭크",
"hunter_rank_label": "헌터 랭크 정보",
"id": "ID",
"in_lobby": "In Lobby",
"in_training_area": "In Training Area",
"in_lobby": "로비 내",
"in_training_area": "훈련구역 내",
"include": "포함",
"inside": "내부",
"installation_damage": "설비 대미지",
"italic": "기울임",
"join_time": "참가 시간",
"killcam": "Killcam",
"killcam": "처치 영상",
"kunai_damage": "쿠나이 대미지",
"language": "언어",
"large_monster_UI": "대형 몬스터 UI",
"large_monster_dynamic_UI": "대형 몬스터 유동 UI",
"large_monster_highlighted_UI": "타겟이 된 대형 몬스터 UI",
"large_monster_highlighted_UI": "주시대상 대형 몬스터 UI",
"large_monster_static_UI": "대형 몬스터 고정 UI",
"large_monsters": "대형 몬스터",
"last": "마지막",
"level": "Level",
"level_label": "Level Label",
"loading_quest": "Loading Quest",
"last": "맨 뒤",
"level": "레벨",
"level_label": "레벨 정보",
"loading_quest": "퀘스트 로딩 중",
"loss_health": "절단 수치",
"loss_health_percentage": "절단 수치 비율",
"lowest_health": "가장 체력이 낮은",
@@ -183,27 +183,27 @@
"mod_name": "MHR Overlay",
"mode": "모드",
"modifiers": "설정 배율",
"module_visibility_based_on_game_state": "Module Visibility based on Game State",
"module_visibility_based_on_game_state": "게임 상태에 따라 모듈 표시",
"modules": "UI",
"monster_can_be_captured": "몬스터 포획 가능",
"monster_damage": "몬스터 대미지",
"monster_id": "Monster ID",
"monster_id": "몬스터 ID",
"monster_name": "몬스터명",
"monster_name_label": "몬스터명 정보",
"my_damage_bar_location": "내 대미지 위치",
"my_otomos": "My Buddies",
"myself": "Myself",
"name": "Name",
"name_label": "Name Label",
"new": "New",
"my_damage_bar_location": "내 대미지 막대 위치",
"my_otomos": "내 동반자",
"myself": "",
"name": "이름",
"name_label": "이름 정보",
"new": "",
"none": "없음",
"normal": "보통",
"offset": "거리",
"offset_is_relative_to_parts": "거리를 부위 기준으로",
"normal": "기본",
"offset": "오프셋",
"offset_is_relative_to_parts": "오프셋을 부위 기준으로",
"opacity_falloff": "투명도 감소",
"orientation": "방향",
"other_damage": "기타 대미지",
"other_player_otomos": "Other Player Buddies",
"other_player_otomos": "다른 플레이어 동반자",
"other_players": "다른 헌터",
"otomo_damage": "동반자 대미지",
"outline": "외곽선",
@@ -217,34 +217,34 @@
"player_name_label": "헌터명 정보",
"player_name_size_limit": "헌터명 크기 제한",
"player_spacing": "플레이어 간격",
"playing_quest": "Playing Quest",
"playing_quest": "퀘스트 중",
"poison_damage": "독 대미지",
"position": "위치",
"press_any_key": "설정할 키를 누르세요...",
"prioritize_large_monsters": "대형 몬스터를 우선적으로",
"quest_end_animation": "Quest End Animation",
"quest_end_screen": "Quest End Screen",
"quest_end_timer": "Quest End Timer",
"quest_start_animation": "Quest Start Animation",
"quest_end_animation": "퀘스트 종료 영상",
"quest_end_screen": "퀘스트 종료 화면",
"quest_end_timer": "퀘스트 종료 타이머",
"quest_start_animation": "퀘스트 시작 영상",
"quest_time": "퀘스트 시간",
"rage": "분노",
"reframework_outdated": "설치된 REFramework가 구버전입니다. 업데이트 하지 않으면 MHR Overlay가 제대로 동작하지 않을 수 있습니다.",
"relative_offset": "상대적 위치 거리",
"rename": "Rename",
"render_highlighted_monster": "타겟이 된 몬스터 표시",
"render_not_highlighted_monsters": "타겟이 아닌 몬스터 표시",
"renderer": "Renderer",
"reset": "Reset",
"relative_offset": "상대적 위치 오프셋",
"rename": "이름 변경",
"render_highlighted_monster": "주시대상 몬스터 표시",
"render_not_highlighted_monsters": "주시대상이 아닌 아닌 몬스터 표시",
"renderer": "렌더링",
"reset": "리셋",
"reversed_order": "역순",
"reward_screen": "Reward Screen",
"servant_otomos": "Servant Buddies",
"servants": "Followers",
"reward_screen": "보상 화면",
"servant_otomos": "맹우 동반자",
"servants": "맹우",
"settings": "설정",
"severe_filter": "절단",
"shadow": "그림자",
"show_my_otomos_separately": "Show my Buddies separately",
"show_other_player_otomos_separately": "Show Other Player Buddies separately",
"show_servant_otomos_separately": "Show Follower Buddies separately",
"show_my_otomos_separately": "내 동반자를 따로",
"show_other_player_otomos_separately": "다른 플레이어의 동반자를 따로",
"show_servant_otomos_separately": "맹우의 동반자를 따로",
"size": "크기",
"small_monster_UI": "소형 몬스터 UI",
"small_monsters": "소형 몬스터",
@@ -258,41 +258,41 @@
"statically_positioned": "고정 위치 UI",
"status": "상태",
"style": "스타일",
"summary_screen": "Summary Screen",
"summary_screen": "결과 요약 화면",
"text_label": "텍스트 정보",
"thickness": "두께",
"time_UI": "시간 UI",
"time_label": "시간 정보",
"time_limit": "시간 제한 (단위: 초)",
"timer": "Timer",
"timer": "타이머",
"timer_label": "타이머 정보",
"top_buildup": "총 누적치",
"top_damage": "최고 대미지",
"top_dps": "최고 DPS",
"top_left": "좌상단",
"top_right": "우상단",
"total": "Total",
"total": "전체",
"total_buildup": "총 누적치",
"total_buildup_label": "총 누적치 정보",
"total_buildup_value_label": "총 누적치 값 정보",
"total_cart_count_label": "Total Cart Count Label",
"total_cart_count_label": "총 수레 횟수 정보",
"total_damage": "총 대미지",
"total_damage_label": "총 대미지 정보",
"total_damage_location": "Total Damage Bar Location",
"total_damage_offset_is_relative": "총 대미지 거리를 상대적 값으로",
"total_damage_location": "총 대미지 막대 위치",
"total_damage_offset_is_relative": "총 대미지 오프셋을 상대적 값으로",
"total_damage_value_label": "총 대미지 값 정보",
"total_dps": "총 DPS",
"total_dps_label": "총 DPS 정보",
"tracked_damage_types": "추적할 대미지 종류",
"tracked_monster_types": "추적할 몬스터 타입",
"type": "순으로",
"use_d2d_if_available": "Use Direct2D if available",
"type": "종류",
"use_d2d_if_available": "가능한 Direct2D를 사용함",
"value_label": "값 정보",
"vertical": "세로",
"viewport_offset": "뷰포트 거리",
"viewport_offset": "뷰포트 오프셋",
"visible": "표시함",
"width": "너비",
"world_offset": "전역 거리",
"world_offset": "전역 오프셋",
"wyvern_riding_damage": "용조종 대미지",
"x": "X",
"y": "Y",
@@ -357,7 +357,7 @@
"tail_mud": "꼬리(진흙)",
"tail_tip": "꼬리끝",
"tail_windsac": "꼬리(바람주머니)",
"thundersacs": "Thundersacs",
"thundersacs": "번개주머니",
"torso": "몸통",
"torso_mud": "몸통(진흙)",
"unknown": "?",