Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/royalmarines' into royalmarines
Browse files Browse the repository at this point in the history
  • Loading branch information
spartanbobby committed Sep 3, 2023
2 parents b6e17b6 + b8381e0 commit 888e09a
Show file tree
Hide file tree
Showing 18 changed files with 85 additions and 66 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/pred.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#define PRED_MATERIALS list("ebony", "silver", "bronze", "crimson", "bone")
#define PRED_TRANSLATORS list("Modern", "Retro", "Combo")
#define PRED_LEGACIES list("None", "Dragon", "Swamp", "Enforcer", "Collector")
#define PRED_SKIN_COLOR list("tan", "green", "purple", "blue", "red", "black")

#define PRED_YAUTJA_CAPE "yautja cape"
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/vending/vendor_types/crew/synthetic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ GLOBAL_LIST_INIT(cm_vending_clothing_synth_snowflake, list(
/obj/structure/machinery/cm_vending/own_points/experimental_tools/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/coin/marine/synth))
if(user.drop_inv_item_to_loc(W, src))
available_points = 45
available_points = 30
available_points_to_display = available_points
to_chat(user, SPAN_NOTICE("You insert \the [W] into \the [src]."))
return
Expand Down
6 changes: 0 additions & 6 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,6 @@ cases. Override_icon_state should be a list.*/
if("classic")
icon_state = new_icon_state ? new_icon_state : "c_" + icon_state
item_state = new_item_state ? new_item_state : "c_" + item_state
if("jungle")
icon_state = new_icon_state ? new_icon_state : "j_" + icon_state
item_state = new_item_state ? new_item_state : "j_" + item_state
if("urban")
icon_state = new_icon_state ? new_icon_state : "u_" + icon_state
item_state = new_item_state ? new_item_state : "u_" + item_state
if(new_protection)
min_cold_protection_temperature = new_protection
else return
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/scanners.dm
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ FORENSIC SCANNER
/obj/item/device/healthanalyzer/alien
name = "\improper YMX scanner"
icon = 'icons/obj/items/hunter/pred_gear.dmi'
icon_state = "Tracker"
icon_state = "scanner"
item_state = "analyzer"
desc = "An alien design hand-held body scanner able to distinguish vital signs of the subject. The front panel is able to provide the basic readout of the subject's status."
alien = TRUE
Expand Down
10 changes: 9 additions & 1 deletion code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var/const/MAX_SAVE_SLOTS = 10
var/warns = 0
var/muted = 0
var/last_ip
var/fps = 20
var/fps = 60
var/last_id
var/save_cooldown = 0 //5s cooldown between saving slots
var/reload_cooldown = 0 //5s cooldown between loading slots
Expand Down Expand Up @@ -87,6 +87,7 @@ var/const/MAX_SAVE_SLOTS = 10
var/predator_age = 100
var/predator_h_style = "Standard"
var/predator_skin_color = "tan"
var/predator_use_legacy = "None"
var/predator_translator_type = "Modern"
var/predator_mask_type = 1
var/predator_armor_type = 1
Expand Down Expand Up @@ -511,6 +512,8 @@ var/const/MAX_SAVE_SLOTS = 10

