Skip to content

Commit

Permalink
Kill people with House (#1406)
Browse files Browse the repository at this point in the history
KILL PEOPLE WITH ROCK

Added realized ability for "Forever Home"

Status effect sprites for road home

rebase

animation draft

New animation (its the proc)

evil ass changes

Last Tweaks, Fluff Texts
  • Loading branch information
TheBronJameOffical authored Oct 17, 2023
1 parent a2820b5 commit c74da35
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 3 deletions.
Binary file modified ModularTegustation/Teguicons/status_sprites.dmi
Binary file not shown.
15 changes: 15 additions & 0 deletions code/game/objects/effects/temporary_visuals/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -972,3 +972,18 @@

/obj/effect/temp_visual/smash_effect/red
color = COLOR_RED

/obj/effect/temp_visual/house
name = "home"
icon = 'ModularTegustation/Teguicons/96x96.dmi'
icon_state = "House"
duration = 4 SECONDS
pixel_x = -34
pixel_z = 128

/obj/effect/temp_visual/house/Initialize()
. = ..()
addtimer(CALLBACK(src, .proc/FadeOut), 2 SECONDS)

/obj/effect/temp_visual/house/proc/FadeOut()
animate(src, alpha = 0, time = 1 SECONDS)
1 change: 1 addition & 0 deletions code/modules/clothing/suits/ego_gear/realized.dm
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
icon_state = "home"
armor = list(RED_DAMAGE = 40, WHITE_DAMAGE = 60, BLACK_DAMAGE = 90, PALE_DAMAGE = 70)
flags_inv = HIDEGLOVES|HIDESHOES
realized_ability = /obj/effect/proc_holder/ability/aimed/house_spawn

/obj/item/clothing/suit/armor/ego_gear/realization/dimension_ripper
name = "dimension ripper"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@
/atom/movable/screen/alert/status_effect/stay_home
name = "stay home"
desc = "Everyone must go home eventually, you are no different."
icon = 'ModularTegustation/Teguicons/status_sprites.dmi'
icon_state = "home"

/datum/status_effect/stay_home/on_apply()
. = ..()
Expand Down
1 change: 0 additions & 1 deletion code/modules/spells/ability_types/realized.dm
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,6 @@
id = "galaxygift"
status_type = STATUS_EFFECT_UNIQUE
duration = 30 SECONDS
tick_interval = 1 SECONDS
alert_type = /atom/movable/screen/alert/status_effect/galaxy_gift
var/base_heal_amt = 0.5
var/base_dmg_amt = 45
Expand Down
72 changes: 70 additions & 2 deletions code/modules/spells/ability_types/realized_aimed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
L.apply_damage((damage_amount - distance_decrease), WHITE_DAMAGE, null, L.run_armor_check(null, WHITE_DAMAGE))
new /obj/effect/temp_visual/revenant(get_turf(L))

/* Knight of Despair - Quenched with Blood */
/obj/effect/proc_holder/ability/aimed/despair_swords
name = "Blades Whetted with Tears"
desc = "An ability that summons 2 swords to attack and slow nearby enemies. \
Expand Down Expand Up @@ -137,6 +138,7 @@
..()
qdel(src)

/* Queen of Hatred - Love and Justice */
/obj/effect/proc_holder/ability/aimed/arcana_slave
name = "Arcana Slave"
desc = "An ability that allows you to fire off a large laser after channelling for a while. \
Expand Down Expand Up @@ -317,7 +319,7 @@
return
return ..()


/* Spider Bud - Death Stare */
/obj/effect/proc_holder/ability/aimed/gleaming_eyes
name = "Gleaming Eyes"
desc = "An ability that allows its user to do a jump attack that causes a slowing aoe when landing."
Expand Down Expand Up @@ -403,7 +405,7 @@
var/mob/living/simple_animal/hostile/H = L
H.TemporarySpeedChange(damage_slowdown, 3 SECONDS) // Slow down


/* Lady out of Space - Fallen Colors */
/obj/effect/proc_holder/ability/aimed/blackhole
name = "blackhole"
desc = "An ability that allows its user to summon a black hole to drag everone near it."
Expand Down Expand Up @@ -450,6 +452,7 @@
var/atom/throw_target = get_edge_target_turf(L, get_dir(L, get_step_towards(L, get_turf(src))))
L.throw_at(throw_target, 1, 2)

/* Harmony of Duality - Anarchy */
/obj/effect/proc_holder/ability/aimed/yin_laser
name = "Anarchy"
desc = "An ability that summons a devastating laser. \
Expand Down Expand Up @@ -558,3 +561,68 @@
H.adjust_attribute_buff(PRUDENCE_ATTRIBUTE, -10)
H.adjust_attribute_buff(TEMPERANCE_ATTRIBUTE, -10)
H.adjust_attribute_buff(JUSTICE_ATTRIBUTE, -10)

/* The Road Home - Forever Home */
/obj/effect/proc_holder/ability/aimed/house_spawn
name = "You... Wicked Wizard!"
desc = "Summon a home that WILL be reached on your enemies dealing BLACK damage and buffing your allies defenses."
action_icon_state = "home_spawn0"
base_icon_state = "home_spawn"
cooldown_time = 20 SECONDS
var/damage_amount = 300
var/damage_range = 10

/obj/effect/proc_holder/ability/aimed/house_spawn/Perform(target, mob/living/carbon/human/user)
if(!istype(user))
return
if(get_dist(user, target) > 10)
return
var/turf/target_turf = get_turf(target)
var/obj/effect/temp_visual/house/F = new(target_turf)
animate(F, pixel_z = 0, alpha = 255, time = 1 SECONDS)
playsound(user, 'sound/abnormalities/roadhome/House_MakeRoad.ogg', 50, FALSE, 8)
addtimer(CALLBACK(src, .proc/HouseSlam, target_turf, user), 1 SECONDS)
return ..()

/obj/effect/proc_holder/ability/aimed/house_spawn/proc/HouseSlam(turf/T, mob/user)
visible_message("<span class='warning'>A giant House falls down on the ground!</span>")
playsound(T, 'sound/abnormalities/roadhome/House_HouseBoom.ogg', 75, FALSE, 10, falloff_exponent = 0.75) //LOUD
for(var/turf/open/TF in view(damage_range, T))
new /obj/effect/temp_visual/small_smoke/halfsecond(TF)
for(var/mob/living/L in view(damage_range, T))
if(user.faction_check_mob(L))
if(ishuman(L))
var/mob/living/carbon/human/H = L
H.apply_status_effect(/datum/status_effect/home_buff)
continue
var/distance_decrease = get_dist(T, L) * 10
L.apply_damage((damage_amount - distance_decrease), BLACK_DAMAGE, null, L.run_armor_check(null, BLACK_DAMAGE))
new /obj/effect/temp_visual/revenant(get_turf(L))

/datum/status_effect/home_buff
id = "homebuff"
status_type = STATUS_EFFECT_UNIQUE
duration = 10 SECONDS
alert_type = /atom/movable/screen/alert/status_effect/home_buff

/atom/movable/screen/alert/status_effect/home_buff
name = "A Road Walked Together"
desc = "The sight of a home so familiar encourages you to hang on!"
icon = 'ModularTegustation/Teguicons/status_sprites.dmi'
icon_state = "home"

/datum/status_effect/home_buff/on_apply()
. = ..()
var/mob/living/carbon/human/H = owner
H.physiology.red_mod *= 0.75
H.physiology.white_mod *= 0.75
H.physiology.black_mod *= 0.75
H.physiology.pale_mod *= 0.75

/datum/status_effect/home_buff/on_remove()
. = ..()
var/mob/living/carbon/human/H = owner
H.physiology.red_mod /= 0.75
H.physiology.white_mod /= 0.75
H.physiology.black_mod /= 0.75
H.physiology.pale_mod /= 0.75
Binary file modified icons/mob/actions/actions_ability.dmi
Binary file not shown.

0 comments on commit c74da35

Please sign in to comment.