diff --git a/misc/serialize_experiment.cpp b/hacky unit tests/serialize_experiment.cpp similarity index 100% rename from misc/serialize_experiment.cpp rename to hacky unit tests/serialize_experiment.cpp diff --git a/misc/combat damage.lua b/misc/combat damage.lua index aabc313..881a9db 100644 --- a/misc/combat damage.lua +++ b/misc/combat damage.lua @@ -1,3 +1,5 @@ +--NOTE: This is the outline for the final combat system + --enumeration hitType = { MISS = 1, HIT = 2, CRITICAL = 3 } attackType = { PHYSICAL = 1, MAGICAL = 2 } diff --git a/misc/database template.md b/misc/database template.md deleted file mode 100644 index 3062cd7..0000000 --- a/misc/database template.md +++ /dev/null @@ -1,77 +0,0 @@ -## Server - -#### UserAccounts -* userAccountID primary key -* username unique -* password --stored in the database (hashed)? -* blacklisted {false, true} -* whitelisted {true, false} - -------------------------- - -## Items - -#### Notes -* These are static; they're immutable during runtime - -#### GlobalItemList -* globalItemListID primary key -* itemName unique -* itemImage -* type {mundane, consumable, equipment, etc.} -* maxStackSize {1-max; -1 for false} -* maxUniqueCopies {1-max; -1 for unlimited} - -#### MundaneItems -* mundaneItemID primary key -* globalItemListID foreign key -> GlobalItemList.globalItemListID -* TODO: attributes - -#### Consumables -* consumableID primary key -* globalItemListID foreign key -> GlobalItemList.globalItemListID -* TODO: attributes - -#### Equipment -* equipmentID primary key -* globalItemListID foreign key -> GlobalItemList.globalItemListID -* TODO: attributes - -------------------------- - -## Player - -#### Notes -* These change as the character progresses and grows - -#### PlayerCharacters -* characterID primary key -* name unique - -#### Player Statistics -* currentLevel -* currentExperience -* maxHealth -* maxMana -* currentHealth -* currentMana -* attack -* defence -* etc. - -#### Player Equipment -* weapon foreign key -> Equipment.equipmentID -* helmet foreign key -> Equipment.equipmentID -* armour foreign key -> Equipment.equipmentID -* TODO: etc. - -#### PlayerInventoryItems -* characterID foreign key -> PlayerCharacter.characterID -* globalItemListID foreign key -> GlobalItemList.globalItemListID - - -------------------------- - -#### TODO - -* customizable sprite diff --git a/misc/entity system.txt b/misc/entity system.txt deleted file mode 100644 index 9604a3a..0000000 --- a/misc/entity system.txt +++ /dev/null @@ -1,14 +0,0 @@ -Entity: //the basic unit that is being stored in the primary container - enum Type type //this mimics the NetworkPacket pattern a bit, I wonder if it's a good idea or not - position //will always need to know it's location, because of the big maps - motion //probably not necessary for anything other than the players. Still might as well include it, since I'm using pretty much everything else - box //bounding box, because of reasons? - id //the unique entity ID. can be used to lookup an instance in a different container - -entities include: - -* Players -* Combat portals -* item drops? I don't know if these are visible in the world -* chests -* dungeon doors? \ No newline at end of file diff --git a/misc/experience-script.lua b/misc/experience-script.lua index b81cade..5788015 100644 --- a/misc/experience-script.lua +++ b/misc/experience-script.lua @@ -1,3 +1,5 @@ +--NOTE: I don't actually remember what this is + function CalcExp(base, mod, level) return math.floor(base * mod ^ level) end