Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
Steelpoint committed Aug 26, 2023
1 parent 1d02f51 commit 368a1b2
Show file tree
Hide file tree
Showing 21 changed files with 624 additions and 565 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/autowiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:

jobs:
autowiki:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: "Check for AUTOWIKI_USERNAME"
id: secrets_set
Expand All @@ -30,9 +30,6 @@ jobs:
- 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
Expand Down
3 changes: 3 additions & 0 deletions code/__DEFINES/conflict.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
#define ATTACH_IGNORE_EMPTY (1<<5)
/// This attachment should activate if you attack() with it attached.
#define ATTACH_MELEE (1<<6)
/// Override for attachies so you can fire them with a single hand . ONLY FOR PROJECTILES!!
#define ATTACH_WIELD_OVERRIDE (1<<7)

//Ammo magazine defines, for flags_magazine

Expand Down Expand Up @@ -218,6 +220,7 @@
#define UNIFORM_HAS_SENSORS 1
#define UNIFORM_FORCED_SENSORS 2

#define EYE_PROTECTION_NEGATIVE -1
#define EYE_PROTECTION_NONE 0
#define EYE_PROTECTION_FLAVOR 1
#define EYE_PROTECTION_FLASH 2
Expand Down
19 changes: 12 additions & 7 deletions code/game/objects/items/tools/maintenance_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -380,22 +380,27 @@
if(E.robotic == ORGAN_ROBOT)
return
switch(safety)
if(1)
if(EYE_PROTECTION_FLASH)
to_chat(user, SPAN_DANGER("You see a bright light in the corner of your vision."))
E.take_damage(rand(0, 1), TRUE)
if(E.damage > 10)
E.take_damage(rand(3, 5), TRUE)
if(EYE_PROTECTION_FLAVOR)
to_chat(user, SPAN_DANGER("Your eyes sting a little."))
E.take_damage(rand(1, 2), TRUE)
if(E.damage > 12)
H.AdjustEyeBlur(3,6)
if(0)
if(E.damage > 8) // dont abuse your funny flavor glasses
E.take_damage(2, TRUE)
if(EYE_PROTECTION_NONE)
to_chat(user, SPAN_WARNING("Your eyes burn."))
E.take_damage(rand(2, 4), TRUE)
E.take_damage(rand(3, 4), TRUE)
if(E.damage > 10)
E.take_damage(rand(4, 10), TRUE)
if(-1)
if(EYE_PROTECTION_NEGATIVE)
to_chat(user, SPAN_WARNING("Your thermals intensify [src]'s glow. Your eyes itch and burn severely."))
H.AdjustEyeBlur(12,20)
E.take_damage(rand(12, 16), TRUE)

if(safety < 2)
if(safety < EYE_PROTECTION_WELDING)
if (E.damage >= E.min_broken_damage)
to_chat(H, SPAN_WARNING("You go blind! Maybe welding without protection wasn't such a great idea..."))
return FALSE
Expand Down
9 changes: 4 additions & 5 deletions code/game/objects/structures/blocker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
mouse_opacity = MOUSE_OPACITY_TRANSPARENT

/obj/structure/blocker/invisible_wall/Collided(atom/movable/AM)
to_chat(AM, SPAN_WARNING("You cannot go this way."))
var/msg = desc
if(!msg)
msg = "You cannot go this way."
to_chat(AM, SPAN_WARNING(msg))

/obj/structure/blocker/invisible_wall/New()
..()
Expand All @@ -35,10 +38,6 @@
desc = "You cannot wade out any further"
icon_state = "map_blocker"

/obj/structure/blocker/invisible_wall/water/Collided(atom/movable/AM)
to_chat(AM, SPAN_WARNING("You cannot wade out any further."))


/obj/structure/blocker/fog
name = "dense fog"
desc = "It looks way too dangerous to traverse. Best wait until it has cleared up."
Expand Down
1 change: 1 addition & 0 deletions code/modules/clothing/glasses/night.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
vision_flags = SEE_TURFS
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
fullscreen_vision = null
eye_protection = EYE_PROTECTION_NEGATIVE

