Peace
UPDATE 1.1.4: You now have the ability to enable Events be allowed or disable them to match your Peace Zone!
So what does Peace do?
Peace creates a peace zone around specifically mounted trophies. Doing that prevents the creature associated with that trophy from spawning inside your Peace zone and if it was already there or wanders in from outside the zone it becomes peaceful.
To create a Peace zone
-
Defeat any biomes boss (Eikthyr through Kall Fimbulbringer), that will allow you to make a Peace zone.
-
Place a wood wall 1x1 on any surface, then place a wall type item stand on it, now you're ready to stop a creature from spawning.
-
Now mount a creature's trophy from that defeated boss’s biome on the item stand to create a Peace zone that stops that trophy’s creature from spawning within your newly made Peace zone. (ie: Defeat Eikthyr and place a Greydwarf trophy on the item stand to stop Greydwarfs from spawning inside your Peace zone)(see photos)
-
As you progress and defeat more bosses then you can start mounting that boss's creatures trophy's to add even more creatures that will respect each your Peace zones they are mounted in throughout your world.
Additional features
Not only will they stop spawning inside this zone, but should they already be in the zone when you make it, or wander in around the edge of it, they become totally passive while you're inside your Peace zone.
Everything else in the world behaves normally outside the Peace zone.
If you attack any creature inside the zone they will not fight back and if left alone then they will just wander around harmlessly.
Less Annoying? Yes!, even the honking deer calm down if they are already in or wander inside the zone once their trophy is mounted.
What if the creature doesn’t have a trophy like a Greyling? No problem, as soon as you mount any creatures’ trophy from a defeated boss’s biome, then any non-trophy creature from that same biome is also automatically prevented from spawning.
If you want to still decorate with trophies then don’t worry as you can mount them just as you normally do as long as you don’t place the item stand on a 1x1 wood wall piece.
Dungeon If a Dungeon is inside your peace zone, then any creatures inside it are NOT affected by the peace zone regardless of any trophy mounted. The only exception is any creatures that hover around outside the entrance will be at peace with you.
You have ability to enable having the Event/Raids be allowed for the enemies you have trophies for or disable them to match your Peace Zone through the config settings.
Is it complicated to use?
Nope! No need to remember anything, the mod keeps you informed so you know what mounting or dismounting a trophy is doing within your game.
-
The mod tells you when you mount a trophy correctly to create a Peace zone with an announcement of Peace Has Come!.
-
It will tell you when you mount a trophy as you would normally without creating a zone with an announcement of Decorative Only
-
If you remove a trophy that was making a Peace zone free of that creature then you will see Peace Has Ended! (but only for that creature, any others remain at peace)
-
If you mount a creatures trophy as though it should create a Peace zone but that creature’s boss hasn’t been defeated yet you will see an announcement of "Victory Will Still be Ours!" to let you know you have work to do yet!
-
You cannot mount the same trophy in an already created Peace zone or the mod will cancel the peace effect and warn you with an announcement Duplicate Trophy -Remove for Peace!. Simply remove the duplicate trophy and it will announce Peace Has Come! again and automatically restore the Peace zone. This also applies to overlapping same type creature Peace zones from nearby building or bases. To avoid this just don’t overlap same for same creature Peace zones.
-
You can have as many Peace zones as you want in your world so that you can make them more biome creature specific for that biome if you have multiple bases.
Visualizing a Peace zone
But how do I know where the edge of my zone actually is so I don’t overlap or walk out into hostile territory?
-
Press F8 (configurable) to toggle on and off a green ring showing the exact boundary of every currently active Peace zone per creature. The ring follows terrain height so it won't clip into hillsides (it does disappear under water though). There will be one green ring for each creature's Peace zone. Rings do not generate for a decorative, duplicated, or undefeated boss trophies.
-
The size of the zone is configurable, For making changes to the size of it, I highly recommend using Azus UnOfficial ConfigManager -> Azu's
HINT! Place all your Peace zone making trophy's close to each other and not randomly throughout your base. This will make a consistant known Peace zone layout for all creatures you are stopping from spawning.
Configuration
Config file: BepInEx/config/com.RageZro.Peace.cfg
| Section | Setting | Default | Notes |
|---|---|---|---|
| General | ModEnabled |
true |
Master on/off switch |
| PeaceZone | PeaceZoneRadius |
140 |
Radius in meters, adjustable from 80 to 200 |
| Visual | ToggleZoneRadiusKey |
F8 |
Key to toggle the green zone ring |
| Advanced | ZoneRescanIntervalSeconds |
5 |
Safety-net rescan interval for loaded item stands |
| Trophies | TrophyToEnemyMap |
(see config) | TrophyItemName:EnemyPrefabName pairs, comma-separated |
| Trophies | UniversalSuppressEnemies |
(see config) | Creature prefab names suppressed under any active zone, no trophy needed |
| Trophies | BossRequirementMap |
(see config) | EnemyPrefabName:GlobalKey pairs — which boss must be dead before that creature type's zone activates |
Trouble Shooting
If you mount a trophy and it doesn't seem to do anything, check the log, the mod logs a warning naming the exact item it didn't recognize:
It will look like this: [Peace] Mounted item 'X' has no trophy mapping in TrophyToEnemyMap.
Most likely there is a conflict with another mod unfortunately, if there is a true issue then contact me at my Discord server below.
If a trophy shows "Victory Will Still Be Ours!" even though you're certain the correct boss is dead, first double check you're genuinely in the *same world* where that boss was killed (this mod checks defeated boss per world, not per player). If it appears your in the right world, with the correct boss defeated and only one trophy in an non-overlapped Peace zone, then contact me at my Discord server below.
## Additional Info
- Support is included up through Deep North creature trophies.
- **You should delete your config if the mod has been updated, it will make a new config to reflect any changes.**
- Fire-fear/avoidance is left as vanilla for every creature.
- Multiplayer: config values only take effect on whichever machine is actually running the world (the host, or the dedicated server).
## Conflicts
- None known, however any mod that affects creature behavior or spawning might cause a conflict.
## Contact Info
- Got an issue or question? Contact me at my Discord server below
- [RageZro](https://discord.gg/gGr6qXeze)
## Credits
Built with [BepInEx](https://github.com/BepInEx/BepInEx) and
[HarmonyX](https://github.com/BepInEx/HarmonyX).