Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
EWP Player Reward
Adds configurable player-count based reward scaling functions for Expand World Prefabs.
By GurneyArena
| Last updated | a day ago |
| Total downloads | 11 |
| Total rating | 0 |
| Categories | Utility |
| Dependency string | GurneyArena-EWP_Player_Reward-1.0.0 |
| Dependants | 1 other package depends on this package |
This mod requires the following mods to function
JereKuusela-Expand_World_Prefabs
Allows creating rules for objects being spawned, destroyed and more.
Preferred version: 1.60.0README
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>