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

Lua: Allow modifying player research bulb progress #2458

Open
XHawk87 opened this issue Dec 15, 2024 · 2 comments
Open

Lua: Allow modifying player research bulb progress #2458

XHawk87 opened this issue Dec 15, 2024 · 2 comments
Labels
enhancement New feature or request port-from-freeciv This was implemented in Freeciv server This issue requires changes to the server

Comments

@XHawk87
Copy link
Contributor

XHawk87 commented Dec 15, 2024

Is your feature request related to a problem? Please describe.
I need a way to see accumulated research bulbs for a player, as well as to modify it in Lua.

Describe the solution you'd like
Having a bulbs property and a Player:add_bulbs method on the Player type.

Additional context
This feature was already added in another version of freeciv, we might be able to use the same or a similar solution:
Lua Reference Manual

Blocks longturn/rules-of-chaos#21

@XHawk87 XHawk87 added enhancement New feature or request Untriaged This issue or PR needs triaging labels Dec 15, 2024
@lmoureaux
Copy link
Contributor

I remember fcw requesting something similar...

@lmoureaux lmoureaux added server This issue requires changes to the server port-from-freeciv This was implemented in Freeciv and removed Untriaged This issue or PR needs triaging labels Dec 23, 2024
@lmoureaux
Copy link
Contributor

The Freeciv commit(s) might be readily portable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request port-from-freeciv This was implemented in Freeciv server This issue requires changes to the server
Projects
None yet
Development

No branches or pull requests

2 participants