Skip to content

Commit

Permalink
Merge branch 'master' into Distress_Signal_Verbage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben10083 committed Aug 12, 2023
2 parents b5c3f0a + 2470ea7 commit 80f14ba
Show file tree
Hide file tree
Showing 109 changed files with 2,569 additions and 604 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/autowiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Autowiki
on:
schedule:
- cron: "5 4 * * *"
workflow_dispatch:
permissions:
contents: read

jobs:
autowiki:
runs-on: ubuntu-20.04
steps:
- name: "Check for AUTOWIKI_USERNAME"
id: secrets_set
env:
ENABLER_SECRET: ${{ secrets.AUTOWIKI_USERNAME }}
run: |
unset SECRET_EXISTS
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi
echo "SECRETS_ENABLED=$SECRET_EXISTS" >> $GITHUB_OUTPUT
- name: Checkout
if: steps.secrets_set.outputs.SECRETS_ENABLED
uses: actions/checkout@v3
- name: Restore BYOND cache
if: steps.secrets_set.outputs.SECRETS_ENABLED
uses: actions/cache@v3
with:
path: ~/BYOND
key: ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }}
- name: Install rust-g
if: steps.secrets_set.outputs.SECRETS_ENABLED
run: |
sudo dpkg --add-architecture i386
sudo apt update || true
sudo apt install -o APT::Immediate-Configure=false libssl1.1:i386
bash tools/ci/install_rust_g.sh
- name: Compile and generate Autowiki files
if: steps.secrets_set.outputs.SECRETS_ENABLED
run: |
bash tools/ci/install_byond.sh
source $HOME/BYOND/byond/bin/byondsetup
tools/build/build --ci autowiki
- name: Run Autowiki
if: steps.secrets_set.outputs.SECRETS_ENABLED
env:
USERNAME: ${{ secrets.AUTOWIKI_USERNAME }}
PASSWORD: ${{ secrets.AUTOWIKI_PASSWORD }}
run: |
cd tools/autowiki
npm install
cd ../..
node tools/autowiki/autowiki.js data/autowiki_edits.txt data/autowiki_files/
11 changes: 6 additions & 5 deletions code/__DEFINES/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,12 @@ var/global/list/job_command_roles = JOB_COMMAND_ROLES_LIST
#define JOB_PLAYTIME_TIER_4 (175 HOURS)

#define XENO_NO_AGE -1
#define XENO_NORMAL 0
#define XENO_MATURE 1
#define XENO_ELDER 2
#define XENO_ANCIENT 3
#define XENO_PRIME 4
#define XENO_YOUNG 0
#define XENO_NORMAL 1
#define XENO_MATURE 2
#define XENO_ELDER 3
#define XENO_ANCIENT 4
#define XENO_PRIME 5

/// For monthly time tracking
#define JOB_OBSERVER "Observer"
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/lighting.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#define LIGHTING_PLANE_ALPHA_VISIBLE 255
///The dim natural vision of Yautja
#define LIGHTING_PLANE_ALPHA_YAUTJA 235
#define LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE 127
#define LIGHTING_PLANE_ALPHA_INVISIBLE 0
26 changes: 18 additions & 8 deletions code/__DEFINES/skills.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,24 @@
//spec_weapons skill
//hidden. who can and can't use specialist weapons
#define SKILL_SPEC_DEFAULT 0
#define SKILL_SPEC_ROCKET 1 //can use the demolitionist specialist gear
#define SKILL_SPEC_SCOUT 2
#define SKILL_SPEC_SNIPER 3
#define SKILL_SPEC_GRENADIER 4
#define SKILL_SPEC_PYRO 5
#define SKILL_SPEC_SMARTGUN 6 //for smartgunners
#define SKILL_SPEC_UPP 7 //for upp
#define SKILL_SPEC_ALL 8 //can use all specialist gear
/// Is trained to use specialist gear, but hasn't picked a kit.
#define SKILL_SPEC_TRAINED 1
/// Can use RPG
#define SKILL_SPEC_ROCKET 2
/// Can use thermal cloaks and custom M4RA rifle
#define SKILL_SPEC_SCOUT 3
/// Can use sniper rifles and camo suits
#define SKILL_SPEC_SNIPER 4
/// Can use the rotary grenade launcher and heavy armor
#define SKILL_SPEC_GRENADIER 5
/// Can use heavy flamers
#define SKILL_SPEC_PYRO 6
/// Can use smartguns
#define SKILL_SPEC_SMARTGUN 7
/// UPP special training
#define SKILL_SPEC_UPP 8
/// Can use ALL specialist weapons
#define SKILL_SPEC_ALL 9

//construction skill
#define SKILL_CONSTRUCTION_DEFAULT 0
Expand Down
28 changes: 15 additions & 13 deletions code/__DEFINES/weapon_stats.dm
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,21 @@ As such, don't expect any values assigned to common firearms to even consider ho
//How many ticks you have to wait between firing. Burst delay uses the same variable!
*/

