Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebellion. "Бунт". Развитие понятия "РП-революция" в отдельный режим. #10829

Closed
wants to merge 78 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
013f4ee
mutiny
Deahaka Feb 21, 2023
88607f8
mutiny is coming
Deahaka Feb 22, 2023
ed53f5e
rename confikc
Deahaka Feb 22, 2023
14970f9
rename pref
Deahaka Feb 22, 2023
a78c3a9
update savefile
Deahaka Feb 22, 2023
773a5f5
tracking rename
Deahaka Feb 22, 2023
1e48d7e
never faction end
Deahaka Feb 22, 2023
c41bda7
antag hud add
Deahaka Feb 22, 2023
8a6d915
icon add
Deahaka Feb 22, 2023
95dc50f
rename hud
Deahaka Feb 22, 2023
a0bd47a
list len
Deahaka Feb 22, 2023
7c18c0a
define move, max roles +1
Deahaka Feb 22, 2023
13b00f4
readd -50% salary
Deahaka Feb 22, 2023
38da6c3
brutality scenariy add
Deahaka Feb 22, 2023
aab7515
сохранение на всякий случай
Deahaka Feb 23, 2023
b2e6631
mine scenario
Deahaka Feb 24, 2023
2d89dfb
nochang
Deahaka Feb 24, 2023
fcbd848
scenario genetic
Deahaka Feb 24, 2023
b8ac3bd
undefi
Deahaka Feb 24, 2023
53e09d9
blueshield hud conflict resolve
Deahaka Feb 24, 2023
bc77cdc
try merge upstream
Deahaka Feb 24, 2023
bd58d08
dmi try merge upsteram
Deahaka Feb 24, 2023
b9994f2
merge my commits
Deahaka Feb 24, 2023
11fb936
Merge branch 'TauCetiStation:master' into mutini
Deahaka Feb 24, 2023
3ef43f5
try what
Deahaka Feb 24, 2023
f9c128c
redel revo
Deahaka Feb 24, 2023
0ccc05d
in check independecny
Deahaka Feb 24, 2023
9201699
krapka
Deahaka Feb 24, 2023
f273ca8
Z
Deahaka Feb 24, 2023
82b17e5
i
Deahaka Feb 24, 2023
ac9993e
командование с одной М
Deahaka Feb 24, 2023
5a977e8
количество с одной Л
Deahaka Feb 24, 2023
862121e
копро рация
Deahaka Feb 24, 2023
9873e07
Командование с одной м
Deahaka Feb 24, 2023
73f3f28
изменение текста о статье
Deahaka Feb 25, 2023
0706aeb
Денежный репорты ревью Випо
Deahaka Feb 25, 2023
27c849d
Вирус репорт. Мышиный суп, Тау Кита 5
Deahaka Feb 25, 2023
30d3d29
Расизм репорт. Этика, деловой стиль, женщины
Deahaka Feb 25, 2023
2b50f97
Коммунизм первый репорт, юнит теперь киборг
Deahaka Feb 25, 2023
9763466
Редактура оформления
Deahaka Feb 25, 2023
2a3d35e
Коммунизм репорт, мягкий знак
Deahaka Feb 25, 2023
1ef8112
Бруталити репорт ревью Випо. Морозилка, Белтвей
Deahaka Feb 25, 2023
7501451
Випо ревью, хранилище Ками Хикари
Deahaka Feb 25, 2023
42344df
Генетик репорт. Несмотря
Deahaka Feb 25, 2023
06ef0ad
Коммунизм репорт, законы ИИ
Deahaka Feb 25, 2023
9a58d6f
Редактура оформления
Deahaka Feb 25, 2023
4237b4e
Blueshild Version Savefile
Deahaka Feb 25, 2023
7dfda78
Merge branch 'TauCetiStation:master' into mutini
Deahaka Feb 25, 2023
2618d4a
remove head_rev define
Deahaka Feb 25, 2023
a529361
remove no neede can be assigned because roundstart
Deahaka Feb 25, 2023
0acce8a
unused procs
Deahaka Feb 25, 2023
42f859f
parent return that value
Deahaka Feb 25, 2023
f44fa38
total destroy rev
Deahaka Feb 25, 2023
90569ea
add starttime + Небольшое ревью министр
Deahaka Feb 25, 2023
59538a7
review gammode procs
Deahaka Feb 25, 2023
f029040
some tweaks
Deahaka Feb 25, 2023
55a8d0a
syringes add
Deahaka Feb 25, 2023
d7a0b37
new packs
Deahaka Feb 25, 2023
548b7e0
update mutiny postavki
Deahaka Feb 25, 2023
fff88f0
cargo proc supply add
Deahaka Mar 9, 2023
d644a34
Merge branch 'master' into mutini
Deahaka Mar 9, 2023
50b98fa
add gamemode source
Deahaka Mar 9, 2023
8fd5253
revert delete revolution. Now only adding mutiny
Deahaka Mar 9, 2023
53b4cf5
totally_done
Deahaka Mar 9, 2023
88ce28e
revert savefile
Deahaka Mar 10, 2023
1dd4975
english tweaks
Deahaka Mar 10, 2023
7c99e89
luduk review money scenario
Deahaka Mar 10, 2023
fca06e4
no racism, yes discrimination
Deahaka Mar 10, 2023
7adb829
no account allowed
Deahaka Mar 10, 2023
48ef6a6
add new objective, now not custom
Deahaka Mar 10, 2023
3e6c2cd
rename mutiny to Rebellion
Deahaka Mar 10, 2023
a8710dc
rename last file
Deahaka Mar 10, 2023
5b4f0f3
add desc
Deahaka Mar 10, 2023
33a076b
before upstream
Deahaka Mar 18, 2023
0798e72
Merge branch 'master' into mutini
Deahaka Mar 18, 2023
e4c7f1e
reupdate_to_current_version
Deahaka Mar 18, 2023
514a946
smart light merge
Deahaka May 3, 2023
9145dc0
Merge branch 'master' into mutini
Deahaka May 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/__DEFINES/atom_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@
#define ANTAG_HUD_ZOMB "antag_hud_zomb"
#define ANTAG_HUD_GANGSTER "antag_hud_gangster"
#define ANTAG_HUD_SPACECOP "antag_hud_cop"
#define ANTAG_HUD_LOYAL "antag_hud_loyal"
#define ANTAG_HUD_REPLICATOR "antag_hud_replicator"



