Skip to content
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

adds dash to vulp #6540

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions code/modules/species/station/standard/vulpkanin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,44 @@
/mob/living/carbon/human/proc/hide_wings,
/mob/living/carbon/human/proc/hide_tail,
)


/datum/ability/species/vulp/dash
name = "Dash"
desc = "Dash forwards."
action_state = "genetic_jump"
cooldown = 10 SECONDS
nutrition_cost = 10

Check failure on line 69 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var 'nutrition_cost' on type '/datum/ability/species/vulp/dash'

/datum/ability/species/vulp/dash/on_trigger()
. = ..()
if(!isliving(user))

Check failure on line 73 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"
return

var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction

Check failure on line 76 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"

Check failure on line 76 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"

Check warning on line 76 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "dir"

playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1)
user.visible_message(SPAN_WARNING("[user] dashes forward!"))

Check failure on line 79 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"

Check warning on line 79 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc call requires static type: "visible_message"
user.throw_at_old(target, jumpdistance, jumpspeed)

Check failure on line 80 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"

Check warning on line 80 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc call requires static type: "throw_at_old"
recharging_time = world.time + recharging_rate

Check failure on line 81 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "recharging_time"

Check failure on line 81 in code/modules/species/station/standard/vulpkanin.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "recharging_rate"

/*
/obj/item/clothing/shoes/bhop/ui_action_click()
var/mob/living/user = loc
if(!isliving(user))
return

if(user.throwing)
return // User is already being thrown

if(recharging_time > world.time)
to_chat(user, SPAN_WARNING("The boot's internal propulsion needs to recharge still!"))
return

var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction

playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1)
user.visible_message(SPAN_WARNING("[user] dashes forward into the air!"))
user.throw_at_old(target, jumpdistance, jumpspeed)
recharging_time = world.time + recharging_rate
*/
Loading