Add Lua values for puchichara and character rarities within the metadata
Closes #283
This commit is contained in:
parent
bcfa570d7b
commit
4d7bde845a
@ -2,6 +2,8 @@ local playerCount = 0
|
||||
local p1IsBlue = false
|
||||
local lang = "ja"
|
||||
local simplemode = false
|
||||
local puchicharaRarities = { "Common", "Common", "Common", "Common", "Common" }
|
||||
local characterRarities = { "Common", "Common", "Common", "Common", "Common" }
|
||||
|
||||
local fps = 0
|
||||
local deltaTime = 0
|
||||
@ -13,11 +15,14 @@ local gauge = { 0, 0, 0, 0, 0 }
|
||||
local bpm = { 0, 0, 0, 0, 0 }
|
||||
local gogo = { false, false, false, false, false }
|
||||
|
||||
function setConstValues(_playerCount, _p1IsBlue, _lang, _simplemode)
|
||||
|
||||
function setConstValues(_playerCount, _p1IsBlue, _lang, _simplemode, _puchicharaRarities, _characterRarities)
|
||||
playerCount = _playerCount
|
||||
p1IsBlue = _p1IsBlue
|
||||
lang = _lang
|
||||
simplemode = _simplemode
|
||||
puchicharaRarities = _puchicharaRarities
|
||||
characterRarities = _characterRarities
|
||||
end
|
||||
|
||||
function updateValues(_deltaTime, _fps, _isClear, _towerNightNum, _battleState, _battleWin, _gauge, _bpm, _gogo)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#TITLE:Rainy Memories
|
||||
#GENRE:Rainy Memories
|
||||
#BOXTYPE:0
|
||||
#BOXTYPE:6
|
||||
#BGTYPE:6
|
||||
#BOXCOLOR:#0a6915
|
||||
#BOXCOLOR:#092d02
|
||||
#BACKCOLOR:#012420
|
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
@ -247,7 +247,25 @@ namespace TJAPlayer3
|
||||
if (LuaScript == null) return;
|
||||
try
|
||||
{
|
||||
LuaSetConstValues.Call(TJAPlayer3.ConfigIni.nPlayerCount, TJAPlayer3.P1IsBlue(), TJAPlayer3.ConfigIni.sLang, TJAPlayer3.ConfigIni.SimpleMode);
|
||||
// Preprocessing
|
||||
string[] raritiesP = { "Common", "Common", "Common", "Common", "Common" };
|
||||
string[] raritiesC = { "Common", "Common", "Common", "Common", "Common" };
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
{
|
||||
raritiesP[i] = TJAPlayer3.Tx.Puchichara[PuchiChara.tGetPuchiCharaIndexByName(TJAPlayer3.GetActualPlayer(i))].metadata.Rarity;
|
||||
raritiesC[i] = TJAPlayer3.Tx.Characters[TJAPlayer3.SaveFileInstances[TJAPlayer3.GetActualPlayer(i)].data.Character].metadata.Rarity;
|
||||
}
|
||||
|
||||
// Initialisation
|
||||
LuaSetConstValues.Call(TJAPlayer3.ConfigIni.nPlayerCount,
|
||||
TJAPlayer3.P1IsBlue(),
|
||||
TJAPlayer3.ConfigIni.sLang,
|
||||
TJAPlayer3.ConfigIni.SimpleMode,
|
||||
raritiesP,
|
||||
raritiesC
|
||||
);
|
||||
|
||||
LuaUpdateValues.Call(TJAPlayer3.FPS.DeltaTime,
|
||||
TJAPlayer3.FPS.NowFPS,
|
||||
TJAPlayer3.stage演奏ドラム画面.bIsAlreadyCleared,
|
||||
@ -255,7 +273,9 @@ namespace TJAPlayer3
|
||||
TJAPlayer3.stage演奏ドラム画面.AIBattleState,
|
||||
TJAPlayer3.stage演奏ドラム画面.bIsAIBattleWin,
|
||||
TJAPlayer3.stage演奏ドラム画面.actGauge.db現在のゲージ値,
|
||||
TJAPlayer3.stage演奏ドラム画面.actPlayInfo.dbBPM);
|
||||
TJAPlayer3.stage演奏ドラム画面.actPlayInfo.dbBPM,
|
||||
new bool[] { false, false, false, false, false }
|
||||
);
|
||||
|
||||
LuaInit.Call();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user