mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
[EE] Adds a new medium midround event: Irradiated mouse (#31947)
* added irradiated mouse * mouse pulling buff * adds upgrade spells * cooldown on upgrades * icons and cats * radioactive sludge, health decrease, upgrades counter * objectives and sound * spells to new file + check if alive in life * afterimage * description fix, contaminate, comments * lintma? * removed empty lines, , -> :, new -> new() --------- Signed-off-by: Christer2222 <25958019+Christer2222@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ GLOBAL_LIST_INIT(special_role_times, list(
|
||||
ROLE_GOLEM = 0,
|
||||
ROLE_PAI = 0,
|
||||
ROLE_GUARDIAN = 0,
|
||||
ROLE_IRRADIATED_MOUSE = 7,
|
||||
ROLE_TRAITOR = 7,
|
||||
ROLE_CHANGELING = 14,
|
||||
ROLE_WIZARD = 14,
|
||||
|
||||
@@ -201,6 +201,7 @@ GLOBAL_LIST_EMPTY(event_last_fired)
|
||||
new /datum/event_meta(EVENT_LEVEL_MODERATE, /datum/event/market_crash, 20),
|
||||
new /datum/event_meta(EVENT_LEVEL_MODERATE, /datum/event/cargo_pods, 50),
|
||||
new /datum/event_meta(EVENT_LEVEL_MODERATE, /datum/event/spawn_floor_cluwne, 3),
|
||||
new /datum/event_meta(EVENT_LEVEL_MODERATE, /datum/event/spawn_irradiated_mouse, 20),
|
||||
)
|
||||
|
||||
/datum/event_container/major
|
||||
|
||||
@@ -125,10 +125,10 @@
|
||||
cable.deconstruct()
|
||||
|
||||
/mob/living/basic/mouse/start_pulling(atom/movable/AM, state, force = pull_force, show_message = FALSE)// Prevents mouse from pulling things
|
||||
if(istype(AM, /obj/item/food/sliced/cheesewedge))
|
||||
if(istype(AM, /obj/item/food/sliced/cheesewedge) || istype(AM, /mob/living/basic/mouse))
|
||||
return ..() // Get dem
|
||||
if(show_message)
|
||||
to_chat(src, SPAN_WARNING("You are too small to pull anything except cheese."))
|
||||
to_chat(src, SPAN_WARNING("You are too small to pull anything except cheese and other mice."))
|
||||
return
|
||||
|
||||
/mob/living/basic/mouse/proc/on_atom_entered(datum/source, atom/movable/entered)
|
||||
|
||||
@@ -140,14 +140,23 @@
|
||||
//MICE!
|
||||
if(eats_mice && isturf(loc) && !incapacitated())
|
||||
for(var/mob/living/basic/mouse/M in view(1, src))
|
||||
if(!M.stat && Adjacent(M))
|
||||
custom_emote(EMOTE_VISIBLE, "splats \the [M]!")
|
||||
M.death()
|
||||
M.splat()
|
||||
movement_target = null
|
||||
walk(src, 0)
|
||||
stop_automated_movement = FALSE
|
||||
break
|
||||
if(M.stat == DEAD || !Adjacent(M))
|
||||
continue
|
||||
|
||||
if(istype(M, /mob/living/basic/mouse/irradiated_mouse))
|
||||
if(prob(50))
|
||||
death()
|
||||
return
|
||||
else
|
||||
name = "Schrödinger's [name]"
|
||||
|
||||
custom_emote(EMOTE_VISIBLE, "splats \the [M]!")
|
||||
M.death()
|
||||
M.splat()
|
||||
movement_target = null
|
||||
walk(src, 0)
|
||||
stop_automated_movement = FALSE
|
||||
break
|
||||
for(var/obj/item/toy/cattoy/T in view(1, src))
|
||||
if(T.cooldown < (world.time - 400))
|
||||
custom_emote(EMOTE_VISIBLE, "bats \the [T] around with its paw!")
|
||||
|
||||
Reference in New Issue
Block a user