dat += "<div id='column2'>"
dat += "<h2><b><u>Equipment Setup:</u></b></h2>"
if(RoleAuthority.roles_whitelist[user.ckey] & WHITELIST_YAUTJA_LEGACY)
dat += "<b>Legacy Gear:</b> <a href='?_src_=prefs;preference=pred_use_legacy;task=input'><b>[predator_use_legacy]</b></a><br>"
dat += "<b>Translator Type:</b> <a href='?_src_=prefs;preference=pred_trans_type;task=input'><b>[predator_translator_type]</b></a><br>"
dat += "<b>Mask Style:</b> <a href='?_src_=prefs;preference=pred_mask_type;task=input'><b>([predator_mask_type])</b></a><br>"
dat += "<b>Armor Style:</b> <a href='?_src_=prefs;preference=pred_armor_type;task=input'><b>([predator_armor_type])</b></a><br>"
Expand Down Expand Up @@ -1237,6 +1240,11 @@ var/const/MAX_SAVE_SLOTS = 10
var/new_predator_age = tgui_input_number(user, "Choose your Predator's age(175 to 3000):", "Character Preference", 1234, 3000, 175)
if(new_predator_age)
predator_age = max(min( round(text2num(new_predator_age)), 3000),175)
if("pred_use_legacy")
var/legacy_choice = tgui_input_list(user, "What legacy set do you wish to use?", "Legacy Set", PRED_LEGACIES)
if(!legacy_choice)
return
predator_use_legacy = legacy_choice
if("pred_trans_type")
var/new_translator_type = tgui_input_list(user, "Choose your translator type.", "Translator Type", PRED_TRANSLATORS)
if(!new_translator_type)
Expand Down
3 changes: 3 additions & 0 deletions code/modules/client/preferences_savefile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
S["pred_name"] >> predator_name
S["pred_gender"] >> predator_gender
S["pred_age"] >> predator_age
S["pred_use_legacy"] >> predator_use_legacy
S["pred_trans_type"] >> predator_translator_type
S["pred_mask_type"] >> predator_mask_type
S["pred_armor_type"] >> predator_armor_type
Expand Down Expand Up @@ -233,6 +234,7 @@
predator_name = predator_name ? sanitize_text(predator_name, initial(predator_name)) : initial(predator_name)
predator_gender = sanitize_text(predator_gender, initial(predator_gender))
predator_age = sanitize_integer(predator_age, 100, 10000, initial(predator_age))
predator_use_legacy = sanitize_inlist(predator_use_legacy, PRED_LEGACIES, initial(predator_use_legacy))
predator_translator_type = sanitize_inlist(predator_translator_type, PRED_TRANSLATORS, initial(predator_translator_type))
predator_mask_type = sanitize_integer(predator_mask_type,1,1000000,initial(predator_mask_type))
predator_armor_type = sanitize_integer(predator_armor_type,1,1000000,initial(predator_armor_type))
Expand Down Expand Up @@ -339,6 +341,7 @@
S["pred_name"] << predator_name
S["pred_gender"] << predator_gender
S["pred_age"] << predator_age
S["pred_use_legacy"] << predator_use_legacy
S["pred_trans_type"] << predator_translator_type
S["pred_mask_type"] << predator_mask_type
S["pred_armor_type"] << predator_armor_type
Expand Down
44 changes: 21 additions & 23 deletions code/modules/cm_preds/yaut_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,41 +61,39 @@
fire_intensity_resistance = 10
black_market_value = 100

/obj/item/clothing/suit/armor/yautja/Initialize(mapload, armor_number = rand(1,7), armor_material = "ebony", elder_restricted = 0)
/obj/item/clothing/suit/armor/yautja/Initialize(mapload, armor_number = rand(1,7), armor_material = "ebony", legacy = "None")
. = ..()
if(thrall)
return
if(elder_restricted)
switch(armor_number)
if(1341)
name = "\improper 'Armor of the Dragon'"
flags_cold_protection = flags_armor_protection
flags_heat_protection = flags_armor_protection

if(legacy != "None")
switch(legacy)
if("dragon")
icon_state = "halfarmor_elder_tr"
LAZYSET(item_state_slots, WEAR_JACKET, "halfarmor_elder_tr")
if(7128)
name = "\improper 'Armor of the Swamp Horror'"
return
if("swamp")
icon_state = "halfarmor_elder_joshuu"
LAZYSET(item_state_slots, WEAR_JACKET, "halfarmor_elder_joshuu")
if(9867)
name = "\improper 'Armor of the Enforcer'"
return
if("enforcer")
icon_state = "halfarmor_elder_feweh"
LAZYSET(item_state_slots, WEAR_JACKET, "halfarmor_elder_feweh")
if(4879)
name = "\improper 'Armor of the Ambivalent Collector'"
return
if("collector")
icon_state = "halfarmor_elder_n"
LAZYSET(item_state_slots, WEAR_JACKET, "halfarmor_elder_n")
else
name = "clan elder's armor"
icon_state = "halfarmor_elder"
LAZYSET(item_state_slots, WEAR_JACKET, "halfarmor_elder")
else
if(armor_number > 7)
armor_number = 1
if(armor_number) //Don't change full armor number
icon_state = "halfarmor[armor_number]_[armor_material]"
LAZYSET(item_state_slots, WEAR_JACKET, "halfarmor[armor_number]_[armor_material]")
return

if(armor_number > 7)
armor_number = 1
if(armor_number) //Don't change full armor number
icon_state = "halfarmor[armor_number]_[armor_material]"
LAZYSET(item_state_slots, WEAR_JACKET, "halfarmor[armor_number]_[armor_material]")


flags_cold_protection = flags_armor_protection
flags_heat_protection = flags_armor_protection

/obj/item/clothing/suit/armor/yautja/hunter
name = "clan armor"
Expand Down
22 changes: 20 additions & 2 deletions code/modules/cm_preds/yaut_mask.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,34 @@
var/thrall = FALSE //Used to affect icon generation.


