Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neck Slots #21169

Merged
merged 9 commits into from
Oct 26, 2016
Merged

Neck Slots #21169

merged 9 commits into from
Oct 26, 2016

Conversation

chowdermcarthor
Copy link
Contributor

🆑 Chowder McArthor
add: Added a neck slot.
tweak: Modified some of the attachment items (ties, scarves, etc) to be neck slot items instead.
/:cl:

@Cyberboss
Copy link
Member

This can ONLY end well

var/body_part = parse_zone(user.zone_selected)
if(body_part)
var/their = "their"
switch(M.gender)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have pronoun procs that automatically return things such as "his","her"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't do this, I was copy/pasting shit from the other slots just to be certain on things I was unsure about.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter, you touch code it's your job to update it :P

@@ -1,4 +1,4 @@
/obj/item/clothing/tie
/obj/item/clothing/tie //Ties moved to neck slot items, but leaving this as-is to avoid conflicts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth nuking this path from orbit now, no need for it anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change armbands, or medals, or the waistcoat.

Copy link
Contributor

@RemieRichards RemieRichards Oct 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, sure, it can live for now then.
one day we'll remove the shitty accessory system.
one day.

Alter the comment to mention it's still used for armbands/medals etc., rather than just "no conflict pls" :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.

@RemieRichards
Copy link
Contributor

Looks ok overall, Travis is failing due to the tie path changes on metastation, so you'll have to swap those for the new paths (mostly just adding /neck from the looks of things)

@chowdermcarthor
Copy link
Contributor Author

I did it for most maps, forgot to do metastation for some reason is all.

@ghost
Copy link

ghost commented Oct 24, 2016

Chowder is cool.

@ghost
Copy link

ghost commented Oct 24, 2016

Oh and this looks cool.

@GunHog
Copy link
Contributor

GunHog commented Oct 24, 2016

Pet collar ❤️

@RemieRichards
Copy link
Contributor

@chowdermcarthor One thing to request, mind showing a UI shot?

@chowdermcarthor
Copy link
Contributor Author

chowdermcarthor commented Oct 24, 2016

It's just some minor Z levels like on away missions and such now, and sure,
I edited
your comment :)
Fixing the other Z level stuff now.

@RemieRichards
Copy link
Contributor

Fits in nicely

@Cheridan
Copy link
Contributor

So uh
what does this do that the previous system doesn't

@RemieRichards
Copy link
Contributor

The previous system was shit Cheri.

@PKPenguin321
Copy link
Contributor

Certain items like ties should be fine to wear no matter what, pins and medals should require a jumpsuit, idk if you've already accounted for this

@chowdermcarthor
Copy link
Contributor Author

chowdermcarthor commented Oct 24, 2016

It's not a change to the attachment system, really. It adds a new slot, a neck slot. The reason the attachment system was mentioned was because I moved some items from the attachment system to the neck slot.
Also by that idea, arm bands shouldn't need a jumpsuit, but I didn't add them to neckslots.
And, to be fair, the ties are said in their desc. to be clip-ons, not normal ties, which I forgot to change.

@TechnoAlchemisto
Copy link
Contributor

This is fucking sick yo

@chowdermcarthor
Copy link
Contributor Author

chowdermcarthor commented Oct 24, 2016

https://i.gyazo.com/876e6059af2af40e5664a3ffae776b6e.png
I need to remember tomorrow to go and change some of the descriptions, just noticed this while observing on bagil.

@optimumtact
Copy link
Member

the tie inventory slot icon looks like a penis

@@ -55,7 +55,7 @@

/obj/item/clothing/tie/proc/on_uniform_dropped(obj/item/clothing/under/U)
return

/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out code

@Cheridan
Copy link
Contributor

@RemieRichards not an argument

@optimumtact
Copy link
Member

It's a lot less confusing for new players

@Ryll-Ryll
Copy link
Contributor

Attachments were snowflakey and annoying to deal with to the point that no one ever really bothered using any, now they would work like any other item slot

@XDTM
Copy link
Contributor

XDTM commented Oct 24, 2016

Can't wait for exploding collars

@Cheridan
Copy link
Contributor

@Shapsy Accessory items still exist though, so any flaws with THAT system still exist on top of having a new slot taking screen real estate. this isn't a replacement, it's an addition.

@AnturK
Copy link
Member

AnturK commented Oct 24, 2016

I believe abstract "accessory" slot would be better for all the "does not really fit any category" equipment like ties,holsters and similar. Not sure how handling of layers would work in that case though.

@@ -98,7 +102,8 @@
#define HAND_LEFT 512
#define HAND_RIGHT 1024
#define HANDS 1536
#define FULL_BODY 2047
#define NECK 2048
#define FULL_BODY 4096 //2047
Copy link
Contributor

@X-TheDark X-TheDark Oct 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be 4095 to fulfill the functionality of the old flag. Here's the reason:

  • Old FULL_BODY = 2047 corresponded to bitflag (aka binary form of) (111 1111 1111 - meaning it's considered to cover every bodypart);
  • New FULL_BODY = 4096 corresponds to bitflag (1 0000 0000 0000), which means it no longer is considered to cover the entire body, logic-wise, and checks such as cover_flags & HAND_LEFT (or equivalent) will fail under the new system for things with this flag;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so that's why it was that number, I wasn't sure why it was that, I'll change it as soon as I can.

@PKPenguin321
Copy link
Contributor

But yeah big 👍 to this, makes coding special neck items much easier

@Tacolizard
Copy link
Contributor

finally i can wear a medal and scarf without being weighed down

# Conflicts:
#	_maps/map_files/PubbyStation/PubbyStation.dmm
@RemieRichards
Copy link
Contributor

@Cheridan moving the majority of the items under that system to this (which this PR does, neck items were atleast 70% of accessories) increases the odds we'll be able to get RID OF the shit system.
cmon now cheri you're better than this.

@Iamgoofball
Copy link
Contributor

What if accessories was a mini inventory with 3 slots

@Tacolizard
Copy link
Contributor

@Iamgoofball that sounds cool.

also should medals be pinned on like right now or be neck slots? because right now they're more like pins.

@chowdermcarthor
Copy link
Contributor Author

chowdermcarthor commented Oct 25, 2016

Gah fuck, didn't mean to upload that to this.
How do I remove a file from a pull request?

@GunHog
Copy link
Contributor

GunHog commented Oct 25, 2016

Write a commit to revert your most recent change.

@PKPenguin321
Copy link
Contributor

PKPenguin321 commented Oct 26, 2016

git checkout origin/master -- [filename]

gets the file from the main repo and replaces your local file with it. use this on the unwanted changed file and commit

it might be upstream/master or whatever you named this repo in your local git

@Anonmare
Copy link
Contributor

👍
Also, question, will this allow for things like cloaks? Since they do slot around the neck and all.

@optimumtact optimumtact merged commit c7e474c into tgstation:master Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet