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 function to turtles. call it, turtle.shiftPlace() #2021

Open
IlDadoMatto opened this issue Dec 4, 2024 · 0 comments
Open

Add function to turtles. call it, turtle.shiftPlace() #2021

IlDadoMatto opened this issue Dec 4, 2024 · 0 comments
Labels
enhancement An extension of a feature or a new feature.

Comments

@IlDadoMatto
Copy link

I suggest adding three functions to the turtles: shiftPlace(), shiftPlaceUp(), and shiftPlaceDown(). This would give the turtle the ability to place objects that require the player to press Shift, such as sophisticated backpacks. This could significantly increase the turtle's inventory capacity if needed.

Alternatively, without adding new methods, you could simply add an optional boolean parameter to the existing place() method. When this parameter is true, it would simulate a Shift-click placement of objects:
place([isShift])
Here, isShift is a boolean that, when true, triggers the Shift-click behavior.

I hope this is clear!

@IlDadoMatto IlDadoMatto added the enhancement An extension of a feature or a new feature. label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An extension of a feature or a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant