Lost Souls: Free Text-Based RPG
Home » Changelog » Page 42 » Entry #3892

System Changelog Entry #3892

Summary reduced usage of 'here' in targeting name retrieval
Rated Importance
4 raters
Rated Value
4 raters
Type lib revision
By Chaos
When Aug 23 2008 3:03 PM
Description Rewrote the code that figures out what to call things for targeting purposes so that it only appends "here" (or, not that you would normally know this, prepends "my") if it needs to in order to tell the target apart from something else in the targeter's inventory (or its environment, in the "my" case).
Reason Tired of listening to people bitch about the 'here' issue, tired of being the only developer who goes in and fixes NPCs so they don't do that in the actually optimal way (this way is not optimal), decided to take the CPU-usage hit in order to make it all stop.
Result Hopefully, this should eliminate the whole "Hello there, human here!" issue. The cost is that the additional checking against inventories is expensive, and may increase lag or cause eval limit errors. (ESPECIALLY IF PEOPLE ACCUMULATE HUGE NUMBERS OF OBJECTS IN THEIR ENVIRONMENTS OR IMMEDIATE INVENTORIES. It helps everything if you try to avoid doing this. Putting objects in containers is a good way of both making your inventory better-organized and helping it not lag the MUD or cause errors.)
Version lib revision incremented to Ain Soph 2.2.892

© 2008-2012 Lost Souls, a free text-based RPG
processing time: 0.004s