From 6fc305e2b59c946a444ed884f1d3a3d82ac0e987 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 03 九月 2018 20:09:50 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Treasure/TreasureData.cs | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/System/Treasure/TreasureData.cs b/System/Treasure/TreasureData.cs
index bdc0a9f..5cb904a 100644
--- a/System/Treasure/TreasureData.cs
+++ b/System/Treasure/TreasureData.cs
@@ -239,6 +239,8 @@
treasureStages.Add(_stage);
}
+
+
public void UpdateTreasureLevelExp(int _lv, int _exp, bool _hasClickChallenge)
{
stage = _lv;
@@ -272,6 +274,19 @@
return false;
}
return stage >= _stage.stage;
+ }
+
+ public int GetStageId(int _stageIndex)
+ {
+ foreach (var item in treasureStages)
+ {
+ if (item.stage == _stageIndex)
+ {
+ return item.id;
+ }
+ }
+
+ return 0;
}
public int GetStageIndex(int _stage)
@@ -516,7 +531,7 @@
public int successRate;
public int levelUpId;
- public PotentialBook(int _itemId, int _needCount, int _successRate,int _levelUpId)
+ public PotentialBook(int _itemId, int _needCount, int _successRate, int _levelUpId)
{
this.itemId = _itemId;
this.needCount = _needCount;
@@ -534,6 +549,8 @@
public class TreasureStage
{
+ public int id { get; private set; }
+
public int stage { get; set; }
public TreasureStageUnlock unlockType { get; private set; }
public Dictionary<int, int> propertyDict { get; private set; }
@@ -546,8 +563,10 @@
public const int selectedSfxId = 5144;
public string sfxGotState { get; private set; }
public string sfxUnGotState { get; private set; }
+
public TreasureStage(TreasureUpConfig _config)
{
+ id = _config.ID;
unlockType = TreasureStageUnlock.None;
if (_config.UnLockFuncID != 0)
{
--
Gitblit v1.8.0