-
Notifications
You must be signed in to change notification settings - Fork 27
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
AOS Properties Regeneration #277
base: develop
Are you sure you want to change the base?
AOS Properties Regeneration #277
Conversation
fixed cast and added it to npcs.cpp so it can be used on them as well.
Regen function/property names updated to be more in line with existing naming conventions Fixed an issue where health regen setting would be loaded for both health, stamina and mana when parsing uox.ini
Moved regenstats to baseonject because it can be used on both npc and item. removed it out of citems.cpp
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.
Smal requested improvements
@@ -6565,6 +6616,15 @@ auto CServerData::HandleLine( const std::string& tag, const std::string& value ) | |||
case 349: // LOOTDECAYSWITHNPCCORPSE | |||
NpcCorpseLootDecay( static_cast<UI16>( std::stoul( value, nullptr, 0 )) != 0 ); | |||
break; | |||
case 350: // HEALTHREGENCAP | |||
HealthRegenCap( std::stof( value )); |
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.
stof returns a floating point value - but the caps take a SI16.
I'd expect this to be different e.g. stoi
@@ -6565,6 +6616,15 @@ auto CServerData::HandleLine( const std::string& tag, const std::string& value ) | |||
case 349: // LOOTDECAYSWITHNPCCORPSE | |||
NpcCorpseLootDecay( static_cast<UI16>( std::stoul( value, nullptr, 0 )) != 0 ); | |||
break; | |||
case 350: // HEALTHREGENCAP | |||
HealthRegenCap( std::stof( value )); |
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.
HealthRegenCap( std::stof( value )); | |
HealthRegenCap( std::stoi( value )); |
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.
xuri has pulled this so not sure what updates he made or changes ill wait to see
HealthRegenCap( std::stof( value )); | ||
break; | ||
case 351: // STAMINAREGENCAP | ||
StaminaRegenCap( std::stof( value )); |
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.
StaminaRegenCap( std::stof( value )); | |
StaminaRegenCap( std::stoi( value )); |
StaminaRegenCap( std::stof( value )); | ||
break; | ||
case 352: // MANAREGENCAP | ||
ManaRegenCap( std::stof( value )); |
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.
ManaRegenCap( std::stof( value )); | |
ManaRegenCap( std::stoi( value )); |
Regeneration Hit Points
Regeneration Stam Points
Regeneration Mana Points
Added AOS formula for mana regeneration. Only Active in AOS and up.