Skip to content

Commit

Permalink
Starting the Healing Power
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderMage99 committed Jan 7, 2025
1 parent 0c24f0b commit c3ce300
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ModularTegustation/tegu_items/rcorp/objective.dm
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ GLOBAL_VAR_INIT(rcorp_payload, null)
var/list/shrimp_abilities = list(
/obj/effect/proc_holder/spell/pointed/shrimp_airstrike,
/obj/effect/proc_holder/spell/pointed/shrimp_barricade,
/obj/effect/proc_holder/spell/pointed/shrimp_heal,
)

/mob/living/simple_animal/hostile/shrimp_vip/Initialize()
Expand Down Expand Up @@ -363,6 +364,33 @@ GLOBAL_VAR_INIT(rcorp_payload, null)
shrimp.barrier_count -= 1
. = ..()

/obj/effect/proc_holder/spell/pointed/shrimp_heal
name = "Shrimp Reinforce"
desc = "Reinforce one of your allies by having your off field support shot them with a HP bullet!"
panel = "Shrimp"
has_action = TRUE
action_icon = 'icons/mob/actions/actions_shrimp.dmi'
action_icon_state = "barricade"
clothes_req = FALSE
charge_max = 100
selection_type = "range"
active_msg = "You prepare your reinforce call ..."
deactive_msg = "You put away your reinforce call ..."

/obj/effect/proc_holder/spell/pointed/shrimp_heal/cast(list/targets, mob/user)
var/target = targets[1]
if (istype(target, /mob/living/simple_animal/hostile/shrimp_vip))
to_chat(user, span_warning("You can't target yourself!"))
return
else
if (istype(target, /mob/living/simple_animal))
var/mob/living/simple_animal/S
S.adjustBruteLoss(-healamount)

Check failure on line 388 in ModularTegustation/tegu_items/rcorp/objective.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "healamount"
user.visible_message(span_danger("[user] calls in a HP bullet on [target]."), span_alert("You targeted [target]"))
new /obj/effect/temp_visual/heal(get_turf(S), "#FF4444")
else
to_chat(user, span_warning("You can't target a non-simple animal!"))

//Arbiter
/obj/effect/mob_spawn/human/arbiter/rcorp
important_info = "You are hostile to R-Corp. Assist abnormalities in killing them all."
Expand Down

0 comments on commit c3ce300

Please sign in to comment.