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

Ambush choke in combat #2378

Merged
merged 14 commits into from
Jan 16, 2018
Merged

Ambush choke in combat #2378

merged 14 commits into from
Jan 16, 2018

Conversation

charleyc-dr
Copy link
Contributor

(Plus a script for filling a dirt stacker)

@Sarvatt
Copy link
Contributor

Sarvatt commented Jan 15, 2018

'dumping some dirt', 'What were you referring')
end

false
Copy link
Owner

Choose a reason for hiding this comment

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

I realize you're following the precedent of the other training abilities, but I'm not convinced the return value is used anywhere. What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

You'd need a return up in the case that calls this like ambush_stun has, but that's only necessary if the action here could cause a real change in game state, I don't think choke can kill mobs so there's no need.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, totally not needed. Removed.

@@ -0,0 +1,31 @@
custom_require.call(%w[common common-items drinfomon])
Copy link
Owner

Choose a reason for hiding this comment

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

Do you plan to document this on elanthipedia?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can do that!

Copy link
Owner

Choose a reason for hiding this comment

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

Can you add a header documentation block to the script?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

fill-dirt.lic Outdated

def fill_stacker
loop do
forage?('dirt')
Copy link
Owner

Choose a reason for hiding this comment

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

Do you want to break if forage? fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea; done.

@rpherbig rpherbig merged commit 7eef874 into rpherbig:master Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants