Commit Graph

46 Commits

Author SHA1 Message Date
Bjorn Neergaard 4ef2667ff2 Rewrite supply packs/cargo orders 2016-02-07 04:45:55 -06:00
Bjorn Neergaard 29fdf73cc6 tgui power monitor; linegraph component 2016-02-05 17:06:04 -06:00
Fayrik a674179746 Now using attack logs for pai history. PAI to pAI. Removed unnecessary spacing on if statements. 2016-01-31 19:29:36 +00:00
Fayrik b9162fbb3e Tweaked card ejection slightly. 2016-01-31 00:25:51 +00:00
Kyle Spier-Swenson 3c5cdbefe3 forgot to typecast properly 2016-01-04 23:42:45 -08:00
Kyle Spier-Swenson 64fc9ffc4c Removes some : in cartridge code 2016-01-02 15:14:34 -08:00
Bjorn Neergaard 34b717afb4 radio_controller -> SSradio, SSbp -> SSnpc 2015-12-04 22:25:24 -06:00
Remie Richards b6209e4508 Merge pull request #13139 from AnturK/XXXFREEINSULATEDSWITHEVERYPURCHASEXXX
Adds Send To All to Lawyer/Captain cartridges
2015-11-27 20:58:03 +00:00
AnturK e36853d7c9 Convert bots to simple animals - Updated 7.0 2015-11-26 22:06:07 +01:00
AnturK caa07f84c4 Adds Send To All to Lawyer/Captain cartridges 2015-11-21 12:24:41 +01:00
Razharas 84a5511836 Merge pull request #12283 from KorPhaeron/inworld
Removes a bunch of in world
2015-10-12 12:12:35 +03:00
KorPhaeron 31836a5deb Removes in world 2015-10-09 22:37:53 -05:00
Razharas 9dec40d8d5 Removed colon
Removed colon
2015-10-10 02:31:19 +03:00
bgobandit 778564986d Gives the QM and cargo techs the QM cartridge.
Added rarity values for plants lacking them.
2015-09-10 19:06:42 -04:00
Firecage 4688c2c969 Fixes proc arguments 2015-07-15 23:52:35 +02:00
kingofkosmos c8d79e7034 Removed unnecessary spaces in these situations:
"span class = '" changed to "span class='"
"'> " changed to "'>"
2015-06-14 12:13:19 +03:00
Aranclanos fe4d28a376 Newscaster code big cleanup.
Removes lots of copypaste.
Admin newscaster barely modified, they still are a gigantic copypaste from the topic.dm() of the newscaster object.
Printed diaries will now only report the information available when they were printed, including wanted status and the different types of censorship.
All datums are now under /datum/newscaster
Wanted is now a different type of datum, /datum/newscaster/wanted_message
Fixed a bug where you couldn't censor normal submissions, made by crewmembers.
Fixes #944
2015-05-19 09:32:46 -03:00
GunHog df902d50fc Bots Revamp
- Viciously rips radio code from bots, replacing it with something
better and faster!
- Bot patrol logic redesigned, much faster.
- Gives all bots Robotics access for easy patrol activation.
- Bot navigation beacons are no longer radios. Instead, they are
maintained in a global list.
- Navbeacons can now be accessed by Roboticists, and they use a better
UI.
- PDA bot code rewritten. They no longer use radio objects at all!
- Captain now has all-access! His cartridge now has everything except
Mime and Clown functions.
- There is now one button across all PDAs for accessing bots. Only bots
you have access to control will show on the list.
- Buffed the signaler cartridge! It may now be used to signal on all
valid frequencies.
- The AI's botcall interface now includes the bot's model, so it can
always identify the type of bot it is controlling. PDAs have this as
well.
- Spilled my blood to begin Jordie's dark ritual.
2015-05-03 17:31:10 -05:00
GunHog 3f762ee6b5 PDA Upgrade and Bot Fixes
-The Captain's PDA can now access multiple bots!
- The Captain and HoP PDAs can now also remotely access Newscasters!
- Bot radio code now no longer uses filters to allow for multi-access
radio control.
- Bots can now patrol while off station.
2015-04-08 20:12:01 -05:00
carnie a029a49392 SubSystem rewrite
Misc:

