RealmsMud / RealmsCode

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

Multiple updates #164

Closed ocelot134269 closed 1 year ago

ocelot134269 commented 1 year ago

-evil/good room harm -flying boulders room harm -consolidated handling armor and stoneskin effects into applyMagicalArmor() function -stoneskin now divides backstab damage by 3. Before, it didn't do anything -Fixed it so physical traps now take armor and stoneskin effects into account; changed some trap outputs -benediction/malediction spells (to counter evil/good room damage); these are received automatically at level 7 by the correctly aligned clerics and 13th for paladins or dknights; Druids and clerics of Ares receive both of them at level 7 -added "roominfo" command -added getDeityAlignment() function -added replaceCancelingEffects() function - replaces polar opposite active effects and retains current duration - right now only benediction/malediction; I realize didn't use the opposingEffect in effects to do this, but in the end I felt it could be useful to have function targeting specific effects like this. Plus I spent 2 days working on it and debugging before I realized it. -_- -Minor tweaks, like replacing various print() and printColor() with C++ style, and some output changes in various places

ocelot134269 commented 1 year ago

Also, stoneskin was broken in general. It works correctly now.