Michael Cook (mackal) 2b4e555eae
[Feature] Faction Association (#2408)
* Add faction logging category

Probably should use this for more things

* Add FactionAssociation struct

This is simply just a struct that contains an array of faction ids and
multiplier. This can hold a maximum of 10 entries (Seru hit is 8, so 2
extra) this can be raised if need be.

* Add database changes and other data point changes

This is all the database changes and loading changes

Included is an optional SQL that will be used as a starting point, there
is likely errors or typos, but we will fix those as they are discovered.

* Add Client::RewardFaction function

This just takes the faction ID and the magnitude of the primary faction
hit and calculates the rest.

The minimum change will be either 1 or -1. We stop processing after we
see an ID of 0 and assume there will be no later entries.

The primary faction ID will always receive a hit even if there is no
faction association entries

* Add users of RewardFaction to NPC death, tasks, and QuestRewards

This will only use the new system if the magnitude is set, otherwise we
will just use the old system still

* Add quest system calls and lua QuestReward support

* Add #factionassociation command

This just calls RewardFaction, mostly useful for debugging
2022-09-03 10:57:55 -04:00
..
2021-08-31 01:24:21 -05:00
2022-09-03 10:57:55 -04:00
2018-03-04 13:54:28 -05:00
2022-05-09 20:49:43 -05:00
2022-05-09 20:49:43 -05:00
2017-05-15 15:46:19 -07:00
2022-09-03 10:57:55 -04:00
2022-09-03 10:57:55 -04:00
2022-09-03 10:57:55 -04:00
2018-11-07 21:55:12 -08:00
2017-07-15 20:29:55 -07:00
2020-01-31 20:25:06 -06:00