+Fixes unreported issue with initializing lighting on a specific zlevel

+Fixes two similar issues with moveElement and moveRange. Where fromIndex or toIndex could be adjusted incorrectly in certain conditions. Potentially causing bad-sorts, or out of bound errors.

+Rewrites listclearnulls(list/L) to no longer iterate through L.len elements for every null in the list (plus 1). i.e. went from L.len*(number_of_nulls+1) list-element reads (best-case), to L.len list-element reads (worst-case)

+New proc/getElementByVar(list/L, varname, value) which finds the first datum in a list, with a variable named varname, which equals value. You can also feed it atoms instead of lists due to the way the in operator functions.

+Fixes an unreported issue with Yota's list2text rewrite. Under certain conditions, the first element would not be converted into a string. Causing type-mismatch runtimes.

+New global map_ready variable. This is not fully implemented yet, but will be used to avoid duplicate calls to initialize() for map objects.

+All turfs now maintain references to all lights currently illuminating them. This will mean higher memory use unfortunately, due to the huge number of turfs. However, it will speed up updateAffectingLights significantly. I've used list husbandry to reduce baseline memory usage, so it shouldn't be any worse than some past atmos modifications memory-wise.

-Removed 'quadratic lighting', can add this back at some point. Sorry.

+modified the way lum() works slightly, to allow turfs to have overridden delta-lumen. i.e. space cannot be illuminated more than its default ambiance. This allowed removal of some iffy special-snowflake lighting areas implemented by somebody else.

+Lighting images in the dmi can now use arbitrary naming schemes. It is reliant on order now. This allows the dmi to be replaced by simply dropping in a new dmi.

-Removed all subtypes of /area/shuttle. Shuttles now create duplicate 'rooms' of /area/shuttle. (More on this later). This will conflict with most maps. Guide on how to fix to follow.

+All verbs/tools relating to world.tick_lag were refactored to use world.fps. However old config text for setting tick_lag will still work (it converts the value to fps for you)

+MC stats improved using smoothing. They now have their own tab so they dont get in the way when you're playing as an admin.

-removed the push_mob_back stuff due to conflicting changes. Sorry Giacom.

_OK, NOW THE ACTUAL INTERESTING STUFF_

Following systems moved over to subsystem datums:
air_master
garbage_manager
lighting_controller
process_mobs (aka Life())
nanomanager
power
sun
pipenets
AFK kick loops
shuttle_controller (aka emergency shuttle/pods), supply_shuttle and other shuttles
voting
bots
radio
diseases
events
jobs
objects
ticker

Subsystems hooks and variables should be commented fairly in-depth. If anything isn't particularly clear, please make an issue.

Many system-specific global variables have been refactored into

All tickers which previously used world.timeofday now use world.time

