diff --git a/.env b/.env.example similarity index 100% rename from .env rename to .env.example diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ + diff --git a/docs/tooltip.md b/README.md similarity index 55% rename from docs/tooltip.md rename to README.md index 19cd162..fbdff3b 100644 --- a/docs/tooltip.md +++ b/README.md @@ -1,4 +1,43 @@ -# Tooltip +# Dragon Knight + +Below is the current project documentation. + +## Attributes + +### Power +Power is the attribute that determines overall strike damage. Damage from weapon attacks, spells, or other strikes and specific skills will be directly influenced by Power. Power is a linear measure, with 1 Power = 1 damage in most cases. + +### Accuracy +Accuracy determines the chance your attack, spell, or other skill will actually land on your opponent. + +### Penetration +Penetration as a value determines your ability to make it through physical defenses; i.e. the enemy's Toughness and Armor. + +### Focus +Focus is the same as Penetration but for causing magical damage, and helps go through magical defenses; i.e. the enemy's Resist. + +### Evasion +Evasion is the attribute responsible for determining your chance to dodge any kind of attack. When calculating the chance, at base every 2 Evasion is 0.1% chance. The enemy's Accuracy negatively impacts this stat. The chance to dodge is capped at 85%. + +### Toughness +Toughness affects your health pool and baseline defensive capability to physical attacks, such as weapons, projectiles, and physical skills. + +### Armor +Armor is an additional layer of physical protection over Toughness. All armor grants some level of Armor, and it's effect is linear; 1 Armor = 1 point of damage negated. + +### Resist +Resist is your defensive capacity against magic such as spells, magic skills, and magic weapons. Like Armor, this is a linear stat. + +### Precision +Precision determines your Uber (Critical) Hit chance. In general, 2 points of Precision = 0.1% chance. No matter how high this value, your Uber Hit chance caps at 90%. Some equipment grants straight Uber Hit chance. + +### Ferocity +Ferocity is a linear modifier of your Uber Hit damage; 1 Ferocity = 1% Uber Hit damage. Uber Hit damage increases cap at 300%. + +### Luck +Luck is a modifier for gained XP/Silver. Like Precision, 2 points of Luck = 0.1% increase of these gains. + +## Tooltip The tooltip library is Isotip, taken and modified by Sharkk! Here is the breakdown of the API. @@ -96,3 +135,62 @@ The positionTooltip method will re-evaluate the position of a tooltip in relatio ```javascript Tooltip.positionTooltip( '.tooltip', '.tooltip-click', 'left' ); ``` + +## CAPTCHA + +Here is some example code for implementing a CAPTCHA, using the gd extension to create a server-rendered, randomized image. + +```php + +``` + +https://github.com/kawaiidesune/zxx diff --git a/database/auth.db b/database/auth.db deleted file mode 100644 index 7598b13..0000000 Binary files a/database/auth.db and /dev/null differ diff --git a/database/blueprints.db b/database/blueprints.db deleted file mode 100644 index 553cf72..0000000 Binary files a/database/blueprints.db and /dev/null differ diff --git a/database/fights.db b/database/fights.db deleted file mode 100644 index 5bd7e4f..0000000 Binary files a/database/fights.db and /dev/null differ diff --git a/database/live.db b/database/live.db deleted file mode 100644 index 68229c9..0000000 Binary files a/database/live.db and /dev/null differ diff --git a/docs/TODO.md b/docs/TODO.md deleted file mode 100644 index d045ad8..0000000 --- a/docs/TODO.md +++ /dev/null @@ -1,4 +0,0 @@ -# TODO -Currently, everything needs implemented. - -First task is to finish building up the database structures. diff --git a/docs/attributes.md b/docs/attributes.md deleted file mode 100644 index fb71374..0000000 --- a/docs/attributes.md +++ /dev/null @@ -1,34 +0,0 @@ -# Attributes - -## Power -Power is the attribute that determines overall strike damage. Damage from weapon attacks, spells, or other strikes and specific skills will be directly influenced by Power. Power is a linear measure, with 1 Power = 1 damage in most cases. - -## Accuracy -Accuracy determines the chance your attack, spell, or other skill will actually land on your opponent. - -## Penetration -Penetration as a value determines your ability to make it through physical defenses; i.e. the enemy's Toughness and Armor. - -## Focus -Focus is the same as Penetration but for causing magical damage, and helps go through magical defenses; i.e. the enemy's Resist. - -## Evasion -Evasion is the attribute responsible for determining your chance to dodge any kind of attack. When calculating the chance, at base every 2 Evasion is 0.1% chance. The enemy's Accuracy negatively impacts this stat. The chance to dodge is capped at 85%. - -## Toughness -Toughness affects your health pool and baseline defensive capability to physical attacks, such as weapons, projectiles, and physical skills. - -## Armor -Armor is an additional layer of physical protection over Toughness. All armor grants some level of Armor, and it's effect is linear; 1 Armor = 1 point of damage negated. - -## Resist -Resist is your defensive capacity against magic such as spells, magic skills, and magic weapons. Like Armor, this is a linear stat. - -## Precision -Precision determines your Uber (Critical) Hit chance. In general, 2 points of Precision = 0.1% chance. No matter how high this value, your Uber Hit chance caps at 90%. Some equipment grants straight Uber Hit chance. - -## Ferocity -Ferocity is a linear modifier of your Uber Hit damage; 1 Ferocity = 1% Uber Hit damage. Uber Hit damage increases cap at 300%. - -## Luck -Luck is a modifier for gained XP/Silver. Like Precision, 2 points of Luck = 0.1% increase of these gains. diff --git a/docs/captcha.md b/docs/captcha.md deleted file mode 100644 index 3482b5b..0000000 --- a/docs/captcha.md +++ /dev/null @@ -1,56 +0,0 @@ -Here is some example code for implementing a CAPTCHA, using the gd extension to create a server-rendered, randomized image. - -```php - -``` - -https://github.com/kawaiidesune/zxx diff --git a/docs/items.md b/docs/items.md deleted file mode 100644 index d250712..0000000 --- a/docs/items.md +++ /dev/null @@ -1,3 +0,0 @@ -# Items - -Items consists of all item types in the game; useless flavor items, gear, consumables, etc. diff --git a/public/assets/css/dragon.css b/public/assets/css/dragon.css index 4d126aa..96893e9 100644 --- a/public/assets/css/dragon.css +++ b/public/assets/css/dragon.css @@ -21,6 +21,8 @@ body { background-attachment: fixed; background-position: center top; background-repeat: no-repeat; + max-width: 1920px; + margin: 0px auto; } .ui.button { @@ -135,6 +137,7 @@ aside { .box { background-color: rgba(0, 0, 0, 0.2); border-radius: 0.15rem; + padding: 0.5rem; } } diff --git a/public/index.php b/public/index.php index 0537ec6..be80561 100644 --- a/public/index.php +++ b/public/index.php @@ -41,6 +41,16 @@ router_post($r, '/character/delete', 'char_controller_delete_post'); router_get($r, '/world', 'world_controller_get'); router_post($r, '/move', 'world_controller_move_post'); +/* + Settings +*/ +router_get($r, '/settings', 'settings_controller_get'); + +/* + Auctions +*/ +router_get($r, '/auctions', 'auctions_controller_get'); + /* Router */ diff --git a/src/bootstrap.php b/src/bootstrap.php index b04586c..c38e013 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -23,6 +23,8 @@ require_once SRC . '/model/char.php'; require_once SRC . '/controller/char.php'; require_once SRC . '/controller/auth.php'; require_once SRC . '/controller/world.php'; +require_once SRC . '/controller/settings.php'; +require_once SRC . '/controller/auctions.php'; // Track the start time of the request define('START_TIME', microtime(true)); diff --git a/src/controller/auctions.php b/src/controller/auctions.php new file mode 100644 index 0000000..5194519 --- /dev/null +++ b/src/controller/auctions.php @@ -0,0 +1,9 @@ + 'pages/auctions/index']); +} diff --git a/src/controller/settings.php b/src/controller/settings.php new file mode 100644 index 0000000..b2521ff --- /dev/null +++ b/src/controller/settings.php @@ -0,0 +1,9 @@ + 'pages/settings/index']); +} diff --git a/templates/layouts/basic.php b/templates/layouts/basic.php index 4cff6fd..4e7a551 100644 --- a/templates/layouts/basic.php +++ b/templates/layouts/basic.php @@ -37,7 +37,9 @@ diff --git a/templates/pages/auctions/index.php b/templates/pages/auctions/index.php new file mode 100644 index 0000000..7ebdfa1 --- /dev/null +++ b/templates/pages/auctions/index.php @@ -0,0 +1,2 @@ +

Auctions

+

@TODO

diff --git a/templates/pages/settings/index.php b/templates/pages/settings/index.php new file mode 100644 index 0000000..a7d654c --- /dev/null +++ b/templates/pages/settings/index.php @@ -0,0 +1,2 @@ +

Settings

+

@TODO