[crossfire] Permanent Experience

Preston Crow pc-crossfire06 at crowcastle.net
Mon Aug 17 12:08:46 CDT 2020


On 2020-08-17 12:44, Kevin Zheng wrote:
> On 8/14/20 12:32 PM, Preston Crow wrote:
>> I'm interested in changing the server to replace tracking of permanent
>> experience with tracking of total experience.  This would work out to be
>> almost exactly the same, except it eliminates any rounding.  For
>> example, if you had some skill (say hiding) that always gave out 1xp at
>> a time, you would never be able to have permanent experience exceed 50%
>> of the high-water mark on current experience (or whatever percentage
>> threshold you're using).
>>
>> I have this working on my Crowcastle server, but I want to clean up the
>> patch a bit before pushing it, and I want to check if anyone has any
>> objections to this design change.  I'll have it so that if it loads a
>> character with perm_exp, it will adjust it up to the total_exp value
>> that gives the same effective perm_exp, so it should be a transparent
>> upgrade.
> I'm not very familiar with how permanent experience is currently
> tracked, but it sounds like you're familiar or have worked it out.
>
> Would you mind briefly explaining how the current system works?

When you earn experience, it gets added to your regular experience (up 
to the maximum), and some percentage (default 50%) added to your 
permanent experience.  When you die or are drained, your current 
experience never drops below the permanent experience.

My proposal is to instead of tracking permanent experience, track total 
experience.  This means applying the permanent ratio (50%) to the total 
when using it instead of when adding to it.

Mathematically it's all the same, but the change eliminates rounding 
errors.  It also would in theory let you change the permanent experience 
ratio on a server, though I see no value in that.

My biggest concern is that there are ongoing changes for a Soul Blade 
artifact where the object gains experience, and I wouldn't want to mess 
that up without some degree of coordination.



More information about the crossfire mailing list