Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ssic into Pluvia
  • Loading branch information
FatFatFat1 committed Sep 16, 2024
2 parents 51a202f + 9d1f776 commit 0c65bec
Show file tree
Hide file tree
Showing 409 changed files with 49,484 additions and 31,361 deletions.
3 changes: 3 additions & 0 deletions code/__DEFINES/_translation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,6 @@

#define PLUR_SECONDS_LEFT(seconds) pluralize_russian(seconds, "секунда", "секунды", "секунд") // "Осталась 1 секунда". Не путайте с нижним.
#define PLUR_SECONDS_IN(seconds) pluralize_russian(seconds, "секунду", "секунды", "секунд") // "Через 1 секунду". Не путайте с верхним.

#define PLUR_MINUTES_LEFT(minutes) pluralize_russian(minutes, "минута", "минуты", "минут") // "Осталась 1 минута". Не путайте с нижним.
#define PLUR_MINUTES_IN(minutes) pluralize_russian(minutes, "минуту", "минуты", "минут") // "Через 1 минуту". Не путайте с верхним.
68 changes: 41 additions & 27 deletions code/__DEFINES/admin.dm
Original file line number Diff line number Diff line change
@@ -1,38 +1,52 @@
//A set of constants used to determine which type of mute an admin wishes to apply:
//Please read and understand the muting/automuting stuff before changing these. MUTE_IC_AUTO etc = (MUTE_IC << 1)
//Therefore there needs to be a gap between the flags for the automute flags
#define MUTE_IC 1
#define MUTE_OOC 2
#define MUTE_PRAY 4
#define MUTE_ADMINHELP 8
#define MUTE_DEADCHAT 16
#define MUTE_MENTORHELP 32
#define MUTE_ALL 63

//Number of identical messages required to get the spam-prevention automute thing to trigger warnings and automutes
// ban types
#define BANTYPE_PERMA "PERMABAN"
#define BANTYPE_TEMP "TEMPBAN"
#define BANTYPE_JOB_PERMA "JOB_PERMABAN"
#define BANTYPE_JOB_TEMP "JOB_TEMPBAN"
#define BANTYPE_CHAT_PERMA "CHAT_PERMABAN"
#define BANTYPE_CHAT_TEMP "CHAT_TEMPBAN"

var/global/list/valid_ban_types = list(BANTYPE_PERMA, BANTYPE_TEMP, BANTYPE_JOB_PERMA, BANTYPE_JOB_TEMP, BANTYPE_CHAT_PERMA, BANTYPE_CHAT_TEMP)

// bitflags for client chat bans
#define MUTE_NONE 0
#define MUTE_IC (1<<0) // say/me
#define MUTE_OOC (1<<1) // ooc/looc/ghostchat
#define MUTE_PRAY (1<<2) // pray
#define MUTE_PM (1<<3) // mentorhelp/adminhelp

// text representation for ban database
var/global/list/mute_ban_bitfield = list(
"IC" = MUTE_IC,
"OOC" = MUTE_OOC,
"PRAY" = MUTE_PRAY,
"PM" = MUTE_PM,
)

// number of identical messages required to get the spam-prevention automute thing to trigger warnings and automutes
#define SPAM_TRIGGER_WARNING 5
#define SPAM_TRIGGER_AUTOMUTE 10

//Some constants for DB_Ban
#define BANTYPE_PERMA 1
#define BANTYPE_TEMP 2
#define BANTYPE_JOB_PERMA 3
#define BANTYPE_JOB_TEMP 4
#define BANTYPE_ANY_FULLBAN 5 //used to locate stuff to unban.
#define BANTYPE_ANY_JOB 9 //used to remove jobbans

#define BANTYPE_PERMA_STR "PERMABAN"
#define BANTYPE_TEMP_STR "TEMPBAN"
#define BANTYPE_JOB_PERMA_STR "JOB_PERMABAN"
#define BANTYPE_JOB_TEMP_STR "JOB_TEMPBAN"
#define BANTYPE_ANY_FULLBAN_STR "ANY"
#define BANTYPE_ANY_JOB_STR "ANYJOB"

#define STICKYBAN_TABLENAME "erro_stickyban"
#define STICKYBAN_CKEY_MATCHED_TABLENAME "erro_stickyban_matched_ckey"
#define STICKYBAN_CID_MATCHED_TABLENAME "erro_stickyban_matched_cid"
#define STICKYBAN_IP_MATCHED_TABLENAME "erro_stickyban_matched_ip"

// admin cooldowns
#define ADMIN_CD_IC "IC"
#define ADMIN_CD_OOC "OOC"
#define ADMIN_CD_PRAY "PRAY"
#define ADMIN_CD_PM "PM"

