Early Access, v1.0.1
This commit is contained in:
33
Assets/Scripts/Races/BasicRace.cs
Normal file
33
Assets/Scripts/Races/BasicRace.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Races
|
||||
{
|
||||
public class BasicRace
|
||||
{
|
||||
public string racename;
|
||||
protected int dexterityBonus;
|
||||
protected int intelligenceBonus;
|
||||
protected int strengthBonus;
|
||||
protected int healthBonus;
|
||||
protected int secondaryBonus;
|
||||
|
||||
public BasicRace()
|
||||
{
|
||||
racename = "";
|
||||
dexterityBonus = 0;
|
||||
intelligenceBonus = 0;
|
||||
strengthBonus = 0;
|
||||
healthBonus = 0;
|
||||
secondaryBonus = 0;
|
||||
}
|
||||
|
||||
public void applyBonus(Player player)
|
||||
{
|
||||
player.changeStats(strengthBonus, healthBonus, dexterityBonus, intelligenceBonus, secondaryBonus);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Races/BasicRace.cs.meta
Normal file
11
Assets/Scripts/Races/BasicRace.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d7205b9e587ea844a590901f6ab3118
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Scripts/Races/DwarvenRace.cs
Normal file
21
Assets/Scripts/Races/DwarvenRace.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Races
|
||||
{
|
||||
class DwarvenRace : BasicRace
|
||||
{
|
||||
public DwarvenRace() : base()
|
||||
{
|
||||
racename = "Dwarf";
|
||||
dexterityBonus = 1;
|
||||
intelligenceBonus = 0;
|
||||
strengthBonus = 2;
|
||||
healthBonus = 10;
|
||||
secondaryBonus = -10;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Races/DwarvenRace.cs.meta
Normal file
11
Assets/Scripts/Races/DwarvenRace.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33997d803fe792b498271ab199504f27
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Scripts/Races/ElvenRace.cs
Normal file
21
Assets/Scripts/Races/ElvenRace.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Races
|
||||
{
|
||||
class ElvenRace : BasicRace
|
||||
{
|
||||
public ElvenRace() : base()
|
||||
{
|
||||
racename = "Elf";
|
||||
dexterityBonus = 2;
|
||||
intelligenceBonus = 3;
|
||||
strengthBonus = -2;
|
||||
healthBonus = 0;
|
||||
secondaryBonus = 20;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Races/ElvenRace.cs.meta
Normal file
11
Assets/Scripts/Races/ElvenRace.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 887319a01dbcc7146813838a0f824cdf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Scripts/Races/GiantRace.cs
Normal file
21
Assets/Scripts/Races/GiantRace.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Races
|
||||
{
|
||||
class GiantRace : BasicRace
|
||||
{
|
||||
public GiantRace() : base()
|
||||
{
|
||||
racename = "Giant";
|
||||
dexterityBonus = 0;
|
||||
intelligenceBonus = -3;
|
||||
strengthBonus = 2;
|
||||
healthBonus = 20;
|
||||
secondaryBonus = -10;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Races/GiantRace.cs.meta
Normal file
11
Assets/Scripts/Races/GiantRace.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4211e7c55cb15f44c855072c2d94d1d1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Scripts/Races/GoblinRace.cs
Normal file
21
Assets/Scripts/Races/GoblinRace.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Races
|
||||
{
|
||||
class GoblinRace : BasicRace
|
||||
{
|
||||
public GoblinRace() : base()
|
||||
{
|
||||
racename = "Goblin";
|
||||
dexterityBonus = 3;
|
||||
intelligenceBonus = -1;
|
||||
strengthBonus = -2;
|
||||
healthBonus = -10;
|
||||
secondaryBonus = -10;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Races/GoblinRace.cs.meta
Normal file
11
Assets/Scripts/Races/GoblinRace.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 882772f2b274cbf4082a5df89b98c49d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Scripts/Races/HumanRace.cs
Normal file
21
Assets/Scripts/Races/HumanRace.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Races
|
||||
{
|
||||
class HumanRace : BasicRace
|
||||
{
|
||||
public HumanRace() : base()
|
||||
{
|
||||
racename = "Human";
|
||||
dexterityBonus = 0;
|
||||
intelligenceBonus = 0;
|
||||
strengthBonus = 0;
|
||||
healthBonus = 0;
|
||||
secondaryBonus = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Races/HumanRace.cs.meta
Normal file
11
Assets/Scripts/Races/HumanRace.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2dbb989f6aa8fc84085a77f592987411
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user