/obj/item/clothing/glasses/night/helmet //for the integrated NVGs that are in helmetgarb code
name = "\improper M2 night vision goggles"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/clothing/glasses/thermal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
darkness_view = 12
invisa_view = 2
eye_protection = -1
eye_protection = EYE_PROTECTION_NEGATIVE
deactive_state = "goggles_off"
fullscreen_vision = /atom/movable/screen/fullscreen/thermal
var/blinds_on_emp = TRUE
Expand Down
9 changes: 8 additions & 1 deletion code/modules/gear_presets/upp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,14 @@
/datum/equipment_preset/upp/leader/load_gear(mob/living/carbon/human/new_human)
var/UPPleadsidearm = rand(1,4)
//back
new_human.equip_to_slot_or_del(new /obj/item/storage/backpack/jima, WEAR_BACK)
new_human.equip_to_slot_or_del(new /obj/item/storage/backpack/lightpack/upp, WEAR_BACK)
new_human.equip_to_slot_or_del(new /obj/item/tool/extinguisher/mini, WEAR_IN_BACK) //0.66
new_human.equip_to_slot_or_del(new /obj/item/explosive/grenade/phosphorus/upp, WEAR_IN_BACK) //1.33
new_human.equip_to_slot_or_del(new /obj/item/explosive/grenade/phosphorus/upp, WEAR_IN_BACK) //2
new_human.equip_to_slot_or_del(new /obj/item/explosive/grenade/phosphorus/upp, WEAR_IN_BACK) //2.66
new_human.equip_to_slot_or_del(new /obj/item/reagent_container/food/snacks/upp, WEAR_IN_BACK) //3.33
new_human.equip_to_slot_or_del(new /obj/item/reagent_container/food/snacks/upp, WEAR_IN_BACK) //4
new_human.equip_to_slot_or_del(new /obj/item/ammo_magazine/rifle/type71/ap, WEAR_IN_BACK) //5
//face
new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/distress/UPP/command, WEAR_L_EAR)
//head
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp

var/mob/living/carbon/human/original_human = mind.original

if(!original_human.check_tod() || !original_human.is_revivable() || !can_reenter_corpse)
if((original_human.stat == DEAD && !original_human.check_tod() || !original_human.is_revivable()) || !can_reenter_corpse)
view_health_scan(target)
return

Expand Down
9 changes: 2 additions & 7 deletions code/modules/mob/living/blood.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

if(stat != DEAD && bodytemperature >= 170) //Dead or cryosleep people do not pump the blood.
//Blood regeneration if there is some space
if(blood_volume < max_blood)
if(blood_volume < max_blood && nutrition >= 1)
blood_volume += 0.1 // regenerate blood VERY slowly
nutrition -= 0.25
else if(blood_volume > max_blood)
blood_volume -= 0.1 // The reverse in case we've gotten too much blood in our body
if(blood_volume > limit_blood)
Expand Down Expand Up @@ -43,12 +44,6 @@
if(oxyloss < maximum_oxyloss)
oxyloss += round(max(additional_oxyloss, 0))

//Bloodloss effects on nutrition
if(nutrition >= 300)
nutrition -= 10
else if(nutrition >= 200)
nutrition -= 3

switch(b_volume)
if(BLOOD_VOLUME_OKAY to BLOOD_VOLUME_SAFE)
if(prob(1))
Expand Down
17 changes: 10 additions & 7 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1343,11 +1343,10 @@ and you're good to go.

//The following relating to bursts was borrowed from Fire code.
var/check_for_attachment_fire = FALSE
if(active_attachable)
if(active_attachable.flags_attach_features & ATTACH_PROJECTILE)
check_for_attachment_fire = TRUE
else
active_attachable.activate_attachment(src, null, TRUE)//No way.
if(active_attachable?.flags_attach_features & ATTACH_PROJECTILE)
check_for_attachment_fire = TRUE
else
active_attachable.activate_attachment(src, null, TRUE)//No way.


