mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 05:26:28 +00:00
* Added Curse of Madness to Summon Event pool 🆑 coiax add: Curse of Madness can now be triggered by a wizard's Summon Events, at the same chance as Summon Guns or Summon Magic. admin: When an admin triggers Curse of Madness manually, they can specify their own dark truth to horrify the station with. /🆑 Random Curse of Madness events pick a line from the redpill.json file, which I've added some more entries to. * REDPILL_FILE
29 lines
786 B
Plaintext
29 lines
786 B
Plaintext
/datum/round_event_control/wizard/madness
|
|
name = "Curse of Madness"
|
|
weight = 1
|
|
typepath = /datum/round_event/wizard/madness
|
|
earliest_start = 0 MINUTES
|
|
|
|
var/forced_secret
|
|
|
|
/datum/round_event_control/wizard/madness/admin_setup()
|
|
if(!check_rights(R_FUN))
|
|
return
|
|
|
|
var/suggested = pick(strings(REDPILL_FILE, "redpill_questions"))
|
|
|
|
forced_secret = (input(usr, "What horrifying truth will you reveal?", "Curse of Madness", suggested) as text) || suggested
|
|
|
|
/datum/round_event/wizard/madness/start()
|
|
var/datum/round_event_control/wizard/madness/C = control
|
|
|
|
var/horrifying_truth
|
|
|
|
if(C.forced_secret)
|
|
horrifying_truth = C.forced_secret
|
|
C.forced_secret = null
|
|
else
|
|
horrifying_truth = pick(strings(REDPILL_FILE, "redpill_questions"))
|
|
|
|
curse_of_madness(null, horrifying_truth)
|