mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Adds OpenDream as a CI lint (#21099)
* Initial Commit * Makes the CI work (maybe) * Of course CI has a hissy fit * Actually fixes the codebase * Oops 1 * Tweaks * oops
This commit is contained in:
@@ -3227,7 +3227,6 @@
|
||||
SSnightshift.can_fire = FALSE
|
||||
SSnightshift.update_nightshift(FALSE, FALSE)
|
||||
to_chat(usr, "<span class='notice'>Night shift forced off.</span>")
|
||||
else
|
||||
if(usr)
|
||||
log_admin("[key_name(usr)] used secret [href_list["secretsadmin"]]")
|
||||
if(ok)
|
||||
|
||||
@@ -312,13 +312,14 @@ GLOBAL_DATUM_INIT(_preloader, /datum/dmm_suite/preloader, new())
|
||||
|
||||
var/turf/T = locate(x, y, z)
|
||||
if(T)
|
||||
// Turfs need special attention
|
||||
if(ispath(path, /turf))
|
||||
T.ChangeTurf(path, defer_change = TRUE, keep_icon = FALSE, copy_existing_baseturf = FALSE)
|
||||
instance = T
|
||||
else if(ispath(path, /area))
|
||||
|
||||
else
|
||||
instance = new path(T) // first preloader pass
|
||||
// Anything that isnt an area, init!
|
||||
if(!ispath(path, /area))
|
||||
instance = new path(T) // first preloader pass
|
||||
|
||||
if(GLOB.use_preloader && instance) // second preloader pass, for those atoms that don't ..() in New()
|
||||
GLOB._preloader.load(instance)
|
||||
|
||||
@@ -220,7 +220,6 @@ GLOBAL_LIST_EMPTY(blob_nodes)
|
||||
damage_amount *= brute_resist
|
||||
if(BURN)
|
||||
damage_amount *= fire_resist
|
||||
if(CLONE)
|
||||
else
|
||||
return 0
|
||||
var/armor_protection = 0
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
var/list/event
|
||||
var/list/minor_fake_events = list(
|
||||
list("A solar flare has been detected on collision course with the station. Do not conduct space walks or approach windows until the flare has passed!", "Incoming Solar Flare", 'sound/AI/flare.ogg'),
|
||||
list("Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you*%fj00)`5vc-BZZT"),
|
||||
list("Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you*%fj00`5vc-BZZT"),
|
||||
list("Overload detected in [station_name()]'s powernet. Engineering, please repair shorted APCs.", "Systems Power Failure", 'sound/AI/power_overload.ogg'),
|
||||
list("Localized hyper-energetic flux wave detected on long range scanners. Expected location of impact: Kitchen.", "Anomaly Alert", 'sound/AI/anomaly_flux.ogg'),
|
||||
list("Overload detected in [station_name()]'s powernet. Engineering, please check all underfloor APC terminals.", "Critical Power Failure", 'sound/AI/power_overload.ogg'),
|
||||
list("Hostile runtime detected in door controllers. Isolation lockdown protocols are now in effect. Please remain calm.", "Network Alert", 'sound/AI/door_runtimes.ogg'),
|
||||
list("Rampant brand intelligence has been detected aboard [station_name()], please stand-by. The origin is believed to be \a vendomat.", "Machine Learning Alert", 'sound/AI/brand_intelligence.ogg'),
|
||||
list("Rampant brand intelligence has been detected aboard [station_name()], please stand-by. The origin is believed to be a vendomat.", "Machine Learning Alert", 'sound/AI/brand_intelligence.ogg'),
|
||||
list("Massive migration of unknown biological entities has been detected near [station_name()], please stand-by.", "Lifesign Alert"),
|
||||
list("An electrical storm has been detected in your area, please repair potential electronic overloads.", "Electrical Storm Alert", 'sound/AI/elec_storm.ogg'),
|
||||
list("What the fuck was that?!", "General Alert"),
|
||||
@@ -29,11 +29,13 @@
|
||||
list("The scrubbers network is experiencing a backpressure surge. Some ejection of contents may occur.", "Atmospherics alert", 'sound/AI/scrubbers.ogg'),
|
||||
list("Space-time anomalies detected on the station. There is no additional data.", "Anomaly Alert", 'sound/AI/spanomalies.ogg')
|
||||
)
|
||||
|
||||
var/list/major_fake_events = list(
|
||||
list("Confirmed outbreak of level 3-X biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/AI/outbreak3.ogg'),
|
||||
list("Confirmed outbreak of level 3-S biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/AI/outbreak3.ogg'),
|
||||
list("Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/AI/outbreak5.ogg')
|
||||
)
|
||||
|
||||
if(prob(90))
|
||||
event = pick_n_take(minor_fake_events)
|
||||
GLOB.minor_announcement.Announce(event[1], listgetindex(event, 2), listgetindex(event, 3))
|
||||
|
||||
@@ -510,18 +510,21 @@
|
||||
var/timerid
|
||||
var/list/input_list = list()
|
||||
var/list/combo_strings = list()
|
||||
var/static/list/combo_list = list(
|
||||
var/list/combo_list = list()
|
||||
|
||||
|
||||
/obj/item/cursed_katana/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/parry, _stamina_constant = 2, _stamina_coefficient = 0.5, _parryable_attack_types = NON_PROJECTILE_ATTACKS)
|
||||
combo_list = list(
|
||||
ATTACK_STRIKE = list(COMBO_STEPS = list(LEFT_SLASH, LEFT_SLASH, RIGHT_SLASH), COMBO_PROC = TYPE_PROC_REF(/obj/item/cursed_katana, strike)),
|
||||
ATTACK_SLICE = list(COMBO_STEPS = list(RIGHT_SLASH, LEFT_SLASH, LEFT_SLASH), COMBO_PROC = TYPE_PROC_REF(/obj/item/cursed_katana, slice)),
|
||||
ATTACK_DASH = list(COMBO_STEPS = list(LEFT_SLASH, RIGHT_SLASH, RIGHT_SLASH), COMBO_PROC = TYPE_PROC_REF(/obj/item/cursed_katana, dash)),
|
||||
ATTACK_CUT = list(COMBO_STEPS = list(RIGHT_SLASH, RIGHT_SLASH, LEFT_SLASH), COMBO_PROC = TYPE_PROC_REF(/obj/item/cursed_katana, cut)),
|
||||
ATTACK_HEAL = list(COMBO_STEPS = list(LEFT_SLASH, RIGHT_SLASH, LEFT_SLASH, RIGHT_SLASH), COMBO_PROC = TYPE_PROC_REF(/obj/item/cursed_katana, heal)),
|
||||
ATTACK_SHATTER = list(COMBO_STEPS = list(RIGHT_SLASH, LEFT_SLASH, RIGHT_SLASH, LEFT_SLASH), COMBO_PROC = TYPE_PROC_REF(/obj/item/cursed_katana, shatter)),
|
||||
)
|
||||
)
|
||||
|
||||
/obj/item/cursed_katana/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/parry, _stamina_constant = 2, _stamina_coefficient = 0.5, _parryable_attack_types = NON_PROJECTILE_ATTACKS)
|
||||
for(var/combo in combo_list)
|
||||
var/list/combo_specifics = combo_list[combo]
|
||||
var/step_string = english_list(combo_specifics[COMBO_STEPS])
|
||||
|
||||
@@ -350,8 +350,6 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
|
||||
else
|
||||
overlays_standing[HEAD_ACCESSORY_LAYER] = mutable_appearance(head_accessory_standing, layer = -HEAD_ACCESSORY_LAYER)
|
||||
apply_overlay(HEAD_ACCESSORY_LAYER)
|
||||
else
|
||||
//warning("Invalid ha_style for [species.name]: [ha_style]")
|
||||
|
||||
/**
|
||||
* Generates overlays for the hair layer.
|
||||
@@ -478,9 +476,6 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
|
||||
else
|
||||
overlays_standing[FHAIR_LAYER] = mutable_appearance(face_standing, layer = -FHAIR_LAYER)
|
||||
apply_overlay(FHAIR_LAYER)
|
||||
else
|
||||
//warning("Invalid f_style for [species.name]: [f_style]")
|
||||
|
||||
|
||||
|
||||
/mob/living/carbon/human/update_mutations()
|
||||
|
||||
@@ -719,6 +719,7 @@ Pass a positive integer as an argument to override a bot's default speed.
|
||||
if("home")
|
||||
to_chat(src, "<span class='warning big'>RETURN HOME!</span>")
|
||||
if("ejectpai")
|
||||
return // Do nothing for this
|
||||
else
|
||||
to_chat(src, "<span class='warning'>Unidentified control sequence received: [command]</span>")
|
||||
|
||||
|
||||
@@ -358,13 +358,18 @@
|
||||
while(counter>=1)
|
||||
newletter=copytext(phrase,(leng-counter)+1,(leng-counter)+2)
|
||||
if(newletter in list(" ", "!", "?", ".", ","))
|
||||
//do nothing
|
||||
// Skip these
|
||||
counter -= 1
|
||||
continue
|
||||
|
||||
else if(lowertext(newletter) in list("a", "e", "i", "o", "u", "y"))
|
||||
newletter = "ph"
|
||||
|
||||
else
|
||||
newletter = "m"
|
||||
newphrase+="[newletter]"
|
||||
counter-=1
|
||||
|
||||
newphrase += "[newletter]"
|
||||
counter -= 1
|
||||
return newphrase
|
||||
|
||||
/proc/muffledspeech_all(list/message_pieces)
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
prefixes[++prefixes.len] = list(L, i, i + length(selection))
|
||||
else if(!L && i == 1)
|
||||
prefixes[++prefixes.len] = list(get_default_language(), i, i)
|
||||
else
|
||||
|
||||
return prefixes
|
||||
|
||||
/proc/strip_prefixes(message)
|
||||
|
||||
@@ -70,12 +70,8 @@
|
||||
var/update_flags = STATUS_UPDATE_NONE
|
||||
M.AdjustEyeBlurry(-2 SECONDS)
|
||||
M.AdjustEyeBlind(-2 SECONDS)
|
||||
switch(current_cycle)
|
||||
if(1 to 20)
|
||||
//nothing
|
||||
if(21 to INFINITY)
|
||||
if(prob(current_cycle - 10))
|
||||
update_flags |= M.cure_nearsighted(EYE_DAMAGE, FALSE)
|
||||
if(current_cycle > 20 && prob(current_cycle - 10))
|
||||
update_flags |= M.cure_nearsighted(EYE_DAMAGE, FALSE)
|
||||
return ..() | update_flags
|
||||
|
||||
/datum/reagent/consumable/drink/doctor_delight
|
||||
|
||||
@@ -195,8 +195,7 @@
|
||||
/obj/docking_port/stationary/transit
|
||||
name = "In transit"
|
||||
turf_type = /turf/space/transit
|
||||
var/area/shuttle/transit/assigned_area
|
||||
lock_shuttle_doors = 1
|
||||
lock_shuttle_doors = TRUE
|
||||
|
||||
/obj/docking_port/stationary/transit/register()
|
||||
if(!..())
|
||||
|
||||
@@ -279,14 +279,12 @@
|
||||
telefail()
|
||||
temp_msg = "ERROR!<BR>Elevation is less than 1 or greater than 90."
|
||||
return
|
||||
if(z_co == 2 || z_co < 1 || z_co > 6)
|
||||
if(z_co == 7 & emagged)
|
||||
// This should be empty, allows for it to continue if the z-level is 7 and the machine is emagged.
|
||||
else
|
||||
telefail()
|
||||
temp_msg = "ERROR! Sector is less than 1, <BR>greater than [src.emagged ? "7" : "6"], or equal to 2."
|
||||
return
|
||||
|
||||
// THIS FUCKING THING USES ZLEVEL NUMBERS WHY
|
||||
var/cc_z = level_name_to_num(CENTCOMM)
|
||||
if(z_co == cc_z || z_co < cc_z + 1 || cc_z > world.maxz)
|
||||
telefail()
|
||||
temp_msg = "ERROR! Sector must be greater than or equal to 2, and less than or equal to [world.maxz]."
|
||||
return
|
||||
|
||||
var/truePower = clamp(power + power_off, 1, 1000)
|
||||
var/trueRotation = rotation + rotation_off
|
||||
|
||||
Reference in New Issue
Block a user