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

Add debug command :terrain. #4405

Merged
merged 2 commits into from Oct 10, 2019

Conversation

@jostephd
Copy link
Member

commented Sep 29, 2019

Usage: :terrain <terrain type> [both|base|overlay]

Usage: :terrain <terrain type> [both|base|overlay]
@jostephd jostephd self-assigned this Sep 29, 2019
@Wedge009

This comment has been minimized.

Copy link
Member

commented Sep 30, 2019

So one can change terrain in the middle of a game?

@jostephd

This comment has been minimized.

Copy link
Member Author

commented Sep 30, 2019

Yes (in debug mode only, of course).

It's easier than running wesnoth.set_terrain(2, 3, 'Ss'); wesnoth.redraw{} in the lua console.

@CelticMinstrel

This comment has been minimized.

Copy link
Member

commented Oct 1, 2019

Also easier than using the Lua way of getting the currently-hovered hex and subbing that into the command.

@gfgtdf

This comment has been minimized.

Copy link
Contributor

commented Oct 1, 2019

hmm this is not synced, all other gamechanging debug functions are synced, (so that they don't cause OOS). I think it'd be better if his way synced aswell.

@jostephd

This comment has been minimized.

Copy link
Member Author

commented Oct 1, 2019

Done. Is the undo handling correct?

@gfgtdf

This comment has been minimized.

Copy link
Contributor

commented Oct 1, 2019

Is the undo handling correct?

I'd say so i dont remeber exactly but its what all the other debug functions do aswell.

@jostephd jostephd merged commit f1725ae into wesnoth:master Oct 10, 2019
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.