Commit Graph

134 Commits

Author SHA1 Message Date
DamianX
ada57b8c2e Central atmos computer fixes (#19919)
* Central atmos computer fixes

* Fuck you BYOND you piece of shit die
2018-10-23 11:36:54 -03:00
Carlen White
84813cc57e Debit Cards, Bank Account Disable, & Other Retrofits (#19411)
* Split up the charging code to allow verifying account security alone.

* Using macro since a trader account can now be created on the first debit card for traders.

* Adds the new debit_card.dm

* Retrofit for vending machines to accept debit cards and no longer care for the name of the person for account verification, instead checks if the account number is the same and does a security check when applicable to verify.

* Charge flow retrofit

* Debit card retrofit

* Debit card retrofit

* Debit card retrofit

* Supporting get_card() proc that attempts to find cards on someone.

* Debit card retrofit

* Adds debit cards.

* Basic debit card graphic

* Debit card retrofit

* Can print debit cards from an ATM for $5

* Tweak to prevent searching without an account number.

* Moved creating a trader account to a macro.

* Using item's melt_temperature instead of a global

* Debit cards can be inside ATMs, heads get a department debit card in their lockers, and traders get debit cards on their shuttle computer.
And updated graphics.

* Swapped the \the around since it looked weird being the other way
And also added something to point out which card is being used for virtual wallets.

* 100% less loss of work

* Prevent only the presentace of a card counting as a card present

* Easter egg will use the old name instead of a fixed string

* Forgot a period

* Added FUN. Debit no longer requires a PIN at default security level.
Of course, this can be changed with the new global. Might consider a admin toggle.

* Renamed var to something more reasonable.

* Made the security checks more future safe.

* Accounts can now be disabled from a account database as an administrative disable or from an ATM as a user disable.

* You can modify security levels while disabled, but cannot downgrade to Zero

* Can now charge a card without enough funds provided the destination and source account is the same

* Disable link changes depending if the account is disabled or not

* Vending machines now prompt for PIN if attempting to enter edit mode.

* Define cleanup

* You can now define a authorized user on a debit card.
They are also recorded in the transaction log so you can figure out who spent all the money on pizzas.

* If a linked account gets disconnected for any reason a POS will default to the station account
Also shows the account name in the settings

* Supply and Order consoles can now read from a debit card

* Documentation tweak

* Forgot something

* Supply console now shows the cargo account if requisitions are on.
And mitigation against someone else using the console with someone else looking at it.

* Attempt to make less redundant code,
And added additional information to supply orders.
Reverting checking accounts only if the users changed. It'd cause a world of confusion if multiple people were working at the same terminal.
2018-08-23 10:34:32 +01:00
I-VAPE-VOX-CLOACA-EVERY-DAY-OF-MY-LIFE
61e36ee262 Machinery is always layered under items by default (#19077) 2018-08-02 18:20:53 +02:00
Kurfursten
f69023f525 it's christmas eve, can't leave, prisoner christmas (#18900) 2018-07-21 19:09:32 -03:00
DamianX
49df48fabc Removed areaMaster (#18459) 2018-06-13 09:28:33 -03:00
DamianX
4a38ac9169 Remove get_turf from all playsound calls (#17640)
JUST. DO. IT.
2018-03-02 11:18:53 -03:00
Pieter-Jan Briers
63cd55a08d NanoUI object focus improvement. (#16395)
Previously if you clicked on an object and you already had the NanoUI open, two things could happen:
* The UI only updates
* The UI reopens with a white BYOND flash.

The latter did always move it to the foreground, but the flash and UI moving was pretty ugly.
The former only updates the UI, so if you had multiple stacked windows open it gets kinda annoying.

With this change, all UIs always do the former, and the UI for an object always moves to the front when you interact with said object.
2017-11-01 08:22:11 +01:00
MadmanMartian
64d32457df I got to test this with a rocket launcher 2017-08-10 16:48:28 +01:00
MadmanMartian
b4d8e3e22f ATMs drop contained IDs on destroy 2017-08-10 14:49:13 +01:00
Shadowmech88
767017da5d Computers can now be kicked to eject an ID stored inside them. (#14092) 2017-02-19 16:50:22 -05:00
DrCelt
710e278c84 Fixes something (#12951) 2016-12-20 10:57:54 +01:00
DrCelt
2ac7bc2fb8 Fixes #12920 (#12936)
Fixes #12920
2016-12-20 10:39:13 +01:00
coldcola
37f791437e parent (#12409) 2016-10-30 10:29:39 -05:00
clusterfack
8455e57862 Fix nanoui maps (#12231)
* Fix nanoui

Makes nanoui map size independent.

I hope you guys realize I spent like several hours on this. All because some shitter decided he would use hardcoded variables for map size.

* Send the map assets
2016-10-16 20:23:34 -05:00
ComicIronic
b35eaa65d8 Replaced loc setting with forceMove. (#11490)
* Replaced loc setting with forceMove.

* Update forceMove to permit moving to null loc.

Also fixed atom locking with offsets not following properly.
2016-08-29 06:40:45 -05:00
ComicIronic
d490e1f970 Removed one line ifs and elses. (#11389) 2016-08-15 05:36:21 -05:00
ComicIronic
b2b5c81633 Moved research names over to defines. (#11424)
* Moved research names over to defines.

Also fixed 4 (four) instances of the incorrect research name being used.

* Changed research names to avoid collisions.
2016-08-14 17:47:22 -05:00
DrCelt
7ed76c60f1 NO MORE HALF MEASURES, CLUSTER (#11183)
* NO MORE HALF MEASURES, CLUSTER

* NO MORE HALF MEASURES, CLUSTER

* bugfixes

* bugfixes

* final bugfixes before the final testing

* we have clearance for lift-off, captain.
2016-08-02 20:32:38 -05:00
ComicIronic
11119d4d0b Moved reagent IDs to defines. (#10636)
* Moved reagent IDs to defines.

TODO: Convert xenoarch chems.

* Added xenoarch chem defines

* Fixed some bad chem names.
2016-06-19 15:43:37 -05:00
PJB3005
f46f02dc9e Goon-style chat.
Credits to goon for most of the work.
2016-03-27 17:23:07 +02:00
BestName
d9028df2a1 Changes 'NanoTrasen' to 'Nanotrasen' 2016-02-06 14:12:20 +02:00
unid15
f8da080ba1 adds clown glue 2015-12-31 14:06:18 +01: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
e7e586d90b more economy stuff 2015-10-18 03:46:56 +02:00
DeityLink
5162e9d1c6 fixes #6105 2015-10-13 15:22:36 +02:00
DeityLink
7835ac11a5 Economy part 1 2015-10-11 12:32:39 +02:00
unid15
24b4acced8 BUG FIX 2015-09-05 21:31:27 +02:00
PJB3005
3bc5d86263 LIGHTING IS BACK.
AND A SHITLOAD FASTER.

SANIC.
2015-07-21 14:16:27 +02:00
D3athrow
d59f6a07b0 comment out panicwriter and saytesting 2015-07-20 16:04:48 -05:00
D3athrow
7a3ff4efc3 THE LIGHTING IS DEAD, LONG LIVE DAL 2015-07-18 23:05:18 -05:00
D3athrow
41d7df01fd just fuck my shit up 2015-07-18 02:30:51 -05:00
D3athrow
b772255e7a RUNTOOMS 2015-06-30 20:37:50 -05:00
d3athrow
9ca7769ace Merge pull request #4584 from ComicIronic/MaterialDatumImpl
Material datum implementation
2015-06-16 16:44:54 -05:00
D3athrow
6f8f1ff08f 110% plagiarism 2015-06-13 20:18:43 -05: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
79d1579972 Merge pull request #4853 from ComicIronic/MachineryMoney
Machinery money changes
2015-06-06 22:12:38 -05:00
PJB3005
ae7ab25539 BAY LIGHTING PEOPLE 2015-06-06 22:15:21 +02:00
ComicIronic
51a37b1e48 Machinery money changes
A lot of code standardising for the way machines handle trying to take money from a user.
All machines can now be set to connect to the accounts database in initialize().
reconnect_database(), connect_account(), and scan_card() have all been moved to the machine level.
Merch computer now reads your equipped ID, not your mind account. Fixes #2854.
All machines getting your ID using get_id_card() now check all your slots, with hands being prioritised over the ID slot.
Removed a pointless human-only proc that was causing befuddlement.
2015-06-06 16:08:34 +01:00
9600bauds
d57de29755 Protolathe sorting & other wonderful things 2015-05-18 01:25:34 -03:00
D3athrow
97def510da fix atm metal dupe 2015-04-23 00:00:48 -05:00
d3athrow
da2e66aed5 Merge pull request #3837 from Kurfursten/wallcon
Con/Decon Part 1
2015-04-15 19:18:05 -05:00
D3athrow
01d2471fc9 Merge branch 'color_replace_2_electric_boogaloo' into Bleeding-Edge
Conflicts:
	code/ATMOSPHERICS/pipe/pipe_dispenser.dm
	code/game/machinery/computer/HolodeckControl.dm
	code/game/machinery/embedded_controller/embedded_controller_base.dm
	code/modules/mining/money_bag.dm
	code/modules/mob/living/carbon/carbon.dm
	code/modules/mob/living/silicon/mommi/mommi.dm
	code/modules/mob/living/simple_animal/friendly/farm_animals.dm
	code/modules/research/destructive_analyzer.dm
	code/modules/research/rdconsole.dm
	code/modules/research/xenoarchaeology/machinery/analysis_base.dm
	code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm
	code/modules/research/xenoarchaeology/tools/ano_device_battery.dm
2015-04-12 16:40:59 -05:00
ComicIronic
d0e9eedd25 drop_item and click code.
drop_item now has a first arg, which is the item to drop.
Hand processing now uses drop_item properly, which fixes #3874, #3796.
Also fixes #3486.
2015-04-12 00:56:43 +01:00
Kurfursten
46e0549341 Con/Decon Part 1 2015-04-08 12:43:26 -05:00
ComicIronic
34bab36581 Changes to drop_item.
The drop_item arg is now the loc placed, not the child of the loc or whatever.
Removed a few lines of items being placed into themselves, on themselves, into other things manually, into their users, etc.
Cleans up the fix for MoMMI recharger silliness.

This took about 2 hours of non-stop manual searches.
2015-03-08 21:37:34 +00:00
D3athrow
1a623739b7 Fix air alarm funtime. 2015-02-23 23:03:44 -06:00
D3athrow
6956a3c4df Should fix the issue of nano windows popping back up after closing them. 2015-02-21 15:47:40 -06:00
DeityLink
5f8f657773 PDA update fixing 2014-12-10 03:52:12 +01:00
Wild Bill
96af204efc Remove old unused shit 2014-09-16 15:29:57 +03:00