0.6.0.13 - Unlockables with fulfilled conditions can be obtained directly on the select screen/my room by Decide input
- Unlockables with fulfilled conditions can be obtained directly on the select screen/my room by Decide input
This commit is contained in:
parent
30f5bdc48b
commit
1d1ebf14ca
@ -187,6 +187,22 @@ class DBUnlockables {
|
||||
this.Type = "me";
|
||||
bool fulfiled = this.tValueRequirementMet(inputValues[0], this.Values[0]);
|
||||
return (fulfiled, CLangManager.LangInstance.GetString(fulfiled ? "UNLOCK_COIN_BOUGHT" : "UNLOCK_COIN_MORE"));
|
||||
case "ce":
|
||||
case "tp":
|
||||
case "ap":
|
||||
case "aw":
|
||||
case "sd":
|
||||
fulfiled = this.tValueRequirementMet(inputValues[0], this.Values[0]);
|
||||
return (fulfiled, null);
|
||||
case "dp":
|
||||
case "lp":
|
||||
fulfiled = this.tValueRequirementMet(inputValues[0], this.Values[2]);
|
||||
return (fulfiled, null);
|
||||
case "sp":
|
||||
case "sg":
|
||||
case "sc":
|
||||
fulfiled = this.tValueRequirementMet(inputValues[0], this.Reference.Length);
|
||||
return (fulfiled, null);
|
||||
default:
|
||||
return (false, null); // Return the same text if my room
|
||||
}
|
||||
@ -239,6 +255,22 @@ class DBUnlockables {
|
||||
this.Type = "me";
|
||||
bool fulfiled = this.tValueRequirementMet(inputValues[0], this.Values[0]);
|
||||
return (fulfiled, CLangManager.LangInstance.GetString(fulfiled ? "UNLOCK_COIN_BOUGHT" : "UNLOCK_COIN_MORE"));
|
||||
case "ce":
|
||||
case "tp":
|
||||
case "ap":
|
||||
case "aw":
|
||||
case "sd":
|
||||
fulfiled = this.tValueRequirementMet(inputValues[0], this.Values[0]);
|
||||
return (fulfiled, null);
|
||||
case "dp":
|
||||
case "lp":
|
||||
fulfiled = this.tValueRequirementMet(inputValues[0], this.Values[2]);
|
||||
return (fulfiled, null);
|
||||
case "sp":
|
||||
case "sg":
|
||||
case "sc":
|
||||
fulfiled = this.tValueRequirementMet(inputValues[0], this.Reference.Length);
|
||||
return (fulfiled, null);
|
||||
default:
|
||||
return (false, null);
|
||||
}
|
||||
|
@ -871,6 +871,7 @@ internal class CStage選曲 : CStage {
|
||||
"unlocked_songs",
|
||||
this.rNowSelectedSong?.tGetUniqueId() ?? "" // Can't be null in this context
|
||||
);
|
||||
if (SongToUnlock.unlockConditions.Condition == "cm")
|
||||
OpenTaiko.SaveFileInstances[OpenTaiko.SaveFile].tSpendCoins(SongToUnlock.unlockConditions.Values[0]);
|
||||
// Play modal animation here ?
|
||||
} else
|
||||
|
@ -569,6 +569,7 @@ class CStageHeya : CStage {
|
||||
//TJAPlayer3.NamePlateConfig.tSpendCoins(TJAPlayer3.Tx.Puchichara[iPuchiCharaCurrent].unlock.Values[0], iPlayer);
|
||||
OpenTaiko.SaveFileInstances[iPlayer].data.UnlockedPuchicharas.Add(OpenTaiko.Skin.Puchicharas_Name[iPuchiCharaCurrent]);
|
||||
DBSaves.RegisterStringUnlockedAsset(OpenTaiko.SaveFileInstances[iPlayer].data.SaveId, "unlocked_puchicharas", OpenTaiko.Skin.Puchicharas_Name[iPuchiCharaCurrent]);
|
||||
if (OpenTaiko.Tx.Puchichara[iPuchiCharaCurrent].unlock.Condition == "ch")
|
||||
OpenTaiko.SaveFileInstances[iPlayer].tSpendCoins(OpenTaiko.Tx.Puchichara[iPuchiCharaCurrent].unlock.Values[0]);
|
||||
|
||||
}
|
||||
@ -597,6 +598,7 @@ class CStageHeya : CStage {
|
||||
} else if (ess == ESelectStatus.SUCCESS) {
|
||||
OpenTaiko.SaveFileInstances[iPlayer].data.UnlockedCharacters.Add(OpenTaiko.Skin.Characters_DirName[iCharacterCurrent]);
|
||||
DBSaves.RegisterStringUnlockedAsset(OpenTaiko.SaveFileInstances[iPlayer].data.SaveId, "unlocked_characters", OpenTaiko.Skin.Characters_DirName[iCharacterCurrent]);
|
||||
if (OpenTaiko.Tx.Characters[iCharacterCurrent].unlock.Condition == "ch")
|
||||
OpenTaiko.SaveFileInstances[iPlayer].tSpendCoins(OpenTaiko.Tx.Characters[iCharacterCurrent].unlock.Values[0]);
|
||||
// Play modal animation here ?
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System.Drawing;
|
||||
using DiscordRPC;
|
||||
using FDK;
|
||||
|
||||
namespace OpenTaiko;
|
||||
@ -254,6 +253,7 @@ class CActNewHeya : CActivity {
|
||||
//TJAPlayer3.NamePlateConfig.data.UnlockedPuchicharas[iPlayer].Add(TJAPlayer3.Skin.Puchicharas_Name[iPuchiCharaCurrent]);
|
||||
//TJAPlayer3.NamePlateConfig.tSpendCoins(TJAPlayer3.Tx.Puchichara[iPuchiCharaCurrent].unlock.Values[0], iPlayer);
|
||||
OpenTaiko.SaveFileInstances[CurrentPlayer].data.UnlockedPuchicharas.Add(OpenTaiko.Skin.Puchicharas_Name[CurrentIndex]);
|
||||
if (OpenTaiko.Tx.Puchichara[CurrentIndex].unlock.Condition == "ch")
|
||||
OpenTaiko.SaveFileInstances[CurrentPlayer].tSpendCoins(OpenTaiko.Tx.Puchichara[CurrentIndex].unlock.Values[0]);
|
||||
OpenTaiko.Skin.soundDecideSFX.tPlay();
|
||||
} else {
|
||||
@ -286,6 +286,7 @@ class CActNewHeya : CActivity {
|
||||
CurrentMode = ModeType.None;
|
||||
} else if (ess == ESelectStatus.SUCCESS) {
|
||||
OpenTaiko.SaveFileInstances[CurrentPlayer].data.UnlockedCharacters.Add(OpenTaiko.Skin.Characters_DirName[CurrentIndex]);
|
||||
if (OpenTaiko.Tx.Characters[CurrentIndex].unlock.Condition == "ch")
|
||||
OpenTaiko.SaveFileInstances[CurrentPlayer].tSpendCoins(OpenTaiko.Tx.Characters[CurrentIndex].unlock.Values[0]);
|
||||
OpenTaiko.Skin.soundDecideSFX.tPlay();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user