Skip to content

Commit

Permalink
uses definde strings
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuhuuuu committed Aug 20, 2024
1 parent 0d39aa0 commit 8e1a08e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions code/game/machinery/vending/vendor_types/crew/vehicle_crew.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
available_points_to_display = 0

vend_flags = VEND_CLUTTER_PROTECTION|VEND_CATEGORY_CHECK|VEND_TO_HAND|VEND_USE_VENDOR_FLAGS
var/faction = "USCM"
var/faction = FACTION_MARINE
var/datum/controller/supply/linked_supply_controller

/obj/structure/machinery/cm_vending/gear/vehicle_crew/Initialize(mapload, ...)
. = ..()
switch(faction)
if("USCM")
if(FACTION_MARINE)
linked_supply_controller = GLOB.supply_controller
if("UPP")
if(FACTION_UPP)
linked_supply_controller = GLOB.supply_controller_upp
else
linked_supply_controller = GLOB.supply_controller //we default to normal budget on wrong input
Expand Down
6 changes: 3 additions & 3 deletions code/game/supplyshuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
var/last_viewed_group = "categories"
var/first_time = TRUE
var/datum/controller/supply/linked_supply_controller
var/faction = "USCM"
var/faction = FACTION_MARINE

/obj/structure/machinery/computer/supplycomp/Initialize()
. = ..()
switch(faction)
if("USCM")
if(FACTION_MARINE)
linked_supply_controller = GLOB.supply_controller
if("UPP")
if(FACTION_UPP)
linked_supply_controller = GLOB.supply_controller_upp
else
linked_supply_controller = GLOB.supply_controller //we default to normal budget on wrong input
Expand Down
2 changes: 1 addition & 1 deletion code/game/supplyshuttle_upp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GLOBAL_DATUM_INIT(supply_controller_upp, /datum/controller/supply/upp, new())
name = "UPP supply console"
desc = "A console for the General Supply Storage"
circuit = /obj/item/circuitboard/computer/supplycomp/upp
faction = "UPP"
faction = FACTION_UPP

/obj/item/paper/manifest/upp
name = "UPP Supply Manifest"
Expand Down
16 changes: 8 additions & 8 deletions code/modules/cm_marines/vehicle_part_fabricator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
var/generate_points = TRUE
var/omnisentry_price_scale = 100
var/omnisentry_price = 300
var/faction = "USCM"
var/faction = FACTION_MARINE
var/datum/controller/supply/linked_supply_controller

/obj/structure/machinery/part_fabricator/upp
name = "UPP part fabricator"
faction = "UPP"
faction = FACTION_UPP

/obj/structure/machinery/part_fabricator/New()
..()
switch(faction)
if("USCM")
if(FACTION_MARINE)
linked_supply_controller = GLOB.supply_controller
if("UPP")
if(FACTION_UPP)
linked_supply_controller = GLOB.supply_controller_upp
else
linked_supply_controller = GLOB.supply_controller
Expand Down Expand Up @@ -143,11 +143,11 @@

unslashable = TRUE
unacidable = TRUE
faction = "USCM"
faction = FACTION_MARINE

/obj/structure/machinery/part_fabricator/dropship/upp
name = "UPP dropship part fabricator"
faction = "UPP"
faction = FACTION_UPP

/obj/structure/machinery/part_fabricator/dropship/get_point_store()
return linked_supply_controller.dropship_points
Expand Down Expand Up @@ -267,11 +267,11 @@

unacidable = TRUE
indestructible = TRUE
faction = "USCM"
faction = FACTION_MARINE

/obj/structure/machinery/part_fabricator/tank/upp
name = "UPP vehicle part fabricator"

faction = FACTION_UPP

/obj/structure/machinery/part_fabricator/tank/get_point_store()
return linked_supply_controller.tank_points
Expand Down

0 comments on commit 8e1a08e

Please sign in to comment.