Skip to content

jonathanfavorite/ADD2E_Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D&D 2nd Edition Engine

Welcome to the D&D2E Engine

BELOW NEEDS TO BE UPDATED. MAJOR CHANGES HAVE CHANGED THE FUNCTIONALITY

Creating a new PC (Player Character)

Player Felix = new Player
{
    Name = "Felix",
    RaceType = ERaces.Human,
    OwnerName = "Jonathan",
    ClassType = EClasses.Fighter,
    Level = 1,
};

Rolling Dice

DiceRoll Dice = new DiceRoll();
var Response = Dice.Roll(amount, sides);

Amount is the amount of die, and the sides is well... how many sides the die has.

Dice.Roll(1, 20);
Is the same as rolling a 1d20

Creating and adding items to a player

Player Gotrek = new Player
{
    Name = "Gotrek",
    RaceType = ERaces.Dwarf,
    ClassType = EClasses.Fighter,
    Level = 5,
};
Equipment Cheese = new Equipment
{
    Type = EEquipmentType.Food,
    Name = "Cheese",
    Description = "Some slightly moldy cheese.",
    Price = { Copper = 5 }
};
Gotrek.Equipment.Add(Cheese);

About

2nd Edition Dungeons & Dragons Engine in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages