From 09b494c528e8a99e920b1e36a44c07129a707cbe Mon Sep 17 00:00:00 2001 From: Lavfluff Date: Sat, 23 Nov 2024 11:56:06 +0100 Subject: [PATCH] :bug: Fixed wrong weapon informations. --- data/L54_classic_weapons.json | 74 +++++++++++++++++------------------ data/conditional_weapons.md | 7 ++++ src/index.php | 3 +- 3 files changed, 46 insertions(+), 38 deletions(-) create mode 100644 data/conditional_weapons.md diff --git a/data/L54_classic_weapons.json b/data/L54_classic_weapons.json index 0312be0..16a8eec 100644 --- a/data/L54_classic_weapons.json +++ b/data/L54_classic_weapons.json @@ -67,7 +67,7 @@ "darkDef": "0-0", "waterDef": "0-0", "lightDef": "0-0", - "physicalDef": "100-100", + "physicalDef": "0-0", "earthDef": "0-0" } }, @@ -132,7 +132,7 @@ "darkAtk": "0-0", "waterAtk": "0-0", "lightAtk": "3-3", - "physicalAtk": "1-3", + "physicalAtk": "0.3-3", "earthAtk": "3-3", "fireDef": "0-0", "airDef": "0-0", @@ -442,10 +442,10 @@ "fireAtk": "0-0", "airAtk": "0-0", "darkAtk": "0-0", - "waterAtk": "5-5", + "waterAtk": "4.5-4.5", "lightAtk": "0-0", "physicalAtk": "0-0", - "earthAtk": "4-4", + "earthAtk": "4.5-4.5", "fireDef": "0-0", "airDef": "0-0", "darkDef": "0-0", @@ -708,7 +708,7 @@ "darkAtk": "5-5", "waterAtk": "0-0", "lightAtk": "0-0", - "physicalAtk": "1-3", + "physicalAtk": "0.3-3", "earthAtk": "0-0", "fireDef": "0-0", "airDef": "0-0", @@ -780,14 +780,14 @@ "darkAtk": "0-0", "waterAtk": "0-0", "lightAtk": "0-0", - "physicalAtk": "1-3", + "physicalAtk": "0.3-3", "earthAtk": "3-3", "fireDef": "0-0", "airDef": "0-0", "darkDef": "0-0", "waterDef": "0-0", "lightDef": "0-0", - "physicalDef": "1-3", + "physicalDef": "0.3-3", "earthDef": "3-3" } }, @@ -952,11 +952,11 @@ "earthAtk": "0-0", "fireDef": "0-0", "airDef": "0-5", - "darkDef": "3-3", + "darkDef": "2.667-2.667", "waterDef": "0-0", - "lightDef": "3-3", + "lightDef": "2.6-2.6", "physicalDef": "0-0", - "earthDef": "2-2" + "earthDef": "1.75-1.75" } }, { @@ -1149,10 +1149,10 @@ "earthAtk": "0-0", "fireDef": "0-0", "airDef": "0-0", - "darkDef": "3-3", + "darkDef": "2.714-2.714", "waterDef": "0-0", "lightDef": "0-0", - "physicalDef": "2-2", + "physicalDef": "2.714-2.714", "earthDef": "0-0" } }, @@ -1217,7 +1217,7 @@ "darkAtk": "0-0", "waterAtk": "0-0", "lightAtk": "0-0", - "physicalAtk": "1-3", + "physicalAtk": "0.3-3", "earthAtk": "3-3", "fireDef": "0-0", "airDef": "0-0", @@ -1338,7 +1338,7 @@ "waterAtk": "0-0", "lightAtk": "0-0", "physicalAtk": "0-0", - "earthAtk": "6-6", + "earthAtk": "5.6-5.6", "fireDef": "0-0", "airDef": "0-0", "darkDef": "0-0", @@ -1513,7 +1513,7 @@ "waterDef": "2-2", "lightDef": "3-3", "physicalDef": "0-0", - "earthDef": "2-2" + "earthDef": "2-5" } }, { @@ -1536,7 +1536,7 @@ "darkDef": "0-0", "waterDef": "5-5", "lightDef": "0-0", - "physicalDef": "1-5", + "physicalDef": "0.5-5", "earthDef": "3-3" } }, @@ -1584,7 +1584,7 @@ "darkDef": "0-0", "waterDef": "0-0", "lightDef": "0-0", - "physicalDef": "3-3", + "physicalDef": "2.66-2.66", "earthDef": "0-0" } }, @@ -1598,7 +1598,7 @@ "icons": { "fireAtk": "0-0", "airAtk": "0-0", - "darkAtk": "5-5", + "darkAtk": "0-5", "waterAtk": "0-0", "lightAtk": "0-0", "physicalAtk": "0-0", @@ -1632,7 +1632,7 @@ "darkDef": "2-2", "waterDef": "2-2", "lightDef": "2-2", - "physicalDef": "1-3", + "physicalDef": "0.3-3", "earthDef": "3-3" } }, @@ -1745,7 +1745,7 @@ "darkAtk": "0-0", "waterAtk": "3-3", "lightAtk": "0-0", - "physicalAtk": "1-3", + "physicalAtk": "0.3-3", "earthAtk": "0-0", "fireDef": "0-0", "airDef": "0-0", @@ -1838,7 +1838,7 @@ "icons": { "fireAtk": "0-0", "airAtk": "0-0", - "darkAtk": "3-3", + "darkAtk": "2.429-2.429", "waterAtk": "0-0", "lightAtk": "0-0", "physicalAtk": "0-0", @@ -2136,7 +2136,7 @@ "darkDef": "0-0", "waterDef": "0-0", "lightDef": "3-3", - "physicalDef": "3-3", + "physicalDef": "3-6", "earthDef": "5-5" } }, @@ -2172,16 +2172,16 @@ "messageHeal": " heals with the Mysterious Amulet!", "category": "dual", "icons": { - "fireAtk": "3-3", + "fireAtk": "2.667-2.667", "airAtk": "0-0", - "darkAtk": "3-3", + "darkAtk": "2.667-2.667", "waterAtk": "0-0", - "lightAtk": "3-3", + "lightAtk": "2.667-2.667", "physicalAtk": "0-0", "earthAtk": "0-0", "fireDef": "0-0", "airDef": "0-0", - "darkDef": "3-3", + "darkDef": "2.667-2.667", "waterDef": "0-0", "lightDef": "0-0", "physicalDef": "0-0", @@ -2275,7 +2275,7 @@ "lightAtk": "0-0", "physicalAtk": "0-0", "earthAtk": "0-0", - "fireDef": "1-3", + "fireDef": "0.3-3", "airDef": "0-0", "darkDef": "0-0", "waterDef": "0-0", @@ -2533,10 +2533,10 @@ "category": "constant", "icons": { "fireAtk": "0-0", - "airAtk": "3-3", + "airAtk": "0-0", "darkAtk": "0-0", "waterAtk": "0-0", - "lightAtk": "0-0", + "lightAtk": "3-3", "physicalAtk": "0-0", "earthAtk": "5-5", "fireDef": "0-0", @@ -2833,7 +2833,7 @@ "waterDef": "100-100", "lightDef": "0-0", "physicalDef": "0-0", - "earthDef": "2-5" + "earthDef": "1.4-5" } }, { @@ -2850,7 +2850,7 @@ "waterAtk": "0-0", "lightAtk": "0-0", "physicalAtk": "0-0", - "earthAtk": "5-5", + "earthAtk": "4.667-4.667", "fireDef": "0-0", "airDef": "0-0", "darkDef": "0-0", @@ -2928,7 +2928,7 @@ "darkDef": "0-0", "waterDef": "0-0", "lightDef": "2.6-2.6", - "physicalDef": "2.6-2.6", + "physicalDef": "2.6-5.2", "earthDef": "2.6-2.6" } }, @@ -2948,12 +2948,12 @@ "physicalAtk": "0.3-3", "earthAtk": "0-0", "fireDef": "0-0", - "airDef": "0-0", - "darkDef": "0-0", + "airDef": "0-2", + "darkDef": "0-2", "waterDef": "0-0", - "lightDef": "0-0", - "physicalDef": "0-0", - "earthDef": "0-0" + "lightDef": "0-2", + "physicalDef": "0-2", + "earthDef": "0-2" } }, { diff --git a/data/conditional_weapons.md b/data/conditional_weapons.md new file mode 100644 index 0000000..bd2801e --- /dev/null +++ b/data/conditional_weapons.md @@ -0,0 +1,7 @@ +- Parchment Cloak (5 air def only when user's INT >= 150, otherwise 0) +- Wanderers Cloak (2 earth def normally, but 5 when opponent's INT 325 or more) +- Lightweight Black Tunic (dark attack icons only dealt when your pets INT is at least 150 *and* your opponents INT is less than 150.) +- Patched Magic Hat (It will have the additional 3 physical defence if the user receive air damage from their opponent.) +- Kiko Skull Pirate Hat (Extra physical icons defended when air is present.) +- Devious Top Hat and Cane (When air icons are received along with physical icons, the physical defence is doubled. When air icons are received unaccompanied by physical, the weapon will still show physical defence even though nothing actually happens and the damage is not reduced.) +- Sunblade Replica (Only defends if dark damage is dealt.) diff --git a/src/index.php b/src/index.php index 4b0237f..b501ec3 100644 --- a/src/index.php +++ b/src/index.php @@ -79,10 +79,11 @@ return; } // for each icon afterwards, if any, print it with a + separator - echo " + "; + echo " + ("; for($i = 1; $i <= $roundedRemainingIcons; $i++) { echo "\"$iconType\""; } + echo ")"; } }