Skip to content

Commit 86befbc

Browse files
committed
fixed random chest time
1 parent 20f6831 commit 86befbc

15 files changed

+13
-15
lines changed
Binary file not shown.
Binary file not shown.

CYPVP/.vs/CYPVP/v17/.suo

2.5 KB
Binary file not shown.

CYPVP/Game.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ public class Game
2020
public int Score { get; set; }
2121
public int Time { get; set; }
2222
public Chest Chest { get; set; }
23-
23+
public int ChestTimeSpawn { get; set; }
24+
2425
public Game(int height,int width,PictureBox mainCharacter,PictureBox mainSlime) {
2526
MainCharacter = new Character(mainCharacter);
26-
MainSlime=new Slime(mainSlime);
27+
MainSlime = new Slime(mainSlime);
28+
ChestTimeSpawn = CYPVP.Random.Next(20, 60);
2729
SetUpGame();
2830
LoadQuestions();
2931
}

CYPVP/GameWindow.Designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CYPVP/GameWindow.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private void SlimeMovements_Tick(object sender, EventArgs e)
296296

297297
private void ScorePoints_Tick(object sender, EventArgs e)
298298
{
299-
if (Game.Time == 40)
299+
if (Game.Time == Game.ChestTimeSpawn)
300300
{
301301
PictureBox Chest = MakeChest();
302302
while (Check(Chest) != true)
@@ -427,10 +427,7 @@ private void SlimeRadiation_Tick(object sender, EventArgs e)
427427

428428
}
429429

430-
private void GameWindow_Load(object sender, EventArgs e)
431-
{
432-
433-
}
430+
434431
}
435432
}
436433

CYPVP/HelpWindow.Designer.cs

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CYPVP/HelpWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ private void HelpWindow_KeyUp(object sender, KeyEventArgs e)
107107

108108
}
109109

110-
110+
111111
}
112112
}

CYPVP/bin/Release/CYPVP.exe

0 Bytes
Binary file not shown.

CYPVP/bin/Release/CYPVP.pdb

0 Bytes
Binary file not shown.
Binary file not shown.

CYPVP/obj/Release/CYPVP.exe

0 Bytes
Binary file not shown.

CYPVP/obj/Release/CYPVP.pdb

0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)