Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
tweak: only war nuke
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Jun 22, 2023
1 parent ced70ad commit c77590c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/gamemodes/nuclear/nuclear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/datum/game_mode/nuclear
name = "nuclear emergency"
config_tag = "nuclear"
required_players = 30 // 30 players - 5 players to be the nuke ops = 25 players remaining
required_players = 50 // 50 players - 5 players to be the nuke ops = 45 players remaining
required_enemies = 5
recommended_enemies = 5

Expand Down
7 changes: 7 additions & 0 deletions code/game/gamemodes/nuclear/nuclear_challenge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
if(!check_allowed(user) || !war_declaration)
return

declare_war(user, war_declaration)

/obj/item/nuclear_challenge/proc/declare_war(mob/living/user = null, war_declaration = "Syndicate nuclear operatives team has declared ther intent to utterly destroy [station_name()] with a nuclear device, and dares the crew to try and stop them.")
GLOB.event_announcement.Announce(war_declaration, "Объявление войны.", 'sound/effects/siren.ogg')
addtimer(CALLBACK(GLOBAL_PROC, .proc/set_security_level, "gamma"), 30 SECONDS)

Expand All @@ -63,6 +66,10 @@
config.shuttle_refuel_delay = CHALLENGE_SHUTTLE_DELAY
qdel(src)

/obj/item/nuclear_challenge/Initialize(mapload)
. = ..()
addtimer(CALLBACK(src, .proc/declare_war), 3.5 MINUTES)

/obj/item/nuclear_challenge/proc/share_telecrystals()
var/player_tc
var/remainder
Expand Down

0 comments on commit c77590c

Please sign in to comment.