Added caco plush to menu and made it use spawnflags.

This commit is contained in:
Kiri 2023-09-03 15:17:19 -07:00
parent d69894f406
commit 960895e24c
3 changed files with 18 additions and 2 deletions

View File

@ -6,9 +6,12 @@
- ~~Fix wiring kit brightmaps~~ - ~~Fix wiring kit brightmaps~~
- Caco plush - Caco plush
- ~~Caco plush spawnflags~~
- ~~Add caco plush to menu~~
- Caco plush documentation - Caco plush documentation
- Caco plush spawnflags
- Brightmaps for caco plush - Brightmaps for caco plush
- Set actual chance for caco plush spawn
- Organize source_data - Organize source_data
- Fix upper/lowercase consistency between objects

View File

@ -9,5 +9,6 @@ OptionMenu "SnekTechMenu"
StaticText "----- Item Spawns -----", "Teal" StaticText "----- Item Spawns -----", "Teal"
FlagOption "Gretchen Counter", "snektech_spawnflags", "YesNo", 0 FlagOption "Gretchen Counter", "snektech_spawnflags", "YesNo", 0
FlagOption "Wiring Bypass Kit", "snektech_spawnflags", "YesNo", 1 FlagOption "Wiring Bypass Kit", "snektech_spawnflags", "YesNo", 1
FlagOption "Cacodemon Plushie", "snektech_spawnflags", "YesNo", 2
} }

View File

@ -1,7 +1,8 @@
enum SnekTechSpawnFlags enum SnekTechSpawnFlags
{ {
SNEKTECH_GRETCHENCOUNTER = 0, SNEKTECH_GRETCHENCOUNTER = 0,
SNEKTECH_JUMPERCABLES = 1 SNEKTECH_JUMPERCABLES = 1,
SNEKTECH_CACOPLUSHIE = 2
} }
class SnekTechEventHandler : EventHandler class SnekTechEventHandler : EventHandler
@ -67,6 +68,11 @@ class SnekTechEventHandler : EventHandler
e.Thing, e.Thing,
SNEKTECH_JUMPERCABLES, SNEKTECH_JUMPERCABLES,
"JumperCablesUsable"); "JumperCablesUsable");
DoSnekTechBackpackSpawnCheck(
e.Thing,
SNEKTECH_CACOPLUSHIE,
"KiriCacodemonPlushie");
} }
override void CheckReplacement(ReplaceEvent e) override void CheckReplacement(ReplaceEvent e)
@ -87,6 +93,12 @@ class SnekTechEventHandler : EventHandler
DoSnekTechReplacement( DoSnekTechReplacement(
SNEKTECH_JUMPERCABLES, SNEKTECH_JUMPERCABLES,
"Allmap", "JumperCablesUsable", "Allmap", "JumperCablesUsable",
12, e);
DoSnekTechReplacement(
SNEKTECH_CACOPLUSHIE,
"BlurSphere", "KiriCacodemonPlushie",
// FIXME: Chance.
256, e); 256, e);
} }