Skip to content

Commit

Permalink
Mass Changes: Part 3b
Browse files Browse the repository at this point in the history
  • Loading branch information
BurgerLUA committed Oct 7, 2024
1 parent 14b3da7 commit 1f4e1ac
Show file tree
Hide file tree
Showing 203 changed files with 855 additions and 242 deletions.
2 changes: 1 addition & 1 deletion burgerstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1707,12 +1707,12 @@
#include "code\_core\obj\item\material\ingot.dm"
#include "code\_core\obj\item\material\ore.dm"
#include "code\_core\obj\item\material\pellets.dm"
#include "code\_core\obj\item\material\plank.dm"
#include "code\_core\obj\item\material\rod.dm"
#include "code\_core\obj\item\material\shard.dm"
#include "code\_core\obj\item\material\sheet.dm"
#include "code\_core\obj\item\material\sheet_types.dm"
#include "code\_core\obj\item\material\trash_cube.dm"
#include "code\_core\obj\item\material\wood.dm"
#include "code\_core\obj\item\organs\_organs.dm"
#include "code\_core\obj\item\organs\antennae.dm"
#include "code\_core\obj\item\organs\arms.dm"
Expand Down
2 changes: 1 addition & 1 deletion code/__defines/soul.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#define SOUL_SIZE_UNCOMMON 2500
#define SOUL_SIZE_RARE 5000
#define SOUL_SIZE_MYSTIC 10000
#define SOUL_SIZE_GODLY 30000
#define SOUL_SIZE_GODLY 20000
66 changes: 63 additions & 3 deletions code/_core/client/verbs/debug.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ var/global/static/list/debug_verbs = list(
/client/verb/debug_lighting,
/client/verb/complete_all_objectives,
/client/verb/get_far_viewers,
/client/verb/get_active_ais_not_in_player_range
/client/verb/get_active_ais_not_in_player_range,
/client/verb/check_value_of_loadouts,
/client/verb/check_unobtainable_items
)


Expand Down Expand Up @@ -469,7 +471,7 @@ var/global/static/list/destroy_everything_whitelist = list(

for(var/k in subtypesof(/obj/item/weapon/ranged))
var/obj/item/weapon/ranged/R = k
if(initial(R.value) <= 0)
if(initial(R.value) < 0)
continue
R = new R(T)
INITIALIZE(R)
Expand Down Expand Up @@ -793,4 +795,62 @@ var/global/static/list/destroy_everything_whitelist = list(

final_text = "<h1>Found [bad_ais] AIs away from players.</h1>[final_text]"

src << browse("<head><style>[STYLESHEET]</style></head><body>[final_text ? final_text : "No Bad AIs found. Yay!"]</body>","window=garbage")
src << browse("<head><style>[STYLESHEET]</style></head><body>[final_text ? final_text : "No Bad AIs found. Yay!"]</body>","window=garbage")



/client/verb/check_value_of_loadouts()

set name = "Check Value of Loadouts"
set category = "Debug"

var/list/mob_to_value = list()

for(var/k in subtypesof(/mob/living/advanced/))
var/mob/living/advanced/A = k
var/loadout/L = initial(A.loadout)
if(!L)
continue
L = SSloadouts.all_loadouts[L]
if(!L)
continue

var/total_value = 0
for(var/j in L.get_spawning_items())
if(ispath(j,/loot/))
var/loot/spawning_loot = LOOT(j)
total_value += spawning_loot.average_value
else
var/obj/item/I = j
var/value = SSbalance.stored_value[I]
if(value)
total_value += value
else


mob_to_value[A] = total_value


sort_tim(mob_to_value,/proc/cmp_numeric_dsc,associative=TRUE)

var/final_list = ""

for(var/k in mob_to_value)
var/v = mob_to_value[k]
final_list += "[k]: [v]cr<br>"

src << browse("<head><style>[STYLESHEET]</style></head><body>[final_list]</body>","window=loadoutvalue")


/client/verb/check_unobtainable_items()

set name = "Check Unobtainable Items"
set category = "Debug"

var/final_list = ""

for(var/k in SSloot.unobtainable_items)
var/v = SSloot.unobtainable_items[k]
final_list += "[k]: [v]cr<br>"

src << browse("<head><style>[STYLESHEET]</style></head><body>[final_list]</body>","window=loadoutvalue")
2 changes: 1 addition & 1 deletion code/_core/datum/loadout/assistant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/obj/item/clothing/feet/shoes/colored/black,
/obj/item/clothing/feet/shoes/colored/black/left,
/obj/item/clothing/back/storage/satchel/loadout/new_player,
/obj/item/clothing/ears/headset,
/obj/item/clothing/ears/headset/nanotrasen,
/obj/item/weapon/melee/toolbox/blue
)

Expand Down
22 changes: 12 additions & 10 deletions code/_core/datum/loadout/blood_fiend.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,9 @@
/loot/rings/major,
/loot/rings/horseman,

/obj/item/storage/pouch/single/black,
/obj/item/storage/pouch/triple/black,

/obj/item/weapon/ranged/bullet/revolver/fiendish,
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},

)

