-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d17df2b
commit 1cd2372
Showing
3 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/obj/effect/decal/ash_rune_centre | ||
name = "ash sigil" | ||
desc = "Незаконченная руна, нарисованная на пепле." | ||
icon = 'icons/effects/ash_runes.dmi' | ||
icon_state = "runaash_1" | ||
|
||
///Is our rune being transformed right now? Sanity check | ||
var/transforming = FALSE | ||
///Is our rune activated? Another sanity check, love it | ||
var/activated = FALSE | ||
|
||
// Our little cheat in order to make first rune activation unforgetable | ||
/obj/effect/rune_animation_landmark | ||
name = "ash rune" | ||
icon = 'icons/effects/ashwalker_rune.dmi' | ||
icon_state = "AshRun" | ||
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | ||
anchored = TRUE | ||
plane = FLOOR_PLANE | ||
|
||
/obj/effect/rune_animation_landmark/Initialize(mapload) | ||
. = ..() | ||
icon_state = "" | ||
invisibility = INVISIBILITY_MAXIMUM | ||
|
||
/obj/effect/rune_animation_landmark/proc/activate() | ||
invisibility = 0 | ||
flick("3", src) | ||
icon_state = "AshRun" | ||
visible_message(span_notice("руна полностью готова к использованию!")) | ||
|
||
/obj/effect/decal/ash_rune_centre/Initialize(mapload) | ||
. = ..() | ||
var/number = rand(1, 36) | ||
icon_state = "runaash_[number]" | ||
|
||
/obj/effect/decal/ash_rune_centre/attackby(obj/item/I, mob/user, params) | ||
if(!istype(I, /obj/item/melee/touch_attack/healtouch)) | ||
return ..() | ||
if(transforming) | ||
return ..() | ||
visible_message(span_notice("[user] прикасается рукой к руне.")) | ||
transforming = TRUE | ||
var/obj/effect/rune_animation_landmark/our_landmark = locate() in orange(3, src) | ||
if(!our_landmark) | ||
visible_message(span_warning("но ничего не происходит.")) | ||
if(!activated) | ||
our_landmark.activate() | ||
activate_rune() | ||
qdel(I) | ||
return ATTACK_CHAIN_PROCEED | ||
|
||
/obj/effect/decal/ash_rune_centre/proc/activate_rune() | ||
if(activated) | ||
return | ||
activated = TRUE | ||
name = "ash rune" | ||
desc = "полностью функционирующая руна, готовая для ритуальных действий." | ||
AddComponent( \ | ||
/datum/component/ritual_object, \ | ||
/datum/ritual/ashwalker, \ | ||
) |
Binary file not shown.