-
Notifications
You must be signed in to change notification settings - Fork 63
add frost dragons combat & gfx #941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0b8080b
added frost dragon gfx and anims and drops and combat
MrSlayerGod f853be0
fixed drop table and fixed wrong gfx for frost dragon
MrSlayerGod e825f0f
added orb stuff for frost dragon
MrSlayerGod 05c7358
updated more files
MrSlayerGod 706fdf6
fixed frost dragon combat related stuff
MrSlayerGod bcf90ec
fixed combat
MrSlayerGod 80de014
Add frost dragon gfx
GregHib File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 19 additions & 3 deletions
22
...per_point/asgarnian_ice_dungeon/resource_dungeon/asgarnian_ice_resource_dungeon.npcs.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,33 @@ | ||
| [frost_dragon] | ||
| id = 11633 | ||
| hitpoints = 230 | ||
| att = 180 | ||
| str = 150 | ||
| def = 150 | ||
| mage = 150 | ||
| height = 25 | ||
| combat_def = "frost_dragon" | ||
| drop_table = "frost_dragon" | ||
| wander_range = 4 | ||
| hunt_mode = "aggressive" | ||
| allowed_under = true | ||
| slayer_xp = 235.5 | ||
| categories = ["dragons", "frost_dragons"] | ||
| respawn_delay = 30 | ||
| examine = "A dragon covered in frost and ice." | ||
|
|
||
| [frost_dragon_2] | ||
| id = 11634 | ||
| clone = "frost_dragon" | ||
|
|
||
| [frost_dragon_3] | ||
| id = 11635 | ||
| clone = "frost_dragon" | ||
|
|
||
| [frost_dragon_4] | ||
| id = 11636 | ||
| clone = "frost_dragon" | ||
|
|
||
| [frost_dragon_5] | ||
| id = 51 | ||
| categories = ["dragons"] | ||
| examine = "A dragon covered in frost and ice." | ||
|
|
||
| clone = "frost_dragon" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| [frost_dragon] | ||
| retreat_range = 8 | ||
| defend_anim = "frost_dragon_block" | ||
| defend_sound = "dragon_defend" | ||
| death_anim = "frost_dragon_death" | ||
| death_sound = "dragon_death" | ||
|
|
||
| [frost_dragon.melee] | ||
| chance = 75 | ||
| range = 1 | ||
| anim = "frost_dragon_attack" | ||
| target_hit = { offense = "slash", max = 650 } | ||
| target_sound = "dragon_attack" | ||
|
|
||
| [frost_dragon.breath_swipe] | ||
| chance = 25 | ||
| range = 1 | ||
| anim = "frost_dragon_breath_close" | ||
| gfx = "dragon_breath_shoot" | ||
| target_hit = { offense = "dragonfire", special = true, max = 650 } | ||
| target_sound = "dragon_breath" | ||
|
|
||
| [frost_dragon.dragonfire_ranged] | ||
| chance = 25 | ||
| range = 10 | ||
| anim = "frost_dragon_shoot" | ||
| projectile = "frost_dragon_breath_ranged" | ||
| projectile_origin_y = 1 | ||
| projectile_origin_x = 1 | ||
| target_hit = { offense = "dragonfire", special = true, max = 650 } | ||
| target_sound = "dragon_breath" | ||
|
|
||
| [frost_dragon.ice_arrows] | ||
| condition = "frost_range" | ||
| chance = 25 | ||
|
MrSlayerGod marked this conversation as resolved.
|
||
| range = 10 | ||
| anim = "frost_dragon_shoot" | ||
| projectile = "ice_arrow" | ||
| projectile_origin_y = 1 | ||
| projectile_origin_x = 1 | ||
| target_hit = { offense = "range", max = 250 } | ||
| target_sound = "dragon_attack" | ||
|
|
||
| [frost_dragon.magic] | ||
| condition = "frost_magic" | ||
| chance = 25 | ||
|
MrSlayerGod marked this conversation as resolved.
|
||
| range = 10 | ||
| anim = "frost_dragon_shoot" | ||
| projectile = "water_blast" | ||
| projectile_origin_y = 1 | ||
| projectile_origin_x = 1 | ||
| target_hit = { offense = "magic", max = 250 } | ||
| target_sound = "dragon_breath" | ||
| impact_gfx = "water_blast_impact" | ||
|
|
||
| [frost_dragon.orb] | ||
| condition = "no_frost_orb" | ||
| chance = 100 | ||
| range = 10 | ||
| impact_regardless = true | ||
52 changes: 52 additions & 0 deletions
52
game/src/main/kotlin/content/area/asgarnia/asgarnian_ice_dungeon/FrostDragons.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| package content.area.asgarnia.asgarnian_ice_dungeon | ||
|
|
||
| import content.entity.proj.shoot | ||
| import world.gregs.voidps.engine.Script | ||
| import world.gregs.voidps.engine.client.variable.hasClock | ||
| import world.gregs.voidps.engine.client.variable.start | ||
| import world.gregs.voidps.type.Delta | ||
|
|
||
| class FrostDragons : Script { | ||
|
|
||
| init { | ||
| npcAttack("frost_dragon*", "orb") { | ||
| start("orb_protection", 8) | ||
| start("movement_delay", 8) | ||
| val list = listOf(Delta(1, 0), Delta(0, 1), Delta(0, 2), Delta(1, 3), Delta(2, 3), Delta(3, 2), Delta(3, 1), Delta(2, 0), Delta(1, 0)) | ||
| var step = 20 | ||
| var delay = 0 | ||
| for (loop in 0 until 3) { | ||
| for (i in 0 until list.lastIndex) { | ||
| tile.add(list[i]).shoot( | ||
| "frost_dragon_orb", | ||
| tile.add(list[i + 1]), | ||
| delay = delay, | ||
| flightTime = step, | ||
| height = 0, | ||
| endHeight = 0, | ||
| width = 0, | ||
| ) | ||
| delay += step | ||
| } | ||
| } | ||
| } | ||
|
MrSlayerGod marked this conversation as resolved.
|
||
|
|
||
| npcCondition("frost_magic") { get("frost_style", "magic") == "magic" } | ||
|
|
||
| npcCondition("frost_range") { get("frost_style", "range") == "range" } | ||
|
|
||
| npcCondition("no_frost_orb") { hasClock("orb_protection") } | ||
|
|
||
| npcAttack("frost_dragon", "ice_arrows") { | ||
| set("frost_style", "range") | ||
| } | ||
|
|
||
| npcAttack("frost_dragon", "magic") { | ||
| set("frost_style", "magic") | ||
| } | ||
|
|
||
| npcDeath("frost_dragon*") { | ||
| clear("frost_style") | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.