Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an attempt to fix orbit menu #3219

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
7ace3d6
this might fix it
FalloutFalcon Jul 18, 2024
a5ca9c5
ports most of the tg orbit menu
FalloutFalcon Jul 21, 2024
b07af8d
few more small fixees
FalloutFalcon Jul 21, 2024
795854a
removes unused vars
FalloutFalcon Jul 21, 2024
7d4c006
prettier
FalloutFalcon Jul 21, 2024
d0ce67a
removes some cruft vars
FalloutFalcon Jul 21, 2024
3ba6d4f
Merge branch 'master' of https://github.com/shiptest-ss13/Shiptest in…
FalloutFalcon Aug 10, 2024
816d8c0
const instead of functions
FalloutFalcon Aug 10, 2024
6e91706
oops had the syntax wrong on the const, was still using func syntax
FalloutFalcon Aug 10, 2024
28d48d1
this?
FalloutFalcon Aug 10, 2024
65db0ec
small fix to syntax
FalloutFalcon Aug 10, 2024
32a5652
dont add points of intrest twice please
FalloutFalcon Aug 11, 2024
3aa2570
fixes player panel
FalloutFalcon Aug 11, 2024
13a3ff6
some player panel cruft and removes some random helms from centcomm
FalloutFalcon Aug 11, 2024
d29a2b2
small tweaks
FalloutFalcon Aug 12, 2024
5e15cda
Revert "Revert "orbit menu is less cluttered" (#3218)"
FalloutFalcon Aug 30, 2024
1e7d82f
Automatic changelog compile [ci skip]
actions-user Jul 4, 2024
69f7a82
[IDB IGNORE][MDB IGNORE] Reorganizes Guns Sprites and Repaths (#3176)
rye-rice Jul 5, 2024
940415b
Automatic changelog generation for PR #3176 [ci skip]
actions-user Jul 5, 2024
b5f944e
Makes dog beds anchored. (#3139)
Sadhorizon Jul 5, 2024
0f44b7a
Automatic changelog generation for PR #3139 [ci skip]
actions-user Jul 5, 2024
b2f1473
Automatic changelog compile [ci skip]
actions-user Jul 6, 2024
d3e0168
Fixes a few ships' TEG setups (#3075)
SapphicOverload Jul 8, 2024
e889628
Automatic changelog generation for PR #3075 [ci skip]
actions-user Jul 8, 2024
f773e44
Talos QOL Improvements (#3105)
Apogee-dev Jul 8, 2024
1831096
Automatic changelog generation for PR #3105 [ci skip]
actions-user Jul 8, 2024
b6a2fcd
Reduces ship spawn limit for everything to 1 (#3166)
Apogee-dev Jul 8, 2024
7942781
Automatic changelog generation for PR #3166 [ci skip]
actions-user Jul 8, 2024
cd08b91
Should fix the loadout-box-killing runtime (#3164)
SomeguyManperson Jul 8, 2024
285fc75
Automatic changelog generation for PR #3164 [ci skip]
actions-user Jul 8, 2024
7f7f264
Adds plastic flowers. (#3168)
Sadhorizon Jul 8, 2024
6931783
Automatic changelog generation for PR #3168 [ci skip]
actions-user Jul 8, 2024
e306ad2
Makes .38 speedloaders cheaper. (#3159)
Martinpachu Jul 8, 2024
94376b6
Fixes N+S Captain loadout (#3165)
Apogee-dev Jul 8, 2024
d612e3e
Automatic changelog generation for PR #3165 [ci skip]
actions-user Jul 8, 2024
a36d9f9
The Tip-pening (#3171)
generalthrax Jul 8, 2024
ad1a521
Automatic changelog generation for PR #3171 [ci skip]
actions-user Jul 8, 2024
b5f1f5a
Projectiles are no longer bloodthirsty for stam/softcrit people (#3177)
SomeguyManperson Jul 8, 2024
e9e640c
Automatic changelog generation for PR #3177 [ci skip]
actions-user Jul 8, 2024
17fe5a1
Automatic changelog compile [ci skip]
actions-user Jul 9, 2024
27b62fe
Fixes Vox sprites for a few clothing items (#3192)
firebudgy Jul 9, 2024
70f6b9f
Automatic changelog generation for PR #3192 [ci skip]
actions-user Jul 9, 2024
140a1d0
the tortuga's holofields now work (#3114)
meemofcourse Jul 9, 2024
9e8687e
Automatic changelog generation for PR #3114 [ci skip]
actions-user Jul 9, 2024
19e44b0
Automatic changelog compile [ci skip]
actions-user Jul 10, 2024
9a5dec0
Fixes another singular typo within the code (#3188)
firebudgy Jul 10, 2024
131c572
Automatic changelog generation for PR #3188 [ci skip]
actions-user Jul 10, 2024
4044eb8
Makes pizza cheaper. (#3163)
Martinpachu Jul 10, 2024
b7d811a
Automatic changelog generation for PR #3163 [ci skip]
actions-user Jul 10, 2024
304fdeb
Removes tatortots and fixes recipe issues (#3175)
generalthrax Jul 10, 2024
0f2e659
Automatic changelog generation for PR #3175 [ci skip]
actions-user Jul 10, 2024
17e4490
The Ares Poster Now Correctly Calls The Planet Mars (#3193)
Imaginos16 Jul 10, 2024
13003cc
Automatic changelog generation for PR #3193 [ci skip]
actions-user Jul 10, 2024
d2be859
SolCon/SolGov Hardsuits (And Its Subtypes) Can Now Stow Away Guns! (#…
Imaginos16 Jul 10, 2024
b223bba
Automatic changelog generation for PR #3187 [ci skip]
actions-user Jul 10, 2024
5108452
Automatic changelog compile [ci skip]
actions-user Jul 11, 2024
11343ee
Valor Remap, Minor Inteq Code Tweaks (#3115)
meemofcourse Jul 11, 2024
767795e
Automatic changelog generation for PR #3115 [ci skip]
actions-user Jul 11, 2024
4ad8d9e
broad cringe removal (#3142)
generalthrax Jul 11, 2024
5ad0f9a
Automatic changelog generation for PR #3142 [ci skip]
actions-user Jul 11, 2024
b77d484
Mine Defusal Outpost Missions (#3147)
generalthrax Jul 11, 2024
7e8e780
Automatic changelog generation for PR #3147 [ci skip]
actions-user Jul 11, 2024
7248012
Automatic changelog compile [ci skip]
actions-user Jul 12, 2024
c025211
Two fixes relating to IDs (#3196)
FalloutFalcon Jul 12, 2024
bef9111
Automatic changelog generation for PR #3196 [ci skip]
actions-user Jul 12, 2024
deb0d73
Landmine Bounty Changes (#3201)
generalthrax Jul 12, 2024
28d89bc
Automatic changelog generation for PR #3201 [ci skip]
actions-user Jul 12, 2024
0a8f4e3
Black and White Hoodie (#3179)
TiberianEuan Jul 12, 2024
28c8a47
Automatic changelog generation for PR #3179 [ci skip]
actions-user Jul 12, 2024
6cc191e
Hoodie/Winter Coat Storage Parity (#3191)
Skies-Of-Blue Jul 12, 2024
6fe4e56
Automatic changelog generation for PR #3191 [ci skip]
actions-user Jul 12, 2024
68edb78
Bone crits are now only rolled for brute damage (#3181)
SomeguyManperson Jul 12, 2024
a6c3432
Automatic changelog generation for PR #3181 [ci skip]
actions-user Jul 12, 2024
7c65b3f
Mob Spawner Rework (#2848)
FalloutFalcon Jul 12, 2024
1721a42
Automatic changelog generation for PR #2848 [ci skip]
actions-user Jul 12, 2024
13f6acd
Build mode light maker (#2905)
cuddleandtea Jul 12, 2024
b837cd3
Automatic changelog generation for PR #2905 [ci skip]
actions-user Jul 12, 2024
8d63705
357 Revolver Guncase uses the correct subtype (#3206)
Gristlebee Jul 12, 2024
1332f4b
Automatic changelog generation for PR #3206 [ci skip]
actions-user Jul 12, 2024
d82aa26
capsaicin no longer straight up kills you (#3150)
generalthrax Jul 12, 2024
8d25df8
Automatic changelog generation for PR #3150 [ci skip]
actions-user Jul 12, 2024
f3ea52f
Automatic changelog compile [ci skip]
actions-user Jul 13, 2024
4d1967f
SSD Indicators Will Be Real In 2020 (#3067)
Skies-Of-Blue Jul 14, 2024
f13ab58
Automatic changelog generation for PR #3067 [ci skip]
actions-user Jul 14, 2024
08cb713
Ports 'Command bar typing indicators (client side html version)' (#3080)
Skies-Of-Blue Jul 14, 2024
2dbc39a
Automatic changelog generation for PR #3080 [ci skip]
actions-user Jul 14, 2024
f5888f7
Guncrate fixes (#3158)
SomeguyManperson Jul 14, 2024
12e36fe
Automatic changelog generation for PR #3158 [ci skip]
actions-user Jul 14, 2024
2af6b1d
Two minor sunskipper tweaks. (#3204)
Sadhorizon Jul 14, 2024
9f0fdab
Automatic changelog generation for PR #3204 [ci skip]
actions-user Jul 14, 2024
4cd699c
Gun attachments (#2917)
FalloutFalcon Jul 15, 2024
0896cc7
Automatic changelog generation for PR #2917 [ci skip]
actions-user Jul 15, 2024
fb2082b
Automatic changelog compile [ci skip]
actions-user Jul 15, 2024
0af56b3
Express Console Supremacy (#2994)
FalloutFalcon Jul 16, 2024
954acb0
Automatic changelog generation for PR #2994 [ci skip]
actions-user Jul 16, 2024
7dd2b85
Removes cruft from the loadout. (#3213)
Sadhorizon Jul 16, 2024
66d79ab
Automatic changelog generation for PR #3213 [ci skip]
actions-user Jul 16, 2024
458b5cf
Automatic changelog generation for PR #3197 [ci skip]
actions-user Jul 16, 2024
9982ef3
subshuttles now inherit gravity if they are docked at a ship (#3178)
SomeguyManperson Jul 16, 2024
e1d02b5
Automatic changelog generation for PR #3178 [ci skip]
actions-user Jul 16, 2024
c45267d
Increases the price of automatic weapons and some handguns (#3111)
Martinpachu Jul 16, 2024
2d741c2
Automatic changelog generation for PR #3111 [ci skip]
actions-user Jul 16, 2024
2a73d01
Reflavors choice beacons. (#3169)
Sadhorizon Jul 16, 2024
54ed5c6
Automatic changelog generation for PR #3169 [ci skip]
actions-user Jul 16, 2024
a5d7a60
Automatic changelog compile [ci skip]
actions-user Jul 17, 2024
8936d3f
this might fix it
FalloutFalcon Jul 18, 2024
d8aa0a3
ports most of the tg orbit menu
FalloutFalcon Jul 21, 2024
40ca0ea
few more small fixees
FalloutFalcon Jul 21, 2024
2a5f7d9
removes unused vars
FalloutFalcon Jul 21, 2024
2e7936b
prettier
FalloutFalcon Jul 21, 2024
2c6ca10
removes some cruft vars
FalloutFalcon Jul 21, 2024
c5de25c
Minor Vox Sprite Tune-Up (#3205)
Fest1v3 Jul 17, 2024
1d8781c
Automatic changelog generation for PR #3205 [ci skip]
actions-user Jul 17, 2024
e4ac2b0
Automatic changelog compile [ci skip]
actions-user Jul 18, 2024
676ae40
reverts 'Increases the price of automatic weapons and some handguns' …
generalthrax Jul 23, 2024
5b5378e
Automatic changelog generation for PR #3223 [ci skip]
actions-user Jul 23, 2024
b702622
BG-16 fixes (#3230)
SomeguyManperson Jul 23, 2024
d72a8bb
Automatic changelog generation for PR #3230 [ci skip]
actions-user Jul 23, 2024
2c52faa
Mission Drills and Containers display what they need (#3211)
Gristlebee Jul 23, 2024
7160ec9
Automatic changelog generation for PR #3211 [ci skip]
actions-user Jul 23, 2024
ab01731
Changes the ingredients of two Gezenan drinks to better reflect their…
DIB-DOG Jul 23, 2024
330d919
Automatic changelog generation for PR #3209 [ci skip]
actions-user Jul 23, 2024
bd694fd
Frontiersman Distillery Ruin (#2907)
goober3 Jul 23, 2024
f4e7287
Automatic changelog compile [ci skip]
actions-user Jul 24, 2024
73173c4
Adds a new ruin: the Abandoned Listening Post (#3103)
firebudgy Jul 25, 2024
2f9fdf7
Automatic changelog generation for PR #3103 [ci skip]
actions-user Jul 25, 2024
3721daf
Automatic changelog compile [ci skip]
actions-user Jul 26, 2024
9adee97
Marker Beacons can be printed in the autolathe (#3224)
Gristlebee Jul 26, 2024
04c0a61
Automatic changelog generation for PR #3224 [ci skip]
actions-user Jul 26, 2024
55b1d83
Automatic changelog compile [ci skip]
actions-user Jul 27, 2024
749a299
[MDB Ignore] Rkz's Newfood: Part 1 of 4 (#3148)
Tsar-Salat Jul 30, 2024
bdd3c4f
Automatic changelog generation for PR #3148 [ci skip]
actions-user Jul 30, 2024
e16c200
Automatic changelog compile [ci skip]
actions-user Jul 31, 2024
b959160
Remaps the Kilo (#3199)
Sadhorizon Aug 1, 2024
07d7c92
Automatic changelog generation for PR #3199 [ci skip]
actions-user Aug 1, 2024
ca878ff
Legion attacks now kill you slower (#3141)
SomeguyManperson Aug 1, 2024
b482449
Automatic changelog generation for PR #3141 [ci skip]
actions-user Aug 1, 2024
027e88f
distress signal admin button (#3186)
FalloutFalcon Aug 1, 2024
d014fee
Automatic changelog generation for PR #3186 [ci skip]
actions-user Aug 2, 2024
5b0d88a
Reduces prices of first aid kits. (#3221)
Sadhorizon Aug 1, 2024
aba599d
Automatic changelog generation for PR #3221 [ci skip]
actions-user Aug 2, 2024
93aacd5
Coffee jitter nerf. (#3217)
Sadhorizon Aug 1, 2024
6d35af2
Automatic changelog generation for PR #3217 [ci skip]
actions-user Aug 2, 2024
6d60f7f
Automatic changelog compile [ci skip]
actions-user Aug 2, 2024
20bf7fb
makes the industrial jacket warm (#3251)
generalthrax Aug 1, 2024
1eb39f2
Automatic changelog generation for PR #3251 [ci skip]
actions-user Aug 2, 2024
e1148b0
Attachments are now small instead of normal sized (#3257)
SomeguyManperson Aug 1, 2024
1f14419
Automatic changelog generation for PR #3257 [ci skip]
actions-user Aug 2, 2024
de314e2
Cargo Typos (Contender) (#3259)
generalthrax Aug 1, 2024
1cde96b
Automatic changelog generation for PR #3259 [ci skip]
actions-user Aug 2, 2024
077f445
Additional sprites for Vox - Inteq and NGR (#3255)
firebudgy Aug 2, 2024
79faf3b
Automatic changelog generation for PR #3255 [ci skip]
actions-user Aug 2, 2024
511586b
Guncase fix 2 (#3241)
SomeguyManperson Aug 2, 2024
16d1205
Automatic changelog generation for PR #3241 [ci skip]
actions-user Aug 2, 2024
f8f7b49
Adds an anesthetics crate to cargo (#3254)
zimon9 Aug 2, 2024
550ee68
Automatic changelog generation for PR #3254 [ci skip]
actions-user Aug 2, 2024
25c4817
Fixed gun executions (#3253)
Anticept Aug 2, 2024
0f8a8fe
Automatic changelog generation for PR #3253 [ci skip]
actions-user Aug 2, 2024
346cf92
Fixed: wrong cash bundle value, cash dropping upon stacking (#3236)
Yata9ar4su Aug 2, 2024
773fd89
Automatic changelog generation for PR #3236 [ci skip]
actions-user Aug 2, 2024
488843e
Makes 8x50 boxes have exactly 5 rounds more. (#3242)
Martinpachu Aug 2, 2024
37de7db
Automatic changelog generation for PR #3242 [ci skip]
actions-user Aug 2, 2024
9296823
Makes oxygen tanks at the outpost very cheap. (#3247)
Sadhorizon Aug 2, 2024
900c4c4
Automatic changelog generation for PR #3247 [ci skip]
actions-user Aug 2, 2024
83b3593
Automatic changelog compile [ci skip]
actions-user Aug 3, 2024
269f136
Muzzle Flash-ening! (#3267)
Imaginos16 Aug 3, 2024
637161e
Automatic changelog generation for PR #3267 [ci skip]
actions-user Aug 3, 2024
bb2164d
Combustion & Electrolyzer fixes (#3202)
Thera-Pissed Aug 3, 2024
6b25891
Automatic changelog generation for PR #3202 [ci skip]
actions-user Aug 3, 2024
0477796
Consistent Exosuit Terminology (#3195)
Apogee-dev Aug 3, 2024
55615ba
Automatic changelog generation for PR #3195 [ci skip]
actions-user Aug 3, 2024
399a806
Adds directionals for the mining processing console/electrolyzer cons…
Sadhorizon Aug 3, 2024
75a9075
Automatic changelog generation for PR #3198 [ci skip]
actions-user Aug 3, 2024
7df058b
Fixes three total typos in the code. (#3265)
firebudgy Aug 3, 2024
d18ceb1
Automatic changelog generation for PR #3265 [ci skip]
actions-user Aug 3, 2024
b77b5a1
Buffs the LP hardsuits (#3263)
Latentish Aug 3, 2024
f44532d
Automatic changelog generation for PR #3263 [ci skip]
actions-user Aug 3, 2024
e8ce170
Removes Syndie survival boxes (#3229)
Apogee-dev Aug 3, 2024
bb23404
Automatic changelog generation for PR #3229 [ci skip]
actions-user Aug 3, 2024
c4a5edd
Legions drop less money (#3234)
FalloutFalcon Aug 3, 2024
dc06dd1
Automatic changelog generation for PR #3234 [ci skip]
actions-user Aug 3, 2024
8d3711c
Autolathable stripper clips and 7.62 polymer rifle. (#3240)
Martinpachu Aug 3, 2024
ae65633
Automatic changelog generation for PR #3240 [ci skip]
actions-user Aug 3, 2024
cd4afda
Sandbags can be bought at the outpost and deconstructed by click drag…
Gristlebee Aug 3, 2024
aa9f93c
Automatic changelog generation for PR #3225 [ci skip]
actions-user Aug 3, 2024
fd067f9
Social Anxiety quirk fixes and tweaks (#3222)
Zevotech Aug 3, 2024
850d59a
Automatic changelog generation for PR #3222 [ci skip]
actions-user Aug 3, 2024
74ed9ba
Automatic changelog compile [ci skip]
actions-user Aug 4, 2024
5438aff
Saint Roumain Kepori outfits (#3262)
Major00 Aug 6, 2024
b7e2688
Hazardous Gases (Cl and HCl) (#3180)
Thera-Pissed Aug 6, 2024
b1f6111
Automatic changelog generation for PR #3180 [ci skip]
actions-user Aug 6, 2024
2f286ee
Remaps the Dwayne. (#3006)
Sadhorizon Aug 6, 2024
5691207
Automatic changelog generation for PR #3006 [ci skip]
actions-user Aug 6, 2024
7972bc9
Automatic changelog compile [ci skip]
actions-user Aug 7, 2024
3e71620
Fixes indie sec hardsuit sprite (#3281)
rye-rice Aug 10, 2024
60b7f10
Automatic changelog generation for PR #3281 [ci skip]
actions-user Aug 10, 2024
35e1b89
Cleanbots destroy cigarette butts (#3279)
generalthrax Aug 10, 2024
d594bec
Automatic changelog generation for PR #3279 [ci skip]
actions-user Aug 10, 2024
d6f8a56
Automatic changelog compile [ci skip]
actions-user Aug 10, 2024
daced87
Industrial Jacket Warm (For Real) (#3278)
generalthrax Aug 10, 2024
1404861
Automatic changelog generation for PR #3278 [ci skip]
actions-user Aug 10, 2024
810df8a
Give the Talos a Corpsman (#3260)
Latentish Aug 10, 2024
ffea7f0
Automatic changelog generation for PR #3260 [ci skip]
actions-user Aug 10, 2024
627a947
Vox Sprite Update - Scarves and other Assorted Items (#3264)
firebudgy Aug 10, 2024
e55a194
Automatic changelog generation for PR #3264 [ci skip]
actions-user Aug 10, 2024
670ae6e
const instead of functions
FalloutFalcon Aug 10, 2024
853bf26
oops had the syntax wrong on the const, was still using func syntax
FalloutFalcon Aug 10, 2024
4483c79
this?
FalloutFalcon Aug 10, 2024
f7cb4af
small fix to syntax
FalloutFalcon Aug 10, 2024
2ab14be
dont add points of intrest twice please
FalloutFalcon Aug 11, 2024
94cc46b
fixes player panel
FalloutFalcon Aug 11, 2024
c98c1f7
some player panel cruft and removes some random helms from centcomm
FalloutFalcon Aug 11, 2024
c49ac02
small tweaks
FalloutFalcon Aug 12, 2024
020f625
Merge branch 'fixes-orbit-menu-i-hope' of https://github.com/FalloutF…
FalloutFalcon Aug 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions _maps/map_files/generic/CentCom.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/turf/open/floor/plasteel/dark,
/area/tdome/tdomeadmin)
"afh" = (
/obj/machinery/computer/helm{
/obj/machinery/computer{
dir = 4
},
/obj/effect/turf_decal/industrial/warning{
Expand Down Expand Up @@ -1356,7 +1356,7 @@
/turf/open/floor/plasteel,
/area/wizard_station)
"ara" = (
/obj/machinery/computer/helm,
/obj/machinery/computer,
/turf/open/floor/plasteel,
/area/wizard_station)
"ard" = (
Expand Down Expand Up @@ -3940,7 +3940,7 @@
/turf/open/floor/mineral/titanium/blue,
/area/centcom/evac)
"aLP" = (
/obj/machinery/computer/helm{
/obj/machinery/computer{
dir = 1
},
/turf/open/floor/mineral/titanium/blue,
Expand Down Expand Up @@ -8846,7 +8846,7 @@
},
/area/centcom)
"gFU" = (
/obj/machinery/computer/helm,
/obj/machinery/computer,
/obj/effect/turf_decal/industrial/warning{
dir = 6
},
Expand Down Expand Up @@ -12249,7 +12249,7 @@
/turf/open/floor/plasteel/dark,
/area/tdome/tdomeadmin)
"nEL" = (
/obj/machinery/computer/helm,
/obj/machinery/computer,
/obj/effect/turf_decal/industrial/warning{
dir = 10
},
Expand Down Expand Up @@ -15797,7 +15797,7 @@
/turf/open/floor/plasteel/dark,
/area/ctf)
"vcL" = (
/obj/machinery/computer/helm,
/obj/machinery/computer,
/obj/effect/turf_decal/corner/transparent/bar,
/obj/effect/turf_decal/corner/transparent/bar{
dir = 1
Expand Down
6 changes: 6 additions & 0 deletions code/__DEFINES/dcs/signals/signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -701,3 +701,9 @@

///sent when the access on an id is changed/updated, ensures wallets get updated once ids generate there access
#define COSMIG_ACCESS_UPDATED "acces_updated"

// Point of interest signals
/// Sent from base of /datum/controller/subsystem/points_of_interest/proc/on_poi_element_added : (atom/new_poi)
#define COMSIG_ADDED_POINT_OF_INTEREST "added_point_of_interest"
/// Sent from base of /datum/controller/subsystem/points_of_interest/proc/on_poi_element_removed : (atom/old_poi)
#define COMSIG_REMOVED_POINT_OF_INTEREST "removed_point_of_interest"
36 changes: 36 additions & 0 deletions code/__HELPERS/_lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,42 @@
};\
} while(FALSE)


/**
* Custom binary search sorted insert utilising comparison procs instead of vars.
* INPUT: Object to be inserted
* LIST: List to insert object into
* TYPECONT: The typepath of the contents of the list
* COMPARE: The object to compare against, usualy the same as INPUT
* COMPARISON: The plaintext name of a proc on INPUT that takes a single argument to accept a single element from LIST and returns a positive, negative or zero number to perform a comparison.
* COMPTYPE: How should the values be compared? Either COMPARE_KEY or COMPARE_VALUE.
*/
#define BINARY_INSERT_PROC_COMPARE(INPUT, LIST, TYPECONT, COMPARE, COMPARISON, COMPTYPE) \
do {\
var/list/__BIN_LIST = LIST;\
var/__BIN_CTTL = length(__BIN_LIST);\
if(!__BIN_CTTL) {\
__BIN_LIST += INPUT;\
} else {\
var/__BIN_LEFT = 1;\
var/__BIN_RIGHT = __BIN_CTTL;\
var/__BIN_MID = (__BIN_LEFT + __BIN_RIGHT) >> 1;\
var ##TYPECONT/__BIN_ITEM;\
while(__BIN_LEFT < __BIN_RIGHT) {\
__BIN_ITEM = COMPTYPE;\
if(__BIN_ITEM.##COMPARISON(COMPARE) <= 0) {\
__BIN_LEFT = __BIN_MID + 1;\
} else {\
__BIN_RIGHT = __BIN_MID;\
};\
__BIN_MID = (__BIN_LEFT + __BIN_RIGHT) >> 1;\
};\
__BIN_ITEM = COMPTYPE;\
__BIN_MID = __BIN_ITEM.##COMPARISON(COMPARE) > 0 ? __BIN_MID : __BIN_MID + 1;\
__BIN_LIST.Insert(__BIN_MID, INPUT);\
};\
} while(FALSE)

//Returns a list in plain english as a string
/proc/english_list(list/input, nothing_text = "nothing", and_text = " and ", comma_text = ", ", final_comma_text = "" )
var/total = length(input)
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/roundend.dm
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
SSblackbox.record_feedback("associative", "antagonists", 1, antag_info)

/datum/controller/subsystem/ticker/proc/record_nuke_disk_location()
var/obj/item/disk/nuclear/N = locate() in GLOB.poi_list
var/obj/item/disk/nuclear/N = locate() in SSpoints_of_interest.other_points_of_interest
if(N)
var/list/data = list()
var/turf/T = get_turf(N)
Expand Down
66 changes: 1 addition & 65 deletions code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -294,70 +294,6 @@ Turf and target are separate in case you want to teleport some distance from a t
/proc/ionnum()
return "[pick("!","@","#","$","%","^","&")][pick("!","@","#","$","%","^","&","*")][pick("!","@","#","$","%","^","&","*")][pick("!","@","#","$","%","^","&","*")]"

//Returns a list of all items of interest with their name
/proc/getpois(mobs_only = FALSE, skip_mindless = FALSE, specify_dead_role = TRUE, only_realname = FALSE)
var/list/mobs = sortmobs()
var/list/namecounts = list()
var/list/pois = list()
for(var/mob/M in mobs)
if(skip_mindless && (!M.mind && !M.ckey))
if(!isbot(M) && !iscameramob(M) && !ismegafauna(M))
continue
if(M.client && M.client.holder && M.client.holder.fakekey) //stealthmins
continue
var/name = ""
if(only_realname)
name = avoid_assoc_duplicate_keys(M.real_name, namecounts)
else
name = avoid_assoc_duplicate_keys(M.name, namecounts) + M.get_realname_string()

if(M.stat == DEAD && specify_dead_role)
if(isobserver(M))
name += " \[ghost\]"
else
name += " \[dead\]"
pois[name] = M

if(!mobs_only)
for(var/atom/A in GLOB.poi_list)
if(!A || !A.loc)
continue
pois[avoid_assoc_duplicate_keys(A.name, namecounts)] = A

return pois

//Orders mobs by type then by name
/proc/sortmobs()
var/list/moblist = list()
var/list/sortmob = sortNames(GLOB.mob_list)
for(var/mob/living/silicon/ai/M in sortmob)
moblist.Add(M)
for(var/mob/camera/M in sortmob)
moblist.Add(M)
for(var/mob/living/silicon/pai/M in sortmob)
moblist.Add(M)
for(var/mob/living/silicon/robot/M in sortmob)
moblist.Add(M)
for(var/mob/living/carbon/human/M in sortmob)
moblist.Add(M)
for(var/mob/living/brain/M in sortmob)
moblist.Add(M)
for(var/mob/living/carbon/alien/M in sortmob)
moblist.Add(M)
for(var/mob/dead/observer/M in sortmob)
moblist.Add(M)
for(var/mob/dead/new_player/M in sortmob)
moblist.Add(M)
for(var/mob/living/carbon/monkey/M in sortmob)
moblist.Add(M)
for(var/mob/living/simple_animal/slime/M in sortmob)
moblist.Add(M)
for(var/mob/living/simple_animal/M in sortmob)
moblist.Add(M)
for(var/mob/living/carbon/true_devil/M in sortmob)
moblist.Add(M)
return moblist

// Format a power value in W, kW, MW, or GW.
/proc/DisplayPower(powerused)
if(powerused < 1000) //Less than a kW
Expand Down Expand Up @@ -389,7 +325,7 @@ Turf and target are separate in case you want to teleport some distance from a t
/proc/get_mob_by_ckey(key)
if(!key)
return
var/list/mobs = sortmobs()
var/list/mobs = SSpoints_of_interest.get_mob_pois()
for(var/mob/M in mobs)
if(M.ckey == key)
return M
Expand Down
2 changes: 0 additions & 2 deletions code/_globalvars/lists/objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ GLOBAL_LIST_EMPTY(apcs_list)
GLOBAL_LIST_EMPTY(tracked_implants)
/// List of implants the prisoner console can track and send inject commands too
GLOBAL_LIST_EMPTY(tracked_chem_implants)
/// List of points of interest for observe/follow
GLOBAL_LIST_EMPTY(poi_list)
/// List of all pinpointers. Used to change stuff they are pointing to all at once.
GLOBAL_LIST_EMPTY(pinpointer_list)
/// List of all zombie_infection organs, for any mass "animation"
Expand Down
Loading
Loading