Skip to content

Commit 24eb04c

Browse files
authored
Silent Hill 1 Classic support (#23)
1 parent 6d51b86 commit 24eb04c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ function appendData(data) {
325325
case "REREV2":
326326
ResidentEvilRevelations2(data);
327327
return;
328+
case "SH1":
329+
SilentHill(data);
330+
return;
328331
case "SH2C":
329332
SilentHill2Classic(data);
330333
return;
@@ -959,6 +962,17 @@ function ResidentEvilRevelations2(data)
959962
DrawProgressBar(data.Player2.CurrentHP, data.Player2.MaxHP, data.Player2.Percentage, data.Player2Name, _colors2);
960963
}
961964

965+
// SILENT HILL 1 CLASSIC
966+
function SilentHill1(data) {
967+
const harryState = { CurrentHealthState: data.HarryHealthStatusName };
968+
let _colors = GetColor(harryState);
969+
DrawTextBlock("IGT", data.IGTFormattedString, ["white", "green2"], HideIGT);
970+
DrawProgressBar(data.HarryHP, 100, data.HarryHP / 100, "Harry: ", _colors);
971+
DrawTextBlock("Status", data.HarryHealthStatusName, ["white", _colors[1]], false);
972+
DrawTextBlock("Saves", data.SaveCount, ["white", "green2"], HideStats);
973+
DrawTextBlock("TV", data.VersionInfo, ["white", "green2"], !IsDebug);
974+
}
975+
962976
// SILENT HILL 2 CLASSIC
963977
// SILENT HILL 2 CLASSIC
964978
function SilentHill2Classic(data) {

0 commit comments

Comments
 (0)