Made vulnerable and spawn code not depend on the enemy type. Hopefully nothing broke.
This commit is contained in:
@@ -257,16 +257,25 @@
|
||||
"static": true
|
||||
},
|
||||
{
|
||||
"x_range": [400, 420],
|
||||
"type": "spider_web",
|
||||
"x": 395,
|
||||
"y": 0
|
||||
},
|
||||
{
|
||||
"x_range": [400, 415],
|
||||
"y": 0,
|
||||
"enemy_type": "revenant",
|
||||
"health": 40,
|
||||
"damage": 1,
|
||||
"attack_range": 1,
|
||||
"zombie_spawn_cooldown": 2500,
|
||||
"attack_pattern": {
|
||||
"type": "patrol"
|
||||
}
|
||||
},
|
||||
"can_spawn": true,
|
||||
"spawn_type": "zombie",
|
||||
"spawn_cooldown": 2500,
|
||||
"spawn_chance": 100,
|
||||
"spawn_distance": 5
|
||||
}
|
||||
],
|
||||
"boundaries": {
|
||||
|
@@ -334,7 +334,12 @@
|
||||
"attack_range": 2,
|
||||
"attack_pattern": {
|
||||
"type": "patrol"
|
||||
}
|
||||
},
|
||||
"can_spawn": true,
|
||||
"spawn_type": "black_cat",
|
||||
"spawn_cooldown": 5000,
|
||||
"spawn_chance": 75,
|
||||
"spawn_distance": 4
|
||||
},
|
||||
{
|
||||
"x_range": [405, 495],
|
||||
|
@@ -327,14 +327,17 @@
|
||||
"health": 30,
|
||||
"damage": 2,
|
||||
"attack_range": 1,
|
||||
"has_vulnerability": true,
|
||||
"is_vulnerable": false,
|
||||
"vulnerability_duration": 1000,
|
||||
"invulnerability_duration": 5000,
|
||||
"speed_multiplier": 0.8,
|
||||
"attack_cooldown": 1200,
|
||||
"attack_pattern": {
|
||||
"type": "patrol"
|
||||
"type": "hunter",
|
||||
"turn_threshold": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"boundaries": {
|
||||
"left": 0,
|
||||
|
Reference in New Issue
Block a user