@@ -71,23 +71,23 @@ display.types[43]=1.3333
7171display.types[169]=1.7777
7272display.types[1610]=1.56
7373
74- local maxhp={}
74+ maxhp={}
7575maxhp.head=11
7676maxhp.torso=11
7777maxhp.leftarm=5
7878maxhp.rightarm=5
7979maxhp.leftleg=5
8080maxhp.rightleg=5
8181
82- local health={}
82+ health={}
8383health.head=maxhp.head
8484health.torso=maxhp.torso
8585health.leftarm=maxhp.leftarm
8686health.rightarm=maxhp.rightarm
8787health.leftleg=maxhp.leftleg
8888health.rightleg=maxhp.rightleg
8989
90- local preview={}
90+ preview={}
9191
9292preview.health={}
9393preview.health.head=nil
@@ -106,15 +106,15 @@ preview.bonus.leftleg=nil
106106preview.bonus.rightleg=nil
107107
108108
109- local timedhp={}
109+ timedhp ={}
110110timedhp.head=0
111111timedhp.torso=0
112112timedhp.leftarm=0
113113timedhp.rightarm=0
114114timedhp.leftleg=0
115115timedhp.rightleg=0
116116
117- local hud_blink_timer={}
117+ hud_blink_timer={}
118118hud_blink_timer.head=0
119119hud_blink_timer.torso=0
120120hud_blink_timer.leftarm=0
@@ -819,15 +819,15 @@ local function HUDUpdate()
819819 if class=="main" and showparts then
820820 str = str..colors[GetConditionFromFloat(health[array]/maxhp[array],array)]
821821 for i=1,(preview.health[array] or health[array])-(preview.bonus[array] or timedhp[array]) do
822- str=str.."� "
822+ str=str.." "
823823 end
824824 str=str..colors.good
825825 for i=1,(preview.bonus[array] or timedhp[array]) do
826- str=str.."� "
826+ str=str.." "
827827 end
828828 str=str..colors.blank
829829 for i=1,maxhp[array]-(preview.health[array] or health[array]) do
830- str=str.."� "
830+ str=str.." "
831831 end
832832 local whatcolor="grey"
833833 if health[array]<=4 then whatcolor="critical" end
@@ -849,11 +849,11 @@ local function HUDUpdate()
849849 if db.actor.health>=1.0 then hp_in_ints=11 end
850850 if db.actor.health<=0.0 then hp_in_ints=0 end
851851 for i=1,hp_in_ints do
852- str=str.."� "
852+ str=str.." "
853853 end
854854 str=str..colors.blank
855855 for i=1,11-hp_in_ints do
856- str=str.."� "
856+ str=str.." "
857857 end
858858 local whatcolor="grey"
859859 if db.actor.health<=0.4 then whatcolor="critical" end
@@ -866,11 +866,11 @@ local function HUDUpdate()
866866 if db.actor.power>0.98 then hp_in_ints=11 end
867867 if db.actor.power<=0.0 then hp_in_ints=0 end
868868 for i=1,hp_in_ints do
869- str=str.."� "
869+ str=str.." "
870870 end
871871 str=str..colors.blank
872872 for i=1,11-hp_in_ints do
873- str=str.."� "
873+ str=str.." "
874874 end
875875 local whatcolor="grey"
876876 -- if db.actor.power<=0.4 then whatcolor="critical" end
@@ -881,38 +881,38 @@ local function HUDUpdate()
881881 if class=="limbs" and showparts then
882882 str = str..colors[GetConditionFromFloat(health[array]/maxhp[array],array)]
883883 for i=1,(preview.health[array] or health[array])-(preview.bonus[array] or timedhp[array]) do
884- str=str.."� "
884+ str=str.." "
885885 end
886886 str=str..colors.good
887887 for i=1,(preview.bonus[array] or timedhp[array]) do
888- str=str.."� "
888+ str=str.." "
889889 end
890890 str=str..colors.blank
891891 for i=1,maxhp[array]-(preview.health[array] or health[array]) do
892- str=str.."� "
892+ str=str.." "
893893 end
894894 str=str.." "
895895 if (preview.health[array2] or health[array2])<maxhp[array2] then
896896 str=str..colors.blank
897897 for i=1,maxhp[array2]-(preview.health[array2] or health[array2]) do
898- str=str.."� "
898+ str=str.." "
899899 end
900900 str=str..colors.good
901901 for i=1,(preview.bonus[array2] or timedhp[array2]) do
902- str=str.."� "
902+ str=str.." "
903903 end
904904 str = str..colors[GetConditionFromFloat(health[array2]/maxhp[array2],array2)]
905905 for i=1,(preview.health[array2] or health[array2])-(preview.bonus[array2] or timedhp[array2]) do
906- str=str.."� "
906+ str=str.." "
907907 end
908908 else
909909 str=str..colors.good
910910 for i=1,(preview.bonus[array2] or timedhp[array2]) do
911- str=str.."� "
911+ str=str.." "
912912 end
913913 for i=1,(preview.health[array2] or health[array2])-(preview.bonus[array2] or timedhp[array2]) do
914914 str = str..colors[GetConditionFromFloat(health[array2]/maxhp[array2],array2)]
915- str=str.."� "
915+ str=str.." "
916916 end
917917 end
918918 local whatcolor="grey"
@@ -1794,4 +1794,4 @@ function on_game_start()
17941794 RegisterScriptCallback("ActorMenu_on_mode_changed",ActorMenu_on_mode_changed)
17951795
17961796 --RegisterScriptCallback("npc_on_hit_callback", npc_on_hit_callback)
1797- end
1797+ end
0 commit comments