Jump to content

Crafting Traits: Difference between revisions

From Once Human Guide
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
<a href="https://ohwikiguide.com/index.php/Deviation_Trait_Page">Deviant Trait Page</a>
<a href="https://ohwikiguide.com/index.php/Deviation_Trait_Page">Deviant Trait Page</a>
<br><br>
<br><br>
<div style="max-width:420px; margin:0 auto;">
<div style="max-width:420px;margin:0 auto;">
<style>
  <div style="display:flex;width:100%;background:#0b0f14;border-radius:10px;padding:4px;gap:4px;box-sizing:border-box;">
/* ===== TABS ===== */
    <div class="tab" data-tab="slot1" style="flex:1;text-align:center;padding:10px 0;font-weight:600;color:#001018;background:#0ea5e9;border-radius:6px;cursor:pointer;">Slot 1</div>
.mw-tab-buttons {
    <div class="tab" data-tab="slot2" style="flex:1;text-align:center;padding:10px 0;font-weight:600;color:#cfd6df;background:#11161c;border-radius:6px;cursor:pointer;">Slot 2</div>
  display: flex;
    <div class="tab" data-tab="slot3" style="flex:1;text-align:center;padding:10px 0;font-weight:600;color:#cfd6df;background:#11161c;border-radius:6px;cursor:pointer;">Slot 3</div>
  width: 100%;
  </div>
  background: #0b0f14;
 
  border-radius: 10px;
   <div id="slot1" class="panel" style="display:block;">
  padding: 4px;
    <select id="sel1" style="width:100%;margin-top:10px;padding:10px;background:#11161c;color:#e6edf3;border:1px solid #1f2a35;border-radius:8px;font-size:14px;box-sizing:border-box;">
  gap: 4px;
      <option value="">Select Trait</option>
}
      <option value="cheer_up">Cheer Up</option>
.mw-tab-btn {
      <option value="covert_energy">Covert Energy</option>
  flex: 1;
      <option value="feeling_blue">Feeling Blue</option>
  text-align: center;
      <option value="growing_pains">Growing Pains</option>
  padding: 10px 0;
      <option value="optimist">Optimist</option>
  font-weight: 600;
      <option value="power_rewind">Power Rewind</option>
  color: #cfd6df;
      <option value="rise_and_shine">Rise and Shine</option>
  background: #11161c;
      <option value="stable_energy">Stable Energy</option>
  border-radius: 6px;
      <option value="stable_vitality">Stable Vitality</option>
  cursor: pointer;
      <option value="upper_hand">Upper Hand</option>
}
      <option value="worn_out">Worn-out</option>
