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

Gives the hoodie a hood! #3570

Closed

Conversation

Projects
None yet
4 participants
@Rivet-the-Zombie
Copy link
Member

commented Oct 11, 2013

No description provided.

@Shoes01

This comment has been minimized.

Copy link
Contributor

commented Oct 11, 2013

Will a player be able to put on an unfitted hoodie while still wearing a helmet? If not, I would suggest doing something similar to how pockets are handled; add a hood flag, check for head encumbrance. If encumbrance is too high (1 or 2, I forget what is the limit), then the player "takes the hood down" and loses its warmth bonus.

@kevingranade

This comment has been minimized.

Copy link
Member

commented Oct 11, 2013

Yea that'd be ideal, I'm starting to think that clothes should have two warmth values, an upper and lower bound, and it picks the ideal value within that span. Similarly if you have a hood or pocket flag, the lower bound for that body part is set to 0 since you can remove it entirely.

@Rivet-the-Zombie

This comment has been minimized.

Copy link
Member Author

commented Oct 11, 2013

I can take a shot at it, but with my limited coding ability, I can't promise anything.

@Shoes01

This comment has been minimized.

Copy link
Contributor

commented Oct 11, 2013

kevin, wouldn't those two warmth values be covered by the "homeostasis calculation" in bodytemp? If you're cold, you get a boost in warmth. Or do you mean something else?

@Rivet-the-Zombie

This comment has been minimized.

Copy link
Member Author

commented Oct 11, 2013

I think he means giving each article of clothing a range of warmth to better represent that the insulation granted by a piece of clothing isn't an immutable thing, and allowing people to do stuff like wear a cotton hat on a hot day without its fixed warmth rating causing you to suffer heatstroke.

@kevingranade

This comment has been minimized.

Copy link
Member

commented Oct 11, 2013

Yea, there's one range that represents the body's ability to regulate itself, this would be a range that represents your ability to consciously alter how you wear your clothes for the same effect. It also varies based on the type of clothing, a jacket you can unbutton or unzip and mostly rid yourself of the warmth, but a sweatshirt you pretty much have to take off to avoid the warmth. Similarly pants wouldn't be very adjustable unless they had a special feature.
I keep thinking of this because I deal with it constantly, cycling to and from work I've gotten to the point where I'l unbutton and pull my dress shirt open (I wear underarmor) while I'm riding my bike because I start overheating. If it's colder and I'm wearing a jersey over the dress shirt, I unzip that, but some of my jerseys don't unzip all the way, so I have to be careful about wearing those.
Likewise you might be able to roll up sleeves, raise or lower a hood, stick your hands in your pockets, etc, but all these should happen automatically.
When the clothing item is described it'll list the features, "This sweatshirt has pockets to keep your hands warm" "this hoodie has a hood you can raise or lower to keep your head warm" "this jacket can unzip to help you keep cool 8)"
Having a high/low warmth value is an attempt to keep things simple instead of having flags for every single adjustment you can make. So if an item can have it's warmth substantially altered, it gets an (optional) low_warmth value, but if it does something like optionally covering a body part, it gets a flag like "pockets" or "hood".
That's what I'm thinking of anyway, there could be a better way.

@Rivet-the-Zombie

This comment has been minimized.

Copy link
Member Author

commented Oct 11, 2013

I think that sounds great!

Unfortunately it's so far beyond my abilities that all I can offer at this point is words of support.

@KA101

This comment has been minimized.

Copy link
Contributor

commented Oct 12, 2013

Well, I'd suggest that copying Shoes' code for Pockets seems the best solution. If head encumbrance is 0 and temp is Cold, you get the warmth bonus from the hoodie.

(That way, people don't insist on hood-up in Summer.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.