adds death counter to credits, initializes hp counter at spawn

This commit is contained in:
duncathan 2021-03-25 04:34:06 -06:00
parent b8628a7a2c
commit e5ef1c7924
4 changed files with 596 additions and 145 deletions

BIN
pre-edited-cs/bad.dat Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -530,10 +530,11 @@ function worldGraph:Arthur() return self.spawn == "Arthur's House" end
function worldGraph:Camp() return self.spawn == "Camp" end
function worldGraph:getSpawnScript()
if self:StartPoint() then return "<FL+6200<EVE0091" end
local initialHPCounter = "<FL+4011<FL+4012" -- initializes the HP counter to 3 HP
if self:StartPoint() then return initialHPCounter .. "<FL+6200<EVE0091" end
local earlyGameFlags = "<FL+0301<FL+0302<FL+1641<FL+1642<FL+0320<FL+0321"
if self:Arthur() then return "<FL+6201" .. earlyGameFlags .. "<TRA0001:0094:0008:0004" end
if self:Camp() then return "<FL+6202" .. earlyGameFlags .. "<TRA0040:0094:0014:0009" end
if self:Arthur() then return initialHPCounter .. "<FL+6201" .. earlyGameFlags .. "<TRA0001:0094:0008:0004" end
if self:Camp() then return initialHPCounter .. "<FL+6202" .. earlyGameFlags .. "<TRA0040:0094:0014:0009" end
end
function worldGraph:getLocations()