/obj/item/clothing/mask/gas/yautja/New(location, mask_number = rand(1,12), armor_material = "ebony", elder_restricted = 0)
/obj/item/clothing/mask/gas/yautja/New(location, mask_number = rand(1,12), armor_material = "ebony", legacy = "None")
..()
forceMove(location)
if(thrall)
return

if(legacy != "None")
switch(legacy)
if("Dragon")
icon_state = "pred_mask_elder_tr"
LAZYSET(item_state_slots, WEAR_FACE, "pred_mask_elder_tr")
return
if("Swamp")
icon_state = "pred_mask_elder_joshuu"
LAZYSET(item_state_slots, WEAR_FACE, "pred_mask_elder_joshuu")
return
if("Enforcer")
icon_state = "pred_mask_elder_feweh"
LAZYSET(item_state_slots, WEAR_FACE, "pred_mask_elder_feweh")
return
if("Collector")
icon_state = "pred_mask_elder_n"
LAZYSET(item_state_slots, WEAR_FACE, "pred_mask_elder_n")
return

if(mask_number > 12)
mask_number = 1
icon_state = "pred_mask[mask_number]_[armor_material]"

LAZYSET(item_state_slots, WEAR_FACE, "pred_mask[mask_number]_[armor_material]")

/obj/item/clothing/mask/gas/yautja/pickup(mob/living/user)
Expand Down
6 changes: 4 additions & 2 deletions code/modules/gear_presets/yautja.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
return //No vanity items for Yautja!

/datum/equipment_preset/yautja/load_gear(mob/living/carbon/human/new_human, client/mob_client)
var/using_legacy = "None"
var/armor_number = 1
var/boot_number = 1
var/mask_number = 1
Expand All @@ -42,6 +43,7 @@
if(!mob_client)
mob_client = new_human.client
if(mob_client?.prefs)
using_legacy = mob_client.prefs.predator_use_legacy
armor_number = mob_client.prefs.predator_armor_type
boot_number = mob_client.prefs.predator_boot_type
mask_number = mob_client.prefs.predator_mask_type
Expand All @@ -62,8 +64,8 @@
new_human.equip_to_slot_or_del(new /obj/item/storage/medicomp/full(new_human), WEAR_IN_BELT)

new_human.equip_to_slot_or_del(new /obj/item/clothing/shoes/yautja/hunter/knife(new_human, boot_number, greave_material), WEAR_FEET)
new_human.equip_to_slot_or_del(new /obj/item/clothing/suit/armor/yautja/hunter(new_human, armor_number, armor_material), WEAR_JACKET)
new_human.equip_to_slot_or_del(new /obj/item/clothing/mask/gas/yautja/hunter(new_human, mask_number, mask_material), WEAR_FACE)
new_human.equip_to_slot_or_del(new /obj/item/clothing/suit/armor/yautja/hunter(new_human, armor_number, armor_material, using_legacy), WEAR_JACKET)
new_human.equip_to_slot_or_del(new /obj/item/clothing/mask/gas/yautja/hunter(new_human, mask_number, mask_material, using_legacy), WEAR_FACE)

var/cape_path = GLOB.all_yautja_capes[cape_type]
if(ispath(cape_path))
Expand Down
4 changes: 1 addition & 3 deletions code/modules/mob/living/carbon/human/species/synthetic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

inherent_verbs = list(
/mob/living/carbon/human/synthetic/proc/toggle_HUD,
/mob/living/carbon/human/proc/toggle_inherent_nightvison,
)

/datum/species/synthetic/handle_post_spawn(mob/living/carbon/human/H)
Expand Down Expand Up @@ -88,9 +89,6 @@
knock_down_reduction = 3.5
stun_reduction = 3.5

inherent_verbs = list(
/mob/living/carbon/human/proc/toggle_inherent_nightvison,
)