var/bullets_to_fire = 1
Expand Down Expand Up @@ -1512,8 +1511,12 @@ not all weapons use normal magazines etc. load_into_chamber() itself is designed
if(flags_gun_features & GUN_TRIGGER_SAFETY)
to_chat(user, SPAN_WARNING("The safety is on!"))
return

if((flags_gun_features & GUN_WIELDED_FIRING_ONLY) && !(flags_item & WIELDED)) //If we're not holding the weapon with both hands when we should.
if(active_attachable)
if(active_attachable.flags_attach_features & ATTACH_PROJECTILE)
if(!(active_attachable.flags_attach_features & ATTACH_WIELD_OVERRIDE) && !(flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You must wield [src] to fire [active_attachable]!"))
return
if((flags_gun_features & GUN_WIELDED_FIRING_ONLY) && !(flags_item & WIELDED) && !active_attachable) //If we're not holding the weapon with both hands when we should.
to_chat(user, SPAN_WARNING("You need a more secure grip to fire this weapon!"))
return

Expand Down
7 changes: 5 additions & 2 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ Defined in conflicts.dm of the #defines folder.
var/obj/item/weapon/gun/attached_gun = loc

if(!(attached_gun.flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You must wield \the [attached_gun] to fire \the [src]!"))
to_chat(user, SPAN_WARNING("You must wield [attached_gun] to fire [src]!"))
return

if(current_rounds > round_usage_per_tile && ..())
Expand Down Expand Up @@ -2509,6 +2509,9 @@ Defined in conflicts.dm of the #defines folder.
/obj/item/attachable/attached_gun/extinguisher/fire_attachment(atom/target, obj/item/weapon/gun/gun, mob/living/user)
if(!internal_extinguisher)
return
if(!(gun.flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You must wield [gun] to fire [src]!"))
return
if(..())
return internal_extinguisher.afterattack(target, user)

Expand Down Expand Up @@ -2569,7 +2572,7 @@ Defined in conflicts.dm of the #defines folder.
return

if((gun.flags_gun_features & GUN_WIELDED_FIRING_ONLY) && !(gun.flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You need a more secure grip to fire this weapon!"))
to_chat(user, SPAN_WARNING("You must wield [gun] to fire [src]!"))
return

if(gun.flags_gun_features & GUN_TRIGGER_SAFETY)
Expand Down
35 changes: 0 additions & 35 deletions html/changelogs/AutoChangeLog-pr-3865.yml

This file was deleted.

4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4127.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "cuberound"
delete-after: True
changes:
- rscadd: "UPP SL gets proper bag with mini fire extinguisher three WP grenades , two snacks and an AP mag"
6 changes: 0 additions & 6 deletions html/changelogs/AutoChangeLog-pr-4131.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-4156.yml

This file was deleted.

5 changes: 5 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4212.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
author: "Diegoflores31"
delete-after: True
changes:
- bugfix: "Glasses with flash protection can no longer be used for welding."
- refactor: "Adds defines for negative welding protection."
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4240.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "AnuvKH"
delete-after: True
changes:
- maptweak: "Fixed deep ocean around NV monsoon, removed incend ammo."
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4256.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "Morrow"
delete-after: True
changes:
- bugfix: "fixed a bypass to allow ghost scan health when it should not be allowed"
66 changes: 66 additions & 0 deletions html/changelogs/archive/2023-08.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,69 @@
realforest2001:
- rscadd: Added a new lockdown system to research.
- rscadd: Added an admin button to interact with above.
2023-08-26:
CapCamIII:
- rscadd: Adds 6(8 if you're pedantic) new guns for the UPP, details for each in
following lines.
- rscadd: Type 19, Replacement for PPsh on colonies and black market.
- rscadd: Type 64, replacement for scorpion, full sized SMG, 2 versions, 1 for upp,
1 for not upp
- rscadd: HJRA-12, RPG for UPP.
- rscadd: Type 73, pistol for higher ranked UPP troops, UPP COs get a Type 74 which
has high-impact rounds, replaces PK9 in non-UPP use.
- rscadd: NP92, pistol, replaces PK9 in UPP use(mostly), integrally suppressed version
called NPZ92 for UPP Commandos.
- rscadd: QYJ-72, UPP GPMG, replaces minigun with UPP Minigunners
- rscadd: Technically resprites but due to changes closer to replaces N-Y revolver
with ZHNK-72
- rscadd: Adds a character custom loadout Type 73, 2 mags spare.
- rscadd: UPP helmets now work as ear protection, intended use with HJRA-12 RPG
- rscadd: UPP officers now have regular UM4 helmets instead of UH7 helmets in their
vendors as UH7 looked ugly with their combat gear
- rscdel: Removes the PK9 entirely
- rscdel: Removes tranqs from UPP Commando loadout
- rscdel: Removes HEAP ammo from UPP officers and commandos, replaced with normal
and AP mags when applicable
- balance: UPP jackets no longer have massive armor, in exchange they no longer
slow and in clothing vendors a light version of UPP armor is vendable
- balance: UPP MPs are now armed with a ZHNK-72 belt on their jacket, with an additional
shrapnelshot loader in their belt.
- balance: Rebalances Type 71 damage/firerate/AP to be a sidegrade of M41A, about
equal DPS, higher damage per shot and AP, lower fire rate, carbine is round-about
the exact same as M41A however.
- balance: Fixes UPP support armor, given to medics on their person and officers
in their vendor, lighter version of UPP armor, exchanges protection for speed.
- balance: Seperates SVD bullet damage from crude rifle bullet and buffs it as a
hard-hitting AP bullet.
- balance: Rebalances UPP revolver(now ZHNK-72), much harder hitting and has higher
AP, but rarer, shrapnelshot extremely rare and good.
- balance: Due to ammo changes, SVD no longer has burst.
- balance: Removes ceramic plates from UPP loadouts
- bugfix: UPP Major now has the correct UPP Commander skillset
- bugfix: UPP Commander skillset can BE
- bugfix: Fixes typepath for UPP support/light armor, actually works now.
- spellcheck: Renames SVD to Type 88
- spellcheck: Renames UPP Minigunner to UPP Machinegunner
- spellcheck: Renames UPP jackets to UL4 all around
- soundadd: Adds firing sounds for Type 73 and SVD/UPP MG
- imageadd: Resprites the SVD, Type 71, and Type 23, all sprites by wei/esselnek
- imageadd: Adds sprites for all above guns, all sprites by wei/esselnek
- maptweak: Changes instances of skorpion to non-upp type 64, also changes instances
of ppsh to type 19
Diegoflores31:
- balance: Masterkey and underbarrel extinguisher now must be wielded in order to
be used.
- bugfix: Underbarrel extinguisher no longer bypass wielding restrictions on flamers.
Morrow:
- balance: You now lose nutrition when gaining blood rather than losing a ton of
nutrition when you have low effective blood
Morrow, Frans_Feiffer (beautiful sprites):
- rscadd: Added in built HUDs to various helmets
- rscadd: Sensormates used by squads without medical skills have been converted
to buyable helmet optics
realforest2001:
- code_imp: Changed backend for the message of walking into an invisible wall to
reduce duplication.
- rscadd: Telephones can now receive calls from multiple networks.
- rscadd: Adds UPP, CLF and WY prefab phones.
- bugfix: UPP RTO pack is now titled UPP rather than USCM
1 change: 0 additions & 1 deletion maps/map_files/LV624/LV624.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -10305,7 +10305,6 @@
"aSQ" = (
/obj/structure/safe/floor{
name = "safe";
pixel_x = 30;
spawnkey = 0
},
/turf/open/floor{
Expand Down
Loading

0 comments on commit 368a1b2

Please sign in to comment.