RealmsMud / RealmsCode

RealmsCode
GNU Affero General Public License v3.0
6 stars 2 forks source link

QoL additions 01 #186

Closed ocelot134269 closed 1 year ago

ocelot134269 commented 1 year ago

-Added a getHpDurabilityStr() function which returns the strings for various descriptions of damage a player/mob is under -Modified displayCreature() (which "look" uses) to use getHpDurabilityStr() and added a progress bar as well if a mob is an enemy or if a player has damage. -Created a general purpose getPercentRemaining(int current, int maximum) which takes those 2 nums and returns a float percentage. The getHpDurabilityStr() function uses it. Modified Object::getDurabilityPercent use this function too. -Per player request (Tilnar), added cmdCondition() for the "condition" (also "victim") commands - this allows a player to briefly see a mob/player's condition, with progress bar, without having to use look and getting all the other information with it.