Skip to content

Commit 65f3eb5

Browse files
Merge branch 'master' into special-fran
2 parents f929a96 + d879766 commit 65f3eb5

72 files changed

Lines changed: 365 additions & 219 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

code/__DEFINES/~darkpack/guestbook.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
#define GUESTBOOK_DEPARTMENT (1 << 2)
88
/// We will not be known by others, even if they pass checks in any way otherwise
99
#define GUESTBOOK_FORGETMENOT (1 << 3)
10+
11+
#define GET_GUESTBOOK_NAME(mob, guest) (mob?.mind?.guestbook?.get_known_name(mob, guest) ? mob?.mind?.guestbook?.get_known_name(mob, guest) : guest.name)

code/controllers/subsystem/persistence/_persistence.dm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ SUBSYSTEM_DEF(persistence)
9494
for(var/datum/transport_controller/linear/tram/transport as anything in SStransport.transports_by_type[TRANSPORT_TYPE_TRAM])
9595
save_tram_history(transport.specific_transport_id)
9696
save_tram_counter()
97-
save_guestbooks() // DARKPACK EDIT ADD
98-
9997

10098
///Loads up Poly's speech buffer.
10199
/datum/controller/subsystem/persistence/proc/load_poly()

code/controllers/subsystem/ticker.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ SUBSYSTEM_DEF(ticker)
377377

378378
iter_human.increment_scar_slot()
379379
iter_human.load_persistent_scars()
380+
iter_human.load_guestbook() // DARKPACK EDIT ADDITION
380381

381382
if(!iter_human.hardcore_survival_score)
382383
continue

code/datums/emotes.dm

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,22 @@
149149
runechat_flags = EMOTE_MESSAGE,
150150
)
151151
else if(is_important)
152-
to_chat(viewer, span_emote("<b>[user]</b>[space][msg]"))
152+
to_chat(viewer, span_emote("<b>[GET_GUESTBOOK_NAME(viewer, user)]</b>[space][msg]")) // DARKPACK EDIT, ORIGINAL: to_chat(viewer, span_emote("<b>[user]</b> [msg]"))
153153
else if(is_audible && is_visual)
154154
viewer.show_message(
155-
span_emote("<b>[user]</b>[space][msg]"), MSG_AUDIBLE,
156-
span_emote("You see how <b>[user]</b>[space][msg]"), MSG_VISUAL,
155+
span_emote("<b>[GET_GUESTBOOK_NAME(viewer, user)]</b>[space][msg]"), MSG_AUDIBLE, // DARKPACK EDIT, ORIGINAL: span_emote("<b>[user]</b> [msg]"), MSG_AUDIBLE,
156+
span_emote("You see how <b>[GET_GUESTBOOK_NAME(viewer, user)]</b>[space][msg]"), MSG_VISUAL, // DARKPACK EDIT, ORIGINAL: span_emote("You see how <b>[user]</b> [msg]"), MSG_VISUAL,
157157
)
158158
else if(is_audible)
159-
viewer.show_message(span_emote("<b>[user]</b>[space][msg]"), MSG_AUDIBLE)
159+
viewer.show_message(span_emote("<b>[GET_GUESTBOOK_NAME(viewer, user)]</b>[space][msg]"), MSG_AUDIBLE) // DARKPACK EDIT, ORIGINAL: viewer.show_message(span_emote("<b>[user]</b> [msg]"), MSG_AUDIBLE)
160160
else if(is_visual)
161-
viewer.show_message(span_emote("<b>[user]</b>[space][msg]"), MSG_VISUAL)
161+
viewer.show_message(span_emote("<b>[GET_GUESTBOOK_NAME(viewer, user)]</b>[space][msg]"), MSG_VISUAL) // DARKPACK EDIT, ORIGINAL: viewer.show_message(span_emote("<b>[user]</b> [msg]"), MSG_VISUAL)
162162
return // Early exit so no dchat message
163163

