mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
Readds Sent from my PDA Sent from my PDA (#94302)
## About The Pull Request PDA messages once again have a chance to say Sent from my PDA Sent from my PDA In the past it was a flat 1% chance going up to 25% chance if you were over 30. But now I scaled it directly based on age (so the chance can always go up) Sent from my PDA ## Why It's Good For The Game I consider this a critical feature Sent from my PDA ## Changelog 🆑 Melbert add: Readds Sent from my PDA Sent from my PDA /🆑
This commit is contained in:
@@ -598,6 +598,13 @@
|
||||
for(var/datum/computer_file/program/messenger/messenger as anything in targets)
|
||||
stringified_targets += get_messenger_name(messenger)
|
||||
|
||||
var/sent_prob = 0
|
||||
if(ishuman(source))
|
||||
var/mob/living/carbon/human/oldie = source
|
||||
sent_prob = (0.025 * oldie.age) ** 3 // 25 y/o = ~0.25% chance, 85 y/o = ~10% chance
|
||||
if (computer && prob(sent_prob))
|
||||
message = "[message] [computer.get_messenger_ending()]"
|
||||
|
||||
var/datum/signal/subspace/messaging/tablet_message/signal = new(computer, list(
|
||||
"ref" = REF(src),
|
||||
"message" = message,
|
||||
|
||||
Reference in New Issue
Block a user