Commit Graph

80 Commits

Author SHA1 Message Date
DeityLink
1e89f54b64 fix extra large stacks (#29811) 2021-06-19 21:21:57 -05:00
kane-f
d761ee1ff4 Mineral machine revamps, constructable/modifyable unloaders. (#29531)
* Beginning refactor

* More refactoring

* Worked example with mints

* Refactoring stacking machines

* Oh this is meant to go here

* Beginning smelter refactor

* And finally, rewriting unloaders, the thing we need to work on

* Rewriting these machines too, never see em used but they still use those old in/out items

* Forgot this

* Base variables for editing unloaders

* Adding multitool menu for unloading machines

* Associative list tweak, will be added to the menu soon

* Compile error fixed

* More of these

* And more

* Last one

* Okay, this refactor should make it work right

* Redundant variable

* Refactored multitool menu as common between all, removes copypasted code

* This is already in allowed_types

* Dunno if this flag should be here

* Moving this variable down to common level too, forgot it

* Nicer descriptions

* Adding to .dme

* Adding conveyor_act()s with this thing, why not, more power to it

* This should help

* Adding parts and a circuitboard

* Adding part upgrades and circuit design

* Fixing name

* Why does indentation do this

* Standardising these to box stations for some reason, don't ask

* Removing the input and output items, as well as removing them from as many maps as possible

* Reworking directions on packed and box

* Chaining conveyor_act()s

* Checking in nearby unloading machine too

* Here too

* Function for repeated code

* Forgot this

* This too

* Better check

* Guess this too

* Doing changes, make chaining work

* Remove this

* Removing infinite loop MC crash

* Crude loop checking recursive method, may be extremely broken, need to test it

* Compile and logic fix, more comments on this, tested and this actually works somehow

* Fixing dirs on test box, hive vault and castle

* Synergy, horizon, bagel, boxes

* xoq, meta

* Snaxi, deff

* Lowfat, roid

* An attempt at fixing lamprey

* Updating Dorfstation, now that PR is merged

* Fixing design typepath

* Returning false is actually unnecessary, no return fails conditionals just as much

Co-authored-by: kanef <kanef9x@protonmail.com>
2021-05-30 15:41:23 -05:00
DamianX
f5c96279c6 Removed datum pooling (#26992)
* removed pooling

* replace returnToPool with qdel

* did stuff
2020-07-03 19:38:38 -03:00
jknpj
f6aae72618 Tool Sound/Speed (#25529)
* Initial work on tool sounds

* Crowbars

* playtoolsound()

* aaaaaaaaaaaaaaaaaaaa

* HERE WE GO AGAIN

* Wrench

* Screwdriver.ogg REDUX, Cuffs

* drilling tools toolspeed is now a multiplier too

* Wirecutter
2020-02-08 09:07:00 -06:00
Damian
96ade98dfc Removed undefined type usages 2019-06-05 17:11:34 +02:00
Paul Ritter
d1da9115b4 VSCode fixes (#22847)
* some fixes

* ow my brain

* ight then

* more

* MORE

* ;
2019-05-10 09:23:19 -03:00
DrSnips
cd20e774f8 Filled out the ammolathe's list with actual stuff. Added a sprite for the ammolathe. Added a phazon sheet overlay for fabs. Made designs for the items in the ammolathe's list. Added a var for fabs to use a default sheet insert overlay(s) set. 2019-01-04 01:37:09 -05:00
ShiftyRail
3ecb9793c9 Fixes duplicating RnD machines (#20245)
* Fixes duplicating RnD machines

* Whoops
2018-10-18 17:50:25 +02:00
MadmanMartian
6d78711e9b shocking now passes the siemens coefficient of whatever you're hitting the thing with. (#18012)
* shocking now passes the siemens coefficient of whatever you're hitting the thing with.

* adds macro, uses macro, macro is happy
2018-04-08 10:11:09 -03:00
MadmanMartian
5b1ac5880f Adds functionality to the two previously useless autolathe/protolathe wires (#17875)
* pulsing a certain wire on RnD machines makes them automatically fabricate what they last made.

* Fixes check oversight in fabricator, adds the fifth wire being a signal sending wire.
2018-03-24 16:59:36 -04:00
Intigracy
8dd8cc6a47 fixes being able to brick the protolathe/autolathe for the round (#17175)
adds missing adjacency check for inserting materials

fixes the stupidity of the busy var, now it only changes when the mats are actually being inserted, instead of when you slap the machine with them
it now also lasts exactly as long as the animation does/would (currently 1 second) aka no more bricking unless byond is bricking

added a second check after the input() on whether or not the bin is full since people will be able to have input()s open at the same time now
2018-01-23 11:31:21 +01:00
jknpj
91c39eb6e5 sanityisgood (#16451) 2017-11-05 13:24:17 +01:00
ComicIronic
d490e1f970 Removed one line ifs and elses. (#11389) 2016-08-15 05:36:21 -05:00
ComicIronic
53040e7e83 Moves string overlays to use images. (#10686)
* Moves string overlays to use images.

* Fixed overlays being missed in replace due to unexpected string characters.
2016-06-20 17:27:24 -05:00
clusterfack
fe2a1a3a08 Migrating Code to use Proper Byond Move() Code (#8667)
* Initial Commit

All CanPass replaced with cross, all CheckExit replaced with uncross

* Commit #2

Cross() argment turf/target now has a standard value of src.loc, the basis for this is the fact that Cross() should technically only be called with a default value by Move() code when moving to a new turf thus everything on it the target turf should be the src.loc

* Commit #3

All move code has now been unhacked, all of it is functional except for border objects which still retain none of their original functionality

* Commit #2

Cross() argment turf/target now has a standard value of src.loc, the basis for this is the fact that Cross() should technically only be called with a default value by Move() code when moving to a new turf thus everything on it the target turf should be the src.loc

* Commit #2

Cross() argment turf/target now has a standard value of src.loc, the basis for this is the fact that Cross() should technically only be called with a default value by Move() code when moving to a new turf thus everything on it the target turf should be the src.loc (reverted from commit fdee8c8b687a4d1f305bdc5f5e1a59ebeacb4702)

* Fuck me

* Okay Redo

* Hello, I am finished
2016-05-02 08:34:42 -07:00
PJB3005
1a2f9ab059 All the EOLs are now LF.
Fuck you too 0D :^)
2016-01-16 23:28:07 +01:00
9600bauds
6fcf5c6125 Fixes Autolathe not eating reinforced glass 2015-12-17 03:26:06 -03:00
PJB3005
99bf59d80e Adds a to_chat() proc, to pave the way to a non shit chat. 2015-11-25 15:55:15 +01:00
PJB3005
3cca5692af Removes the panic writer messages. 2015-11-20 03:17:06 +01:00
DeityLink
0121542ed4 wrenchmoves 2015-10-28 02:24:50 +01:00
Kurfursten
e432ca0abc Wires and wire holders 2015-10-12 02:09:56 -05:00
Rob Nelson
f984750814 Merge pull request #5911 from PJB3005/dylan-and-his-'fixes'
Fixes #5893 in a non shit way.
2015-09-30 16:56:32 -07:00
PJB3005
d03dfa12f2 there because dylan is closing his I'll get his string fixes. 2015-10-01 00:03:15 +02:00
Rob Nelson
6b2664a8b9 Merge pull request #5829 from PJB3005/datum-qdel
Allows qdel to delete datums & unify pooling.
2015-09-28 11:20:58 -07:00
PJB3005
c7c9613b07 Unifies pooling. 2015-09-26 16:27:27 +02:00
PJB3005
180330a578 Fixes #5086, fixes #5822.
R&D machineres now use the var "output_dir" to determine where to output to.
2015-09-24 19:21:02 +02:00
DeityLink
5a3f466228 mist spread tweaks 2015-09-18 19:40:22 +02:00
PJB3005
ef279b0393 Fixes some R&D related qdel issues.
Note: the console itself still hard dels it appears, can't figure out why, but in the mean time this fixes qdel for R&D machinery linked to the console, and fixes #10
2015-08-17 02:12:31 +00:00
D3athrow
d59f6a07b0 comment out panicwriter and saytesting 2015-07-20 16:04:48 -05:00
D3athrow
41d7df01fd just fuck my shit up 2015-07-18 02:30:51 -05:00
PJB3005
12410d8dc8 Should fix the autolathe eating stacks if you specify 0 as amount. 2015-07-16 19:48:00 +02:00
dylanstrategie
8f1132f443 Forcefully deprecate meteor_hit()
meteor_hit() is a textbook example of snowflake. What you have here is a
proc linked to a single entity (the small meteor) which shouldn't even
have it (ever since I reworked meteors, small meteors explode) that is
present in FIFTY. FUCKING. FILES.

Since an explosion more than clearly does the damage we want done on
meteor impact, it is more than logical to remove it and lighten our code
of obsolete and obscuranting procs

For the handful of times where it isn't possible to straight up remove
it (immovable rod, dust, small meteor), the code was quickly patched by
making it fire ex_act(2), given that small meteors perform
explosion(src.loc, -1, 1, 3, 4, 0)

Doing it quick and dirty because otherwise it's going to cause conflicts
everywhere
2015-06-29 16:16:03 +02:00
ComicIronic
dfd55472d5 Fixes ore redemption machine, recycler overabundance, and multitool eating. 2015-06-18 15:46:58 +01:00
ComicIronic
06b5e60bbe Material datum implementation
Material datum functionality changed to mimic that of reagents etc. by
using a global datum list and an assoc value list.
Material datums added at the atom level.
starting_materials var added - on New(), the materials in the list are
added to a datum. An empty list generates an empty datum, a null means no
datum.
m_amt, g_amt, and where applicable gold_amt, etc. completely removed,
replaced with starting_materials where applicable.

Fabricators
Fixed a bug with fabricators taking design cost, not shown cost.
Fixed a bug with fabricators taking costs before a design was shown
completable.
Fabricators now transfer the materials they use in the design to the atom
produced's material datum.
Designs are now world-consistent : scanning the same atom will ref the
same design, and scanning an atom with a design will fetch it.
Mechanic fabs now add plastic cost on top of the design, not to it.
Mechanic designs no longer require random extra materials.
Mechanic designs are now material-specific, not type-specific.
Mechanic blueprint uses have been removed, in favour of a consumable
system.
RnD wires moved to the datum system.
Autolathe moved under fabricators. It preserves as much functionality as
possible.
Framework added for plastic costs on mechanic fabs to be toggled, and for
removal of designs to be toggled also.
2015-06-13 16:13:02 +01:00
D3athrow
6bc2912c93 cocks 2015-05-28 18:39:15 -05:00
D3athrow
ba6848c4e9 fix protolathes spitting shit out into nullspace 2015-05-27 01:51:57 -05:00
ComicIronic
d9c69d52df Taxi fixes:
MoMMI nest now has double windoors and sulphuric acid.
Miners and xenoarch now start with tank dispensers.
HoP office expanded, charger placed on wall, accounts DB now accessible.
Engineering given more toolbelts.
Atmos large tanks fixed to start with proper gases in them.
Solar computers given correct wiring.
Captain's office now connected to grid, and contains antique laser display case.
Bhangmeter added to toxins.
Renamed Break Room airlock and removed sink.
Added desk bells where appropriate.
Extended Custodial closet by 1 tile.
Fixes #4625, fixes #4623, fixes #4624, fixes #4614, fixes some of #4629.
Fixes #4632, miners now have proper access around the station.
2015-05-24 14:06:55 +01:00
9600bauds
df6251ad0a materialscreen 2015-05-21 01:59:36 -03:00
9600bauds
d1fef60be9 aaaaaaaaaaaa 2015-05-21 01:25:24 -03:00
9600bauds
6a1991a889 No runtimes no more 2015-05-21 00:47:55 -03:00
ComicIronic
45dec45789 Materials in RnD
In going over our code to prepare a port for Bay, I noticed we weren't using the material datums properly.
Now we are.
There are no functional frontend changes from this.
allowed_materials is now a list of ids instead of types, however.
2015-05-20 16:20:09 +01:00
9600bauds
d57de29755 Protolathe sorting & other wonderful things 2015-05-18 01:25:34 -03:00
Kurfursten
8d32cb53b9 Added sanity check 2015-05-03 19:11:15 -05:00
D3athrow
f008d26ef7 I'm a dumb 2015-04-28 23:47:36 -05:00
D3athrow
3305046a27 Prevent material duping with RD machinery due to pooling. 2015-04-28 18:26:40 -05:00
D3athrow
868f41c7c9 Fix the lag issue from building/syncing an RD console in a large area with a lot of things in it.
Before:
/obj/machinery/computer/rdconsole/proc/SyncRDevices 12.58 12.61 12.60

After:
/obj/machinery/computer/rdconsole/proc/SyncRDevices 0.001 0.001 0.001
2015-04-16 01:00:49 -05:00
D3athrow
f8ab04280c remove delay on adding materials to the fab 2015-04-11 00:00:25 -05:00
D3athrow
6956a3c4df Should fix the issue of nano windows popping back up after closing them. 2015-02-21 15:47:40 -06:00
D3athrow
72fde47f91 micro optimization, Cut() to len = 0 2015-01-31 00:40:13 -06:00
ririchiyo
2857e57ac2 Merge pull request #1869 from ComicIronic/BoardLock
Adds certain silicon boards to lockboxes
2015-01-17 18:28:19 -05:00