Skip to content

Commit

Permalink
Merge upstream 06.11.24 (#652)
Browse files Browse the repository at this point in the history
## About The Pull Request
Там какой-то фиксик
  • Loading branch information
larentoun authored Nov 5, 2024
2 parents 34963c6 + cb01ecc commit 8163333
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions code/modules/admin/sql_message_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
INSERT INTO [format_table_name("messages")] (type, targetckey, adminckey, text, timestamp, server, server_ip, server_port, round_id, secret, expire_timestamp, severity, playtime)
VALUES (:type, :target_ckey, :admin_ckey, :text, [timestamp? ":timestamp" : "Now()"], :server, INET_ATON(:internet_address), :port, :round_id, :secret, :expiry, :note_severity, (SELECT `minutes` FROM [format_table_name("role_time")] WHERE `ckey` = :target_ckey AND `job` = 'Living'))
"}, parameters)
var/pm = "[key_name(usr)] has created a [type][(type == "note" || type == "message" || type == "watchlist entry") ? " for [target_key]" : ""]: [text]"
var/header = "[key_name_admin(usr)] has created a [type][(type == "note" || type == "message" || type == "watchlist entry") ? " for [target_key]" : ""]"
var/pm = "[key_name(usr)] has created a [secret ? "secret " : ""][type][(type == "note" || type == "message" || type == "watchlist entry") ? " for [target_key]" : ""]: [text]"
var/header = "[key_name_admin(usr)] has created a [secret ? "secret " : ""][type][(type == "note" || type == "message" || type == "watchlist entry") ? " for [target_key]" : ""]"
if(!query_create_message.warn_execute())
qdel(query_create_message)
return
Expand Down
9 changes: 6 additions & 3 deletions code/modules/mod/mod_activation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@
wearer.update_obscured_slots(part.visor_flags_inv)
if((part.clothing_flags & (MASKINTERNALS|HEADINTERNALS)) && wearer.invalid_internals())
wearer.cutoff_internals()
if(!active)
return
if(is_sealed)
if (!active)
return
for(var/obj/item/mod/module/module as anything in modules)
if(module.part_activated || !module.has_required_parts(mod_parts, need_active = TRUE))
continue
Expand Down Expand Up @@ -293,10 +293,13 @@
module.part_activated = TRUE
else
for(var/obj/item/mod/module/module as anything in modules)
if(!module.part_activated || module.has_required_parts(mod_parts, need_active = TRUE))
if(!module.part_activated)
continue
module.on_part_deactivation()
module.part_activated = FALSE
if(!module.active || (module.allow_flags & MODULE_ALLOW_INACTIVE))
continue
module.deactivate(display_message = FALSE)
update_speed()
update_charge_alert()
update_appearance(UPDATE_ICON_STATE)
Expand Down
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-87522.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "Shadow-Quill"
delete-after: True
changes:
- admin: "When a secret note is applied, it'll now be logged as a secret note (instead of appearing like a regular note)."
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-87649.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "SmArtKar"
delete-after: True
changes:
- bugfix: "Fixed MODsuit deactivation not disabling modules"

0 comments on commit 8163333

Please sign in to comment.