Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Xander3359 committed Apr 23, 2024
2 parents 01d3e1f + c0eb853 commit 43b9c20
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/datums/gamemodes/_game_mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,15 @@ GLOBAL_LIST_INIT(bioscan_locations, list(
parts += "[GLOB.round_statistics.points_from_mining] requisitions points gained from mining."
if(GLOB.round_statistics.points_from_research)
parts += "[GLOB.round_statistics.points_from_research] requisitions points gained from research."

if(GLOB.round_statistics.sandevistan_uses)
var/sandevistan_text = "[GLOB.round_statistics.sandevistan_uses] number of times someone was boosted by a sandevistan"
if(GLOB.round_statistics.sandevistan_gibs)
sandevistan_text += ", of which [GLOB.round_statistics.sandevistan_gibs] resulted in a gib!"
else
sandevistan_text += ", and nobody was gibbed by it!"
parts += sandevistan_text

if(length(GLOB.round_statistics.req_items_produced))
parts += "" // make it special from other stats above
parts += "Requisitions produced: "
Expand Down
2 changes: 2 additions & 0 deletions code/datums/round_statistics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ GLOBAL_DATUM_INIT(round_statistics, /datum/round_statistics, new)
var/psy_lances = 0
var/psy_shields = 0
var/psy_shield_blasts = 0
var/sandevistan_uses = 0
var/sandevistan_gibs = 0
2 changes: 2 additions & 0 deletions code/game/objects/items/implants/sandevistan.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
implant_owner.adjustFireLoss(2)
if(5.1 SECONDS to INFINITY)//no infinite abuse
to_chat(implant_owner, span_userdanger("You feel a slight sense of shame as your brain and spine rip themselves apart from overexertion."))
GLOB.round_statistics.sandevistan_gibs++
implant_owner.gib()
return

Expand Down Expand Up @@ -111,6 +112,7 @@
implant_owner.adjust_mob_scatter(scatter_mod)
implant_owner.adjust_mob_accuracy(accuracy_mod)
START_PROCESSING(SSfastprocess, src)
GLOB.round_statistics.sandevistan_uses++
else
playsound(implant_owner, 'sound/effects/spinal_implant_off.ogg', 70)
implant_owner.next_move_modifier += action_modifier
Expand Down
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-15692.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "SandPoot"
delete-after: True
changes:
- qol: "Game will now tally up how many times people used Sandevistans (as well as how many died to it)."

0 comments on commit 43b9c20

Please sign in to comment.