TheStarport / FLHook

A Server Improvement for Freelancer.
GNU General Public License v3.0
30 stars 16 forks source link

PhantomLoot per Faction #296

Open IrateRedKite opened 1 year ago

IrateRedKite commented 1 year ago

Basically I'd like to set up PhantomLoot on a per faction basis rather than how it is now (tied to player toughness, no granularity). This would run in parallel with the existing [PhantomLoot] blocks in lootprops.ini, but would allow server owners and modders to define what drops from who at what rates far more easily.

I'd like the ability to set loot drops per faction, and if at all possible per defined NPCShipArch. This might look something like the below in config.

"lootTable": {
        "xenos": {
            "faction": "fc_x_grp",
            "npc": "fc_x_ge_freighter_d1-19",
            "item": "fc_x_gun01_mark02",
            "dropChance": 0.5
        }
    }

If npc is left undefined, the item is able to PhantomLoot drop for any NPCs of that faction, otherwise it's restricted to specific NPCs of that type. Leaving faction undefined would mean that the loot can drop from any NPC, regardless of faction.