You are viewing a potentially older version of this package.
View all versions.
Trick or Treat
Adds pumpkins randomly to all levels. Open them to get a Trick or a Treat! Have a Happy Halloween!
| Date uploaded | 3 days ago |
| Version | 1.2.0 |
| Download link | Omniscye-Trick_or_Treat-1.2.0.zip |
| Downloads | 2840 |
| Dependency string | Omniscye-Trick_or_Treat-1.2.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Trick_or_Treat 🎃 v1.2.0 - Have a Happy Halloween!
Update 1.2 — New “Spawn Enemies” Treat/Trick
Pumpkins can now spawn enemies (vanilla or modded) using REPOLib’s catalog.
What it does
- Pumpkins appear randomly across real levels each run (host only spawns, clients mirror).
- Press E near a pumpkin to open it.
- Treats: Spawns a handful of loot from the shop pools (falls back to global catalog).
- Trick: Sometimes spawns enemies around the pumpkin instead of items.
- Trick: Explodes (visual/sfx + optional damage) per your settings.
- Multiplayer: Host drives all logic; clients receive Photon events.
Requirements
- BepInEx
- REPOLib (for enemy spawn API)
Configuration
A config file is generated on first run. Keep values reasonable; the host’s config rules the lobby.
[Gameplay]
ExplosionChance = 0.5 ; 0.0–1.0 — chance an opened pumpkin is a "trick" (explodes)
MinSpawnItems = 1 ; min items on a treat
MaxSpawnItems = 6 ; max items on a treat
[Spawning]
MinPumpkins = 1 ; min pumpkins per level
MaxPumpkins = 3 ; max pumpkins per level
SkipStartRoom = true ; avoid points closest to the truck
[Enemies]
EnemyChance = 0.35 ; 0.0–1.0 — chance to spawn enemies instead of items on a treat
EnemyName = ; optional name (full/partial). Empty = random from REPOLib catalog
MinEnemyCount = 1 ; min enemies to spawn
MaxEnemyCount = 2 ; max enemies to spawn
Technical details (for modders)
- Netcode: Photon
RaiseEvent; host-only spawn. Clients rebuild pumpkins from events. - Scope: No pumpkins in menus/lobby. Spawning waits until the level is generated.
- FX: Local helpers for Treat/Explode; mirrored to clients via transient events.
- Items: Pulls from
ShopManagerpools; falls back toStatsManager.itemDictionary. - Interaction: Kinematic-ish, ground-snapped pumpkin with a trigger collider; "Press E" prompt uses game input.
- Compatibility: Enemy spawn uses REPOLib’s enemy registry, so modded enemies are eligible.
Credits
Created by Omniscye Stay Forever