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

Server1 tomato plants die before producing #6

Open
Quasic opened this issue May 21, 2024 · 0 comments
Open

Server1 tomato plants die before producing #6

Quasic opened this issue May 21, 2024 · 0 comments

Comments

@Quasic
Copy link
Owner

Quasic commented May 21, 2024

In working branch:

The perl scripts prefixed by g- control tomato plant growth. They are called by refresh.pl. They basically change the item into another item if conditions are met. Conditions may include the tile the item is sitting on, and randomness. One of multiple replacement items may be chosen randomly. New items may also appear on adjacent tiles if they don't already have items.

When implementing this in server1.js, I created xform() to handle the transformation. Tomatoes in server1 are currently untested and I haven't yet implemented g-Ia.pl, which causes the plants to make tomatoes. I believe this is the last perl to js conversion needed for server1 to fully implement DB.

Times may also be too long for a single-player game.

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

No branches or pull requests

1 participant