fix SuddenDeath being scaled by LifeDifficulty by instead just not scaling it.

This commit is contained in:
Jonathan Payne
2012-03-20 21:26:24 -07:00
parent 720397243b
commit 93db98d0ea
3 changed files with 13 additions and 0 deletions
@@ -1,5 +1,6 @@
local c;
local cf;
local canAnimate = false;
local player = Var "Player";
local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt");
local Pulse = THEME:GetMetric("Combo", "PulseCommand");
@@ -134,6 +134,10 @@ t[#t+1] = Def.ActorFrame {
end;
JudgmentMessageCommand=function(self, param)
-- Fix Player Combo animating when player successfully avoids a mine.
local msgParam = param;
MESSAGEMAN:Broadcast("TestJudgment",msgParam);
--
if param.Player ~= player then return end;
if param.HoldNoteScore then return end;
+8
View File
@@ -221,6 +221,14 @@ void LifeMeterBar::ChangeLife( float fDeltaLife )
fDeltaLife *= m_fLifeDifficulty;
else
fDeltaLife /= m_fLifeDifficulty;
break;
case SongOptions::DRAIN_SUDDEN_DEATH:
// This should always -1.0f;
if( fDeltaLife < 0 )
fDeltaLife = -1.0f;
else
fDeltaLife = 0;
break;
default:
break;
}