Skip to content

Commit

Permalink
[MIRROR] Randomize NTNet IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbotkin authored and SuhEugene committed Jan 23, 2024
1 parent 6f464af commit ad96d1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/modules/modular_computers/hardware/network_card.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var/global/ntnet_card_uid = 1

/obj/item/stock_parts/computer/network_card
name = "basic NTNet network card"
desc = "A basic network card for usage with standard NTNet frequencies."
Expand Down Expand Up @@ -53,8 +51,7 @@ var/global/ntnet_card_uid = 1

/obj/item/stock_parts/computer/network_card/Initialize()
. = ..()
identification_id = ntnet_card_uid
ntnet_card_uid++
identification_id = random_id("network_card_id", 1, 999)

/obj/item/stock_parts/computer/network_card/Destroy()
ntnet_global.unregister(identification_id)
Expand Down

0 comments on commit ad96d1a

Please sign in to comment.