-
Notifications
You must be signed in to change notification settings - Fork 19
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
Player lookat #58
base: develop
Are you sure you want to change the base?
Player lookat #58
Conversation
The only thing of concern that comes to mind, is the missing check for the length of the description. The database only accepts 255 characters. If a description exceeding this length is stored by the scripts, saving the character will fail during logout. |
Thanks! I'll add the length verification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about having only one getDescription
/ setDescription
with player language as parameter?
That way we could spare scripts some logic to determine the required language. Granted, on setDescription you would probably pass Player.german or Player.english, but it should be an improvement for get...
when showing the description to some random player. Also it feels a bit strange to scale the number of functions with the number of languages.
I agree that having language as parameter feels better. I will implement it (when my rl gets under control).
|
Yes, but a lot of the server code does not provide a good example.
I think the complicated logic should be left to the scripts, while the server just returns the strings. I can see your points, which is why I wasn't entirely sure myself. In the end it just felt weird to have it designed with multiple functions like that. |
Several things exposed to lua scripts to allow improvements to player lookAt.