var/list/possible_weapons = list(
Expand All @@ -39,9 +31,19 @@
/obj/item/weapon/melee/sword/cblade
)

var/list/thegun = list(
/obj/item/weapon/ranged/bullet/revolver/fiendish,
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},
/obj/item/bullet_cartridge/pistol_45{amount=6},
)

/loadout/blood_fiend/get_spawning_items()

. = ..()

if(length(possible_weapons))
. += pickweight(possible_weapons)
. += pickweight(possible_weapons)

if(length(thegun))
. += thegun
5 changes: 3 additions & 2 deletions code/_core/datum/loadout/gopro.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
/obj/item/clothing/overwear/coat/vest/poly/pockets_only,

/obj/item/storage/pouch/triple/black,
/obj/item/storage/pouch/triple/black,
/obj/item/storage/pouch/single/black,

/obj/item/clothing/belt/storage/colored/black,

/obj/item/weapon/melee/slaughterclaws,
/obj/item/weapon/ranged/bullet/revolver/big_game,
/obj/item/weapon/melee/slaughterclaws,

/obj/item/bullet_cartridge/revolver_300{amount=5},
/obj/item/bullet_cartridge/revolver_300{amount=5},
/obj/item/bullet_cartridge/revolver_300{amount=5},
Expand Down
2 changes: 1 addition & 1 deletion code/_core/datum/loadout/hos.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/loadout/hos
spawning_items = list(
/obj/item/clothing/ears/headset,
/obj/item/clothing/ears/headset/nanotrasen,

/obj/item/clothing/feet/shoes/black_boots,
/obj/item/clothing/feet/shoes/black_boots/left,
Expand Down
5 changes: 2 additions & 3 deletions code/_core/datum/loadout/nanotasen/cargo_tech.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
/obj/item/clothing/neck/tie/red,
/obj/item/clothing/belt/storage/colored/brown,
/obj/item/storage/pouch/triple/brown,
/obj/item/storage/pouch/triple/brown,
/obj/item/weapon/melee/baton,
/obj/item/storage/pouch/single/brown,
/obj/item/weapon/ranged/bullet/magazine/rifle/ak47,
/obj/item/magazine/rifle_762_short,
/obj/item/weapon/melee/baton,
/obj/item/magazine/rifle_762_short,
/obj/item/magazine/rifle_762_short,
/obj/item/magazine/rifle_762_short,
Expand Down
2 changes: 1 addition & 1 deletion code/_core/datum/loadout/nanotasen/head/cmo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

spawning_items = list(

/obj/item/clothing/ears/headset,
/obj/item/clothing/ears/headset/nanotrasen/medical,

/obj/item/clothing/shirt/normal/medical,
/obj/item/clothing/pants/normal/medical,
Expand Down
4 changes: 2 additions & 2 deletions code/_core/datum/loadout/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/obj/item/clothing/feet/shoes/colored/black,
/obj/item/clothing/feet/shoes/colored/black/left,
/obj/item/clothing/back/storage/satchel/loadout/new_player,
/obj/item/clothing/ears/headset
/obj/item/clothing/ears/headset/nanotrasen
)

/loadout/new_player/female
Expand All @@ -23,5 +23,5 @@
/obj/item/clothing/feet/shoes/colored/black,
/obj/item/clothing/feet/shoes/colored/black/left,
/obj/item/clothing/back/storage/satchel/loadout/new_player,
/obj/item/clothing/ears/headset
/obj/item/clothing/ears/headset/nanotrasen
)
2 changes: 1 addition & 1 deletion code/_core/datum/loot/random.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
for(var/k in get_base_types())
var/obj/item/I = k
var/value = SSbalance.stored_value[k]
if(value <= 0)
if(!value || value <= 0)
continue
if(value < value_min)
continue
Expand Down
12 changes: 11 additions & 1 deletion code/_core/obj/item/_item.dm
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@

density = TRUE

value = 0
value = -1

allow_path = TRUE

Expand Down Expand Up @@ -234,6 +234,12 @@
/obj/item/Cross(atom/movable/O,atom/oldloc)
return TRUE

/obj/item/New(var/desired_loc)
. = ..()
if(value <= -1)
log_error("Warning: [src.type] had a value of [value], but it was still able to be spawned!")
value = 0

