Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upSeparate harm from sunlight to eyes and skin to albino characters #16221
Conversation
Night-Pryanik
added some commits
Apr 15, 2016
This comment has been minimized.
This comment has been minimized.
|
Don't pile those duplicate flag checks. They're hard to maintain. Wrap them up in functions, like |
This comment has been minimized.
This comment has been minimized.
|
Albinism and especially trogglo shouldn't be just negated trivially with a pair of sunglasses. Not even welding goggles should be enough to negate full trogglo. Albinism isn't just a matter of eyes being protected. For albino penalty not to hit at all, you'd need 100% coverage on all body parts affected by sun AND this coverage being only counted for "sunproof" items (not cotton or wool). Sunlight hate hits all stats, not just intelligence and perception. It is also a mutant-exclusive trait, meaning it isn't something like just aversion to sun. So, as with albino, it needs to require a full body protection to negate. |
This comment has been minimized.
This comment has been minimized.
|
We have separate From what I read wearing ordinary sunglasses IRL is enough to negate albino photosensitivity. If eyes protection of welding glasses is enough to prevent eyes damage while welding (luminance of this process is much higher of that of sunlight if I'm not mistaken), then it is surely enough to prevent eyes from sunlight. |
This comment has been minimized.
This comment has been minimized.
|
Nothing says that the effects are exclusive, albinism and thevtroglodite
mutations are intended to be skin effects as well.
|
This comment has been minimized.
This comment has been minimized.
|
By the way, at the moment it is possible to negate penalties to albino, troglo and sunburn just by wearing motorcycle pants, even if other body parts are naked. |
This comment has been minimized.
This comment has been minimized.
|
Looks like someone added RAINPROOF to some items without first checking what does the flag do. Only 3 items that don't cover the torso are rainproof:
Though even a full rainproof coat shouldn't fully negate those penalties. Umbrella could be enough for albino, but not for trog and sunburn. |
This comment has been minimized.
This comment has been minimized.
|
I assume the logic is this (correct me if I'm wrong):
Making albino = eyes + skin is redundant IMO. |
This comment has been minimized.
This comment has been minimized.
|
Albinism affects the skin too. If we're removing one of eyes or skin, I'd rather see all of them being skin only because it's much harder to protect the entire body and a negative trait worth 2+ points shouldn't be negated by just wearing sunglasses. |
This comment has been minimized.
This comment has been minimized.
|
Albinos and photosensitive characters suffer from genetic problems (deficit of melanin and all that). I wonder what are the reasons for penalties for trogs? Some magic? |
This comment has been minimized.
This comment has been minimized.
|
Yes, some magic. Troglodite mutation is a reference to a fantasy race.
|
This comment has been minimized.
This comment has been minimized.
|
It seems that albino mutation still was meant for eyes only, because the check is |
This comment has been minimized.
This comment has been minimized.
|
The penalty blocks might have been merged at some point. Albino starts with an umbrella rather than sunglasses. If it was eyes only, it would get the sunglasses, because umbrella is much bigger, has to be held and is rarer. Also, if albino was negated by sunglasses, it wouldn't be worth even -1 points. It has -2 cost at the moment. |
This comment has been minimized.
This comment has been minimized.
|
Well, we have more than enough traits that needs to be balanced. If we are talking about the eyes, there are near-sighted and far-sighted. They are both -2, and negated immediately after start by having glasses in inventory. One doesn't even need to do anything. |
This comment has been minimized.
This comment has been minimized.
Could be fixed by giving the glasses significant encumbrance. 10+ Also, it would be good if eyes had an encumbrance limit for stacking, to prevent nonsensical combos like glasses+goggles. Possibly also removing the ability to repair glasses. Lenses aren't easy to repair. But we're talking about albino. The argument that other trait is not worth its point value isn't enough here - you'd have to prove albino is worth the -2 points.
Wide hat has effectively zero encumbrance because it is worn on the head, where encumbrance has no effect and helmet+boonie is possible. If you want to make wide hats negate albino, make it not a starting trait. Having to wear a boonie hat is less of a penalty than lactose intolerance, which is considered barely worse than free point. |
This comment has been minimized.
This comment has been minimized.
In other words, the resulting photosensitivity is specifically confined to the eyes. |
This comment has been minimized.
This comment has been minimized.
|
I think we need to come to some sort of consensus here by answering these questions.
|
This comment has been minimized.
This comment has been minimized.
Nope. Except maybe if it was nearly constant, very hard to prevent. |
This comment has been minimized.
This comment has been minimized.
|
1) eyes and skin
2) no
|
This comment has been minimized.
This comment has been minimized.
|
Made some work:
|
Night-Pryanik
added some commits
Apr 18, 2016
Night-Pryanik
changed the title
Make light-sensitive & albino characters don't suffer from sunlight
Make albino characters don't suffer from sunlight
Apr 21, 2016
kevingranade
reviewed
May 5, 2016
| if( ( has_trait( "ALBINO" ) || has_effect( effect_datura ) ) && | ||
| g->is_in_sunlight( pos() ) && one_in(10) ) { | ||
| // Umbrellas can keep the sun off the skin and sunglasses - off the eyes. | ||
| if( !weapon.has_flag( "RAIN_PROTECT" ) ) { |
This comment has been minimized.
This comment has been minimized.
kevingranade
May 5, 2016
Member
The nesting is wrong now, having the protective items will keep the messages from being displayed, but you'd still be woken up and suffer pain.
kevingranade
reviewed
May 8, 2016
| "points" : -2, | ||
| "description" : "You lack skin pigmentation due to a genetic problem. You sunburn extremely easily, and typically use an umbrella when going out in the sun.", | ||
| "points" : -1, | ||
| "description" : "You lack skin pigmentation due to a genetic problem. You sunburn extremely easily, and typically use an umbrella and a sunglagges when going out in the sun.", |
This comment has been minimized.
This comment has been minimized.
kevingranade
reviewed
May 8, 2016
| if( ( has_trait( "ALBINO" ) || has_effect( effect_datura ) ) && | ||
| g->is_in_sunlight( pos() ) && one_in(10) ) { | ||
| // Umbrellas can keep the sun off the skin and sunglasses - off the eyes. | ||
| if( !weapon.has_flag( "RAIN_PROTECT" ) ) { |
Night-Pryanik commentedApr 15, 2016
When wearing gear that protect eyes from sunlight and glare, including complete light blocking.
As per discussion in forum (http://smf.cataclysmdda.com/index.php?topic=12434.0)