var/global/list/admin_cooldowns_list = list(
ADMIN_CD_IC,
ADMIN_CD_OOC,
ADMIN_CD_PRAY,
ADMIN_CD_PM,
)

#define IS_ON_ADMIN_CD(client, type) (LAZYACCESS(client.prefs.admin_cooldowns, type) > world.time)

//Please don't edit these values without speaking to Errorage first ~Carn
//Admin Permissions
#define R_BUILDMODE 1
Expand Down
6 changes: 6 additions & 0 deletions code/__DEFINES/colors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,9 @@
0, 0, 0, 1, \
0, 0, 0, 0)


#define PAINKILLERS_FILTER list(1.25, 0, 0, 0, \
0, 1.25, 0, 0, \
0, 0, 1.25, 0, \
0, 0, 0, 1, \
-0.05,-0.05,-0.05, 0)
6 changes: 6 additions & 0 deletions code/__DEFINES/combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,9 @@
#define MOVESET_TYPE "moveset_type"
#define MOVESET_ROLES "moveset_role"
#define MOVESET_QUALITY "moveset_quality"

//Painkiller effectiveness (for get_painkiller_effect() comparison)
#define PAINKILLERS_EFFECT_SLIGHT 0.95 //all painkillers.
#define PAINKILLERS_EFFECT_MEDIUM 0.75 //weak painkillers, allow you to ignore minor pain and not see pain() messages.
#define PAINKILLERS_EFFECT_HEAVY 0.6 //powerful painkillers, allow you to not see custom_pain() messages.
#define PAINKILLERS_EFFECT_VERY_HEAVY 0.5 //very powerful painkillers that does not allow the user to determine the location of the injury.
4 changes: 4 additions & 0 deletions code/__DEFINES/dcs/signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@
/// from base /atom/movable/proc/Moved() and /atom/proc/set_dir() return dir
#define COMSIG_ATOM_CHANGE_DIR "change_dir"

/// from base of atom/throw_impact, sent by the target hit by a thrown object. (thrown_atom, hit_atom, datum/thrownthing/throwingdatum)
#define COMSIG_ATOM_PREHITBY "atom_pre_hitby"
#define COMSIG_HIT_PREVENTED (1<<0)

// /atom/movable signals
/// from base of atom/movable/Move(): (/atom/newLoc)
#define COMSIG_MOVABLE_PRE_MOVE "movable_pre_move"
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/flags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ var/global/list/bitflags = list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 204
#define NO_GENDERS "no_genders"
#define NO_SLIP "no_slip"
#define NO_MED_HEALTH_SCAN "no_med_health_scan"
#define NO_WILLPOWER "no_willpower"

//Species Diet Flags
#define DIET_MEAT 1 // Meat.
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/gamemodes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#define REPLICATOR "Replicator"
#define PIRATE "Pirate"
#define PRISONER "Prisoner"
#define THIEF "Thief"

////////////////////// GREETS /////////////////////////
#define GREET_DEFAULT "default"
Expand Down
3 changes: 0 additions & 3 deletions code/__DEFINES/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@
#define LIGHT_DAM_THRESHOLD 3
#define LIGHT_HEAL_THRESHOLD 3
#define LIGHT_DAMAGE_TAKEN 10

#define LEAP_MODE_OFF 0
#define LEAP_MODE_ON 1
2 changes: 1 addition & 1 deletion code/__DEFINES/messages.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define MAX_BOOK_MESSAGE_LEN 27648
#define MAX_NAME_LEN 26
#define MAX_LNAME_LEN 64
#define MAX_REV_REASON_LEN 255
#define MAX_MEDAL_REASON_LEN 128

//#define SHOWMSG_SELF
#define SHOWMSG_VISUAL (1<<0)
Expand Down
7 changes: 7 additions & 0 deletions code/__DEFINES/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@
// port smooth groups from tg/other sane server
#define CAN_SMOOTH_WITH_WALLS list( \
/turf/unsimulated/wall, \
/turf/unsimulated/wall/like_a_normal, \
/turf/unsimulated/wall/like_a_normal/yellow, \
/turf/unsimulated/wall/like_a_normal/red, \
/turf/unsimulated/wall/like_a_normal/purple, \
/turf/unsimulated/wall/like_a_normal/green, \
/turf/unsimulated/wall/like_a_normal/beige, \
/turf/simulated/wall, \
/turf/simulated/wall/yellow, \
/turf/simulated/wall/red, \
Expand Down Expand Up @@ -403,6 +409,7 @@
/turf/simulated/wall = "wall", \
/obj/structure/falsewall = "wall", \
/obj/machinery/door/airlock = "wall", \
/turf/unsimulated/wall/like_a_normal = "wall", \
)

// wall don't need adapter with another wall
Expand Down
20 changes: 14 additions & 6 deletions code/__DEFINES/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@
#define TK_MANA_PER_W_CLASS(cl) (2**cl)

