From: Miguel A. B. L. <mig...@ho...> - 2005-10-22 16:42:00
|
Hi all, I have coded the ability for this NPC to use money instead of XP, but as you see it is not confortable to do that. As Matthias has said there is need for a major ( MAJOR! ) refactoring of stendhal.server Right now we don't know the capacity of a slot, so it can contain infinite items. I have added to Marauroa the capacity attribute ( of RPSlot ), unfortunatelly enabling this attribute means that we need to clear the database as it breaks the data format ( because the addition of a new element and changes in database schema) We could clear database now, but game is not balanced yet, so we would need another clearing after we rebalance the game in a few releases. So my proposal is to do a new release tomorrow, after I close some minor bugs/features and then enter in the refactoring. The refactoring won't affect client package so Matthias can work safely on GUI, meanwhile I will modify the server package to achieve: - Better slot handling - More interfaces to handle containers, equipable, stackable, etc... - A more intelligent way of having methods on classes ( and reuse them when possible ). - Integration of ActionManager Anyone disagree? Any opinion? This remind me that Marauroa protocol of serialization don't have versioning. It is a feature, as adding versioning will make things simply bigger and the use it could have would be minimal. Regards, Miguel |