Commit Graph

27 Commits

Author SHA1 Message Date
coiax
66bbf1e58e Refactors a common pattern, clothing traits (#56233)
A common pattern is clothing that gives a certain trait when equipped in
the correct slot, for example, mesons making you immune to supermatter
madness, or the bartender's beer goggles giving them the ability to
"booze slide".

Now, instead of implementing essentially the same logic on equip and
dropped, it is now supported at the clothing level with the
`clothing_traits` lazylist.
2021-01-19 11:21:51 -05:00
ArcaneMusic
5338ad1696 Re-assesses 99% of vending prices through Arconomics to match player resources and round-length. (#54715)
* The Re-pricening

* Rewritten and adjusted for paycheck defines.

* I made the map changes finally.

* And the refills too.

* "OH YEAH REPLACING IT ALL WITH DEFINES AND SCALING IT THE EXCEL DOCUMENT WILL BE EASY, ARCANE!!!"

* And the premium ones too.

* Accidently spoiled a future pr due to dme bleedover
2020-11-13 16:17:22 -05:00
nemvar
6ef421be42 Renames a few variables. Also reorders icon fallback order again. (#51060)
* Renames a few variables. Also reorders fallback order again.
Renames item_state to inhand_icon_state
Renames mob_overlay_icon to worn_icon
Renames mob_overlay_state to worn_icon_state
worn_icon_state/mob_overlay_state now never gets used for inhands.

* Fixes some comments

* Fixes map issue

* Restart lints

* Properly resolves conflicts
2020-05-25 06:47:19 +02:00
plapatin
a8fb93d896 nanotrasen-brand spacepod changes 2020-02-16 13:20:36 -08:00
Mickyan
0b3e1b524a Functional headphones (#48908)
* headphones

* adds element for mob icon updates

* corrects some "user" errors, literally

* now using signals

* removes extra space
2020-02-13 16:38:15 +01:00
MrPerson
26093e5ac2 Further update_icon splitup (#48784)
* Further update_icon splitup

After this there'll be just under 100 old update_icon() calls that need fixing.

* Thanks Travis
2020-01-22 10:18:05 -05:00
Paxilmaniac
48e6db2fbc makes space pods (and earmuffs) make you deaf
i guess i can make earmuffs actually work while im at it
2020-01-13 19:44:41 -08:00
Paxilmaniac
b8b2d23616 Revert "space pods damage your ears"
This reverts commit ee400cbcb4.
2020-01-12 12:00:02 -08:00
Paxilmaniac
ee400cbcb4 space pods damage your ears
TURN YOUR FUCKING RAP MUSIC VOLUME DOWN
2020-01-12 11:37:57 -08:00
Paxilmaniac
f3d037929c subtypes are very cool
hi x2
2020-01-11 20:49:40 -08:00
Paxilmaniac
191d3f06c3 Merge remote-tracking branch 'master/air-pods' into air-pods 2020-01-11 20:31:14 -08:00
Paxilmaniac
3cb2161e4e probably fixes that giant fucking runtime
maybe
2020-01-11 20:31:05 -08:00
Paxilmaniac
51892382dd people can still hear your music when you are wearing airpods, especially that one guy that has his rap music at like 9000 Db
custom_premium_price is cool
2020-01-11 20:13:10 -08:00
Paxilmaniac
8afbb99c72 oh god oh fuck i cant hear anymore
hi
2020-01-11 19:19:36 -08:00
Paxilmaniac
6d09cfb5a0 adds nanotrasen space pods
not those shitty space travel things, they are actually offbrand airpods
2020-01-11 19:00:16 -08:00
Mickyan
55f19df748 Normalizes payouts and vendor prices to an approximate of cargo's credit value (#48174)
* prices & income

* more prices

* lower megaseed premium prices

* custom prices for premium tools

* slightly lowers prices for some snacks/drinks/cigs

* hey get back here
2019-12-16 17:43:27 +01:00
Emmett Gaines
5481515dff Removes the non bitflag slot defines (#47742)
Removes the non bitflag slot defines
2019-11-17 17:52:11 -08:00
Emmett Gaines
328fc7b1f1 Adds elements: Lightweight shared components/Global components (#44817)
If you came here thinking this was some game feature then you are in the wrong place. Here is where I ramble about code.

This adds /datum/element as a sort of sibling to components. Only one of each type gets instanced and they do not get tied directly to any particular thing like a component does. Basically they're a very lightweight component for doing simple functionality that doesn't have much state.

Originally this concept came about as a kind of component that could be shared between many parents to reduce some resource costs. Doing this would allow us to componentize more behaviors that are a part of too many things to be viable to have a whole component for every single one. For example a component on every space turf would be entirely unviable. With elements it's much more reasonable.

This implements a prety bare framework and a couple components are migrated to it. It's ready to be used but I fully expect I'm going to need to refine how it works for all the usecases we'll want it for.

Also: this fixes the qdeleted signal. This signal isn't even possible because after qdel is done there's nothing to receive a signal anyway. I've changed it to a qdeling signal instead. I need it to work for some elements to know when to clean themselves up.
2019-07-09 11:26:51 +12:00
Mickyan
d1b10b2691 Vendor tweaks & prices: take 2 (#40927)
* vendor tweaks

* i was never good at cooking

* soda

* boozeomat sorting

* updated ramen desc
2018-10-22 08:40:24 +13:00
vuonojenmustaturska
fd4c753a04 replaces BANG_PROTECT_2 with a component, also kills OMNITONGUE_2 and flags_2 (#37597)
* kill BANG_PROTECT_2

* let's put this back in

* dirty

* kill OMNITONGUE_2

This is a write-only variable, probably leftover from some refactor years ago

* kill flags_2
2018-05-02 14:13:41 -04:00
vuonojenmustaturska
3eb30b16f3 Replaces HEALS_EARS_2 with a component, adds a wearertargeting parent component for future use (#37530)
code: HEALS_EARS_2 is removed in favor of the earhealing component

code: wearertargeting component is available to subtype for components that want to target the wearer of an item rather than the item itself
2018-04-30 10:32:59 +12:00
AnturK
4c5a43eeb8 Prefix for item flag slot defines. 2018-04-27 10:30:48 +02:00
LeoZ
99359eb2ff Adds an underscore to file names 2017-10-21 21:25:33 -02:00
Jordan Brown
5fbc6c262b Makes a flags var use NONE instead of 0 2017-09-24 01:58:50 -05:00
Ian Turk
371f1ba4f0 Replace all secondary flags with bitflags stored in the flags_2 var 2017-08-15 16:01:35 -06:00
Fox McCloud
2cc3e9c41f Disease Refactor (#29130)
* Vomit Now Contains Viruses

* eh

* typeless memery

* Disease Refactor

* tweaks

* styling

* tweaks

* unecessary comment removal

* whoops

* fix
2017-07-15 11:08:40 -04:00
kevinz000
44e99ed7ba Adds Headphones! (#28993)
* kek

* this /should/ work.

* icon updates and wardrobes and vendors

* remie

* Update ears.dm

* typecast

* states

* updates

* Update fitness.dm

* Update wardrobe.dm

* Update vending.dm
2017-07-07 13:44:21 -04:00