yochaigal / Cairn-FoundryVTT

Cairn for FoundryVTT!
MIT License
27 stars 24 forks source link

Update NPC armor #24

Closed smcabrera closed 3 years ago

smcabrera commented 3 years ago

In creating the new NPC actor type I added an armor field and made their templates use that value. This means that you can just type in a monster's armor rather than having to give the monster armor items.

However the existing monsters that had been created were given armor items. Rather than update the armor to reflect those values, I updated the armor calculation for NPCs to either take an armor value stored on the monster, or the sum of the armor they were carrying, whichever is higher.

This enables GMs using this system to use whichever approach is easier for them at the table. If you create a new NPC and just want to quickly give them an armor value you can do that. But you can also add armor as items and it will calculate the armor accordingly.

As an example here's our Ankheg whose Chitanous skin gives it an armor of 2

image

If we wanted to make one that was particularly tough and just override it on the fly we could give it some other armor value, even something ridiculous

image

We can then reset the armor back to the calculated value by replacing the armor value with 0

https://user-images.githubusercontent.com/4121835/117951943-f40ad300-b314-11eb-9892-7428f26ae438.mp4