Fixed bug where music would revert to previous track after collecting panties or rouge.

This commit is contained in:
shru 2018-12-19 23:24:00 -05:00
parent 618c3c5020
commit 69404d765e
5 changed files with 18 additions and 2 deletions

View file

@ -17,7 +17,7 @@ build-depoy:
# II. Release
- cd releases
- FILE=$(ls *-win64.zip) ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win64-$CHANNEL"
# - FILE=$(ls *-win64.zip) ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win64-$CHANNEL"
- FILE=$(ls *-win32.zip) ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win32-$CHANNEL"
# - FILE=$(ls *-macosx.zip) ; zip -ur "$FILE" "Cave Story Randomizer.app" ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:osx-$CHANNEL"
# # Workaround for issue where butler renames *.love to *.zip.

View file

@ -4,6 +4,8 @@ Cave Story Randomizer
Todo
----
- Update to Love 11.2
- Remove Love files... lovec.exe, readme, etc.
- Trade Sequence Step B: Require random obtainable weapon, instead of always polar star and fireball.
- Randomize Booster v0.8 / v2.0
@ -15,6 +17,12 @@ Issues
- Hell Missile Upgrade uses a unique script and won't be easy to replace.
- Trading back the Nemesis for the Blade almost certainly will be weird.
Bugs
----
- Broken Egg Observation Room (Log/Included)
- Sleeping with Chaco seemed to do nothing
- Jellyfish juice box told me I got a life capsule, then it said "Max HP increased by 5! Max HP increased by 3!" and then gave me the juice and my HP was actually the same. It's doing this every time I get the juice.
Credits
-------

View file

@ -22,6 +22,11 @@ function C:getAnyExceptMissiles()
return self:_getItem(_filterAnyExceptMissiles)
end
function C:getByKey(key)
local filterByKey = function(item) return item.key == key end
return self:_getItem(filterByKey)
end
function C:getWeapon()
return self:_getItem(_filterWeapon)
end

View file

@ -14,7 +14,6 @@ U = require 'util'
local LOG_LEVEL, _logCounts, _logLines = 3, nil, nil
local function _log(level, prefix, text, ...)
if LOG_LEVEL >= level then
local text = prefix .. text
print(text, ...)

View file

@ -90,6 +90,10 @@ function C:_replaceAttribute(original, replacement, attribute)
if type(replaceText) == 'table' then
replaceText = replaceText[1]
end
-- Fix: After collecting Curly's Panties or Chako's Rouge, music would go silent.
if attribute == 'music' and replaceText == '' then
replaceText = "<CMU0010"
end
-- Loop through each possible original value until we successfully replace one.
for _, originalText in ipairs(originalTexts) do repeat