cull(engine-cleanup): pass-8 phase-2 cascade round 1 after MyPageItemBattle stub
This commit is contained in:
@@ -10,27 +10,10 @@ public class SpecialTreasureInfo
|
||||
|
||||
public bool IsGotSpecialTreasureBox { get; private set; }
|
||||
|
||||
public bool IsTreasureBoxReadyToOpen
|
||||
{
|
||||
get
|
||||
{
|
||||
if (SpecialTreasureBoxNecessaryNumbers == ReceivedBoxNumbers)
|
||||
{
|
||||
return !IsGotSpecialTreasureBox;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public SpecialTreasureInfo(JsonData json)
|
||||
{
|
||||
SpecialTreasureBoxNecessaryNumbers = json["special_treasure_box_necessary_numbers"].ToInt();
|
||||
ReceivedBoxNumbers = json["received_box_numbers"].ToInt();
|
||||
IsGotSpecialTreasureBox = json["is_got_special_treasure_box"].ToInt() == 1;
|
||||
}
|
||||
|
||||
public void SetGotSpecialTreasureBox(bool isGot)
|
||||
{
|
||||
IsGotSpecialTreasureBox = isGot;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user