/// cooldown for being shown the images for any particular data hud
#define ADD_HUD_TO_COOLDOWN 20
4 changes: 3 additions & 1 deletion code/__DEFINES/gamemodes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
#define F_FAMILIES "Families"
#define F_HEIST "Vox Shoal"
#define F_HIVEMIND "Changeling Hivemind"
#define F_PROPS "Props"
#define F_LOYALISTS "Loyalists"
#define F_REVOLUTION "Revolution"
#define F_PROPS "Props"
#define F_SYNDIOPS "Syndicate Operatives"
#define F_SYNDIOPS_CROSSFIRE "Syndicate Operatives (CrossFire)"
#define F_SYNDIESQUAD "Syndicate Elite Strike Team"
Expand Down Expand Up @@ -41,6 +42,7 @@
#define GANGSTER_LEADER "Gangster Leader"
#define GANGSTER_DEALER "Gangster Dealer"
#define HEADREV "Head Revolutionary"
#define LOYALIST "Loyalist"
#define MALF "Malf AI"
#define MALFBOT "Malf-Slaved Cyborg"
#define NUKE_OP "Nuclear Operative"
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/role_preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define ROLE_WIZARD "Wizard"
#define ROLE_MALF "Malf AI"
#define ROLE_REV "Revolutionary"
#define ROLE_LOYALIST "Loyalist"
#define ROLE_ALIEN "Xenomorph"
#define ROLE_CULTIST "Cultist"
#define ROLE_BLOB "Blob"
Expand Down Expand Up @@ -42,6 +43,7 @@ var/global/list/special_roles_ignore_question = list(
ROLE_WIZARD = null,
ROLE_MALF = null,
ROLE_REV = null,
ROLE_LOYALIST = null,
ROLE_ALIEN = list(IGNORE_LARVA),
ROLE_CULTIST = list(IGNORE_NARSIE_SLAVE, IGNORE_EMINENCE),
ROLE_BLOB = list(IGNORE_EVENT_BLOB),
Expand Down
1 change: 1 addition & 0 deletions code/_globalvars/lists/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var/global/list/roles_ingame_minute_unlock = list(
ROLE_WIZARD = 2880,
ROLE_ERT = 1440,
ROLE_REV = 1440,
ROLE_LOYALIST = 2400,
ROLE_DRONE = 1440,
ROLE_CULTIST = 3600,
ROLE_BLOB = 2880,
Expand Down
16 changes: 16 additions & 0 deletions code/controllers/subsystem/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,22 @@ SUBSYSTEM_DEF(job)
//it locates a head or runs out of levels to check
//This is basically to ensure that there's atleast a few heads in the round
/datum/controller/subsystem/job/proc/FillHeadPosition()
//Fill loyal jobs first
if(istype(SSticker.mode, /datum/game_mode/rebellion))
var/one_loyalist_selected = FALSE
for(var/job_name in loyal_command_position)
var/datum/job/loyal_job = SSjob.GetJob(job_name)
for(var/level in JP_LEVELS)
var/list/candidates = FindOccupationCandidates(loyal_job, level, ROLE_LOYALIST)
if(!candidates.len)
continue
var/mob/dead/new_player/candidate = pick(candidates)
if(AssignRole(candidate, loyal_job.title))
one_loyalist_selected = TRUE
break
if(one_loyalist_selected)
break

for(var/level in JP_LEVELS)
for(var/command_position in command_positions)
var/datum/job/job = GetJob(command_position)
Expand Down
1 change: 1 addition & 0 deletions code/datums/atom_huds/atom_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var/global/list/huds = list(
ANTAG_HUD_ZOMB = new/datum/atom_hud/antag,
ANTAG_HUD_GANGSTER = new/datum/atom_hud/antag/hidden,
ANTAG_HUD_SPACECOP = new/datum/atom_hud/antag,
ANTAG_HUD_LOYAL = new/datum/atom_hud/antag/hidden,
ANTAG_HUD_REPLICATOR = new/datum/atom_hud/antag/hidden,
)

Expand Down
419 changes: 419 additions & 0 deletions code/game/gamemodes/factions/loyalists.dm

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions code/game/gamemodes/modes_declares/rebellion.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/datum/game_mode/rebellion
name = "Rebellion"
config_name = "rebellion"
probability = 80

factions_allowed = list(/datum/faction/loyalists)

//TODO 4:20
minimum_player_count = 1
minimum_players_bundles = 1

/datum/game_mode/rebellion/announce()
to_chat(world, "<B>The current game mode is - Rebellion!</B>")
to_chat(world, "<B>Loyal heads are attempting to start a tyrany!</B>")
8 changes: 8 additions & 0 deletions code/game/gamemodes/objectives/stay_loyal.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/datum/objective/stay_loyal
explanation_text = "Stay loyal"

/datum/objective/stay_loyal/check_completion()
var/datum/faction/loyalists/L = faction
if(istype(L) && L.check_loyality_members())
return OBJECTIVE_WIN
return OBJECTIVE_LOSS
18 changes: 18 additions & 0 deletions code/game/gamemodes/roles/loyalist.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/datum/role/loyalist
name = LOYALIST
id = LOYALIST
required_pref = ROLE_LOYALIST
logo_state = "loyal-logo"

antag_hud_type = ANTAG_HUD_LOYAL
antag_hud_name = "hudloyalist"

/datum/role/loyalist/Greet(greeting, custom)
. = ..()
to_chat(antag.current, "<span class='warning'><FONT size = 3>Now you are Loyalist! All crew members with a loyalty implant are your comrades. Follow orders from NanoTrasen!</FONT></span>")

/datum/role/loyalist/forgeObjectives()
if(..())
var/datum/objective/survive/S = AppendObjective(/datum/objective/survive)
S.explanation_text = "Stay alive until the end. You are important part of the Chain of Command!"
return TRUE
5 changes: 5 additions & 0 deletions code/game/jobs/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ var/global/list/command_positions = list(
"Blueshield Officer"
)

var/global/list/loyal_command_position = list(
"Captain",
"Head of Security"
)

var/global/list/security_positions = list(
"Head of Security",
"Warden",
Expand Down
5 changes: 5 additions & 0 deletions code/modules/admin/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
var/success = makeAntag(null, /datum/faction/heist, count, FROM_GHOSTS, stealth)
message_admins("[success] number of voxs made.")
to_chat(usr, "<span class='notice'>[success] number of voxs made.</span>")
if("9")
message_admins("[key_name(usr)] has attempted to spawn [count] loyalists.")
var/success = makeAntag(null, /datum/faction/loyalists, count, FROM_PLAYERS, stealth)
message_admins("[success] number of loyalists made.")
to_chat(usr, "<span class='notice'>[success] number of loyalists made.</span>")

else if(href_list["dbsearchckey"] || href_list["dbsearchadmin"] || href_list["dbsearchip"] || href_list["dbsearchcid"] || href_list["dbsearchbantype"])
var/adminckey = href_list["dbsearchadmin"]
Expand Down
1 change: 1 addition & 0 deletions code/modules/admin/verbs/one_click_antag.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<a href='?src=\ref[src];makeAntag=6'>Make Wizard (Requires Ghosts)</a><br>
<a href='?src=\ref[src];makeAntag=7'>Make Aliens (Requires Ghosts)</a><br>
<a href='?src=\ref[src];makeAntag=8'>Make Vox Raiders (Requires Ghosts)</a><br>
<a href='?src=\ref[src];makeAntag=9'>Make Rebellion</a><br>
"}
var/datum/browser/popup = new(usr, "oneclickantag", "One-click Antagonist", 400, 400)
popup.set_content(dat)
Expand Down
47 changes: 45 additions & 2 deletions code/modules/cargo/packs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1917,11 +1917,9 @@ var/global/list/all_supply_groups = list("Operations","Security","Hospitality","
crate_name = "Xeno arsonist crate"
group = "xeno"
hidden = TRUE

//----------------------------------------------
//-------------SMARTLIGHT PROGRAMMS-------------
//----------------------------------------------

/datum/supply_pack/smartlight_standart
name = "Smartlight programms set: Standart"
contains = list(
Expand Down Expand Up @@ -1961,3 +1959,48 @@ var/global/list/all_supply_groups = list("Operations","Security","Hospitality","
)
additional_costs = 10000
group = "Operations"

//----------------------------------------------
//-----------------REBELLION--------------------
//----------------------------------------------
/datum/supply_pack/mining_centcom_supply
name = "Cent Com Shaft Miner Gear"
contains = list(/obj/item/clothing/head/helmet/space/globose/mining,
/obj/item/clothing/suit/space/globose/mining,
/obj/item/device/radio/headset/headset_cargo,
/obj/item/clothing/glasses/hud/mining,
/obj/item/weapon/pickaxe,
/obj/item/clothing/gloves/black,
/obj/item/weapon/storage/bag/ore,
/obj/item/device/flashlight/lantern,
/obj/item/clothing/under/rank/miner)
cost = 2000
crate_type = /obj/structure/closet/crate
crate_name = "Cent Com Crate"
group = "CentCom"

/datum/supply_pack/mulligan_centcom_supply
name = "Cent Com Secure Crate"
contains = list(/obj/item/weapon/reagent_containers/syringe/mulligan/hidden,
/obj/item/weapon/reagent_containers/syringe/mulligan/hidden,
/obj/item/weapon/reagent_containers/syringe/mulligan/hidden,
/obj/item/weapon/reagent_containers/syringe/mulligan/hidden,
/obj/item/weapon/reagent_containers/syringe/mulligan/hidden)
cost = 5000
crate_type = /obj/structure/closet/crate/secure/gear
crate_name = "Cent Com Crate"
access = access_heads
group = "CentCom"

/datum/supply_pack/mutagen_centcom_supply
name = "Cent Com Head Stuff Crate"
contains = list(/obj/item/weapon/reagent_containers/syringe/mutagen/hidden,
/obj/item/weapon/reagent_containers/syringe/mutagen/hidden,
/obj/item/weapon/reagent_containers/syringe/mutagen/hidden,
/obj/item/weapon/reagent_containers/syringe/mutagen/hidden,
/obj/item/weapon/reagent_containers/syringe/mutagen/hidden)
cost = 5000
crate_type = /obj/structure/closet/crate/secure/gear
crate_name = "Cent Com Crate"
access = access_heads
group = "CentCom"
19 changes: 19 additions & 0 deletions code/modules/reagents/reagent_containers/syringes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,29 @@
mode = SYRINGE_INJECT
update_icon()

/obj/item/weapon/reagent_containers/syringe/mulligan/hidden
name = "syringe"
desc = "A syringe."

/obj/item/weapon/reagent_containers/syringe/nutriment

/obj/item/weapon/reagent_containers/syringe/nutriment/atom_init()
. = ..()
reagents.add_reagent("nutriment", 15)
mode = SYRINGE_INJECT
update_icon()

/obj/item/weapon/reagent_containers/syringe/mutagen
name = "unstable mutagen syringe"
desc = "A syringe of unstable mutagen. Randomly changes the DNA structure of whoever comes in contact"
amount_per_transfer_from_this = 15

/obj/item/weapon/reagent_containers/syringe/mutagen/atom_init()
. = ..()
reagents.add_reagent("mutagen", 15)
mode = SYRINGE_INJECT
update_icon()

/obj/item/weapon/reagent_containers/syringe/mutagen/hidden
name = "syringe"
desc = "A syringe."
Binary file modified icons/hud/hud.dmi
Binary file not shown.
Binary file modified icons/misc/logos.dmi
Binary file not shown.
4 changes: 4 additions & 0 deletions taucetistation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@
#include "code\game\gamemodes\factions\families.dm"
#include "code\game\gamemodes\factions\heist.dm"
#include "code\game\gamemodes\factions\infestation.dm"
#include "code\game\gamemodes\factions\loyalists.dm"
#include "code\game\gamemodes\factions\malf_silicons.dm"
#include "code\game\gamemodes\factions\ninja.dm"
#include "code\game\gamemodes\factions\props.dm"
Expand All @@ -541,6 +542,7 @@
#include "code\game\gamemodes\modes_declares\infestation.dm"
#include "code\game\gamemodes\modes_declares\malfunction.dm"
#include "code\game\gamemodes\modes_declares\nuclear.dm"
#include "code\game\gamemodes\modes_declares\rebellion.dm"
#include "code\game\gamemodes\modes_declares\replicators.dm"
#include "code\game\gamemodes\modes_declares\revolution.dm"
#include "code\game\gamemodes\modes_declares\shadowlings.dm"
Expand Down Expand Up @@ -671,6 +673,7 @@
#include "code\game\gamemodes\objectives\prop_points.dm"
#include "code\game\gamemodes\objectives\reproduct.dm"
#include "code\game\gamemodes\objectives\silence.dm"
#include "code\game\gamemodes\objectives\stay_loyal.dm"
#include "code\game\gamemodes\objectives\steal.dm"
#include "code\game\gamemodes\objectives\survive.dm"
#include "code\game\gamemodes\objectives\turn_into_zombie.dm"
Expand Down Expand Up @@ -717,6 +720,7 @@
#include "code\game\gamemodes\roles\custom.dm"
#include "code\game\gamemodes\roles\families.dm"
#include "code\game\gamemodes\roles\heist.dm"
#include "code\game\gamemodes\roles\loyalist.dm"
#include "code\game\gamemodes\roles\malf_unit.dm"
#include "code\game\gamemodes\roles\ninja.dm"
#include "code\game\gamemodes\roles\prop.dm"
Expand Down