/datum/species/synthetic/colonial/colonial_gen_two
name = SYNTH_COLONY_GEN_TWO
Expand Down
2 changes: 0 additions & 2 deletions code/modules/mob/new_player/sprite_accessories/undershirt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ GLOBAL_LIST_INIT_TYPED(undershirt_f, /datum/sprite_accessory/undershirt, setup_u
selected_icon_state = "d_" + selected_icon_state
if("snow")
selected_icon_state = "s_" + selected_icon_state
if("urban")
selected_icon_state = "u_" + selected_icon_state

if(gender == PLURAL)
selected_icon_state += mob_gender == MALE ? "_m" : "_f"
Expand Down
2 changes: 0 additions & 2 deletions code/modules/mob/new_player/sprite_accessories/underwear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ GLOBAL_LIST_INIT_TYPED(underwear_f, /datum/sprite_accessory/underwear, setup_und
selected_icon_state = "d_" + selected_icon_state
if("snow")
selected_icon_state = "s_" + selected_icon_state
if("urban")
selected_icon_state = "u_" + selected_icon_state
if(gender == PLURAL)
selected_icon_state += mob_gender == MALE ? "_m" : "_f"
return image(icon, selected_icon_state)
Expand Down
12 changes: 0 additions & 12 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,6 @@ Defined in conflicts.dm of the #defines folder.
attach_icon = new_attach_icon ? new_attach_icon : "d_" + attach_icon
if("classic")
attach_icon = new_attach_icon ? new_attach_icon : "c_" + attach_icon
if("jungle")
attach_icon = new_attach_icon ? new_attach_icon : "j_" + attach_icon
if("urban")
attach_icon = new_attach_icon ? new_attach_icon : "u_" + attach_icon

/obj/item/attachable/scope
name = "S8 4x telescopic scope"
Expand Down Expand Up @@ -1721,10 +1717,6 @@ Defined in conflicts.dm of the #defines folder.
attach_icon = new_attach_icon ? new_attach_icon : "d_" + attach_icon
if("classic")
attach_icon = new_attach_icon ? new_attach_icon : "c_" + attach_icon
if("jungle")
attach_icon = new_attach_icon ? new_attach_icon : "j_" + attach_icon
if("urban")
attach_icon = new_attach_icon ? new_attach_icon : "u_" + attach_icon

/obj/item/attachable/m4ra_barrel_custom
name = "custom M4RA barrel"
Expand All @@ -1751,10 +1743,6 @@ Defined in conflicts.dm of the #defines folder.
attach_icon = new_attach_icon ? new_attach_icon : "d_" + attach_icon
if("classic")
attach_icon = new_attach_icon ? new_attach_icon : "c_" + attach_icon
if("jungle")
attach_icon = new_attach_icon ? new_attach_icon : "j_" + attach_icon
if("urban")
attach_icon = new_attach_icon ? new_attach_icon : "u_" + attach_icon

/obj/item/attachable/upp_rpg_breech
name = "HJRA-12 Breech"
Expand Down
6 changes: 0 additions & 6 deletions html/changelogs/AutoChangeLog-pr-4160.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-4295.yml

This file was deleted.

23 changes: 23 additions & 0 deletions html/changelogs/archive/2023-09.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,26 @@
- maptweak: Hidden floor safe in LV-624 is now positioned correctly.
harryob:
- rscdel: removed the hallucinating ghost notification
2023-09-02:
BeagleGaming1:
- code_imp: changed camouflage from map definitions to JSON
realforest2001:
- rscadd: Added a Provost radio & channel.
- qol: Changed High Command radio to have most channels off by default.
- rscdel: Removed ignore_z from High Command radios.
2023-09-03:
Katskan:
- balance: Merged vision toggle options between ship and colony synthetic types.
- balance: Removed 15 points from WY experimental tool vendor coin redemption
Morrow:
- bugfix: Fixed most of the camo items being clown gear
realforest2001:
- rscadd: Added a preference for using the old legacy yautja armor, only accessible
to the people who had the special gear.
- bugfix: Fixed the old Yautja Legacy armor selection code. Removed the unique titles
from the legacy gear however.
- imageadd: Changed the Yautja relay beacon sprite to a newer unused sprite. Changed
iconstate name of health scanner for preds from tracker to scanner.
- imageadd: Moved some of the used sprites out of the unused category in pred_gear.dmi.
- imagedel: Deleted old relay beacon sprite, deleted duplicate plasma pistol and
thwei sprites.
Binary file modified icons/obj/items/hunter/pred_gear.dmi
Binary file not shown.
2 changes: 1 addition & 1 deletion interface/interface.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
set name = "Set FPS"
set desc = "Set client FPS. 20 is the default"
set category = "Preferences"
var/fps = tgui_input_number(usr,"New FPS Value. 0 is server-sync. Higher values cause more desync. Values over 30 not recommended.","Set FPS", 0, MAX_FPS, MIN_FPS)
var/fps = tgui_input_number(usr,"New FPS Value. 0 is server-sync. Higher values cause more desync.","Set FPS", 0, MAX_FPS, MIN_FPS)
if(world.byond_version >= 511 && byond_version >= 511 && fps >= MIN_FPS && fps <= MAX_FPS)
vars["fps"] = fps
prefs.fps = fps
Expand Down

0 comments on commit 888e09a

Please sign in to comment.