This commit is contained in:
SandPoot
2023-01-23 20:44:28 -03:00
parent e292452aae
commit 54641ce201
103 changed files with 730 additions and 232 deletions
+5 -3
View File
@@ -5,6 +5,8 @@
typepath = /datum/round_event/ion_storm
weight = 15
min_players = 2
category = EVENT_CATEGORY_AI
description = "Gives the AI a new, randomized law."
/datum/round_event/ion_storm
var/replaceLawsetChance = 25 //chance the AI's lawset is completely replaced with something else per config weights
@@ -14,8 +16,8 @@
var/botEmagChance = 10
var/announceEvent = ION_RANDOM // -1 means don't announce, 0 means have it randomly announce, 1 means it is announced
var/ionMessage = null
var/ionAnnounceChance = 33
announceWhen = 1
announce_when = 1
announce_chance = 33
/datum/round_event/ion_storm/add_law_only // special subtype that adds a law only
replaceLawsetChance = 0
@@ -25,7 +27,7 @@
botEmagChance = 0
/datum/round_event/ion_storm/announce(fake)
if(announceEvent == ION_ANNOUNCE || (announceEvent == ION_RANDOM && prob(ionAnnounceChance)) || fake)
if(announceEvent == ION_ANNOUNCE || (announceEvent == ION_RANDOM && prob(announce_chance)) || fake)
priority_announce("Ion storm detected near the station. Please check all AI-controlled equipment for errors.", "Anomaly Alert", "ionstorm", has_important_message = prob(80))