mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Changed RBI to be less round ending
This commit is contained in:
@@ -43,6 +43,8 @@
|
||||
//var/emagged = 0 //Ignores if somebody doesn't have card access to that machine.
|
||||
var/seconds_electrified = 0 //Shock customers like an airlock.
|
||||
var/shoot_inventory = 0 //Fire items at customers! We're broken!
|
||||
var/shoot_speed = 3 //How hard are we firing the items?
|
||||
var/shoot_chance = 2 //How often are we firing the items?
|
||||
var/shut_up = 0 //Stop spouting those godawful pitches!
|
||||
var/extended_inventory = 0 //can we access the hidden inventory?
|
||||
var/scan_id = 1
|
||||
@@ -463,7 +465,7 @@
|
||||
src.speak(slogan)
|
||||
src.last_slogan = world.time
|
||||
|
||||
if(src.shoot_inventory && prob(2))
|
||||
if(src.shoot_inventory && prob(shoot_chance))
|
||||
src.throw_item()
|
||||
|
||||
return
|
||||
@@ -529,7 +531,7 @@
|
||||
if (!throw_item)
|
||||
return 0
|
||||
spawn(0)
|
||||
throw_item.throw_at(target, 16, 3)
|
||||
throw_item.throw_at(target, 16, shoot_speed)
|
||||
src.visible_message("\red <b>[src] launches [throw_item.name] at [target.name]!</b>")
|
||||
return 1
|
||||
|
||||
|
||||
@@ -25,9 +25,6 @@
|
||||
originMachine.shut_up = 0
|
||||
originMachine.shoot_inventory = 1
|
||||
|
||||
scaling_factor = num_players() / 60 //Tweak this value to change the number of hostile machines. Lower value = more hostile machines.
|
||||
|
||||
|
||||
|
||||
/datum/event/brand_intelligence/tick()
|
||||
if(!originMachine || originMachine.shut_up || !originMachine.powered()) //if the original vending machine is missing or has it's voice switch flipped
|
||||
@@ -41,17 +38,8 @@
|
||||
|
||||
if(!vendingMachines.len) //if every machine is infected
|
||||
for(var/obj/machinery/vending/upriser in infectedMachines)
|
||||
if(prob(25)) return
|
||||
if(prob(60 * scaling_factor))
|
||||
var/mob/living/simple_animal/hostile/mimic/M = new(upriser.loc)
|
||||
M.name = upriser.name
|
||||
M.icon = upriser.icon
|
||||
M.icon_state = initial(upriser.icon_state)
|
||||
else
|
||||
explosion(upriser.loc, 2, 2, 3, 5)
|
||||
sleep(50) //return control to lessen lag
|
||||
del(upriser)
|
||||
|
||||
upriser.shoot_speed = 40 //Ouch! May be too much, needs play testing.
|
||||
upriser.shoot_chance = 15
|
||||
kill()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user