/obj/item/Finalize()

. = ..()
Expand All @@ -247,6 +253,10 @@
if(is_turf(loc))
layer = initial(layer) + clamp(value / 10000,0,0.999)

if(value <= -1)
log_error("Warning: [src.type] had a value of [value], but it was still able to be spawned!")
value = 0

/obj/item/get_base_value()
. = initial(value) * amount
if(quality != -1)
Expand Down
2 changes: 0 additions & 2 deletions code/_core/obj/item/ability_learner/_ability_learner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

var/ability/stored_ability

value = 0

/obj/item/ability_learner/Finalize()
. = ..()
if(!stored_ability)
Expand Down
3 changes: 2 additions & 1 deletion code/_core/obj/item/attachment/attachment_sight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,5 @@
)

/obj/item/attachment/sight/m4
icon_state = "m4sight"
icon_state = "m4sight"
value = 1
1 change: 1 addition & 0 deletions code/_core/obj/item/ball.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
desc = "Also known as a football."
desc_extended = "You kick this. I guess you can throw this too."
icon_state = "soccer"
value = 10

/obj/item/ball/soccer/get_examine_list(var/mob/examiner)
. = ..()
Expand Down
4 changes: 4 additions & 0 deletions code/_core/obj/item/bank_storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

queue_delete_immune = TRUE

value = 0

can_save = FALSE

/obj/item/bank_storage/is_safe_to_delete(var/check_loc = TRUE)
return FALSE

Expand Down
3 changes: 2 additions & 1 deletion code/_core/obj/item/bullet/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@

penetrations = 1

/obj/item/bullet_cartridge/pistol_45holy/
/obj/item/bullet_cartridge/pistol_45holy
name = "\improper Holy .45 pistol cartridge"
desc = "Joshua Graham style."
desc_extended = "For pistols and smgs that require holy .45 ammo."
Expand All @@ -380,6 +380,7 @@

bullet_diameter = 11.77
bullet_length = 24

bullet_color = COLOR_SILVER

projectile = /obj/projectile/bullet/firearm/smg
Expand Down
2 changes: 1 addition & 1 deletion code/_core/obj/item/clothing/_clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

can_wear = TRUE

value = 0


var/speed_bonus = 0

Expand Down
2 changes: 1 addition & 1 deletion code/_core/obj/item/clothing/belt/bandolier.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
dyeable = TRUE


value = 0
value = -1
size = SIZE_3

var/list/stored_shells = list()
Expand Down
24 changes: 22 additions & 2 deletions code/_core/obj/item/clothing/ears/headsets.dm
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/obj/item/clothing/ears/headset
name = "nanotrasen headset"
name = "generic headset"
desc = "; HELP MAINT!"
desc_extended = "A headset for communicating with your fellows."
icon = 'icons/obj/item/clothing/ears/headset.dmi'

var/obj/item/device/radio/stored_radio = /obj/item/device/radio/headset/nanotrasen
var/obj/item/device/radio/stored_radio = /obj/item/device/radio/headset

value = 1

/obj/item/clothing/ears/headset/get_examine_list(var/mob/examiner)
. = ..()
Expand Down Expand Up @@ -50,6 +52,8 @@

contraband = TRUE

value = 1

/obj/item/clothing/ears/headset/mercenary
name = "mercenary headset"
desc = "; Kept you waiting, huh?"
Expand All @@ -58,6 +62,9 @@

contraband = TRUE

value = 1


/obj/item/clothing/ears/headset/revolutionary
name = "revolutionary headset"
desc = "; FOR THE REVOLUTION!"
Expand All @@ -66,12 +73,19 @@

contraband = TRUE

value = 1

/obj/item/clothing/ears/headset/nanotrasen
stored_radio = /obj/item/device/radio/headset/nanotrasen
value = 1

/obj/item/clothing/ears/headset/nanotrasen/medical
name = "nanotrasen medical headset"
desc = "; TURN ON SUIT SENSORS!"
icon = 'icons/obj/item/clothing/ears/medical_headset.dmi'
stored_radio = /obj/item/device/radio/headset/nanotrasen/medical


/obj/item/clothing/ears/headset/nanotrasen/cat
name = "\improper cat ear headset"
icon = 'icons/obj/item/clothing/hats/cat.dmi'
Expand All @@ -91,3 +105,9 @@
worn_layer = LAYER_MOB_CLOTHING_HELMET + 0.01

rarity = RARITY_UNCOMMON

value = 1

/obj/item/clothing/ears/headset/nanotrasen/cat/get_base_value()
. = ..()
. += 5000
Loading

0 comments on commit 1f4e1ac

Please sign in to comment.