Beispiel #1
0
 string textureFor(BaddyType bType)
 {
     if (bType == BaddyType.SLIME) return "slime";
     if (bType == BaddyType.RODENT) return "rots";
     if (bType == BaddyType.GHOST) return "ghost";
     if (bType == BaddyType.DRAGON) return "bfd";
     return "slime";
 }
Beispiel #2
0
 public Notification(BaddyType p_monster)
 {
     noteType = NoteType.ENCOUNTER;
     monster = p_monster;
 }
Beispiel #3
0
 public Monster(BaddyType type)
 {
     m_type = type;
     switch (type) {
     case BaddyType.SLIME:
         healthPoints = 5.0f * (1 + Gregor.shared.growthStage);
         attackPower = 3.0f * (1 + Gregor.shared.growthStage);
         armor = 1.0f;
         m_xp = 1.0f * (1 + Gregor.shared.growthStage);
         break;
     case BaddyType.GHOST:
         healthPoints = 10.0f * (1 + Gregor.shared.growthStage);
         attackPower = 5.0f * (1 + Gregor.shared.growthStage);
         armor = 1.1f;
         m_xp = 1.0f * (1 + Gregor.shared.growthStage);
         break;
     case BaddyType.RODENT:
         healthPoints = 18.0f * (1 + Gregor.shared.growthStage);
         attackPower = 10.0f * (1 + Gregor.shared.growthStage);
         armor = 1.2f;
         m_xp = 2.0f * (1 + Gregor.shared.growthStage);
         break;
     case BaddyType.DRAGON:
         healthPoints = 50.0f * (1 + Gregor.shared.growthStage);
         attackPower = 20.0f * (1 + Gregor.shared.growthStage);
         armor = 1.4f;
         m_xp = 3.0f * (1 + Gregor.shared.growthStage);
         break;
     default:
         Debug.LogWarning("Invalid monster type");
         break;
     }
 }