.mw-tab-btn.active {
      <option value="pumpkin">Pumpkin Lantern (Buzzy Bee)</option>
  background: linear-gradient(180deg, #1ec8ff, #0ea5e9);
      <option value="gold_lightning">Gold Lightning (Electric Eel)</option>
  color: #001018;
      <option value="good_fortune">Optimism - Cat</option>
}
      <option value="aquarius">Aquarius (Fetch-A-Lot)</option>
/* ===== DROPDOWN UI ===== */
      <option value="golden_toad">Golden Toad</option>
.dropdown {
      <option value="shadow_shroom">Growshroom - Shadowshroom</option>
  width: 100%;
    </select>
  margin-top: 10px;
    <div id="out1" style="display:none;margin-top:10px;background:#0d1319;border:1px solid #1f2a35;border-radius:10px;padding:12px;"></div>
}
   </div>
.dropdown select {
 
  width: 100%;
   <div id="slot2" class="panel" style="display:none;">
  padding: 10px;
    <select id="sel2" style="width:100%;margin-top:10px;padding:10px;background:#11161c;color:#e6edf3;border:1px solid #1f2a35;border-radius:8px;font-size:14px;box-sizing:border-box;">
  background: #11161c;
      <option value="">Select Trait</option>
  color: #e6edf3;
      <option value="world_charm">A World of Charm</option>
  border: 1px solid #1f2a35;
      <option value="anti_burnout">Anti-Burnout</option>
  border-radius: 8px;
      <option value="devoted">Devoted Laborer</option>
  font-size: 14px;
      <option value="dream_wild">Dream Wild</option>
}
      <option value="hydrophilic">Hydrophilic</option>
/* ===== OUTPUT PANEL ===== */
      <option value="lazy">Lazy Bones</option>
.output {
      <option value="living_map">Living Map</option>
   margin-top: 10px;
      <option value="oneplus">OnePlus</option>
  background: #0d1319;
      <option value="panovision">Panovision</option>
  border: 1px solid #1f2a35;
      <option value="slacking">Slacking Off</option>
  border-radius: 10px;
      <option value="stardust">Stardust Affinity</option>
  padding: 12px;
      <option value="sweet_talk">Sweet Talk</option>
}
      <option value="overtime">Voluntary Overtime</option>
.output-title {
      <option value="workaholic">Workaholic</option>
  font-weight: 700;
      <option value="lunar_oracle">Lunar Oracle</option>
  margin-bottom: 8px;
      <option value="daydreaming">Daydreaming</option>
  color: #e6edf3;
      <option value="toxicologist">Toxicologist</option>
}
      <option value="admiral">Admiral</option>
.output-line {
      <option value="diamond_duke">Diamond Duke</option>
  font-size: 13px;
      <option value="workaholic_lights">Workaholic - Lights</option>
  color: #9fb0c3;
      <option value="gold_speaker">Gold Speaker</option>
  padding: 4px 0;
    </select>
  border-top: 1px solid #1a222b;
    <div id="out2" style="display:none;margin-top:10px;background:#0d1319;border:1px solid #1f2a35;border-radius:10px;padding:12px;"></div>
}
   </div>
.output-line:first-of-type {
 
  border-top: none;
   <div id="slot3" class="panel" style="display:none;">
}
    <select id="sel3" style="width:100%;margin-top:10px;padding:10px;background:#11161c;color:#e6edf3;border:1px solid #1f2a35;border-radius:8px;font-size:14px;box-sizing:border-box;">
.mw-tab-content {
      <option value="">Select Trait</option>
  display: none;
      <option value="brute_force">Brute Force Rules</option>
}
      <option value="clean">Clean and Hygienic</option>
.mw-tab-content.active {
      <option value="eureka_moment">Eureka Moment</option>
  display: block;
      <option value="extra_load">Extra Load</option>
}
      <option value="feline">Feline Creatures</option>
</style>
      <option value="herbivore">Herbivore</option>
<!-- TABS -->
      <option value="moonlight">Moonlight Assault</option>
<div class="mw-tab-buttons">
      <option value="top_grunt">Top Grunt</option>
  <div class="mw-tab-btn active" data-tab="slot1">Slot 1</div>
    </select>
  <div class="mw-tab-btn" data-tab="slot2">Slot 2</div>
    <div id="out3" style="display:none;margin-top:10px;background:#0d1319;border:1px solid #1f2a35;border-radius:10px;padding:12px;"></div>
  <div class="mw-tab-btn" data-tab="slot3">Slot 3</div>
  </div>
</div>
<!-- ================= SLOT 1 ================= -->
<div id="slot1" class="mw-tab-content active">
<div class="dropdown">
<select id="slot1Select">
  <option value="">Select Trait</option>
   <option value="cheer_up">Cheer Up (1-3)</option>
   <option value="covert_energy">Covert Energy (1-5)</option>
  <option value="feeling_blue">Feeling Blue (1-2)</option>
  <option value="growing_pains">Growing Pains (1-3)</option>
  <option value="optimist">Optimist (1-5)</option>
  <option value="power_rewind">Power Rewind (1-2)</option>
  <option value="rise_shine">Rise and Shine (1-5)</option>
  <option value="stable_energy">Stable Energy</option>
  <option value="stable_vitality">Stable Vitality</option>
  <option value="upper_hand">Upper Hand</option>
  <option value="worn_out">Worn-out (1-2)</option>
</select>
</div>
<div id="slot1Output" class="output" style="display:none;"></div>
</div>
<!-- ================= SLOT 2 ================= -->
<div id="slot2" class="mw-tab-content">
<div class="dropdown">
<select id="slot2Select">
  <option value="">Select Trait</option>
  <option value="big_cup">Big Cup</option>
  <option value="buy_1_get_2">Buy 1 Get 2</option>
  <option value="byproduct">Byproduct</option>
  <option value="clumsy">Clumsy</option>
   <option value="collection_1">Collection +1</option>
   <option value="come_as_one">Come As One</option>
  <option value="efficiency_above_all">Efficiency Above All</option>
  <option value="efficiency_first">Efficiency First</option>
  <option value="eureka">Eureka Moment</option>
  <option value="lazy">Lazy</option>
  <option value="leftover">Leftover</option>
  <option value="medium_cup">Medium Cup</option>
  <option value="mineral_talent">Mineral Talent</option>
  <option value="no_small_cup">No Such Thing As a Small Cup</option>
  <option value="one_more_bottle">One More Bottle</option>
  <option value="out_of_scratch">Out of Scratch</option>
  <option value="piece_of_cake">Piece of Cake</option>
  <option value="productivity_first">Productivity First</option>
  <option value="speed_up">Speed Up</option>
  <option value="super_big_cup">Super Big Cup</option>
</select>
</div>
<div id="slot2Output" class="output" style="display:none;"></div>
</div>
<!-- ================= SLOT 3 ================= -->
<div id="slot3" class="mw-tab-content">
<div class="dropdown">
<select id="slot3Select">
  <option value="">Select Trait</option>
  <option value="brute_force_rules">Brute Force Rules</option>
  <option value="clean_hygienic">Clean and Hygienic</option>
  <option value="eureka">Eureka Moment</option>
  <option value="extra_load">Extra Load</option>
  <option value="feline">Feline Creatures</option>
  <option value="foul_symbiosis">Foul Symbiosis</option>
  <option value="herbivore">Herbivore</option>
  <option value="knights">Knights of The Round Table</option>
  <option value="temperature">Master of Temperatures</option>
  <option value="mind_massage">Mind Massage</option>
  <option value="moonlight">Moonlight Assault</option>
</select>
</div>
<div id="slot3Output" class="output" style="display:none;"></div>
</div>
</div>
</div>
<script>
<script>
/* TAB SYSTEM */
var data1 = {
document.querySelectorAll('.mw-tab-btn').forEach(btn => {
   cheer_up:["Cheer Up",["Max Mood +30% / +40% / +50%"]],
  btn.onclick = () => {
   covert_energy:["Covert Energy",["Max Deviant Power +10% to +35%"]],
    document.querySelectorAll('.mw-tab-btn').forEach(b => b.classList.remove('active'));
   feeling_blue:["Feeling Blue",["Max Mood -5% / -10%"]],
    document.querySelectorAll('.mw-tab-content').forEach(c => c.classList.remove('active'));
   growing_pains:["Growing Pains",["Max Power +30 to 50%; Mood recovery -5%"]],
    btn.classList.add('active');
   optimist:["Optimist",["Max Mood +15 to 35%"]],
    document.getElementById(btn.dataset.tab).classList.add('active');
   power_rewind:["Power Rewind",["Power recovery +5 to 10%"]],
  };
   rise_and_shine:["Rise and Shine",["Mood recovery +5 to 25%"]],
});
   stable_energy:["Stable Energy",["Max Deviant Power +30"]],
/* DATA */
   stable_vitality:["Stable Vitality",["Max Mood +30"]],
const slot1Data = {
   upper_hand:["Upper Hand",["Convert Mood to Power at 0"]],
   cheer_up: {
   worn_out:["Worn-out",["Max Power -5% / -10%"]],
    title: "Cheer Up (1-3)",
   pumpkin:["Pumpkin Lantern (Buzzy Bee)",["+10% Power"]],
    lines: ["Max Mood +30% / +40% / +50%; Deviant Power recovery speed -5%"]
  gold_lightning:["Gold Lightning (Electric Eel)",["+15% Recovery"]],
  },
  good_fortune:["Optimism - Cat",["+40% Mood"]],
   covert_energy: {
  aquarius:["Aquarius (Fetch-A-Lot)",["+30% Recovery"]],
    title: "Covert Energy (1-5)",
  golden_toad:["Golden Toad",["+20% Recovery"]],
    lines: ["Max Deviant Power +10% / +20% / +25% / +30% / +35%"]
  shadow_shroom:["Growshroom - Shadowshroom",["Max Energy +40%"]]
  },
   feeling_blue: {
    title: "Feeling Blue (1-2)",
    lines: ["Max Mood -5% / -10%"]
  },
   growing_pains: {
    title: "Growing Pains (1-3)",
    lines: ["Max Deviant Power +30% / +40% / +50%; Mood recovery speed -5%"]
  },
   optimist: {
    title: "Optimist (1-5)",
    lines: ["Max Mood +15% / +20% / +25% / +30% / +35%"]
  },
   power_rewind: {
    title: "Power Rewind (1-2)",
    lines: ["Deviant Power recovery speed +5% / +10%"]
  },
   rise_shine: {
    title: "Rise and Shine (1-5)",
    lines: ["Mood recovery speed +5% / +10% / +15% / +20% / +25%"]
  },
   stable_energy: {
    title: "Stable Energy",
    lines: ["Max Deviant Power +30"]
  },
   stable_vitality: {
    title: "Stable Vitality",
    lines: ["Max Mood +30"]
  },
   upper_hand: {
    title: "Upper Hand",
    lines: ["When Deviant Power drops to 0, automatically consume Mood to recover Deviant Power"]
  },
   worn_out: {
    title: "Worn-out (1-2)",
    lines: ["Max Deviant Power -5% / -10%"]
   }
};
};
const slot2Data = {
var data2 = {
   big_cup: {
   world_charm:["A World of Charm",["10% give +20 Mood"]],
    title: "Big Cup",
   anti_burnout:["Anti-Burnout",["20% give +5 Power"]],
    lines: ["Max storage capacity +20%"]
   devoted:["Devoted Laborer",["+20% duration"]],
  },
  dream_wild:["Dream Wild",["10% give +10 Power"]],
   buy_1_get_2: {
   hydrophilic:["Hydrophilic",["+30% near water"]],
    title: "Buy 1 Get 2",
   lazy:["Lazy Bones",["-5% speed"]],
    lines: ["5% chance to produce 1 extra unit"]
   living_map:["Living Map",["-5% interval"]],
  },
   oneplus:["OnePlus",["Rare crystals chance"]],
   byproduct: {
   panovision:["Panovision",["-10% speed"]],
    title: "Byproduct",
   slacking:["Slacking Off",["+5% consumption"]],
    lines: ["When Mood greater than 90 percent, 10 percent chance to increase other Deviations Power by 2"]
   stardust:["Stardust Affinity",["20% no Mood cost"]],
  },
   sweet_talk:["Sweet Talk",["20% give Mood"]],
   clumsy: {
   overtime:["Voluntary Overtime",["10% no cost"]],
    title: "Clumsy",
   workaholic:["Workaholic",["+10% duration"]],
    lines: ["5% chance to produce 1 fewer unit"]
   lunar_oracle:["Lunar Oracle",["+20% duration"]],
  },
   daydreaming:["Daydreaming",["Restore Power"]],
   collection_1: {
   toxicologist:["Toxicologist",["25% no cost"]],
    title: "Collection +1",
   admiral:["Admiral",["3% no cost"]],
    lines: ["5% chance for +2 units, speed -20%"]
   diamond_duke:["Diamond Duke",["5% no cost"]],
  },
   workaholic_lights:["Workaholic - Lights",["+20% duration"]],
   come_as_one: {
   gold_speaker:["Gold Speaker",["Extra ores"]]
    title: "Come As One",
    lines: ["+1 unit per Territory Deviation"]
  },
   efficiency_above_all: {
    title: "Efficiency Above All",
    lines: ["Speed +20%, storage -30%"]
  },
   efficiency_first: {
    title: "Efficiency First",
    lines: ["Power consumption interval -5%"]
  },
   eureka: {
    title: "Eureka Moment",
    lines: ["1% chance for +10 units, speed -50%"]
  },
   lazy: {
    title: "Lazy",
    lines: ["Crafting speed -10%"]
  },
   leftover: {
    title: "Leftover",
    lines: ["When Mood greater than 20 percent, boost others, storage -20%"]
  },
   medium_cup: {
    title: "Medium Cup",
    lines: ["Max storage +10%"]
  },
   mineral_talent: {
    title: "Mineral Talent",
    lines: ["20% chance extra unit in Oil Field"]
  },
   no_small_cup: {
    title: "No Such Thing As a Small Cup",
    lines: ["Max storage -10%"]
  },
   one_more_bottle: {
    title: "One More Bottle",
    lines: ["2% chance for +2 units"]
  },
   out_of_scratch: {
    title: "Out of Scratch",
    lines: ["3% chance no Power consumed"]
  },
   piece_of_cake: {
    title: "Piece of Cake",
    lines: ["5% chance no Mood consumed"]
  },
   productivity_first: {
    title: "Productivity First",
    lines: ["Production interval -5%"]
  },
   speed_up: {
    title: "Speed Up",
    lines: ["Production interval -10%"]
  },
   super_big_cup: {
    title: "Super Big Cup",
    lines: ["Max storage +30%"]
  }
};
};
const slot3Data = {
var data3 = {
   brute_force_rules: {
   brute_force:["Brute Force Rules",["10% double output"]],
    title: "Brute Force Rules",
   clean:["Clean and Hygienic",["Sanity over 20%"]],
    lines: ["10% chance to double output"]
   eureka_moment:["Eureka Moment",["Item: Small Signal Light","If you are attacked, the attacker is revealed and their Weapon DMG is reduced by 10% for 2s (60s cooldown)"]],
  },
   extra_load:["Extra Load",["Item: Carton","Combat Deviant: Maximum Load is increased by 20","Crafting Deviant: Increase storage capacity for Crafting Deviation by 15%"]],
   clean_hygienic: {
   feline:["Feline Creatures",["Extra lightweight item"]],
    title: "Clean and Hygienic",
   herbivore:["Herbivore",["Animal: Deer","Chance to yield an additional deviated plant during production"]],
    lines: ["Sanity will not drop below 20%"]
   moonlight:["Moonlight Assault",["+15% at night"]],
  },
   top_grunt:["Top Grunt",["Convert Mood to Energy"]]
   eureka: {
    title: "Eureka Moment",
    lines: ["No light needed for boost"]
  },
   extra_load: {
    title: "Extra Load",
    lines: ["Max storage capacity +15%"]
  },
   feline: {
    title: "Feline Creatures",
    lines: ["Chance for extra lightweight item"]
  },
   foul_symbiosis: {
    title: "Foul Symbiosis",
    lines: ["10% chance to yield 1 extra Acid"]
  },
  herbivore: {
    title: "Herbivore",
    lines: ["Chance to yield extra plant"]
  },
   knights: {
    title: "Knights of The Round Table",
    lines: ["Defense +5%"]
  },
   temperature: {
    title: "Master of Temperatures",
    lines: ["Heat Resist +10"]
  },
  mind_massage: {
    title: "Mind Massage",
    lines: ["Recover 10% Sanity"]
  },
  moonlight: {
    title: "Moonlight Assault",
    lines: ["Night recovery speed increased"]
  }
};
};
/* DROPDOWN LOGIC */
function bind(selId, outId, data) {
function bindDropdown(selectId, outputId, data) {
   var sel = document.getElementById(selId);
   document.getElementById(selectId).onchange = function () {
  var out = document.getElementById(outId);
     const val = this.value;
  sel.onchange = function() {
     const output = document.getElementById(outputId);
     var v = sel.value;
     if (!val) {
     if (!v) { out.style.display = "none"; return; }
       output.style.display = "none";
    var row = data[v];
       return;
    var html = '<div style="font-weight:700;margin-bottom:8px;color:#e6edf3;">' + row[0] + '</div>';
    for (var i = 0; i < row[1].length; i++) {
      var border = i === 0 ? '' : 'border-top:1px solid #1a222b;';
      html += '<div style="font-size:13px;color:#9fb0c3;padding:4px 0;' + border + '">' + row[1][i] + '</div>';
    }
    out.innerHTML = html;
    out.style.display = "block";
  };
}
bind("sel1","out1",data1);
bind("sel2","out2",data2);
bind("sel3","out3",data3);
var tabs = document.querySelectorAll(".tab");
for (var i = 0; i < tabs.length; i++) {
  tabs[i].onclick = function(e) {
    var target = e.currentTarget.getAttribute("data-tab");
    var allTabs = document.querySelectorAll(".tab");
     for (var j = 0; j < allTabs.length; j++) {
       allTabs[j].style.background = "#11161c";
       allTabs[j].style.color = "#cfd6df";
     }
     }
     const item = data[val];
     e.currentTarget.style.background = "#0ea5e9";
     output.innerHTML =
     e.currentTarget.style.color = "#001018";
      `<div class="output-title">${item.title}</div>` +
    var panels = document.querySelectorAll(".panel");
      item.lines.map(line => `<div class="output-line">${line}</div>`).join("");
    for (var k = 0; k < panels.length; k++) panels[k].style.display = "none";
     output.style.display = "block";
     document.getElementById(target).style.display = "block";
   };
   };
}
}
bindDropdown("slot1Select", "slot1Output", slot1Data);
bindDropdown("slot2Select", "slot2Output", slot2Data);
bindDropdown("slot3Select", "slot3Output", slot3Data);
</script>
</script>
</html>
</html>

Latest revision as of 16:38, 27 April 2026

Return to Front Page
Deviant Trait Page

Slot 1
Slot 2
Slot 3