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

Moved Ranger ability Lua to jobutils #5889

Open
wants to merge 1 commit into
base: base
Choose a base branch
from

Conversation

andeluvian
Copy link
Contributor

@andeluvian andeluvian commented Jun 5, 2024

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do? (Please be technical)

All job abilities of the ranger have been moved from scripts/actions/abilities/ to scripts/globals/job_utils/ranger.lua

Steps to test these changes

Go into the game
Make a level 99 or 75 ranger
Test each job ability and see if they work correctly

Special Deployment Considerations

Copy link

github-actions bot commented Jun 5, 2024

✨ Thanks for the PR! ✨

This is a friendly automated reminder that the maintainers won't look at your PR until you've properly completed all of the checkboxes in the pre-filled template.

@andeluvian
Copy link
Contributor Author

Draft while i am self testing these changes

@zach2good zach2good added the squash Reminder to squash commits on merge label Jun 5, 2024
scripts/globals/job_utils/ranger.lua Outdated Show resolved Hide resolved
scripts/globals/job_utils/ranger.lua Outdated Show resolved Hide resolved
scripts/globals/job_utils/ranger.lua Outdated Show resolved Hide resolved
@andeluvian
Copy link
Contributor Author

Tested on local server on ranger 75 all abilities worked. Will cleanup work and made the necessary changes according to PR and helpful comments

@andeluvian andeluvian marked this pull request as ready for review June 11, 2024 07:08
@andeluvian
Copy link
Contributor Author

squashed commits

@zach2good zach2good changed the title Ranger abilities moved to jobutils Jun 15, 2024
@zach2good zach2good removed the squash Reminder to squash commits on merge label Jun 15, 2024
@zach2good
Copy link
Contributor

Kicked CI so you can see what's still left to do. There's no need to re-tag people for review, if they've interacted with your PR and you re-push I think everyone gets an email.

@zach2good
Copy link
Contributor

(I do, at least 🤷‍♂️)


xi.job_utils.ranger.useEagleEyeShot = function(player, target, ability)
if player:getWeaponSkillType(xi.slot.RANGED) == xi.skill.MARKSMANSHIP then
action:setAnimation(target:getID(), action:getAnimation(target:getID()) + 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this, action doesn't exist in this scope?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a test this morning because I was 100% I did test each skill against an enemy. HOWEVER you are 100% this is mistake on my part, the skill will trigger and fire the arrow, however no damage nor any "action" is taken against the monster itself but the skill will go on cooldown. This was my inexperience and not being careful enough. Will fix

local playerID = target:getID()

if arrowsToReturn == 0 then
action:messageID(playerID, 139)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same: Did you test this, action doesn't exist in this scope?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix same as eagle eye shot response, my mistake and not being careful enough.


xi.job_utils.ranger.useShadowbind = function(player, target, ability)
if player:getWeaponSkillType(xi.slot.RANGED) == xi.skill.MARKSMANSHIP then -- can't have your crossbow/gun held like a bow, now can we?
action:setAnimation(target:getID(), action:getAnimation(target:getID()) + 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same: Did you test this, action doesn't exist in this scope?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a test this morning because I was 100% I did test each skill against an enemy. I believe I will need to investigate into the job ability what it should 100% do. The animation triggers and fires the arrow and the target is bound, no arrow was consumed when I had tested this. Will reinvestigate and fix

Copy link
Contributor

@zach2good zach2good left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine, kicking CI off again to see what it says

@Xaver-DaRed
Copy link
Contributor

This PR is failing CI. You need to remobe the tabs from the code. Tabs -> 4 spaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
8 participants