Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: A Song For A Season joke/seasonal abnormality #2605

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ModularTegustation/Teguicons/64x128.dmi
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/mob/living/simple_animal/hostile/abnormality/carrey
name = "A Song For A Season"
desc = span_userdanger("The ice is melting...")
health = 1000 // Dummy
maxHealth = 1000 // Dummy
pixel_x = -16
pixel_y = -32
base_pixel_x = -16
base_pixel_y = -32
icon = 'ModularTegustation/Teguicons/64x128.dmi'
icon_state = "carrey"
icon_living = "carrey"
portrait = "carrey"
del_on_death = FALSE
can_breach = FALSE // Not... yet
start_qliphoth = 1337 // Dummy
threat_level = ALEPH_LEVEL
fear_level = ALEPH_LEVEL
damage_coeff = list(RED_DAMAGE = 0, WHITE_DAMAGE = 0, BLACK_DAMAGE = 0, PALE_DAMAGE = 0)
work_chances = list(
ABNORMALITY_WORK_INSTINCT = 1,
ABNORMALITY_WORK_INSIGHT = 1,
ABNORMALITY_WORK_ATTACHMENT = 1,
ABNORMALITY_WORK_REPRESSION = 1,
"Request Concert" = 999,
)
work_damage_amount = 1
work_damage_type = WHITE_DAMAGE
abnormality_origin = ABNORMALITY_ORIGIN_JOKE

/mob/living/simple_animal/hostile/abnormality/carrey/Initialize(mapload)
. = ..()
start_qliphoth = days_until_christmas()
if(start_qliphoth > 0)
icon_state = "contained_greyscale"
if(start_qliphoth < 24)
add_overlay(mutable_appearance('ModularTegustation/Teguicons/64x128.dmi', "containmentice[round((start_qliphoth / 4), 1)]"))

/mob/living/simple_animal/hostile/abnormality/carrey/PostSpawn()
. = ..()
for(var/turf/open/O in range(1, src))
new /obj/effect/snow_storm(O)

/mob/living/simple_animal/hostile/abnormality/carrey/AttemptWork(mob/living/carbon/human/user, work_type)
if(work_type == "Request Concert")
to_chat(user, span_bolddanger("Not yet... I will show you my... grand performance in [start_qliphoth] days."))
return FALSE
return ..()

/mob/living/simple_animal/hostile/abnormality/carrey/FailureEffect(mob/living/carbon/human/user, work_type, pe, work_time, canceled)
to_chat(user, span_userdanger("You can't take it anymore!"))
user.spew_organ(10, 5)
return ..()

/mob/living/simple_animal/hostile/abnormality/carrey/proc/days_until_christmas()
var/list/dayspermonth = list(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
var/MM = text2num(time2text(world.timeofday, "MM"))
var/DD = text2num(time2text(world.timeofday, "DD"))
var/goal_month = 12
var/goal_day = 24
. = 0

for(var/i = MM, i < goal_month, i++)
. += dayspermonth[i]

if(DD < goal_day)
. += goal_day - DD
else
. += DD - goal_day

/obj/effect/snow_storm
icon = 'icons/effects/weather_effects.dmi'
icon_state = "snow_storm"
Binary file added icons/UI_Icons/abnormality_portraits/carrey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lobotomy-corp13.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,7 @@
#include "code\modules\mob\living\simple_animal\abnormality\_auxiliary_modes\joke\ego_guns.dm"
#include "code\modules\mob\living\simple_animal\abnormality\_auxiliary_modes\joke\ego_weapons.dm"
#include "code\modules\mob\living\simple_animal\abnormality\_auxiliary_modes\joke\aleph\barkley.dm"
#include "code\modules\mob\living\simple_animal\abnormality\_auxiliary_modes\joke\aleph\carrey.dm"
#include "code\modules\mob\living\simple_animal\abnormality\_auxiliary_modes\joke\aleph\rudolta_buff.dm"
#include "code\modules\mob\living\simple_animal\abnormality\_auxiliary_modes\joke\aleph\sukuna.dm"
#include "code\modules\mob\living\simple_animal\abnormality\_auxiliary_modes\joke\aleph\wild_ride.dm"
Expand Down
Loading