Skip to content

Commit

Permalink
Sentient Disease Inital
Browse files Browse the repository at this point in the history
  • Loading branch information
PuroSlavKing committed Dec 4, 2024
1 parent 3c64a99 commit d7a94a8
Show file tree
Hide file tree
Showing 18 changed files with 1,176 additions and 1 deletion.
6 changes: 6 additions & 0 deletions code/__DEFINES/role_preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
#define ROLE_OBSESSED "Obsessed"
#define ROLE_OPERATIVE_MIDROUND "Operative (Midround)"
#define ROLE_PARADOX_CLONE "Paradox Clone"
//ARK ADDITION START
#define ROLE_SENTIENT_DISEASE "Sentient Disease"
//ARK ADDITION END
#define ROLE_REV_HEAD "Head Revolutionary"
#define ROLE_SLEEPER_AGENT "Syndicate Sleeper Agent"
#define ROLE_SPACE_DRAGON "Space Dragon"
Expand Down Expand Up @@ -178,6 +181,9 @@ GLOBAL_LIST_INIT(special_roles, list(
ROLE_OBSESSED = 0,
ROLE_OPERATIVE_MIDROUND = 14,
ROLE_PARADOX_CLONE = 0,
//ARK ADDITION START
ROLE_SENTIENT_DISEASE = 0,
//ARK ADDITION END
ROLE_REVENANT = 0,
ROLE_SLEEPER_AGENT = 0,
ROLE_SPACE_DRAGON = 0,
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/~~arkstation_defines/atom_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@

#define SECHUD_DEACON "huddeacon"
#define SECHUD_FISCAL "hudfiscal"

#define SENTIENT_DISEASE_HUD "23"
1 change: 1 addition & 0 deletions code/datums/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ GLOBAL_LIST_INIT(huds, list(
DATA_HUD_AI_DETECT = new /datum/atom_hud/ai_detector(),
DATA_HUD_FAN = new /datum/atom_hud/data/human/fan_hud(),
DATA_HUD_MALF_APC = new /datum/atom_hud/data/malf_apc(),
DATA_HUD_SENTIENT_DISEASE = new /datum/atom_hud/sentient_disease(), // ARK ADDITION
DATA_HUD_PERMIT = new/datum/atom_hud/data/human/permit(), // NOVA EDIT ADDITION
))

Expand Down
1 change: 1 addition & 0 deletions code/modules/admin/sql_ban_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@
ROLE_ASSAULT_OPERATIVE, // NOVA EDIT ADDITION
ROLE_BLOODSUCKER, // ARK STATION EDIT
ROLE_VASSAL, // ARK STATION EDIT
ROLE_SENTIENT_DISEASE,//ARK STATION EDIT
ROLE_VOIDWALKER,
),
"Nova Ban Options" = list(
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
icon = 'icons/mob/human/human.dmi'
icon_state = "human_basic"
appearance_flags = KEEP_TOGETHER|TILE_BOUND|PIXEL_SCALE|LONG_GLIDE
hud_possible = list(HEALTH_HUD,STATUS_HUD,ID_HUD,WANTED_HUD,IMPLOYAL_HUD,IMPSEC_FIRST_HUD,IMPSEC_SECOND_HUD,ANTAG_HUD,GLAND_HUD,SENTIENT_DISEASE_HUD,FAN_HUD, PERMIT_HUD, DNR_HUD) //NOVA EDIT ADDITION - PERMIT_HUD, DNR_HUD
hud_possible = list(HEALTH_HUD,STATUS_HUD,ID_HUD,WANTED_HUD,IMPLOYAL_HUD,IMPSEC_FIRST_HUD,IMPSEC_SECOND_HUD,ANTAG_HUD,GLAND_HUD,FAN_HUD,SENTIENT_DISEASE_HUD, PERMIT_HUD, DNR_HUD) //NOVA EDIT ADDITION - PERMIT_HUD, DNR_HUD | ARK ADDITION - SENTIENT_DISEASE_HUD
hud_type = /datum/hud/human
pressure_resistance = 25
can_buckle = TRUE
Expand Down
4 changes: 4 additions & 0 deletions config/dynamic.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@
"weight": 0
},

"Sentient Disease": {
"weight": 0
},

"Paradox Clone": {
"weight": 0
}
Expand Down
9 changes: 9 additions & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -8773,12 +8773,15 @@
#include "zov_modular_arkstation\_master_files\code\vehicles.dm"
#include "zov_modular_arkstation\_master_files\code\__DEFINES\~~ark_defines\cooldowns.dm"
#include "zov_modular_arkstation\_master_files\code\__DEFINES\~~ark_defines\mood.dm"
#include "zov_modular_arkstation\_master_files\code\_globalvars\lists\mobs.dm"
#include "zov_modular_arkstation\_master_files\code\_onclick\click.dm"
#include "zov_modular_arkstation\_master_files\code\controllers\subsystem\dynamic\dynamic_rulesets_midround.dm"
#include "zov_modular_arkstation\_master_files\code\controllers\subsystem\processing\quirks.dm"
#include "zov_modular_arkstation\_master_files\code\datums\components\jukebox.dm"
#include "zov_modular_arkstation\_master_files\code\datums\components\crafting\crafting.dm"
#include "zov_modular_arkstation\_master_files\code\datums\mood_events\dominant_mood.dm"
#include "zov_modular_arkstation\_master_files\code\effects\ark_station_logo.dm"
#include "zov_modular_arkstation\_master_files\code\game\data_huds.dm"
#include "zov_modular_arkstation\_master_files\code\game\world.dm"
#include "zov_modular_arkstation\_master_files\code\game\area\centcom.dm"
#include "zov_modular_arkstation\_master_files\code\game\machinery\dance_machine.dm"
Expand Down Expand Up @@ -8848,6 +8851,10 @@
#include "zov_modular_arkstation\donate\~misc\plushie.dm"
#include "zov_modular_arkstation\modules\akula-skinsuit-fix\code.dm"
#include "zov_modular_arkstation\modules\alt-job-titles\alt_job_titles.dm"
#include "zov_modular_arkstation\modules\antagonists\disease\disease_abilities.dm"
#include "zov_modular_arkstation\modules\antagonists\disease\disease_datum.dm"
#include "zov_modular_arkstation\modules\antagonists\disease\disease_disease.dm"
#include "zov_modular_arkstation\modules\antagonists\disease\disease_mob.dm"
#include "zov_modular_arkstation\modules\antagonists-objectives-update\objectives.dm"
#include "zov_modular_arkstation\modules\antagonists-objectives-update\system.dm"
#include "zov_modular_arkstation\modules\armory_standart_guns\code.dm"
Expand Down Expand Up @@ -9003,6 +9010,7 @@
#include "zov_modular_arkstation\modules\dynamic-vote\code\perc_saves.dm"
#include "zov_modular_arkstation\modules\dynamic_flashlight\code.dm"
#include "zov_modular_arkstation\modules\emotes\code\emotes.dm"
#include "zov_modular_arkstation\modules\events\ghost_role\sentient_disease.dm"
#include "zov_modular_arkstation\modules\examine-panel\code.dm"
#include "zov_modular_arkstation\modules\faction-inteq\code\inteq-911-replacement.dm"
#include "zov_modular_arkstation\modules\faction-inteq\code\inteq-additional-items.dm"
Expand All @@ -9014,6 +9022,7 @@
#include "zov_modular_arkstation\modules\heighscaling\code.dm"
#include "zov_modular_arkstation\modules\hunting-knife-buff\code.dm"
#include "zov_modular_arkstation\modules\infinidoorm\code.dm"
#include "zov_modular_arkstation\modules\jobs\job_types\antagonists\sentient_disease.dm"
#include "zov_modular_arkstation\modules\kvass-and-kefir\code.dm"
#include "zov_modular_arkstation\modules\languages\code\languages.dm"
#include "zov_modular_arkstation\modules\laws-translate\laws_antagonistic.dm"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Antagonist, Category } from '../base';

const SentientDisease: Antagonist = {
key: 'sentientdisease',
name: 'Sentient Disease',
description: [
`
Mutate and spread yourself and infect as much of the crew as possible
with a deadly plague of your own creation. Don't forget, one infected
crew must survive.
`,
],
category: Category.Midround,
};

export default SentientDisease;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GLOBAL_LIST_EMPTY(sentient_disease_instances)
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/// Midround Sentient Disease Ruleset (From Ghosts)
/datum/dynamic_ruleset/midround/from_ghosts/sentient_disease
name = "Sentient Disease"
midround_ruleset_style = MIDROUND_RULESET_STYLE_HEAVY
antag_datum = /datum/antagonist/disease
antag_flag = ROLE_SENTIENT_DISEASE
required_candidates = 1
minimum_players = 25
weight = 4
cost = 8
repeatable = TRUE

/datum/dynamic_ruleset/midround/from_ghosts/sentient_disease/generate_ruleset_body(mob/applicant)
var/mob/camera/disease/virus = new /mob/camera/disease(SSmapping.get_station_center())
virus.key = applicant.key
INVOKE_ASYNC(virus, TYPE_PROC_REF(/mob/camera/disease, pick_name))
message_admins("[ADMIN_LOOKUPFLW(virus)] has been made into a sentient disease by the midround ruleset.")
log_game("[key_name(virus)] was spawned as a sentient disease by the midround ruleset.")
return virus
2 changes: 2 additions & 0 deletions zov_modular_arkstation/_master_files/code/game/data_huds.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/datum/atom_hud/sentient_disease
hud_icons = list(SENTIENT_DISEASE_HUD)
Loading

0 comments on commit d7a94a8

Please sign in to comment.