Commit Graph

1336 Commits

Author SHA1 Message Date
Cyberboss
3f7f5d4000 Removes/Refactors /mob/unEquip (#22918)
* Part1

* IT COMPILES!!!!

* Fuck wait this was missing from that last

* Update handlabeler.dm

* Update handlabeler.dm

* Fixes n shit

* Fix this

* Fixes #23310

* Fucking @RemieRichards was right

* Fixes devil unEquip

* WTF ARE BITFLAGS?

* THERES THE FUCKING PROBLEM

* Fixes
2017-01-31 09:28:31 +13:00
PKPenguin321
e7c3c7a1ec blacklists grilles from tesla (#23295) 2017-01-28 01:04:23 -06:00
Cheridan
f81749a704 Merge pull request #23238 from kevinz000/autism_fort_1
Autism Fort Patch - Emitters and Tesla coils can now be used for DEFENDING YOUR TURF!
2017-01-27 17:44:25 -06:00
Iamgoofball
82fd1de840 Update energy_ball.dm 2017-01-24 10:57:56 -08:00
Iamgoofball
7448cb495b makes tesla not favor the east as much i think idk tbh fam ttyl
posi vibes
2017-01-24 10:54:02 -08:00
kevinz000
281d36cfc4 Update emitter.dm 2017-01-23 08:49:00 -08:00
Core0verload
321ddb76e3 You can now buckle handcuffed people to singularity/tesla generator (#22767)
* You can now buckle handcuffed people to singularity/tesla generator

* Adds buckling to tesla coil and grounding rod, minor fixes.

* Makes buckling code shorter
2017-01-23 09:44:49 +01:00
kevinz000
f11ee0ed52 Update emitter.dm 2017-01-23 00:39:58 -08:00
kevinz000
d30dcb1f8c Merge branch 'master' into autism_fort_1 2017-01-23 00:38:45 -08:00
Cyberboss
5959ac32cc Refactors atom/Initialize. Fixes ruins being initialized twice (#22778)
* Refactors atom/Initialize

Captialized for compiling correctness and to be more inline with Destroy

Will now be called from atom/New if the world initialization loop in SSobj has already run. Should always call the base.

Now comes with the `roundstart` parameter indicating whether or not it was called by SSobj or atom/New

Other fixes/tweaks:
- Renamed a proc called Initialize in abduction consoles to Setup
- Removed /obj/item/device/radio/headset/headset_sec/department: Broken and referenced literally nowhere in the code
- Removed a spawn from the Initialize of turbine_computer which made literally zero sense
- Generalized the proc which fixes RND servers with no id set

Reasoning: It's better to check roundstart per function than to have to duplicate code in New and Initialize. Think of it as a safer New for atoms. If we move enough stuff to it, initial map load performance will increase due to less New calls

* Fixed a thing

* Actually, fuck the police

* >Expecting a merge without errors

* >Not calling ..() in New

* Sanic

* Fix the headset bug

* Makes sure the map loaders dew it right

* Fixes ruins being initialized twice

* Rename roundstart -> mapload

* Revert "Rename roundstart -> mapload"

This reverts commit 667c327fd2ccfa3ce4f4db52eac03f9e8b0f6812.

* Remove unrelated change

* A more direct solution to map loads

* And now we shouldnt need this warning

* Add the new var to SSobj recovery

* Revert "Revert "Rename roundstart -> mapload""

This reverts commit dee07dbd5e4696554ac43aae5b91cce743b9b9e0.

* Line endings
2017-01-23 09:37:45 +01:00
Kyle Spier-Swenson
12570805bd Closes the Pool. (#23150)
* Delete pool.dm

* Removes usage of PoolOrNew

* Wrap up
2017-01-22 16:00:23 -05:00
kevinz000
f706dd90b5 Update coil.dm 2017-01-21 19:51:45 -08:00
kevinz000
9ed64d2b1a ... 2017-01-21 19:30:05 -08:00
Kyle Spier-Swenson
c341178ff4 Fixes bug with addtimer keeping old timers around, makes addtimer even faster. (#23126)
* Fixes timers being left around, Makes addtimer() sanic fast.

This adds a new flag, TIMER_STOPPABLE. Most(80%) of the overhead for addtimer() was in adding the timer to the associated lookup list for deltimer() to use. Moving that functionality to a flag so it wouldn't slow down the 70% of things calling timers puts the final nail in the coffin of byond's sleep/spawn().

spawn: 324 seconds across 5,948,372 calls

addtimer: 67 seconds across 5,953,220 calls

The testing setup for profiling was included in this commit, it will be removed in a later commit. @Fox-McCloud

* Remove profiling procs.

* fix runtime

luckly when this happened, we were about to resume anyways.
2017-01-20 09:31:50 +01:00
kevinz000
33a502a03b Update gravitygenerator.dm (#22971)
Prevents gravity generator from being thrown, and therefore completely destroyed by meteorshots.
2017-01-14 11:56:06 +13:00
Buggy123
72dbf3f511 Removed admin message on emitter poweroff (#22935) 2017-01-12 15:06:23 -05:00
c0
f250925a7a Fixes broken lights burning your hand in some cases 2017-01-09 09:11:01 +03:00
oranges
de92eb81d7 Merge pull request #22716 from Core0verload/easy_replace
Makes replacing lights easier
2017-01-05 19:12:17 +13:00
Joan Lung
ca9badec49 Tesla coils and grounding rods must be anchored with a closed panel to function (#22665) 2017-01-05 19:09:43 +13:00
oranges
f21b077adc Merge pull request #22698 from ChangelingRain/supermattercount
The supermatter now has a ghost-visible damage display
2017-01-05 19:09:28 +13:00
Firecage
8dab2c9c34 Changes the names of Circuit Boards so they are easier on players. (#22688) 2017-01-04 17:20:53 -05:00
Core0verload
5faaa4a4af Unfucks SMES construction/deconstruction (#22657)
* Unfucks SMES construction/deconstruction

* fixes
2017-01-04 10:52:43 +01:00
c0
354b846874 Makes replacing lights easier 2017-01-04 08:57:55 +03:00
Kyle Spier-Swenson
bee4b132a3 [READY]Makes addtimer use callbacks (#22660)
* Makes addtimer use callbacks

* I broke the comment

* I fucked up the regex

* this was a silly idea.
2017-01-04 16:02:56 +13:00
Joan Lung
a4dfe50f75 The supermatter now has a ghost-visible damage display 2017-01-03 17:02:28 -05:00
Joan Lung
a2ef2745fe Fixes emitter unsecuring 2016-12-30 16:06:25 -05:00
oranges
fd7e8eb3bd Don't redestroy a tesla ball on stop orbit (#22482)
Destroy can cause the parent ball you're orbiting to also be destroyed,
which calls stop orbit on your ball, which then caused you to get
destroyed again, this fixes that while still guarding against the case
the original !loc qdel code was added for - see pr #15486
2016-12-27 16:16:59 -05:00
Joan Lung
a9d05c09f2 Applies construction defines and default_unfasten_wrench() to some singularity machinery 2016-12-25 10:28:35 -05:00
Joan Lung
95af0534f6 MMI'd clockcultists put in AI cores will properly lose clockcult status (#22369)
* MMI'd clockcultists put in AI cores will properly lose clockcult

* uuuuugh

* fix the core while we're at it

* "

* mrrp

* this will also follow you around

* hmm
2016-12-25 16:18:55 +13:00
Shadowlight213
5dd264102e Adds arrival shuttle to radstorm protected areas
Fixes spider structures having null armor
Fixes division by 0 with hellcan
Fixes runtime in automatons
Fixes runtime with recharger in modular computer destroy
Fixes runtime in power monitor
2016-12-23 18:50:10 -08:00
Joan Lung
513ce6ec3a Gravity and the supermatter count as critical machines (#22236)
* Gravity and the supermatter count as critical machines

* fragment

* Do the needful myself
2016-12-23 09:49:43 +13:00
Cyberboss
e4296736d8 Fixes a gravgen Destroy runtime 2016-12-20 16:39:23 -05:00
Karl Parakenings
ba671b85a2 added distance check for electrocute mob proc in [power.dm] (#22231)
* added adjacency check for electrocute mob proc

* updated all calls to proc enabling range check
2016-12-18 19:55:34 +13:00
XDTM
7d1a67d0c8 Abductor tools and tool sound refactor. (#22125)
* Everything in the PR

* I'm taking that as a yes
2016-12-14 18:09:41 +13:00
Cheridan
2dd1a87345 Merge pull request #22083 from ChangelingRain/multiplierspeed
Refactors toolspeed to be a multiplier instead of a divisor
2016-12-10 19:22:44 -06:00
oranges
07e5b972a9 Merge pull request #22065 from lzimann/patch-15
Changes investigate log color for PA on/off
2016-12-10 15:08:47 +13:00
Joan Lung
43ce2667f4 Merge branch 'master' of https://github.com/tgstation/tgstation into multiplierspeed 2016-12-09 18:03:43 -05:00
Joan Lung
a3be7a9226 Refactors toolspeed to be a multiplier instead of a divisor 2016-12-09 16:55:51 -05:00
Leo
249c067c28 Changes investigate log color for PA on/off 2016-12-08 22:46:57 -02:00
Mervill
417c50efa2 These comments where removed by me.exe, just now 2016-12-08 01:48:46 -08:00
Kyle Spier-Swenson
dedb16826e Speeds up world init. (93s -> 49s) (#21992)
* Speeds up world init.

* Armor is now new inited for obj and the first level of subpaths.
* Actions is now lazyinited and deleted with empty.
* Actiontypes is now only inited when actually used and deleted once it pre-fills actions with the action buttons.
* Pipes now prefill their node list(s) in new() using new /list/ (count) syntax to speed up the list initaliztions and remove the init proc.
* Pipes no longer store their item version, instead creating it on the fly when deconned
* Walls no longer store their metal stacks, instead creating it on the fly when deconned.
* obj, walls, floor, plating, item, machinery, structure, pipe, pipenet, atom, and movable no longer have an (init) proc. (along with a few other smaller examples)
* Atmos can pass checking is now a var with the ability to have a proc be call in advance cases.
  * (as a side effect, I had to fix a few things that were calling atmosCanPass rather then using the pre-calculated list, this should speed up chemfoam and flame effects greatly)

* Reverts upload limit
(remind me one day to defuck this, it could easily be a config thats not editable by vv to make changes easier)

* Makes apc update icon a bit faster.
APC new is some what high on the profile of world init, still not sure why, but this stood out as a waste of cpu so i fixed it.

* Fixes runtime with atmos backpack water tanks.

* Makes smoothing faster (and fixes turfs smoothing twice at init)

* Makes apcs init faster by replacing some spawns with addtimer

* fix transit turfs.
2016-12-08 21:50:15 +13:00
Fox McCloud
be94e4f76a Converts Hydroponics oneharvest var and Potato's Battery Quality into Plant Genes (#21983)
* Converts Hydroponics oneharvest var into a Plant Gene

* plant batteries

* plant types

* stinging
2016-12-08 12:43:23 +13:00
Joan Lung
551ede6d35 Kills all remaining text pronoun macros (#21916)
* Kills all remaining text pronoun macros

* review your own code

* oh right one further

* more

* \
2016-12-04 21:32:31 +01:00
Mervill
0972f78800 a_intent now uses defines 2016-12-02 22:27:30 -08:00
Mervill
c2e2440953 Merge branch 'master' into w_class
Conflicts:
	code/game/objects/items/weapons/twohanded.dm
2016-12-02 21:44:24 -08:00
Jordie
ca6ffdba40 Merge pull request #21866 from Mervill/slashes_deux
Remove slash from end of type refs/defs
2016-12-03 15:56:10 +11:00
Mervill
09ea5ad2e5 w_class now uses defines 2016-12-01 21:33:14 -08:00
Mervill
d83f68ee66 das ist verboten 2016-11-30 20:08:24 -08:00
Mervill
01d4232570 Remove slash from end of type refs/defs 2016-11-30 19:23:15 -08:00
MrStonedOne
76e1c6916f VV refactor 2016-11-30 12:49:21 -08:00