#define FIRE_DELAY_TIER_1 10
#define FIRE_DELAY_TIER_2 9
#define FIRE_DELAY_TIER_3 8
#define FIRE_DELAY_TIER_4 7
#define FIRE_DELAY_TIER_5 6
#define FIRE_DELAY_TIER_6 5
#define FIRE_DELAY_TIER_7 4
#define FIRE_DELAY_TIER_8 3
#define FIRE_DELAY_TIER_9 2
#define FIRE_DELAY_TIER_LMG 1.5
#define FIRE_DELAY_TIER_SG 1.5
#define FIRE_DELAY_TIER_SMG 1.3
#define FIRE_DELAY_TIER_10 1
#define FIRE_DELAY_TIER_1 12
#define FIRE_DELAY_TIER_2 10
#define FIRE_DELAY_TIER_3 9
#define FIRE_DELAY_TIER_4 8
#define FIRE_DELAY_TIER_5 7
#define FIRE_DELAY_TIER_6 6
#define FIRE_DELAY_TIER_7 5
#define FIRE_DELAY_TIER_8 4
#define FIRE_DELAY_TIER_9 3.5
#define FIRE_DELAY_TIER_10 3
#define FIRE_DELAY_TIER_11 2.5
#define FIRE_DELAY_TIER_LMG 2
#define FIRE_DELAY_TIER_SG 2
#define FIRE_DELAY_TIER_SMG 1.5
#define FIRE_DELAY_TIER_12 1