some subsystems can iterate before round start. this resolves the issue with votes not working pregame
2014-12-31 13:25:41 +00:00
AnturK e573f02acc Check trimming 2014-12-17 14:36:49 +01:00
AnturK a1f3a51dab Adds Librarian PDA cartridge 2014-12-14 13:59:35 +01:00
GunHog 921143c078 ED-209 balance changes and bot tweaks
- ED-209's effective range has been reduced to 7, down from 12, to
prevent them attacking people off-screen.
- Ruthlessly nukes ".src" from the bot files, especially ed209bot.dm and
secbot.dm!
- Summoned bots now report on their department radio when summoned by
PDA.
- Bot radio frequencies now use the helpers instead!
- Officer Pingsky (On the MiniSat) is now set to declare his arrests on
the AI Private frequency, instead of Security.
- The remote_disabled var now prevents bots from being summoned or
controlled via PDA as well removing them from the AI's control panel.
- The AI can no longer re-activate a bot's remote control radio by
hacking it from the interface.
- The telescopic baton is now considered a safe weapon to carry and
wield by security bots.
- Added a small reminder to PDA users that bots can download access from
their ID to reach them.
2014-10-22 10:26:16 -05:00
GunHog 589c1f4cbb Botcall, TG edition! 2014-09-25 09:44:41 -05:00
Firecage 6c7af5eb32 SPANCLASSES!!!!! 2014-08-26 09:52:13 +02:00
Firecage 24b18fad93 Absolute paths for item files. 2014-08-07 23:02:43 +02:00
Rockdtben 0e26850893 PDA - Security Records were missing tables.
Fixed a bug where printing would stop working if a record was deleted.
2014-07-12 20:54:47 -05:00
Rockdtben 6eeeb1e5fe Removed some useless comments from years ago. 2014-03-12 07:59:34 -05:00
Kyrah Abattoir 225a906eda code/game/objects/items/* (root) lowercase pass
code/game/objects/items/devices/* lowercase pass
2013-11-20 19:15:00 +01:00
KazeEspada da5ff1aca6 Merge branch 'master' of https://github.com/tgstation/-tg-station into computers 2013-09-24 14:07:51 -07:00
KazeEspada 38d7374bc2 Makes circuits into type paths. Dna modifiers had a bad string that showed up when converted into a type path. Power monitors are now actually computers. Makes smashing computers red. 2013-09-21 14:41:50 -07:00
Fleure 760589cd35 Janitor PDA now locates the cart, removes old bucket locator 2013-09-21 01:21:13 +01:00
carnie ffa9bb51cd Helper proc /proc/find_record(field, value, list/L)
It will search list/L for a /datum/data/record with fields[field] == value, and return it.

This removes a vast amount of copypasta (there's still so much left in there though). It also removes all the locate(\ref[record]) I could find, which were normal used with topic(), meaning it was susceptible to abuse.

Secbots, ed209s and turrets are now smarter with their record-checks. They now prefer to use our face-name rather than id-name. ICly, this is the bot using facial recognition. This fixes an issue where it'd try to use the name variable which could be in the format "Unknown (as their id name)" when they were disfigured, etc. causing record-lookup to fail.

Additionally, these bots will treat those without a valid record in the security database, to be treated like criminals.
2013-08-11 12:49:55 +01:00
carnie 02be173c60 Renamed variables:
b_type to blood_type
h_color to hair_color
f_color to facial_hair_color
f_style to facial_hair_style
h_style to hair_style
2013-08-01 13:48:41 +01:00
Malkevin f88ffadc5f Removed all the spawn()s for PDA radio functions, seems to work fine. 2013-07-16 18:44:46 +01:00
Malkevin 86041c381d Securitron access to the DETECT cartridge
My thinking behind this is ff the detective isn't meant to arrest people himself but is meant to call for back up instead, why not give him access to back up that will actually show up?

Also added SecBot access to the Captains for no reason other than he's the Captain and he should be getting his hands dirty.
Also is the captain's PDA meant to have access to all pda functions? Because I've noticed theres a few missing.
2013-07-07 23:03:23 +01:00
giacomand@gmail.com 46a4db06a3 - Committing the proposed commit by Carn. http://forums.nanotrasen.com/viewtopic.php?f=16&t=12049
This patch removes texticon() for the following status-displays:
obj/machinery/status_display (general/emergencyshuttle/supplyshuttle)
/obj/machinery/door_timer (brig timers)

These displays now use maptext and act the same as they did before (as close as I could get them, that is). This should hopefully reduce the overall cpu usage by status displays.

Examining status_displays will now give a message like "the display reads: ....blahblahblah"

The number of updates was halved for scrolling text. Removing one spawn per tick for each display.

The length of scrolling messages is now capped to 40 characters and sanitized for < > tags and such.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5640 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-01 15:38:48 +00:00
ericgfwong@hotmail.com ed01727e8b Whoops, did not mean to give the Captain that.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5408 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-27 06:48:48 +00:00
ericgfwong@hotmail.com db6d43146e Analysing gas tanks is no longer a built-in function of PDAs
Added Gas Scanner function to atmos and science carts
Added spare atmos PDA cart to CE office
Fixed engineering break room tile icons

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5407 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-27 06:38:16 +00:00
ericgfwong@hotmail.com d0d506252c 2.1.0 mapping fixes.
-Added missing door to chemistry
-Added missing welding goggles to R&D
-Fixed piping error that caused toxins mixing to bug out
-Added more biohazard shutters to Science
-Reversed direction of toxins mixing pipes
-Re-enabled reagent scanner function in toxins PDAs
-Added missing disposal pipe under Mining Dock door

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5308 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-13 18:23:11 +00:00
giacomand@gmail.com f1d24f27f9 Simplified Detective.
-Changed the focus from the high-res scanner to the regular scanner. It will simply scan the fingerprints and display them to the detective. For extra functionality, it'll store it's findings in a log and then you can print it out in a report by using attack_self().

-Detectives can now use the medical computer.
-Removed the pda forensic scanning functionality.
-Got rid of now useless high-res scanner computer. Got rid of the now useless fingerprint cards.
-Added a medical computer to the detective's office and replaced the useless medical cabinet with an empty one.

Other

-Got rid of diseases magically moving down a stage.
-Optimized playsound()
-Added an attack_self() to sprayers so that you can change the reagent use of them between 5 and 10.




git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5168 316c924e-a436-60f5-8080-3fe189b3f50e
2012-11-23 00:39:18 +00:00
petethegoat@gmail.com 06ef565d4d Some runtime fixes for the med data computer and hopefully the mule cart.
Fixes issue 526. MMI-Mech issues
MMIs can now change intent. There's no feedback, but they can at least function properly now in mechs.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5098 316c924e-a436-60f5-8080-3fe189b3f50e
2012-11-17 17:44:29 +00:00
giacomand@gmail.com 6a2d78bc94 -Killed the updateDialog lag. I added a check to see if there were any mobs to update, if not it will stop checking until a user uses the machine again. I had to replace all the machine = src and machine = null with procs to help make it manageable. I believe this is one of the culprits causing the server to lag as the round goes on, as more players will interact with machines.
-Atmos delay is now based on active players, to help fight lag for massive player rounds.

-Changed some for(blah in world) loops to use the correct lists.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4958 316c924e-a436-60f5-8080-3fe189b3f50e
2012-10-25 19:15:51 +00:00
rockdtben@gmail.com b4815552ba cart.dm: Removed a useless line in my commit from r2436.
FEA_gas_mixture.dm: Removed comments that documented a removal of useless variables. I will let the SVN handle documenting that.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4752 316c924e-a436-60f5-8080-3fe189b3f50e
2012-09-25 10:08:49 +00:00
petethegoat@gmail.com 2717517f17 Fixes issue 854. I have very little confidence in the longevity of my fix, so if any issues with the nuke shuttle doors arise in the future, please inform me!
Added a little bar for nuke ops to relax in, following a job well done.

Updated pod control computers to only show time controls if a mass driver is attached. Doors don't need to be on a timer.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4703 316c924e-a436-60f5-8080-3fe189b3f50e
2012-09-16 14:32:23 +00:00
johnsonmt88@gmail.com d36387607f More file structure stuff.
- The folders themselves are now finished
- Next I'll go through each file and organize them
- Lastly I'll start pulling the object definitions out of /code/defines/ and put them into their respective files.

**Note to committers**
Make sure the .dme file updates when you update to this revision. If necessary delete the .dme and svn-update.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4546 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-26 01:20:02 +00:00