clean up
This commit is contained in:
parent
1c40478e6e
commit
a1c10a7ec5
@ -46,7 +46,6 @@ public class SpinGui extends SimpleGui
|
||||
private int _ticksPerSwap;
|
||||
private int _swapCount;
|
||||
private Reward[] _rewards;
|
||||
private Reward[] _fakeRewards;
|
||||
private boolean _stopped;
|
||||
private boolean _rewarded;
|
||||
private ArrayList<Integer> _ticks;
|
||||
@ -66,14 +65,13 @@ public class SpinGui extends SimpleGui
|
||||
//setItem(CARL_SLOT, new DisplayItem(carlItem));
|
||||
|
||||
_rewards = new Reward[REWARDS_TO_GENERATE];
|
||||
_fakeRewards = new Reward[REWARDS_TO_GENERATE];
|
||||
_ticks = new ArrayList<>();
|
||||
_frame = 0;
|
||||
_pitch = 1;
|
||||
|
||||
for (int i = 0; i < REWARDS_TO_GENERATE; i++)
|
||||
{
|
||||
_fakeRewards[i] = rewardManager.nextReward(player, null, false, RewardType.SpinnerFiller, true);
|
||||
_rewards[i] = rewardManager.nextReward(player, null, false, RewardType.SpinnerFiller, true);
|
||||
}
|
||||
|
||||
_ticksPerSwap = 1;
|
||||
@ -100,8 +98,8 @@ public class SpinGui extends SimpleGui
|
||||
|
||||
_stopSpinnerAt = _ticks.size();
|
||||
|
||||
_fakeRewards[_stopSpinnerAt % REWARDS_TO_GENERATE + 3] = rewardManager.nextReward(player, null, false, RewardType.SpinnerReal, true);
|
||||
_reward = _fakeRewards[_stopSpinnerAt % REWARDS_TO_GENERATE + 3];
|
||||
_rewards[_stopSpinnerAt % REWARDS_TO_GENERATE + 3] = rewardManager.nextReward(player, null, false, RewardType.SpinnerReal, true);
|
||||
_reward = _rewards[_stopSpinnerAt % REWARDS_TO_GENERATE + 3];
|
||||
_rewardData = _reward.giveReward("Carls Spinner", getPlayer());
|
||||
}
|
||||
|
||||
@ -150,7 +148,7 @@ public class SpinGui extends SimpleGui
|
||||
index = index % REWARDS_TO_GENERATE;
|
||||
|
||||
int slot = 9 + i;
|
||||
RewardData data = _fakeRewards[index].getFakeRewardData(getPlayer());
|
||||
RewardData data = _rewards[index].getFakeRewardData(getPlayer());
|
||||
setItem(slot, new RewardButton(data));
|
||||
|
||||
// Glass Panes
|
||||
|
Loading…
Reference in New Issue
Block a user