/*
////RANGE RELATED////
Expand Down
6 changes: 6 additions & 0 deletions code/__DEFINES/xeno.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@
/// The amount of time after round start before buried larva spawns are disallowed
#define XENO_BURIED_LARVA_TIME_LIMIT (30 MINUTES)

/// The time when xenos can start taking over comm towers
#define XENO_COMM_ACQUISITION_TIME (90 MINUTES)

/// The time it takes for a pylon to give one larva while activated
#define XENO_PYLON_ACTIVATION_COOLDOWN (5 MINUTES)

/// The time against away_timer when an AFK xeno larva can be replaced
#define XENO_LEAVE_TIMER_LARVA 80 //80 seconds
/// The time against away_timer when an AFK xeno (not larva) can be replaced
Expand Down
4 changes: 2 additions & 2 deletions code/datums/mob_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ var/list/datum/mob_hud/huds = list(
holder2_set = 1
return

holder.icon_state = "huddead"
holder.icon_state = HAS_TRAIT(src, TRAIT_HARDCORE) || MODE_HAS_TOGGLEABLE_FLAG(MODE_HARDCORE_PERMA) ? "hudhcdead" : "huddead"
if(!holder2_set)
holder2.icon_state = "huddead"
holder2.icon_state = holder.icon_state
holder3.icon_state = "huddead"
holder2_set = 1

Expand Down
5 changes: 4 additions & 1 deletion code/datums/skills.dm
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ COMMAND STAFF
SKILL_SURGERY = SKILL_SURGERY_NOVICE,
SKILL_POLICE = SKILL_POLICE_SKILLED,
SKILL_FIREMAN = SKILL_FIREMAN_SKILLED,
SKILL_VEHICLE = SKILL_VEHICLE_SMALL,
SKILL_CQC = SKILL_CQC_SKILLED,
SKILL_SPEC_WEAPONS = SKILL_SPEC_SMARTGUN,
SKILL_POWERLOADER = SKILL_POWERLOADER_MASTER,
Expand All @@ -616,6 +617,7 @@ COMMAND STAFF
SKILL_MEDICAL = SKILL_MEDICAL_DOCTOR,
SKILL_SURGERY = SKILL_SURGERY_NOVICE,
SKILL_POLICE = SKILL_POLICE_FLASH,
SKILL_VEHICLE = SKILL_VEHICLE_SMALL,
SKILL_FIREMAN = SKILL_FIREMAN_SKILLED,
SKILL_CQC = SKILL_CQC_SKILLED,
SKILL_POWERLOADER = SKILL_POWERLOADER_MASTER,
Expand Down Expand Up @@ -709,6 +711,7 @@ COMMAND STAFF
SKILL_SURGERY = SKILL_SURGERY_NOVICE,
SKILL_JTAC = SKILL_JTAC_EXPERT,
SKILL_INTEL = SKILL_INTEL_EXPERT,
SKILL_VEHICLE = SKILL_VEHICLE_SMALL,
SKILL_ENGINEER = SKILL_ENGINEER_ENGI,
SKILL_CONSTRUCTION = SKILL_CONSTRUCTION_ENGI,
SKILL_POLICE = SKILL_POLICE_FLASH,
Expand Down Expand Up @@ -1006,7 +1009,7 @@ United States Colonial Marines
SKILL_CQC = SKILL_CQC_TRAINED,
SKILL_CONSTRUCTION = SKILL_CONSTRUCTION_TRAINED,
SKILL_ENGINEER = SKILL_ENGINEER_TRAINED, //to use c4 in demo set.
SKILL_SPEC_WEAPONS = SKILL_SPEC_ALL,
SKILL_SPEC_WEAPONS = SKILL_SPEC_TRAINED,
SKILL_MELEE_WEAPONS = SKILL_MELEE_TRAINED,
SKILL_ENDURANCE = SKILL_ENDURANCE_TRAINED,
SKILL_JTAC = SKILL_JTAC_BEGINNER
Expand Down
11 changes: 0 additions & 11 deletions code/datums/supply_packs/attachments.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,6 @@
containername = "extended barrel attachment crate"
group = "Attachments"

/datum/supply_packs/muzzle_heavy
name = "barrel charger attachment crate (x2)"
contains = list(
/obj/item/attachable/heavy_barrel,
/obj/item/attachable/heavy_barrel,
)
cost = 30
containertype = /obj/structure/closet/crate
containername = "heavy barrel attachment crate"
group = "Attachments"

/datum/supply_packs/muzzle_compensator
name = "compensator attachment crate (x6)"
contains = list(
Expand Down
14 changes: 2 additions & 12 deletions code/game/area/Sulaco.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
is_resin_allowed = FALSE
flags_area = AREA_NOTUNNEL
is_landing_zone = TRUE
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop1/Enter(atom/movable/O, atom/oldloc)
if(istype(O, /obj/structure/barricade))
Expand All @@ -23,36 +24,30 @@
name = "\improper Dropship Alamo"
icon_state = "shuttlered"
base_muffle = MUFFLE_HIGH
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop1/LV624
name = "\improper Dropship Alamo"
ambience_exterior = AMBIENCE_LV624
icon_state = "shuttle"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop1/prison
name = "\improper Dropship Alamo"
ambience_exterior = AMBIENCE_PRISON
icon_state = "shuttle"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop1/BigRed
name = "\improper Dropship Alamo"
ambience_exterior = AMBIENCE_BIGRED
icon_state = "shuttle"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop1/ice_colony
name = "\improper Dropship Alamo"
icon_state = "shuttle"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop1/DesertDam
name = "\improper Dropship Alamo"
ambience_exterior = AMBIENCE_TRIJENT
icon_state = "shuttle"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop1/transit
ambience_exterior = 'sound/ambience/dropship_ambience_loop.ogg'
Expand All @@ -75,41 +70,36 @@
is_resin_allowed = FALSE
flags_area = AREA_NOTUNNEL
is_landing_zone = TRUE
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop2/sulaco
name = "\improper Dropship Normandy"
icon_state = "shuttle"
base_muffle = MUFFLE_HIGH
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop2/LV624
name = "\improper Dropship Normandy"
ambience_exterior = AMBIENCE_LV624
icon_state = "shuttle2"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop2/prison
name = "\improper Dropship Normandy"
ambience_exterior = AMBIENCE_PRISON
icon_state = "shuttle2"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop2/BigRed
name = "\improper Dropship Normandy"
ambience_exterior = AMBIENCE_BIGRED
icon_state = "shuttle2"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop2/ice_colony
name = "\improper Dropship Normandy"
icon_state = "shuttle2"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop2/DesertDam
name = "\improper Dropship Normandy"
ambience_exterior = AMBIENCE_TRIJENT
icon_state = "shuttle2"
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/drop2/transit
ambience_exterior = 'sound/ambience/dropship_ambience_loop.ogg'
Expand Down
16 changes: 8 additions & 8 deletions code/game/gamemodes/cm_process.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ of predators), but can be added to include variant game modes (like humans vs. h
if(LAZYLEN(xenomorphs) || LAZYLEN(dead_queens))
var/dat = "<br>"
dat += SPAN_ROUNDBODY("<br>The xenomorph Queen(s) were:")
var/mob/M
var/mob/living/carbon/xenomorph/xeno_mob
for (var/msg in dead_queens)
dat += msg
for(var/datum/mind/X in xenomorphs)
if(!istype(X))
for(var/datum/mind/xeno_mind in xenomorphs)
if(!istype(xeno_mind))
continue

M = X.current
if(!M || !M.loc)
M = X.original
if(M && M.loc && isqueen(M) && M.stat != DEAD) // Dead queens handled separately
dat += "<br>[X.key] was [M] [SPAN_BOLDNOTICE("(SURVIVED)")]"
xeno_mob = xeno_mind.current
if(!xeno_mob || !xeno_mob.loc)
xeno_mob = xeno_mind.original
if(xeno_mob && xeno_mob.loc && isqueen(xeno_mob) && xeno_mob.stat != DEAD) // Dead queens handled separately
dat += "<br>[xeno_mob.full_designation] was [xeno_mob] [SPAN_BOLDNOTICE("(SURVIVED)")]"

to_world("[dat]")

Expand Down
Loading

0 comments on commit 80f14ba

Please sign in to comment.