Talk:Torso: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Wet protection via warmth ==
I think the threshold for a torso item protecting the wearer from rain is 72. 36 for drizzles. Unless I'm wrong the 35 warmth bit could do with replacing/removing.
I think the threshold for a torso item protecting the wearer from rain is 72. 36 for drizzles. Unless I'm wrong the 35 warmth bit could do with replacing/removing.
--[[User:Grizzlyadamz|Grizzlyadamz]] ([[User talk:Grizzlyadamz|talk]]) 21:03, 7 October 2013 (PDT)-
--[[User:Grizzlyadamz|Grizzlyadamz]] ([[User talk:Grizzlyadamz|talk]]) 21:03, 7 October 2013 (PDT)-
Ok. TBH I'm not sure, as I haven't checked all the wet/hazard protection seriously yet. If you're sure about it you can change it yourself in the warmth template: [[Template:Clothingwarmth]].
The relevant bit is at the end:
<code><nowiki>{{#ifexpr: {{{1}}} >= 50 and (2={{#ifeq:{{{2|}}}|torso|2|0}} or 3={{#ifeq:{{{3|}}}|torso|3|0}} or 4={{#ifeq:{{{4|}}}|torso|4|0}} or 5={{#ifeq:{{{5|}}}|torso|5|0}} or 6={{#ifeq:{{{6|}}}|torso|6|0}} or 7={{#ifeq:{{{7|}}}|torso|7|0}} or 8={{#ifeq:{{{8|}}}|torso|8|0}} or 9={{#ifeq:{{{9|}}}|torso|9|0}})|. Its warmth can also protect you from getting [[wet]]}}</nowiki></code>
All that does is to check if warmth (the passed variable, <nowiki>{{{1}}}</nowiki>) is equal or bigger than 50, and if the item has the torso flag placed in any position. You should only need to change the 50 part.
BTW, you don't need to give yourself more work than it's worth by reordering the items in the lists. The lists themselves can be actually ordered by just pressing the little arrows besides each column title.
--[[User:Kenoxite|Kenoxite]] ([[User talk:Kenoxite|talk]]) 00:09, 8 October 2013 (PDT)

Revision as of 07:09, 8 October 2013

Wet protection via warmth

I think the threshold for a torso item protecting the wearer from rain is 72. 36 for drizzles. Unless I'm wrong the 35 warmth bit could do with replacing/removing. --Grizzlyadamz (talk) 21:03, 7 October 2013 (PDT)-


Ok. TBH I'm not sure, as I haven't checked all the wet/hazard protection seriously yet. If you're sure about it you can change it yourself in the warmth template: Template:Clothingwarmth.

The relevant bit is at the end: {{#ifexpr: {{{1}}} >= 50 and (2={{#ifeq:{{{2|}}}|torso|2|0}} or 3={{#ifeq:{{{3|}}}|torso|3|0}} or 4={{#ifeq:{{{4|}}}|torso|4|0}} or 5={{#ifeq:{{{5|}}}|torso|5|0}} or 6={{#ifeq:{{{6|}}}|torso|6|0}} or 7={{#ifeq:{{{7|}}}|torso|7|0}} or 8={{#ifeq:{{{8|}}}|torso|8|0}} or 9={{#ifeq:{{{9|}}}|torso|9|0}})|. Its warmth can also protect you from getting [[wet]]}}

All that does is to check if warmth (the passed variable, {{{1}}}) is equal or bigger than 50, and if the item has the torso flag placed in any position. You should only need to change the 50 part.

BTW, you don't need to give yourself more work than it's worth by reordering the items in the lists. The lists themselves can be actually ordered by just pressing the little arrows besides each column title.

--Kenoxite (talk) 00:09, 8 October 2013 (PDT)