Add charge-up mechanic for more powerful spells

- Implements spell charge-up in ItemWand
- Assigns chargeup values in json files for spells that should have one
- Adds a charge meter to the crosshair in first-person
- Updates some javadoc comments appropriately
This commit is contained in:
Electroblob77
2020-06-11 22:20:04 +01:00
parent 72971b5f16
commit 7d650ebbc3
84 changed files with 204 additions and 125 deletions
@@ -14,7 +14,7 @@
"element": "healing",
"type": "alteration",
"cost": 30,
"chargeup": 0,
"chargeup": 5,
"cooldown": 50,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "attack",
"cost": 75,
"chargeup": 0,
"chargeup": 20,
"cooldown": 300,
"base_properties": {
"range": 20,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "construct",
"cost": 150,
"chargeup": 0,
"chargeup": 25,
"cooldown": 400,
"base_properties": {
"duration": 400,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "construct",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 100,
"base_properties": {
"duration": 600,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "attack",
"cost": 25,
"chargeup": 0,
"chargeup": 5,
"cooldown": 50,
"base_properties": {
"primary_damage": 10,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "utility",
"cost": 20,
"chargeup": 0,
"chargeup": 10,
"cooldown": 100,
"base_properties": {
"range": 256,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "defence",
"cost": 45,
"chargeup": 0,
"chargeup": 10,
"cooldown": 50,
"base_properties": {
"item_lifetime": 1800
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "alteration",
"cost": 40,
"chargeup": 0,
"chargeup": 5,
"cooldown": 60,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 25,
"chargeup": 0,
"chargeup": 10,
"cooldown": 40,
"base_properties": {}
}
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "alteration",
"cost": 60,
"chargeup": 0,
"chargeup": 20,
"cooldown": 150,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "alteration",
"cost": 35,
"chargeup": 0,
"chargeup": 10,
"cooldown": 100,
"base_properties": {
"range": 10
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "alteration",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 100,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "attack",
"cost": 50,
"chargeup": 0,
"chargeup": 10,
"cooldown": 200,
"base_properties": {
"range": 12,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "utility",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 200,
"base_properties": {
"decoy_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 100,
"chargeup": 0,
"chargeup": 25,
"cooldown": 300,
"base_properties": {
"resistance_duration": 600,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "attack",
"cost": 75,
"chargeup": 0,
"chargeup": 25,
"cooldown": 250,
"base_properties": {
"effect_radius": 8,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "attack",
"cost": 35,
"chargeup": 0,
"chargeup": 10,
"cooldown": 75,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "attack",
"cost": 15,
"chargeup": 0,
"chargeup": 15,
"cooldown": 0,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "defence",
"cost": 20,
"chargeup": 0,
"chargeup": 15,
"cooldown": 80,
"base_properties": {
"fire_resistance_duration": 600,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "utility",
"cost": 45,
"chargeup": 0,
"chargeup": 10,
"cooldown": 50,
"base_properties": {
"item_lifetime": 1200,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "utility",
"cost": 100,
"chargeup": 0,
"chargeup": 15,
"cooldown": 250,
"base_properties": {
"effect_radius": 5,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 75,
"chargeup": 0,
"chargeup": 20,
"cooldown": 300,
"base_properties": {
"absorption_duration": 1200,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 45,
"chargeup": 0,
"chargeup": 15,
"cooldown": 200,
"base_properties": {
"duration": 600,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "construct",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 250,
"base_properties": {
"effect_radius": 3,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "attack",
"cost": 75,
"chargeup": 0,
"chargeup": 15,
"cooldown": 200,
"base_properties": {
"effect_radius": 5,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "utility",
"cost": 45,
"chargeup": 0,
"chargeup": 10,
"cooldown": 50,
"base_properties": {
"item_lifetime": 1200,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "projectile",
"cost": 20,
"chargeup": 0,
"chargeup": 5,
"cooldown": 30,
"base_properties": {
"range": 20,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 15,
"chargeup": 0,
"chargeup": 10,
"cooldown": 40,
"base_properties": {
"health": 8
@@ -14,7 +14,7 @@
"element": "healing",
"type": "buff",
"cost": 20,
"chargeup": 0,
"chargeup": 10,
"cooldown": 65,
"base_properties": {
"ward_duration": 600,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 35,
"chargeup": 0,
"chargeup": 10,
"cooldown": 150,
"base_properties": {
"effect_radius": 5,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "attack",
"cost": 75,
"chargeup": 0,
"chargeup": 20,
"cooldown": 300,
"base_properties": {
"range": 20,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "construct",
"cost": 35,
"chargeup": 0,
"chargeup": 15,
"cooldown": 150,
"base_properties": {
"duration": 600,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "attack",
"cost": 70,
"chargeup": 0,
"chargeup": 20,
"cooldown": 250,
"base_properties": {
"effect_radius": 7,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "projectile",
"cost": 20,
"chargeup": 0,
"chargeup": 5,
"cooldown": 20,
"base_properties": {
"range": 15,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "buff",
"cost": 35,
"chargeup": 0,
"chargeup": 15,
"cooldown": 200,
"base_properties": {
"invisibility_duration": 600,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "utility",
"cost": 30,
"chargeup": 0,
"chargeup": 15,
"cooldown": 100,
"base_properties": {
"thunderstorm_chance": 0.2
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 30,
"chargeup": 0,
"chargeup": 15,
"cooldown": 100,
"base_properties": {
"resistance_duration": 600,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "attack",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 80,
"base_properties": {
"range": 80
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "projectile",
"cost": 25,
"chargeup": 0,
"chargeup": 5,
"cooldown": 60,
"base_properties": {
"range": 30,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "attack",
"cost": 100,
"chargeup": 0,
"chargeup": 25,
"cooldown": 300,
"base_properties": {
"range": 40,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "attack",
"cost": 15,
"chargeup": 0,
"chargeup": 15,
"cooldown": 0,
"base_properties": {
"primary_damage": 5,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "attack",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 200,
"base_properties": {
"range": 40,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "attack",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 150,
"base_properties": {
"range": 8,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "alteration",
"cost": 20,
"chargeup": 0,
"chargeup": 10,
"cooldown": 60,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "attack",
"cost": 40,
"chargeup": 0,
"chargeup": 20,
"cooldown": 100,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "attack",
"cost": 75,
"chargeup": 0,
"chargeup": 15,
"cooldown": 200,
"base_properties": {
"effect_radius": 5,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "alteration",
"cost": 100,
"chargeup": 0,
"chargeup": 15,
"cooldown": 300,
"base_properties": {
"range": 8,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "attack",
"cost": 10,
"chargeup": 0,
"chargeup": 10,
"cooldown": 0,
"base_properties": {
"range": 10,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "defence",
"cost": 50,
"chargeup": 0,
"chargeup": 20,
"cooldown": 80,
"base_properties": {}
}
@@ -14,7 +14,7 @@
"element": "healing",
"type": "alteration",
"cost": 150,
"chargeup": 0,
"chargeup": 25,
"cooldown": 400,
"base_properties": {
"effect_radius": 8,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "construct",
"cost": 30,
"chargeup": 0,
"chargeup": 10,
"cooldown": 100,
"base_properties": {
"duration": 600,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "buff",
"cost": 40,
"chargeup": 0,
"chargeup": 15,
"cooldown": 50,
"base_properties": {
"hunger_points": 16,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "attack",
"cost": 65,
"chargeup": 0,
"chargeup": 20,
"cooldown": 150,
"base_properties": {
"blast_radius": 5,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "minion",
"cost": 80,
"chargeup": 0,
"chargeup": 20,
"cooldown": 300,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "alteration",
"cost": 100,
"chargeup": 0,
"chargeup": 15,
"cooldown": 200,
"base_properties": {
"slow_time_duration": 300,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "utility",
"cost": 40,
"chargeup": 0,
"chargeup": 15,
"cooldown": 300,
"base_properties": {
"length": 25,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "minion",
"cost": 45,
"chargeup": 0,
"chargeup": 10,
"cooldown": 200,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "construct",
"cost": 60,
"chargeup": 0,
"chargeup": 10,
"cooldown": 150,
"base_properties": {
"duration": 600,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "minion",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 200,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "minion",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 400,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "minion",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 200,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "minion",
"cost": 175,
"chargeup": 0,
"chargeup": 20,
"cooldown": 400,
"base_properties": {
"summon_radius": 2
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "minion",
"cost": 40,
"chargeup": 0,
"chargeup": 10,
"cooldown": 200,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "fire",
"type": "minion",
"cost": 150,
"chargeup": 0,
"chargeup": 20,
"cooldown": 400,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "minion",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 400,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "minion",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 400,
"base_properties": {
"minion_lifetime": 1200,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "minion",
"cost": 50,
"chargeup": 0,
"chargeup": 10,
"cooldown": 150,
"base_properties": {
"summon_radius": 2
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "minion",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 400,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "minion",
"cost": 35,
"chargeup": 0,
"chargeup": 10,
"cooldown": 150,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "lightning",
"type": "attack",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 250,
"base_properties": {
"effect_radius": 10,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "attack",
"cost": 35,
"chargeup": 0,
"chargeup": 10,
"cooldown": 80,
"base_properties": {
"duration": 200,
@@ -14,7 +14,7 @@
"element": "healing",
"type": "buff",
"cost": 50,
"chargeup": 0,
"chargeup": 15,
"cooldown": 100,
"base_properties": {
"effect_duration": 400
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "utility",
"cost": 100,
"chargeup": 0,
"chargeup": 20,
"cooldown": 100,
"base_properties": {
"teleport_countdown": 75
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "utility",
"cost": 45,
"chargeup": 0,
"chargeup": 10,
"cooldown": 70,
"base_properties": {}
}
@@ -14,7 +14,7 @@
"element": "sorcery",
"type": "minion",
"cost": 50,
"chargeup": 0,
"chargeup": 10,
"cooldown": 200,
"base_properties": {
"minion_lifetime": 600,
@@ -14,7 +14,7 @@
"element": "ice",
"type": "utility",
"cost": 15,
"chargeup": 0,
"chargeup": 15,
"cooldown": 0,
"base_properties": {
"duration": 600,
@@ -14,7 +14,7 @@
"element": "earth",
"type": "buff",
"cost": 30,
"chargeup": 0,
"chargeup": 15,
"cooldown": 250,
"base_properties": {
"water_breathing_duration": 1200,
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "attack",
"cost": 20,
"chargeup": 0,
"chargeup": 5,
"cooldown": 30,
"base_properties": {
"acceleration": 0.1
@@ -14,7 +14,7 @@
"element": "necromancy",
"type": "construct",
"cost": 150,
"chargeup": 0,
"chargeup": 25,
"cooldown": 300,
"base_properties": {
"duration": 500,
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB