Skip to content

Commit

Permalink
achievement
Browse files Browse the repository at this point in the history
  • Loading branch information
Moltijoe committed Oct 15, 2023
1 parent f3c3d09 commit 7919885
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions code/datums/achievements/achievements.dm
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
desc = "As a changeling, complete your objectives"
id = 13

/datum/achievement/greentext/slingascend
name = "The Dark Shadow (retired)"
desc = "As a shadowling, ascend successfully"
/datum/achievement/greentext/darkspawn
name = "The Dark Shadow"
desc = "As a darkspawn, ascend successfully"
id = 14

/datum/achievement/death
Expand Down
12 changes: 10 additions & 2 deletions yogstation/code/modules/antagonists/darkspawn/darkspawn.dm
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@
return TRUE
return (SSticker.mode.sacrament_done)

// Darkspawn-related things like Psi //

////////////////////////////////////////////////////////////////////////////////////
//------------------------------Psi regen and usage-------------------------------//
////////////////////////////////////////////////////////////////////////////////////
/datum/antagonist/darkspawn/process() //This is here since it controls most of the Psi stuff
psi = min(psi, psi_cap)
if(psi != psi_cap && COOLDOWN_FINISHED(src, psi_cooldown))
Expand Down Expand Up @@ -161,6 +162,9 @@
var/atom/movable/screen/counter = owner.current.hud_used.psi_counter
counter.maptext = ANTAG_MAPTEXT(psi, COLOR_DARKSPAWN_PSI)

////////////////////////////////////////////////////////////////////////////////////
//-------------------------------------Divulge------------------------------------//
////////////////////////////////////////////////////////////////////////////////////
/datum/antagonist/darkspawn/proc/begin_force_divulge()
if(darkspawn_state != MUNDANE)
return
Expand Down Expand Up @@ -213,13 +217,17 @@
darkspawn_state = DIVULGED
return TRUE

////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------Sacrament------------------------------------//
////////////////////////////////////////////////////////////////////////////////////
/datum/antagonist/darkspawn/proc/sacrament()
var/mob/living/carbon/human/user = owner.current
if(!SSticker.mode.sacrament_done)
set_security_level(SEC_LEVEL_GAMMA)
addtimer(CALLBACK(src, PROC_REF(sacrament_shuttle_call)), 50)
// Spawn the cosmic progenitor
var/mob/living/simple_animal/hostile/darkspawn_progenitor/progenitor = new(get_turf(user))
SSachievements.unlock_achievement(/datum/achievement/greentext/darkspawn, user.client)
user.status_flags |= GODMODE
user.mind.transfer_to(progenitor)
var/datum/action/cooldown/spell/list_target/progenitor_curse/curse = new(progenitor)
Expand Down

0 comments on commit 7919885

Please sign in to comment.