Commit Graph

86 Commits

Author SHA1 Message Date
D3athrow
41d7df01fd just fuck my shit up 2015-07-18 02:30:51 -05:00
clusterfack
53b4182eef Optimizes Say
I dunno make say code faster or something
2015-07-14 16:20:52 -05:00
D3athrow
f71d09ba60 Merge pull request #5006 from clusterfack/optimizemin
Optimizations (reverted from commit 4075a9a855)
2015-06-17 18:29:53 -05:00
clusterfack
b17f96c2c6 Optimizations
Optimizes reset variables, initial costs about 1e-5 to 1e-6. Whereas an operation that just sets a variable in an associate list using another variable in an associative list has a negligible cost even at extremely high calls. Therefore all the variables are initialized only once in a single associative type list holding all the vars.

Optimizes recursive_hear_check as used within say() code. Currently it checks all atom/movables within view which is a minimum of 225 lighting overlays, and checks each of these atom/movables recursively and then uses the list OR operator to add them in due to possible overlap. Instead recursively checks turfs only once and adds them to the found list due to eliminating the possibility of overlap.
2015-06-16 23:50:39 -05:00
PJB3005
ae7ab25539 BAY LIGHTING PEOPLE 2015-06-06 22:15:21 +02:00
clusterfack
e053bd704c IN WORLD
Removes a bunch of in worlds from the code.
Deity please stop adding more it wounds me.
2015-05-12 02:13:48 -05:00
eswordthecat
052004a3d1 Use the new recursive contents checker at steal items objective 2015-04-10 02:45:04 +08:00
eswordthecat
ae3e0d55cf Forgot to include. 2015-04-05 22:46:05 +08:00
eswordthecat
39a3bca274 From say code import, we get to learn one proc. 2015-04-04 23:16:44 +08:00
eswordthecat
efb54e3c71 part 1 of 4988 PR from tg. 2015-03-30 08:58:00 +08:00
D3athrow
8c2365b720 Should fix non mobs from not Hear()'ing things from radios and the like. 2015-03-18 15:27:12 -05:00
clusterfack
d8fa66d77c Fixes #2564 and Fixes #2621, observers without a mind that is linked to a current body should now be chosen for special roles if they have them enabled. Fixes #1627, diona and monkeys can now open backpacks the same way humans do. 2015-01-29 20:49:15 -06:00
ririchiyo
51b3dde4e1 fixed say not properly outputting messages. 2015-01-12 08:45:53 -05:00
ririchiyo
2c69c0dc15 There's no way this done yet. 2015-01-12 08:45:52 -05:00
ComicIronic
9c9e1ff808 Removed the TABLEPASS flag.
No longer in use in any of the code.
Also changed cases of flags being set to null instead of 0.
2015-01-03 18:33:47 +00:00
Rob Nelson
78d63a9f03 TESTED AND WORKING (for borers anyway) 2014-11-08 20:14:12 -08:00
Rob Nelson
3c551d5acd More work on refactor. 2014-11-08 11:14:23 -08:00
Rob Nelson
7785bd7050 Job role signup refactor. PLAYERS2.SQLITE MUST BE UPDATED!
* mob.client.prefs.be_special & BE_* replaced with mob.client.desires_role(ROLE_*)
 * Added several new ROLEs for handling blob, borer, etc.
 * SQLite table added for client_roles.
 * New dialog added for handling special role preferences in-game.
 * Added /datum/browser/clean for a cleaner UI.

Needs more testing, but the basics work.
2014-11-06 18:19:19 -08:00
ESwordTheCat
66eef0f964 /bay/ colored light changes. 2014-07-07 10:25:23 -08:00
ESwordTheCat
29375aa9d5 Reader friendly. 2014-06-10 06:31:53 -08:00
ESwordTheCat
321e7c91f9 Singularity less laggy by me. 2014-06-10 06:17:42 -08:00
ESwordTheCat
08835d434e Clean up procs. 2014-06-10 02:48:56 -08:00
ESwordTheCat
1b743db103 Glowsticks. 2014-06-08 22:07:07 -08:00
ESwordTheCat
36a8e543e5 Append instead of recreating a new list. 2014-05-27 21:50:25 -08:00
ESwordTheCat
84a8b2056d Batch 2. 2014-05-25 03:45:41 -08:00
ESwordTheCat
d0c96b080c Default return after 20 loops. 2014-05-24 07:09:39 -08:00
ESwordTheCat
01eccead34 Prevent locking up of daemon. 2014-05-24 07:07:27 -08:00
ESwordTheCat
4e5efb712e Refactor powered and use_power procs. 2014-05-24 05:04:07 -08:00
ESwordTheCat
291edfdbe2 Fix conflict. 2014-04-27 04:08:29 -08:00
ESwordTheCat
22dd864a6d Revert all the this. 2014-04-27 04:04:12 -08:00
ESwordTheCat
d07c0dfb0f Also here too and a bunch of call renames. 2014-04-27 02:13:52 -08:00
ESwordTheCat
0f7c908ecc Fix for brain (mmi and posibrain) because it's not on mob code rather on obj. 2014-04-27 02:09:59 -08:00
ESwordTheCat
993bad36d5 Recursive mob check again. 2014-04-24 07:06:48 +08:00
Rob Nelson
e419d24c72 Fix butchered revert. 2014-04-23 15:03:40 -07:00
Rob Nelson
b084db9e2a Revert "Merge pull request #646 from ESwordTheCat/468VGf31a"
This reverts commit 2152c5902a, reversing
changes made to 542c53fddb.
2014-04-23 14:53:55 -07:00
ESwordTheCat
3c2a46170e I ALMOST FORGOT YOU :D 2014-04-24 04:42:47 +08:00
ESwordTheCat
da112a7e02 Make this proc not use the recursive mob check. 2014-04-24 04:22:35 +08:00
ESwordTheCat
b0adafbe34 Fix runtimes. 2014-04-24 00:16:43 +08:00
ESwordTheCat
6ea5b7c632 Modify it to some level. 2014-04-23 21:56:10 +08:00
ESwordTheCat
0722c148d7 And there we go, new recursive mob code. 2014-04-23 18:08:49 +08:00
ESwordTheCat
3f6ee98acc Don't add a radio if it's exist on the list. 2014-04-23 17:28:43 +08:00
ESwordTheCat
d8a8c2008d Reflect var name change. 2014-04-23 16:52:21 +08:00
ESwordTheCat
e9d17dcca2 Oops forgotten. 2014-04-23 16:46:38 +08:00
ESwordTheCat
804becc595 They're not the same type. 2014-04-23 16:46:23 +08:00
ESwordTheCat
cbd52be32f Moved the dead mob check. 2014-04-23 16:44:49 +08:00
ESwordTheCat
66491311be If it's a type of dead mob just add it don't a recursion. 2014-04-23 16:33:35 +08:00
ESwordTheCat
fad7ee4cc6 Recursive mob check. 2014-04-23 16:28:58 +08:00
ESwordTheCat
a78fdf1734 Renamed hear to listeners. 2014-04-23 16:24:40 +08:00
ESwordTheCat
6772aa8670 Move the client check later to not skip not disconnected mobs in contents of disconnected player. 2014-04-23 16:22:32 +08:00
ESwordTheCat
d96df8b22d Renamed get_mobs_in_view to get_listeners_in_view. 2014-04-23 15:55:12 +08:00