forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 125
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
2e3ac2b
commit 86fd1dd
Showing
6 changed files
with
59 additions
and
8 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
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
26 changes: 26 additions & 0 deletions
26
modular_ss220/antagonists/code/shadowlings/shadowling_gamemode.dm
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,26 @@ | ||
/datum/game_mode | ||
var/list/datum/mind/shadowlings = list() | ||
var/list/datum/mind/shadowling_thralls = list() | ||
var/list/datum/mind/shadow_fathers = list() | ||
var/victory_warning_announced = FALSE | ||
|
||
/// Called when shadow father is killed or when special spell is used | ||
/datum/game_mode/proc/begin_shadowling_invasion(mob/living/simple_animal/demon/shadow_father/father, spell_used) | ||
father.consumed++ //At least one shadowling | ||
var/list/mob/dead/observer/candidates = SSghost_spawns.poll_candidates("Вы хотите поиграть за тенелинга?", ROLE_SHADOWLING, TRUE, 25 SECONDS, source = /mob/living/simple_animal/demon/shadow_father, role_cleanname = "Shadowling") | ||
while(father.consumed > 0) | ||
var/player_to_spawn | ||
if(spell_used) // Granting shadowling role for father that commited suicide | ||
player_to_spawn = father.key | ||
spell_used = FALSE | ||
else | ||
var/list/mob/dead/observer/ghost = pick(candidates) | ||
player_to_spawn = ghost.key | ||
if(isnull(player_to_spawn)) | ||
break | ||
var/obj/effect/dummy/slaughter/holder = new /obj/effect/dummy/slaughter(father.loc) | ||
var/mob/living/carbon/human/shadow/ling/ling = new /mob/living/carbon/human/shadow/ling(holder) | ||
dust_if_respawnable(player_to_spawn) | ||
ling.key = player_to_spawn | ||
father.consumed-- | ||
|
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,3 @@ | ||
/mob/living/carbon/human/shadow/ling/Initialize(mapload) | ||
. = ..(mapload, /datum/species/shadow/ling) | ||
|
20 changes: 20 additions & 0 deletions
20
modular_ss220/antagonists/code/shadowlings/spells/shadowling_tear_the_reality.dm
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,20 @@ | ||
/datum/spell/shadowling/self/tear_the_reality | ||
name = "Прорвать реальность" | ||
desc = "Вы используете накопленную от поглощённых смертных силу, чтобы создать разрыв в реальности и призвать в этот мир своих детей. Летально для вас, но гарантирует то, что ваш дух возродится в одном из детей." | ||
base_cooldown = 0 SECONDS | ||
stat_allowed = UNCONSCIOUS | ||
action_icon_state = "ascend" | ||
|
||
/datum/spell/shadowling/self/tear_the_reality/can_cast(mob/user, charge_check, show_message) | ||
. = ..() | ||
if(!istype(user, /mob/living/simple_animal/demon/shadow_father)) | ||
return FALSE | ||
var/mob/living/simple_animal/demon/shadow_father/father = user | ||
if(father.consumed < 1) | ||
to_chat(father, span_warning("Вам нужно поглотить как минимум одного смертного, чтобы прорвать реальность.")) | ||
return FALSE | ||
var/confirm = tgui_alert(father, "Вы уверены что хотите закончить свою охоту и прорвать реальность? Вы призовёте [father.consumed + 1] тенелингов и гарантированно станите одним из них.", "Закончить охоту?", list("Да", "Я ещё поохочусь")) | ||
if(confirm != "Да") | ||
return | ||
SSticker.mode.begin_shadowling_invasion(father, TRUE) | ||
|