Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
GNU General Public License v3.0
15 stars 7 forks source link

Add Mob groups to quest #479

Open snipercup opened 10 hours ago

snipercup commented 10 hours ago

Adds mob groups to the game as a separate data entity. It's very simple, just a list of mobs. The mob group can be used in quests in the "kill" step. Instead of adding one mob, you add the mob group. Then, any member of the mob group will count towards the quest target.

Here I killed some random zombies and it counts towards one counter: image

When the "map_guide" is set to something other then "none", all maps from all mobs in the group are considered and the closest will be targeted on the overmap.

The mob group can't be used in maps yet but I did add a weight field to the mob group so it will be easier to implement.

I only changed the "beginnings" quest using the mob groups. The "last crusade" quest may also be improved in the same way.