Skip to content

Commit

Permalink
числовая переменная в инвизе
Browse files Browse the repository at this point in the history
  • Loading branch information
konushi committed Oct 15, 2023
1 parent cba0cc5 commit cd5e331
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modular_ss220/maps220/code/objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@
resistance_flags = INDESTRUCTIBLE | FIRE_PROOF | UNACIDABLE | ACID_PROOF
actions_types = list(/datum/action/item_action/immortality)
var/ability_delay = 100 SECONDS
var/invisibility_add = 101
var/invisibility_rmv = 0

/datum/action/item_action/immortality
name = "Ring ability"
Expand All @@ -268,15 +270,15 @@
return
cooldown = world.time + ability_delay
user.status_flags |= GODMODE
user.invisibility |= INVISIBILITY_MAXIMUM
user.invisibility = invisibility_add
visible_message(span_danger("[user] исчезает из реальности!"))
to_chat(user, span_cultitalic("Ты чувствуешь чье-то ужасающее присутствие..."))
SEND_SOUND (user, sound('sound/hallucinations/i_see_you2.ogg'))
addtimer(CALLBACK(src, PROC_REF(ring_ability_end), user), 8 SECONDS)

/obj/item/clothing/gloves/ring/immortality_ring/proc/ring_ability_end(mob/user)
user.status_flags &= ~GODMODE
user.invisibility &= ~INVISIBILITY_MAXIMUM
user.invisibility = invisibility_rmv
visible_message(span_danger("[user] возвращается в реальность!"))
if(!ishuman(user))
return
Expand Down

0 comments on commit cd5e331

Please sign in to comment.