//Nutrition levels for humans.
#define NUTRITION_LEVEL_FAT 600
#define NUTRITION_LEVEL_FAT 660
#define NUTRITION_LEVEL_FULL 550
#define NUTRITION_LEVEL_WELL_FED 450
#define NUTRITION_LEVEL_NORMAL 400
#define NUTRITION_LEVEL_FED 350
#define NUTRITION_LEVEL_HUNGRY 250
#define NUTRITION_LEVEL_STARVING 150
#define NUTRITION_LEVEL_WELL_FED 440
#define NUTRITION_LEVEL_NORMAL 330
#define NUTRITION_LEVEL_FED 220
#define NUTRITION_LEVEL_HUNGRY 110
#define NUTRITION_LEVEL_STARVING 50

#define NUTRITION_PERCENT_MAX 120
#define NUTRITION_PERCENT_ZERO 0
Expand Down Expand Up @@ -264,3 +264,11 @@
#define LOGOUT_GHOST 2
#define LOGOUT_REENTER 3
#define LOGOUT_SWAP 4 // not so safe, check other things if available

// traumatic shock levels
#define TRAUMATIC_SHOCK_MINOR 10
#define TRAUMATIC_SHOCK_SERIOUS 30
#define TRAUMATIC_SHOCK_INTENSE 50
#define TRAUMATIC_SHOCK_MIND_SHATTERING 80
#define TRAUMATIC_SHOCK_CRITICAL 100

1 change: 1 addition & 0 deletions code/__DEFINES/religion.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

// Religion Techs
#define RTECH_MEMORIZE_RUNE "Memorize Rune"
#define RTECH_COOLDOWN_REDUCTION "Cooldown Reduction"
#define RTECH_REUSABLE_RUNE "Reusable Rune"
#define RTECH_BUILD_EVERYWHERE "Build Everywhere"
#define RTECH_MORE_RUNES "More Runes"
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/status_effects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#define STATUS_EFFECT_SWARMS_GIFT /datum/status_effect/swarm_gift

#define STATUS_EFFECT_ALERTNESS /datum/status_effect/alertness

/////////////
// DEBUFFS //
/////////////
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
#define TRAIT_FAST_WALKER "fast_walker"
#define TRAIT_BORK_SKILLCHIP "bork_skillchip"
#define TRAIT_MIMING "miming"
#define TRAIT_WILLPOWER_IMPLANT "willpower_implant"
#define TRAIT_CAN_LEAP "can_leap"

/*
Expand Down
26 changes: 26 additions & 0 deletions code/__HELPERS/global_lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,32 @@
for(var/datum/ringtone/Ring as anything in subtypesof(/datum/ringtone))
global.ringtones_by_names["[initial(Ring.name)]"] = new Ring

init_washing_items_list()

/proc/init_washing_items_list()
var/list/path_list = list(/obj/item/clothing/mask,
/obj/item/clothing/head,
/obj/item/clothing/gloves,
/obj/item/clothing/shoes,
/obj/item/clothing/suit,
/obj/item/weapon/bedsheet,
/obj/item/clothing/under)

global.washing_items_list = typecacheof(path_list, ignore_root_path = TRUE)

global.washing_items_list[/obj/item/stack/sheet/hairlesshide] = TRUE

global.washing_items_list -= /obj/item/clothing/suit/space
global.washing_items_list -= /obj/item/clothing/suit/syndicatefake
global.washing_items_list -= /obj/item/clothing/suit/cyborg_suit
global.washing_items_list -= /obj/item/clothing/suit/bomb_suit
global.washing_items_list -= /obj/item/clothing/suit/armor
global.washing_items_list -= /obj/item/clothing/mask/gas
global.washing_items_list -= /obj/item/clothing/mask/cigarette
global.washing_items_list -= /obj/item/clothing/head/syndicatefake
global.washing_items_list -= /obj/item/clothing/head/helmet
global.washing_items_list -= /obj/item/clothing/gloves/pipboy

/proc/init_joblist() // Moved here because we need to load map config to edit jobs, called from SSjobs
//List of job. I can't believe this was calculated multiple times per tick!
for(var/T in (subtypesof(/datum/job) - list(/datum/job/ai,/datum/job/cyborg)))
Expand Down
5 changes: 5 additions & 0 deletions code/__HELPERS/matrices.dm
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@
0, 1, 0,
0, 0, 1,
0, 0, 0)
if("yellow")
matrix = list(1.2, 0.1, 0,
0, 1, 0,
0, 0, 1,
-0.05, -0.05, -0.05)
if("nvg")
matrix = list(1,0,0,
0,1.1,0,
Expand Down
Loading

0 comments on commit 0c65bec

Please sign in to comment.