EWP Player Reward
Adds configurable player-count based reward scaling functions for Expand World Prefabs.EWP Player Reward
A small extension for Expand World Prefabs that allows rewards to scale based on the number of nearby players.
Requirements
- BepInEx
- Expand World Prefabs 1.60.0+
What This Mod Does
The mod adds a new Expand World Prefabs function:
PlayerReward
It calculates a reward based on:
- Number of nearby players
- Player detection radius
- Base reward
- Creature level
- Bonus per additional player
Formula
The reward is calculated using:
Reward = (BaseReward × Level) × (1 + Bonus × (Players - 1))
The first player does not increase the reward.
Each additional player adds the configured percentage to the level-scaled base reward.
For example, a bonus value of 0.5 means +50% for each additional player.
Usage
Example Expand World Prefabs rule:
- prefab: Troll
type: destroy
spawn:
- prefab: Coins
data: int, stack, <PlayerReward_<x>:<y>:<z>:20:10:<int_level=1>:0.5>


