Skip to content

Commit 5fb76e1

Browse files
authored
Merge pull request #5277 from MistakeNot4892/port/more_polaris_changes
Various other Polaris/Cynosure changes.
2 parents c3b0622 + 1719fc2 commit 5fb76e1

File tree

75 files changed

+520
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+520
-82
lines changed

code/controllers/evacuation/evacuation.dm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@
9191
A.readyalert()
9292
if(!skip_announce)
9393
global.using_map.emergency_shuttle_called_announcement()
94-
else
95-
if(!skip_announce)
96-
priority_announcement.Announce(replacetext(replacetext(global.using_map.shuttle_called_message, "%dock_name%", "[global.using_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"))
97-
94+
else if(!skip_announce && global.using_map.shuttle_called_message)
95+
priority_announcement.Announce(replacetext(replacetext(global.using_map.shuttle_called_message, "%dock_name%", "[global.using_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"))
9896
return 1
9997

10098
/datum/evacuation_controller/proc/cancel_evacuation()
@@ -113,12 +111,13 @@
113111
auto_recall_time = null
114112

115113
if(emergency_evacuation)
116-
evac_recalled.Announce(global.using_map.emergency_shuttle_recall_message)
114+
if(global.using_map.emergency_shuttle_recall_message)
115+
evac_recalled.Announce(global.using_map.emergency_shuttle_recall_message)
117116
for(var/area/A in global.areas)
118117
if(istype(A) && (A.area_flags & AREA_FLAG_HALLWAY))
119118
A.readyreset()
120119
emergency_evacuation = 0
121-
else
120+
else if(global.using_map.emergency_shuttle_recall_message)
122121
priority_announcement.Announce(global.using_map.shuttle_recall_message)
123122

124123
return 1

code/datums/supplypacks/science.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
/obj/item/clothing/gloves/thick,
4444
/obj/item/clothing/shoes/color/black,
4545
/obj/item/scanner/gas,
46-
/obj/item/ore,
46+
/obj/item/ore_satchel,
4747
/obj/item/flashlight/lantern,
4848
/obj/item/tool/shovel,
4949
/obj/item/tool/pickaxe,

code/datums/trading/traders/ai.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ They sell generic supplies and ask for generic supplies.
4949
/obj/item/box/fancy = TRADER_SUBTYPES_ONLY,
5050
/obj/item/laundry_basket = TRADER_THIS_TYPE,
5151
/obj/item/secure_storage/briefcase = TRADER_THIS_TYPE,
52-
/obj/item/plants = TRADER_THIS_TYPE,
53-
/obj/item/ore = TRADER_THIS_TYPE,
52+
/obj/item/plant_satchel = TRADER_THIS_TYPE,
53+
/obj/item/ore_satchel = TRADER_THIS_TYPE,
5454
/obj/item/toolbox = TRADER_ALL,
5555
/obj/item/wallet = TRADER_THIS_TYPE,
5656
/obj/item/photo_album = TRADER_THIS_TYPE,

code/game/area/area_access.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/area
22
var/list/req_access = list()
33
var/secure = FALSE // unsecure areas will have doors between them use access diff; secure ones use union.
4+
var/override_unlock = FALSE // TRUE will override area and will be always unlocked. This is e.g. for restrooms inside secure areas, surgery observation room etc.
45

56
// Given two areas, find the minimal req_access needed such that (return value) + (area access) >= (other area access) and vice versa
67
/proc/req_access_diff(area/first, area/second)

code/game/machinery/doors/_door.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,8 @@
574574

575575
if (!fore && !aft)
576576
return list()
577+
else if (fore.override_unlock || aft.override_unlock)
578+
return list()
577579
else if (fore.secure || aft.secure)
578580
return req_access_union(fore, aft)
579581
else

code/game/machinery/hologram.dm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ var/global/list/holopads = list()
5858
var/allow_ai = TRUE
5959
var/static/list/reachable_overmaps = list(OVERMAP_ID_SPACE)
6060

61+
var/static/list/used_holopad_ids = list()
6162
var/holopad_id
6263

6364
/obj/machinery/hologram/holopad/Initialize()
@@ -68,7 +69,13 @@ var/global/list/holopads = list()
6869
// Null ID means we want to use our area name.
6970
if(isnull(holopad_id))
7071
var/area/A = get_area(src)
71-
holopad_id = A?.proper_name || "Unknown"
72+
var/holopad_index = 1
73+
var/holopad_base = A?.proper_name || "Unknown"
74+
holopad_id = "[holopad_base] #[holopad_index]"
75+
while(holopad_id in used_holopad_ids)
76+
holopad_index++
77+
holopad_id = "[holopad_base] #[holopad_index]"
78+
used_holopad_ids |= holopad_id
7279

7380
// For overmap sites, always tag the sector name so we have a unique discriminator for long range calls.
7481
var/obj/effect/overmap/visitable/sector = global.overmap_sectors[z]

code/game/machinery/portable_turret.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
iconholder = 1
9696
eprojectile = /obj/item/projectile/beam
9797

98-
if(/obj/item/gun/energy/captain)
98+
if(/obj/item/gun/energy/retro/captain)
9999
iconholder = 1
100100

101101
if(/obj/item/gun/energy/lasercannon)

code/game/machinery/vending/botany.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/obj/item/chems/glass/bottle/robustharvest = 3,
1414
/obj/item/plantspray/pests = 20,
1515
/obj/item/chems/syringe = 5,
16-
/obj/item/plants = 5,
16+
/obj/item/plant_satchel = 5,
1717
/obj/item/chems/glass/bottle/ammonia = 10
1818
)
1919
idle_power_usage = 211 //refrigerator - believe it or not, this is actually the average power consumption of a refrigerated vending machine according to NRCan.

code/game/objects/items/candelabra.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@
4949
if(i > length(candles_storage.candle_offsets))
5050
break
5151
compile_overlays()
52+
53+
/obj/item/candelabra/infinite/WillContain()
54+
return list(/obj/item/flame/candle/infinite = 3)

code/game/objects/items/flame/flame_candle.dm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@
1717
/obj/item/flame/candle/spent
1818
_fuel = 0
1919

20+
/obj/item/flame/candle/infinite/get_fuel()
21+
return 10
22+
23+
/obj/item/flame/candle/infinite/has_fuel(amount)
24+
return TRUE
25+
26+
/obj/item/flame/candle/infinite/expend_fuel(amount)
27+
return TRUE
28+
29+
/obj/item/flame/candle/infinite/red
30+
paint_color = COLOR_RED
31+
32+
/obj/item/flame/candle/infinite/white
33+
paint_color = COLOR_WHITE
34+
2035
/obj/item/flame/candle/red
2136
paint_color = COLOR_RED
2237

0 commit comments

Comments
 (0)