adds 100% to UI

This commit is contained in:
duncathan 2020-03-06 03:48:33 -06:00
parent 6145e1e234
commit 57bce5fd86
4 changed files with 8 additions and 2 deletions

View file

@ -409,7 +409,8 @@ local function _itemData()
objBadEnd = objective("Bad Ending", "<FL+6003"),
objNormalEnd = objective("Normal Ending", "<FL+6000"),
objBestEnd = objective("Best Ending", "<FL+6001"),
objAllBosses = objective("All Bosses", "<FL+6002<IT+0005")
objAllBosses = objective("All Bosses", "<FL+6002<IT+0005"),
obj100Percent = objective("100%", "<FL+6004<IT+0005")
}
local hintArray = {

View file

@ -359,6 +359,8 @@ function C:_updateSharecode(seed)
settings = bit.bor(settings, bit.blshift(2, obj))
elseif self.obj == "objAllBosses" then
settings = bit.bor(settings, bit.blshift(3, obj))
elseif self.obj == "obj100Percent" then
settings = bit.bor(settings, bit.blshift(4, obj))
end
if self.puppy then settings = bit.bor(settings, bit.blshift(1, pup)) end

View file

@ -67,6 +67,8 @@ function C:loadObjective(obj)
settings.objective.index = 2
elseif obj == "objAllBosses" or obj == 3 then
settings.objective.index = 4
elseif obj == "obj100Percent" or obj == 4 then
settings.objective.index = 5
else
settings.objective.index = 3
end

View file

@ -33,7 +33,8 @@ return { style = 'dialog',
{ text = "Bad ending", value = "objBadEnd" },
{ text = "Normal ending", value = "objNormalEnd" },
{ text = "Best ending", value = "objBestEnd" },
{ text = "All bosses", value = "objAllBosses"}
{ text = "All bosses", value = "objAllBosses" },
{ text = "100%", value = "obj100Percent" }
},
{ type = 'label', text = 'Player Sprite', minheight = 32 },
{ type = 'stepper', id = 'mychar', align = 'middle left', height = 48, width = 200,