mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
## About The Pull Request Re-adds nanites, balance changes pending. No plans to do mapping/role changes Based on https://github.com/tgstation/tgstation/pull/60473 with a lot of work on modularizing ## Why It's Good For The Game Nanites are a rather interesting system, my hope is to port it in a more balanced format. ## Proof Of Testing Works, thoroughly tested ## Changelog 🆑 add: Re-adds nanites /🆑 TODO: - [x] Add techweb linking for nanites - [x] Prevent stacking of armor mods (fortitude + dna vault + nanite armor) - [x] Rebalance damage regeneration programs - [x] Remove force speak program by @StrangeWeirdKitten request - [x] Convert UI's to TSX - [x] Fix Nanite program uhb and programmer overlays not working --------- Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com>
28 lines
688 B
Plaintext
28 lines
688 B
Plaintext
/datum/nanite_extra_setting/boolean
|
|
setting_type = NESTYPE_BOOLEAN
|
|
var/true_text
|
|
var/false_text
|
|
|
|
/datum/nanite_extra_setting/boolean/New(initial, true_text, false_text)
|
|
value = initial
|
|
src.true_text = true_text
|
|
src.false_text = false_text
|
|
|
|
/datum/nanite_extra_setting/boolean/set_value(value)
|
|
if(isnull(value))
|
|
src.value = !src.value
|
|
return
|
|
. = ..()
|
|
|
|
/datum/nanite_extra_setting/boolean/get_copy()
|
|
return new /datum/nanite_extra_setting/boolean(value, true_text, false_text)
|
|
|
|
/datum/nanite_extra_setting/boolean/get_frontend_list(name)
|
|
return list(list(
|
|
"name" = name,
|
|
"type" = setting_type,
|
|
"value" = value,
|
|
"true_text" = true_text,
|
|
"false_text" = false_text
|
|
))
|