-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBiome.cs
More file actions
49 lines (42 loc) · 1.7 KB
/
Biome.cs
File metadata and controls
49 lines (42 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
namespace EternityRPG
{
public class Biome
{
Random random = new Random();
public string LocationInfo { get; set; }
public string ShortTitle { get; set; }
public int FirstMob { get; set; }
public int LastMob { get; set; }
public Biome(int biomeType) => CreateLocation(biomeType);
private void CreateLocation(int biomeType)
{
switch (biomeType)
{
case 1:
LocationInfo = "You are stepped forward to a deep dark forest. Prepare to defend yourself.\n";
ShortTitle = "Dark forest";
FirstMob = 1;
LastMob = 4;
break;
case 2:
LocationInfo = "You see a large system of tangled caves in front of you. It's time to go.\n";
ShortTitle = "Mysterious caves";
FirstMob = 4;
LastMob = 7;
break;
case 3:
LocationInfo = "The heat from volcanic rocks burns your body, you need to move forward, it is dangerous to stand still.\n";
ShortTitle = "Ancient volcano";
FirstMob = 7;
LastMob = 10;
break;
case 4:
LocationInfo = "It is the last fight. You see a lot of bloody corps in the area, but it is not going to stop you. You came here to kill this monster.\n";
ShortTitle = "Lair of true evil";
break;
}
}
public Enemy CreateEnemy() => new Mob(random.Next(FirstMob, LastMob));
}
}