コード例 #1
0
 public Monster CreateMonster(int level)
 {
     return(new Monster
     {
         Name = "Villager",
         Alignment = Alignment.Good,
         Strength = 12,
         Dexterity = 12,
         Hitpoints = Diceroll.D4(level),
         Level = level,
         Weapon = new Pitchfork()
     });
 }
コード例 #2
0
 public Monster CreateMonster(int level)
 {
     return(new Monster
     {
         Name = "Angry Kobold",
         Alignment = Alignment.Evil,
         Weapon = new RustyDagger(),
         Strength = 10,
         Dexterity = 14,
         Wisdom = 8,
         Level = level,
         Hitpoints = Diceroll.D4(level)
     });
 }