27 Commits

Author SHA1 Message Date
Spookerton 978f4511a5 examine signature changed to include distance
- distance is INFINITE, 0, or a positive integer based on get_dist() between
the examiner and examinee's turfs when they are on the same Z. When the
examiner is dead or a ghost, distance is always 0.
- also updates /examine( implementations to use it!
- adds w_class_to_name proc for reusing "It is a X item." examine behavior.
2024-01-31 13:49:52 +00:00
spookerton 29be1f09d2 fix some misc hits on direct overlays access 2023-09-10 17:00:06 +01:00
Mechoid 29f3be1872 Maintenance on Hydro code, specifically vines and bees. (#8851)
* Maintenance on Hydro code, specifically vines and bees.

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/spreading/spreading_growth.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/spreading/spreading_growth.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Mutation update.

Sporing, and Temperature Adjustment, can now mutate.

* Ignore me.
Sporing can mutate.

* Flamethrowers can now burn plants in Righteous Fire.

* Update code/modules/projectiles/projectile/bullets.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/modules/hydroponics/beekeeping/beehive.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

Co-authored-by: Spookerton <spkrtn@pm.me>
2023-01-02 15:47:32 -08:00
spookerton 1ccb2df2de trivial 1:1 overlays -> overlay proc changes
NB. In some cases we go from a more complex image() to a single icon_state string and I assume this works for every case but do not care to check because of the sheer scale of extra fiddly effort. Buyer beware, not my code.
2022-04-24 07:50:21 +01:00
atermonera 9d71839ac6 Removes devices 2022-04-17 19:14:43 -08:00
atermonera 7a9806d9b4 Removes weapons 2022-04-17 19:14:32 -08:00
atermonera c7f1880394 Revert "What was supposed to be another straightforward major system overhaul that once again spiraled out of control (#8220)"
This reverts commit 4d8c43f106.
2022-03-29 16:01:32 -08:00
Atermonera 4d8c43f106 What was supposed to be another straightforward major system overhaul that once again spiraled out of control (#8220)
* get_tool_quality has numerical meaning

* Basic tools set tool quality

* Toolspeed is replaced by tool quality checks

* Addresses assorted results from live test

* Extra cleanup
2022-01-16 15:52:55 -08:00
MistakeNot4892 2f0a618d45 /atom New() => Initialize() [MDB IGNORE] (#8298)
* Find and replace argless atom New() to Initialize().

* Manual replacement of no-arg New() to Initialize().

* Manually replacing remaining New() overrides.

* Fixing linter issues with now-removed New() args.

* Tidying area init overrides.

* Porting Neb's atom subsystem.

* Trying to isolate init problems.

* Adjusting Init code post-test.

* Merging duplicate Initialize() procs.

* Merge resolution.
2021-11-14 00:09:14 -08:00
MistakeNot4892 b22a0568a3 Sideports a couple of init unit tests from Neb. (#7893)
* Sideports a couple of init unit tests from Neb.

* Trying to unfuck initialize logic.

* Removing del()s.

* Adjusting return values to Initialize().

* Moving some dangerous object logic from obj onto the two types that use it.

* Rolling back some init changes and commenting out initialized atom unit test.

* this comment formatting is a minor war crime

* Removed sleep() from signaler circuit Initialize().

* Additional Init fixes post-rebase.

* Uncomments subsystem test since that's passing.
2021-02-21 12:03:34 -09:00
ShadowLarkens 927c41c7a3 Convert /material to it's correct absolute path /datum/material (#7637) 2020-09-20 02:00:09 -07:00
Aronai Sieyes ad75bb86bd Alter playsound paradigm 2020-05-19 11:06:28 -04:00
Aronai Sieyes 6c6644f86c Rewrite examine() to pass a list around (#7038) 2020-04-29 13:42:16 -07:00
Mechoid e2e870f2b4 Medical Expansion (#6465)
* Starts work on the Medical Expansion.

* Further Work

* Save Everything!

* Large volume of things.

* Log of Change

* I'm an idiot.

* Kidney assisted sprites. They didn't exist, for some reason.

* Fixfix

* Fixfix

* Update encased.dm

* Update glass.dm

* Update Chemistry-Reagents.dm

I am once more an idiot.

* Split augs.

* Fixfix
2019-10-19 19:27:39 -08:00
lbnesquik 3844eef61f Fix wax appearing to be steel. 2018-10-18 20:50:40 +02:00
lbnesquik db053ca240 wax staxs 2018-10-12 14:30:22 +02:00
Anewbe 729ce71aa0 Converts most istype(thing,tool) procs into an appropriate thing.is_tool() format 2018-08-02 21:45:15 -05:00
Neerti 99eb6f9404 Updates Tools
Adds toolspeed var, which is a multiplier on how 'fast' the tool works.  0.5 means it goes twice as fast.
Adds usesound var, which determines what sound is used when a tool is being used.
Changes a lot of code to use those two vars instead.
Adds 'ayyy' tools, which are ported from /tg/'s abductor gamemode.  They're currently admin only but I might make them obtainable by xenoarch later.
Adds powertools, also from /tg/.  CE starts with them in a new toolbelt that spawns in their locker, ported from (you guessed it) /tg/.
Changes welder sprites to look nicer, ported yet again from /tg/.  Modified the blue welder slightly so it can be the electric welder sprite.
Adds various sounds from /tg/, for tools and welders.
2017-08-03 04:49:23 -04:00
Neerti 828dacf485 Centralizes weight class definitions
A lot of new defines are now in inventory_sizes.dm, which contains;
All the size identifiers (the thing that tells the game if something is bulky, or w/e).
Storage costs for all the sizes, which are exponents of two, as previously.
A few constants for inventory size.

Also changes all storage item's capacity definitions by basing it off of how many 'normal slots' exist for it.  This allows one to change the definition for all of the defines in the file, and everything will follow along without needing to change 500 files.  In testing, I made all ITEMSIZE_COST_* defines doubled, and nothing had broke.

The benefit of doing all of this is that it makes adding new weight classes in the future much simpler, and makes knowing how much space a container has easier, as seeing ITEMSIZE_COST_NORMAL * 7 means it can hold seven normal items.
2016-09-22 00:51:51 -04:00
Datraen beda3185eb Reverts the second mob clean up because of incomplete implementation.
This caused an error that would then cause machinery to hang on the server, and was reproduced successfully.
2016-05-04 00:24:55 -04:00
Kelenius df5a0d7941 Mob inventory cleanup
Replaces three item removal procs with one
Adds a proc to delete an item on the mob
2016-03-24 01:23:08 +03:00
Kelenius bcc5127a69 Sprites for drying racks, bees for hydroponics
Adds distinct sprites for drying racks, taken from /tg/.
Remaps hydroponics a bit and adds a crate with beekeeping necessities.
Fixes a typo in the smoker.
http://imgur.com/eaDmbPE
http://imgur.com/wywJ9j3
2016-02-20 14:34:54 +03:00
Kelenius 42a9032e78 Hive dismantling, build timer, smoker sprite 2015-07-09 10:47:00 +03:00
Kelenius 53152abfd9 More sprites, span. 2015-07-08 17:00:09 +03:00
Kelenius 876dde550a Beekeeping: spans, sprites, wood recipes, fixes 2015-07-08 12:55:55 +03:00
Kelenius 33a6cac0e1 Removes old hives 2015-07-08 12:55:53 +03:00
Kelenius c5b98782d5 Adds a new type of beehives
Needs sprites, and removal of old beehives.
2015-07-08 12:55:37 +03:00