TempusMUD / Tempuscode

Codebase for TempusMUD
http://tempusmud.com/
Other
7 stars 6 forks source link

Make fire and frost breathe a PC skill with skill gains #421

Closed mikeclemson closed 10 years ago

mikeclemson commented 10 years ago

The cost of fire and frost breathe are already ignored when it enters call_magic as CAST_BREATH not CAST_SPELL, so I've set them to 0 in spells.xml to avoid confusing characters when the skill appears on the spell sheet.

I've moved the spell number under 500 to allow for PCs to store a skill for it and have it handled normally by magical protection, INT increases for mages in mag_damage, and so forth. Previously it was above MAX_SPELLS and got ignored.

Finally, the breathe skill will be set to the same skill level as fire breathing if it isn't already. This lets the character gain skill in fire breathing since bringing the breath in via call_magic had been avoiding cast_magic which is normally what lets you gain skill.

dlowe-net commented 10 years ago

I'm not entirely comfortable with this bizarre keeping two skills at equal levels thing. Why are the breathing and breathe skills separate anyway?

mikeclemson commented 10 years ago

Fire breathing now uses the PC version of fire breath, called dragon's breath, which ranges from around 250 damage in per 1-second breathe at level 49 mortal int 15, to 475 damage per breathe at level 49 gen 10 with int 50. It's magical and fire damage and is appropriately reduced by protections for each. Since frost breathing isn't implemented, I've removed the section for it in PC breathe in mobact.c. The fire breathe for NPCs is returned and is no longer magical, a flag that was added for PC purposes.