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 ObjectRef.hud_set_hotbar_itemcount #699

Closed
wants to merge 1 commit into from

Conversation

kahrl
Copy link
Contributor

@kahrl kahrl commented May 4, 2013

hotbar_itemcount is currently hardcoded to 8. This patch allows lua to change this value (per player). To set the size of the hotbar to 9 items, for example:

player:hud_set_hotbar_itemcount(9)

@kaeza
Copy link
Contributor

kaeza commented May 4, 2013

+1

@Calinou Calinou mentioned this pull request May 8, 2013
@Lord89James
Copy link
Contributor

+1 I like together this improvement, It could be cool add a path that allows to change the max numbers of Items in the inventory for every players (For example, add a bag's mod that increase the size of the inventory or a level system that increase this and another stats)

@PilzAdam
Copy link
Contributor

Nice, I need this for MiniTest.
@kahrl feel free to merge it when you have rebased it to the scriptapi split.

@kahrl
Copy link
Contributor Author

kahrl commented May 25, 2013

96fe1de

@kahrl kahrl closed this May 25, 2013
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.

None yet

4 participants