mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
made rogue vending machines revert after event end, reduced chance of machines going rogue
Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
oneShot = 1
|
oneShot = 1
|
||||||
|
|
||||||
var/list/obj/machinery/vending/vendingMachines = list()
|
var/list/obj/machinery/vending/vendingMachines = list()
|
||||||
|
var/list/obj/machinery/vending/infectedVendingMachines = list()
|
||||||
var/obj/machinery/vending/originMachine
|
var/obj/machinery/vending/originMachine
|
||||||
|
|
||||||
|
|
||||||
@@ -28,20 +29,29 @@
|
|||||||
|
|
||||||
/datum/event/brand_intelligence/tick()
|
/datum/event/brand_intelligence/tick()
|
||||||
if(!vendingMachines.len || !originMachine || originMachine.shut_up) //if every machine is infected, or if the original vending machine is missing or has it's voice switch flipped
|
if(!vendingMachines.len || !originMachine || originMachine.shut_up) //if every machine is infected, or if the original vending machine is missing or has it's voice switch flipped
|
||||||
|
end()
|
||||||
kill()
|
kill()
|
||||||
return
|
return
|
||||||
|
|
||||||
if(IsMultiple(activeFor, 3))
|
if(IsMultiple(activeFor, 5))
|
||||||
var/obj/machinery/vending/infectedMachine = pick(vendingMachines)
|
if(prob(25))
|
||||||
vendingMachines.Remove(infectedMachine)
|
var/obj/machinery/vending/infectedMachine = pick(vendingMachines)
|
||||||
infectedMachine.shut_up = 0
|
vendingMachines.Remove(infectedMachine)
|
||||||
infectedMachine.shoot_inventory = 1
|
infectedVendingMachines.Add(infectedMachine)
|
||||||
|
infectedMachine.shut_up = 0
|
||||||
|
infectedMachine.shoot_inventory = 1
|
||||||
|
|
||||||
if(IsMultiple(activeFor, 12))
|
if(IsMultiple(activeFor, 12))
|
||||||
originMachine.speak(pick("Try our aggressive new marketing strategies!", \
|
originMachine.speak(pick("Try our aggressive new marketing strategies!", \
|
||||||
"You should buy products to feed your lifestyle obession!", \
|
"You should buy products to feed your lifestyle obession!", \
|
||||||
"Consume!", \
|
"Consume!", \
|
||||||
"Your money can buy happiness!", \
|
"Your money can buy happiness!", \
|
||||||
"Engage direct marketing!", \
|
"Engage direct marketing!", \
|
||||||
"Advertising is legalized lying! But don't let that put you off our great deals!", \
|
"Advertising is legalized lying! But don't let that put you off our great deals!", \
|
||||||
"You don't want to buy anything? Yeah, well I didn't want to buy your mom either."))
|
"You don't want to buy anything? Yeah, well I didn't want to buy your mom either."))
|
||||||
|
|
||||||
|
/datum/event/brand_intelligence/end()
|
||||||
|
for(var/obj/machinery/vending/infectedMachine in infectedVendingMachines)
|
||||||
|
if(prob(90))
|
||||||
|
infectedMachine.shut_up = 1
|
||||||
|
infectedMachine.shoot_inventory = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user