From 7771ccf91a3e6702bd50b2a5309e5b93809a7ca2 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 22 Aug 2011 22:56:13 -0400 Subject: [PATCH] Added requirepasschallengesteps Lua binding. --- Docs/Changelog_sm5.txt | 2 ++ src/UnlockManager.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index d2460d2685..b1b5d4f29e 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -13,6 +13,8 @@ StepMania 5.0 $next | 2011???? * [PrefsManager, X11Helper] Added ShowMouseCursor preference. [AJ] * [UnlockManager] Added GetStepOfAllTypes Lua binding. This gets the locked Steps for all game types based on the difficulty specified. [Wolfman2000] +* [UnlockManager] Added requirepasschallengesteps Lua binding. This is more + self-explanitory: pass challenge to be able to play edits. [Wolfman2000] 2011/08/21 ---------- diff --git a/src/UnlockManager.cpp b/src/UnlockManager.cpp index 67221c7936..49ea73a048 100644 --- a/src/UnlockManager.cpp +++ b/src/UnlockManager.cpp @@ -868,6 +868,7 @@ public: static int code( T* p, lua_State *L ) { p->m_sEntryID = SArg(1); return 0; } static int roulette( T* p, lua_State *L ) { p->m_bRoulette = true; return 0; } static int requirepasshardsteps( T* p, lua_State *L ) { p->m_bRequirePassHardSteps = true; return 0; } + static int requirepasschallengesteps( T* p, lua_State *L ) { p->m_bRequirePassChallengeSteps = true; return 0; } static int require( T* p, lua_State *L ) { const UnlockRequirement ut = Enum::Check( L, 1 ); @@ -897,6 +898,7 @@ public: ADD_METHOD( code ); ADD_METHOD( roulette ); ADD_METHOD( requirepasshardsteps ); + ADD_METHOD( requirepasschallengesteps ); ADD_METHOD( require ); } };