Skip to content

Commit d6d1871

Browse files
committed
switched to ability based basic_attacks
1 parent c744567 commit d6d1871

3 files changed

Lines changed: 100 additions & 43 deletions

File tree

openchamp/patchdata/onslaught/characters/orion.json

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,6 @@
2222
"basic_defense": 2,
2323
"basic_damage": 8
2424
},
25-
"attack_projectile": {
26-
"model": "openchamp:particles/arrow",
27-
"model_scale": {
28-
"x": 0.3,
29-
"y": 1.0,
30-
"z": 0.3
31-
},
32-
"model_rotation": {
33-
"x": 0.0,
34-
"y": 0.0,
35-
"z": 0.0
36-
},
37-
"spawn_offset": {
38-
"x": 0.0,
39-
"y": 1.0,
40-
"z": 0.0
41-
},
42-
"speed": 30.0,
43-
"damage_type": "physical"
44-
},
45-
"windup_fraction": 0.1,
4625
"base_stats": {
4726
"health": 1600,
4827
"health_regen": 10,
@@ -92,6 +71,38 @@
9271
"movement_speed": 0
9372
},
9473
"abilities": {
74+
"basic_attack": {
75+
"display_id": "openchamp:basic_attack",
76+
"texture_id": "openchamp:basic_attack",
77+
"base_values": {
78+
"base_id": "PointAndClickProjectile",
79+
"display_id": "openchamp:ranged_basic_attack",
80+
"as_scaled": true,
81+
"use_attack_range": true,
82+
"effect_source": "basic_attack",
83+
"windup_ratio": 0.1,
84+
"projectile": {
85+
"model": "openchamp:particles/arrow",
86+
"model_scale": {
87+
"x": 0.3,
88+
"y": 1.0,
89+
"z": 0.3
90+
},
91+
"model_rotation": {
92+
"x": 0.0,
93+
"y": 0.0,
94+
"z": 0.0
95+
},
96+
"spawn_offset": {
97+
"x": 0.0,
98+
"y": 1.0,
99+
"z": 0.0
100+
},
101+
"speed": 30.0,
102+
"damage_type": "physical"
103+
}
104+
}
105+
},
95106
"passive": {
96107
"display_id": "openchamp:mark_of_the_hunter",
97108
"texture_id": "openchamp:abilities/mark_of_the_hunter",

openchamp/patchdata/onslaught/units/melee_minion.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"basic_defense": 2,
2222
"basic_damage": 8
2323
},
24-
"windup_fraction": 0.3,
2524
"base_stats": {
2625
"health": 300,
2726
"health_regen": 0,
@@ -49,6 +48,40 @@
4948
"attack_crit_chance": 5,
5049
"attack_crit_damage": 0,
5150
"movement_speed": 15
51+
},
52+
"abilities": {
53+
"basic_attack": {
54+
"display_id": "openchamp:basic_attack",
55+
"texture_id": "openchamp:basic_attack",
56+
"base_values": {
57+
"base_id": "PointAndClickProjectile",
58+
"display_id": "openchamp:ranged_basic_attack",
59+
"as_scaled": true,
60+
"use_attack_range": true,
61+
"effect_source": "basic_attack",
62+
"windup_ratio": 0.3,
63+
"projectile": {
64+
"model": "openchamp:particles/arrow",
65+
"model_scale": {
66+
"x": 0.3,
67+
"y": 1.0,
68+
"z": 0.3
69+
},
70+
"model_rotation": {
71+
"x": 0.0,
72+
"y": 0.0,
73+
"z": 0.0
74+
},
75+
"spawn_offset": {
76+
"x": 0.0,
77+
"y": 1.0,
78+
"z": 0.0
79+
},
80+
"speed": 20.0,
81+
"damage_type": "physical"
82+
}
83+
}
84+
}
5285
}
5386
}
5487
}

openchamp/patchdata/onslaught/units/ranged_minion.json

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,6 @@
2121
"basic_defense": 2,
2222
"basic_damage": 8
2323
},
24-
"attack_projectile": {
25-
"model": "openchamp:particles/arrow",
26-
"model_scale": {
27-
"x": 0.3,
28-
"y": 1.0,
29-
"z": 0.3
30-
},
31-
"model_rotation": {
32-
"x": 0.0,
33-
"y": 0.0,
34-
"z": 0.0
35-
},
36-
"spawn_offset": {
37-
"x": 0.0,
38-
"y": 1.0,
39-
"z": 0.0
40-
},
41-
"speed": 20.0,
42-
"damage_type": "physical"
43-
},
44-
"windup_fraction": 0.3,
4524
"base_stats": {
4625
"health": 200,
4726
"health_regen": 0,
@@ -69,6 +48,40 @@
6948
"attack_crit_chance": 5,
7049
"attack_crit_damage": 0,
7150
"movement_speed": 10
51+
},
52+
"abilities": {
53+
"basic_attack": {
54+
"display_id": "openchamp:basic_attack",
55+
"texture_id": "openchamp:basic_attack",
56+
"base_values": {
57+
"base_id": "PointAndClickProjectile",
58+
"display_id": "openchamp:ranged_basic_attack",
59+
"as_scaled": true,
60+
"use_attack_range": true,
61+
"effect_source": "basic_attack",
62+
"windup_ratio": 0.3,
63+
"projectile": {
64+
"model": "openchamp:particles/arrow",
65+
"model_scale": {
66+
"x": 0.3,
67+
"y": 1.0,
68+
"z": 0.3
69+
},
70+
"model_rotation": {
71+
"x": 0.0,
72+
"y": 0.0,
73+
"z": 0.0
74+
},
75+
"spawn_offset": {
76+
"x": 0.0,
77+
"y": 1.0,
78+
"z": 0.0
79+
},
80+
"speed": 20.0,
81+
"damage_type": "physical"
82+
}
83+
}
84+
}
7285
}
7386
}
7487
}

0 commit comments

Comments
 (0)