164164
// The emote has some important information, and should always be shown to the user
165165
else if(is_important)
166166
for(var/mob/viewer as anything in viewers(user))
167-
to_chat(viewer, span_emote("<b>[user]</b>[space][msg]"))
167+
to_chat(viewer, span_emote("<b>[GET_GUESTBOOK_NAME(viewer, user)]</b>[space][msg]")) // DARKPACK EDIT, ORIGINAL: to_chat(viewer, span_emote("<b>[user]</b>[space][msg]"))
168168
if(user.runechat_prefs_check(viewer, EMOTE_MESSAGE))
169169
viewer.create_chat_message(
170170
speaker = user,
@@ -198,12 +198,13 @@
198198
CRASH("Emote [type] has no valid emote type set!")
199199

200200
if(!isnull(user.client))
201-
var/dchatmsg = "<b>[user]</b>[space][msg]"
201+
// var/dchatmsg = "<b>[user]</b>[space][msg]" // DARKPACK EDIT REMOVAL
202202
for(var/mob/ghost as anything in GLOB.dead_mob_list - viewers(get_turf(user)))
203203
if(isnull(ghost.client) || isnewplayer(ghost))
204204
continue
205205
if(!(get_chat_toggles(ghost.client) & CHAT_GHOSTSIGHT))
206206
continue
207+
var/dchatmsg = "<b>[GET_GUESTBOOK_NAME(ghost, user)]</b>[space][msg]" // DARKPACK EDIT ADDITION
207208
to_chat(ghost, span_emote("[FOLLOW_LINK(ghost, user)][space][dchatmsg]"))
208209
// DARKPACK EDIT CHANGE END
209210

code/game/objects/items/storage/boxes/fishing_boxes.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
icon_state = "plasticbox"
4747
foldable_result = null
4848
illustration = "fish"
49-
custom_price = PAYCHECK_CREW * 9
49+
custom_price = 120 // DARKPACK EDIT CHANGE - ECONOMY
5050
storage_type = /datum/storage/box/fishing_lures
5151

5252
/obj/item/storage/box/fishing_lures/PopulateContents()

code/game/say.dm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,12 @@ GLOBAL_LIST_INIT(freqtospan, list(
168168
if(ismob(src) && ishuman(reliable_narrator) && (namepart != "Unknown"))
169169
var/mob/receiver_mob = src
170170
if(receiver_mob.mind?.guestbook)
171-
var/mob/living/carbon/human/speaker_human = reliable_narrator
172-
var/known_name = receiver_mob.mind.guestbook.get_known_name(src, reliable_narrator, speaker_human.real_name)
171+
var/known_name = GET_GUESTBOOK_NAME(receiver_mob, reliable_narrator)
173172
if(known_name)
174173
namepart = "[known_name]"
175174
else
176-
var/mob/living/carbon/human/human_narrator = reliable_narrator
177-
namepart = "[human_narrator.get_generic_name(prefixed = TRUE, lowercase = TRUE)]"
175+
var/mob/living/living_narrator = reliable_narrator
176+
namepart = "[living_narrator.get_generic_name(prefixed = TRUE, lowercase = TRUE)]"
178177

179178
if(text2num(radio_freq) >= USABLE_RADIO_FREQUENCY_FOR_PHONE_RANGE)
180179
var/icon/phone_icon = icon('modular_darkpack/modules/phones/icons/chat_icon.dmi', "phone")

code/modules/client/preferences/names.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
/datum/preference/name/real_name/apply_to_human(mob/living/carbon/human/target, value)
4848
target.real_name = value
49-
target.name = value
49+
target.update_visible_name() // DARKPACK EDIT, ORIGINAL: target.name = value
5050
target.log_mob_tag("TAG: [target.tag] RENAMED: [key_name(target)]")
5151

5252
/datum/preference/name/real_name/create_informed_default_value(datum/preferences/preferences)

code/modules/fishing/bait.dm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,20 @@
4949
name = "can o' worm"
5050
desc = "This can got worms."
5151
bait_type = /obj/item/food/bait/worm
52+
custom_price = 12 // DARKPACK EDIT ADD - ECONOMY
5253

5354
/obj/item/bait_can/worm/premium
5455
name = "can o' worm deluxe"
5556
desc = "This can got fancy worms."
5657
bait_type = /obj/item/food/bait/worm/premium
58+
custom_price = 20 // DARKPACK EDIT ADD - ECONOMY
5759

5860
/obj/item/bait_can/super_baits
5961
name = "can o' super-baits"
6062
desc = "This can got the nectar of god."
6163
bait_type = /obj/item/food/bait/doughball/synthetic/super
6264
uses_left = 12
65+
custom_price = 30 // DARKPACK EDIT ADD - ECONOMY
6366

6467
/obj/item/fishing_lure
6568
name = "fishing lure"
@@ -72,6 +75,7 @@
7275
* This is passed down to the fishing rod, and then to the lure during the minigame.
7376
*/
7477
var/spin_frequency = list(2 SECONDS, 3 SECONDS)
78+
custom_price = 10 // DARKPACK EDIT ADD - ECONOMY
7579

7680
/obj/item/fishing_lure/Initialize(mapload)
7781
. = ..()

code/modules/fishing/fishing_equipment.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
wiki_desc = "Automatically starts the minigame and helps guide the bait a little. It also spin fishing lures for you without need of an input. \
9696
It can also be used to snag in objects from a distance and throw them in your direction.<br>\
9797
<b>It requires the Advanced Fishing Technology Node to be researched to be printed.</b>"
98+
custom_price = 60
9899

99100
/obj/item/fishing_line/auto_reel/Initialize(mapload)
100101
. = ..()

code/modules/mob/dead/new_player/new_player.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@
250250

251251
humanc.increment_scar_slot()
252252
humanc.load_persistent_scars()
253+
humanc.load_guestbook() // DARKPACK EDIT ADDITION
253254

254255
if(GLOB.curse_of_madness_triggered)
255256
give_madness(humanc, GLOB.curse_of_madness_triggered)

0 commit comments

Comments
 (0)