R&R CRDD: Difference between revisions

From The Jadnix Codex

No edit summary
m Removed protection from "R&R CRDD"
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
<div class="faction-skipper">
  R&R CRDD CALCULATOR LOGIC (V2 - Fixed Display)
<html>
  ============================================================ */
<!-- HEADER SECTION (Inside HTML for the image) -->
$(function() {
<div style="display: flex; align-items: center; gap: 20px; margin-bottom: 20px;">
     // Only run if the calculator exists
    <!-- FIXED IMAGE: Added width constraint in style so it can't blow up -->
    if (!$('#crdd-interface').length) return;
    <img src="https://files.catbox.moe/8gs8n5.png"
        style="width: 100px; height: auto; filter: drop-shadow(0 0 5px #21b0cd);">
   
     <div>
        <h1 style="margin: 0; color: #21b0cd; font-family: monospace; font-size: 1.8em; line-height: 1.2;">Rescue & Removal Corps’ Rating Detection Device</h1>
        <small style="color: #888; font-size: 0.8em;">CORPS RATING DETECTION DEVICE // V.1.0.4</small>
    </div>
</div>
</html>


    // 1. UPDATE INDIVIDUAL NUMBERS INSTANTLY
Welcome! So, it’s your first time out there on the field, and you really need to figure out the up’s and down’s of a Seam. Not only that, your teammates are relying on you to do it right (and not break anything)! There’s so many things to keep track of, how’s one to do it all by their lonesome?! Fear not, fellow Surveyor, we at the R&R Corps worked hard with the rest of the W.S.G. to make everyone’s jobs easier with… the R&RC RDD! Or… the R&R CRDD…? Just call it the CRDD! Unsure what that stands for? Look at the header of this entry…
    $('.crdd-range').on('input', function() {
        // Find the "0" next to this slider and update it
        $(this).next('.crdd-value-display').text($(this).val());
    });


    // 2. CALCULATE TOTALS
== What is the CRDD? ==
    function updateCRDD() {
Our Corps’ Rating Detection Device is a nifty little machine that combines the permanence skills of the Stills with the contract-magic (and money) of the Dealers and the secret know-how of us Skippers! It’s designed to… think of it like a calculator that does the hard part of CORRECTLY rating a Seam for you! All you have to do is put in the numbers, scan the stuff, and send it over to the others. Easy, right?
        let totalScore = 0;
 
        let activeMaxScore = 0;
Everyone’s supposed to be issued one, but so far only the R&R have it, all the more reason to stick together, eh? Seriously, don’t lose this.
        let criticalOverride = false;
 
       
== How does the CRDD work? ==
        // --- SECTION 1: SUBJECT ---
        let subjSkip = $('#skip-subject').is(':checked');
        if (!subjSkip) {
            let s1 = parseInt($('#s-strength').val()) || 0;
            let s2 = parseInt($('#s-durability').val()) || 0;
            let s3 = parseInt($('#s-mobility').val()) || 0;
            let s4 = parseInt($('#s-intel').val()) || 0;
            let s5 = parseInt($('#s-stamina').val()) || 0;
            let s6 = parseInt($('#s-threat').val()) || 0;
            let s7 = parseInt($('#s-swarm').val()) || 0;
           
            if (s6 > 24) criticalOverride = true;
           
            let avg = (s1+s2+s3+s4+s5+s6+s7) / 7;
            totalScore += avg;
            activeMaxScore += 33;
           
            let rating = "DOCILE";
            if (avg > 8) rating = "NEUTRAL";
            if (avg > 16) rating = "HOSTILE";
            if (avg > 24) rating = "VILE";
            $('#result-subject').text(avg.toFixed(1) + " (" + rating + ")");
           
            if (avg > 24) criticalOverride = true;
        } else {
            $('#result-subject').text("SKIPPED");
        }


        // --- SECTION 2: ITEM ---
Glad you asked! Not really, it’s a little complicated, so our best guys dumbed it down so even the new recruits (from any faction!) can get it, if they tried. Basically, the device’ll ask you a bunch of questions about the Stables—Subjects we mean, we call ‘em Stables—in a Seam, and then questions about the Items, and then about the Seam itself! That’s it! As it calculates, it’ll update in real time, telling you what it thinks the Rating is so far.
        let itemSkip = $('#skip-item').is(':checked');
        if (!itemSkip) {
            let i1 = parseInt($('#i-entropy').val()) || 0;
            let i2 = parseInt($('#i-instability').val()) || 0;
            let i3 = parseInt($('#i-radiation').val()) || 0;
            let i4 = parseInt($('#i-corrupt').val()) || 0;
            let i5 = parseInt($('#i-volatility').val()) || 0;
            let i6 = parseInt($('#i-unport').val()) || 0;
            let i7 = parseInt($('#i-anomalous').val()) || 0;
            let i8 = parseInt($('#i-qty').val()) || 0;


            if (i7 > 24) criticalOverride = true;
Afterwards, it’ll calculate the rest to tell you the estimated Rating of the Seam you’re in. Isn’t that neat? You can also use it to get the individual estimates of Items and Subjects too, since that’s kinda baked in too.


            let avg = (i1+i2+i3+i4+i5+i6+i7+i8) / 8;
Don’t know what a Subject or Seam is? You’re in the wrong place. But if you do, great, give it a go! As homework away from home, go somewhere and figure out its Stability Rating. We believe in you!
            totalScore += avg;
            activeMaxScore += 33;
           
            let rating = "FUNCTIONAL";
            if (avg > 8) rating = "ALTERED";
            if (avg > 16) rating = "UNSTABLE";
            if (avg > 24) rating = "VOID";
            $('#result-item').text(avg.toFixed(1) + " (" + rating + ")");
        } else {
            $('#result-item').text("SKIPPED");
        }


        // --- SECTION 3: SEAM ---
We even added sliders, it’s really intuitive. Revolutionary stuff.  
        let seamSkip = $('#skip-seam').is(':checked');
        if (!seamSkip) {
            let m1 = parseInt($('#m-instability').val()) || 0;
            let m2 = parseInt($('#m-leakage').val()) || 0;
            let m3 = parseInt($('#m-geo').val()) || 0;
            let m4 = parseInt($('#m-atmo').val()) || 0;
            let m5 = parseInt($('#m-topo').val()) || 0;
            let m6 = parseInt($('#m-dead').val()) || 0;
            let m7 = parseInt($('#m-laws').val()) || 0;


            if (m3 > 24 || m4 > 24 || m6 > 24 || m7 > 24) criticalOverride = true;
== CRDD Calculator ==
<html>
<!-- CALCULATOR START -->
<div id="crdd-interface">
    <div class="crdd-header">
        SYSTEM ONLINE // CONNECTED<br>
        USER: GUEST SURVEYOR
    </div>


            let avg = (m1+m2+m3+m4+m5+m6+m7) / 7;
    <!-- SECTION 1: SUBJECT -->
            totalScore += avg;
    <div class="crdd-section">
            activeMaxScore += 33;
        <div class="crdd-section-title">1 / 3 SUBJECT INFO</div>
           
        <label class="crdd-skip-label"><input type="checkbox" id="skip-subject"> SKIP THIS SECTION (Data will be excluded)</label>
            let rating = "ANCHORED";
            if (avg > 8) rating = "VOLATILE";
            if (avg > 16) rating = "FRACTURED";
            if (avg > 24) rating = "NULL";
            $('#result-seam').text(avg.toFixed(1) + " (" + rating + ")");
            if (avg > 24) criticalOverride = true;
        } else {
            $('#result-seam').text("SKIPPED");
        }


         // --- FINAL RESULT ---
         <div class="crdd-input-group"><label>Strength</label><input type="range" class="crdd-range" id="s-strength" max="33" value="0"><span class="crdd-value-display">0</span></div>
         let finalBox = $('#crdd-final-output');
        <div class="crdd-input-group"><label>Durability</label><input type="range" class="crdd-range" id="s-durability" max="33" value="0"><span class="crdd-value-display">0</span></div>
         let finalLabel = $('#crdd-final-label');
        <div class="crdd-input-group"><label>Mobility</label><input type="range" class="crdd-range" id="s-mobility" max="33" value="0"><span class="crdd-value-display">0</span></div>
         <div class="crdd-input-group"><label>Intelligence</label><input type="range" class="crdd-range" id="s-intel" max="33" value="0"><span class="crdd-value-display">0</span></div>
        <div class="crdd-input-group"><label>Stamina</label><input type="range" class="crdd-range" id="s-stamina" max="33" value="0"><span class="crdd-value-display">0</span></div>
        <div class="crdd-input-group"><label style="color: #ff4500;">THREAT INDEX</label><input type="range" class="crdd-range" id="s-threat" max="33" value="0"><span class="crdd-value-display">0</span></div>
         <div class="crdd-input-group"><label>Swarm Qty</label><input type="range" class="crdd-range" id="s-swarm" max="33" value="0"><span class="crdd-value-display">0</span></div>
          
          
         if (activeMaxScore === 0) {
         <div style="text-align: right; margin-top: 10px; border-top: 1px solid #333; padding-top: 5px;">
            finalBox.text("ERROR: NO DATA");
            ESTIMATED BEHAVIOR: <span id="result-subject" style="color:#fff; font-weight:bold;">0.0 (DOCILE)</span>
            finalBox.css('color', 'red');
        </div>
            return;
    </div>
        }


         let percent = (totalScore / activeMaxScore) * 100;
    <!-- SECTION 2: ITEM -->
          
    <div class="crdd-section">
         if (criticalOverride) {
        <div class="crdd-section-title">2 / 3 ITEM INFO</div>
            finalLabel.text("CRITICAL THREAT DETECTED");
        <label class="crdd-skip-label"><input type="checkbox" id="skip-item"> SKIP THIS SECTION</label>
             finalBox.text("NULL (LEAVE NOW)");
 
            finalBox.css({
        <div class="crdd-input-group"><label>Entropy</label><input type="range" class="crdd-range" id="i-entropy" max="33" value="0"><span class="crdd-value-display">0</span></div>
                'color': '#000000',
         <div class="crdd-input-group"><label>Instability</label><input type="range" class="crdd-range" id="i-instability" max="33" value="0"><span class="crdd-value-display">0</span></div>
                'background': '#fff',
        <div class="crdd-input-group"><label>Radiation</label><input type="range" class="crdd-range" id="i-radiation" max="33" value="0"><span class="crdd-value-display">0</span></div>
                'text-shadow': '0 0 10px red'
        <div class="crdd-input-group"><label>Corruptivity</label><input type="range" class="crdd-range" id="i-corrupt" max="33" value="0"><span class="crdd-value-display">0</span></div>
            });
         <div class="crdd-input-group"><label>Volatility</label><input type="range" class="crdd-range" id="i-volatility" max="33" value="0"><span class="crdd-value-display">0</span></div>
         } else {
         <div class="crdd-input-group"><label>Unportability</label><input type="range" class="crdd-range" id="i-unport" max="33" value="0"><span class="crdd-value-display">0</span></div>
            let finalRating = "ANCHORED";
        <div class="crdd-input-group"><label style="color: #ff4500;">ANOMALOUS PROP.</label><input type="range" class="crdd-range" id="i-anomalous" max="33" value="0"><span class="crdd-value-display">0</span></div>
            let finalColor = "#00ff9f";
        <div class="crdd-input-group"><label>Quantity</label><input type="range" class="crdd-range" id="i-qty" max="33" value="0"><span class="crdd-value-display">0</span></div>
             let finalMsg = "YOU ARE SAFE";
 
        <div style="text-align: right; margin-top: 10px; border-top: 1px solid #333; padding-top: 5px;">
             ESTIMATED UTILITY: <span id="result-item" style="color:#fff; font-weight:bold;">0.0 (FUNCTIONAL)</span>
        </div>
    </div>
 
    <!-- SECTION 3: SEAM -->
    <div class="crdd-section">
        <div class="crdd-section-title">3 / 3 SEAM INFO</div>
        <label class="crdd-skip-label"><input type="checkbox" id="skip-seam"> SKIP THIS SECTION</label>
 
        <div class="crdd-input-group"><label>Instability</label><input type="range" class="crdd-range" id="m-instability" max="33" value="0"><span class="crdd-value-display">0</span></div>
        <div class="crdd-input-group"><label>Leakage</label><input type="range" class="crdd-range" id="m-leakage" max="33" value="0"><span class="crdd-value-display">0</span></div>
        <div class="crdd-input-group"><label style="color: #ff4500;">GEOMETRIC VIOL.</label><input type="range" class="crdd-range" id="m-geo" max="33" value="0"><span class="crdd-value-display">0</span></div>
        <div class="crdd-input-group"><label style="color: #ff4500;">TOXICITY</label><input type="range" class="crdd-range" id="m-atmo" max="33" value="0"><span class="crdd-value-display">0</span></div>
        <div class="crdd-input-group"><label>Topo Hazards</label><input type="range" class="crdd-range" id="m-topo" max="33" value="0"><span class="crdd-value-display">0</span></div>
        <div class="crdd-input-group"><label style="color: #ff4500;">DEAD ENDS</label><input type="range" class="crdd-range" id="m-dead" max="33" value="0"><span class="crdd-value-display">0</span></div>
         <div class="crdd-input-group"><label style="color: #ff4500;">BROKEN LAWS</label><input type="range" class="crdd-range" id="m-laws" max="33" value="0"><span class="crdd-value-display">0</span></div>
 
        <div style="text-align: right; margin-top: 10px; border-top: 1px solid #333; padding-top: 5px;">
             ESTIMATED STABILITY: <span id="result-seam" style="color:#fff; font-weight:bold;">0.0 (ANCHORED)</span>
        </div>
    </div>


            if (percent > 25) { finalRating = "VOLATILE"; finalColor = "#ffd700"; finalMsg = "PROCEED WITH CAUTION"; }
    <!-- RESULT -->
            if (percent > 50) { finalRating = "FRACTURED"; finalColor = "#ff4500"; finalMsg = "YOU ARE IN DANGER"; }
    <div id="crdd-final-result">
            if (percent > 75) { finalRating = "NULL"; finalColor = "#555"; finalMsg = "LEAVE NOW"; }
        <div id="crdd-final-label" style="font-size: 0.6em; margin-bottom: 10px;">STAND BY...</div>
        <div id="crdd-final-output">ANCHORED (0.0%)</div>
    </div>
</div>
<!-- END OF HTML (Closing the tag before going back to Wiki Text) -->
</html>


            finalLabel.text(finalMsg);
== P.S. ==
            finalBox.text(finalRating + " (" + percent.toFixed(1) + "%)");
It won’t tell you purple Ratings. :)
            finalBox.css({
                'color': finalColor,
                'background': 'transparent',
                'text-shadow': '0 0 10px ' + finalColor
            });
        }
    }


    // Trigger update on any change
—the Rescue and Removal Corps.
    $('.crdd-range, input[type=checkbox]').on('input change', updateCRDD);
</div>
});

Latest revision as of 06:09, 11 February 2026

Rescue & Removal Corps’ Rating Detection Device

CORPS RATING DETECTION DEVICE // V.1.0.4

Welcome! So, it’s your first time out there on the field, and you really need to figure out the up’s and down’s of a Seam. Not only that, your teammates are relying on you to do it right (and not break anything)! There’s so many things to keep track of, how’s one to do it all by their lonesome?! Fear not, fellow Surveyor, we at the R&R Corps worked hard with the rest of the W.S.G. to make everyone’s jobs easier with… the R&RC RDD! Or… the R&R CRDD…? Just call it the CRDD! Unsure what that stands for? Look at the header of this entry…

What is the CRDD?[edit]

Our Corps’ Rating Detection Device is a nifty little machine that combines the permanence skills of the Stills with the contract-magic (and money) of the Dealers and the secret know-how of us Skippers! It’s designed to… think of it like a calculator that does the hard part of CORRECTLY rating a Seam for you! All you have to do is put in the numbers, scan the stuff, and send it over to the others. Easy, right?

Everyone’s supposed to be issued one, but so far only the R&R have it, all the more reason to stick together, eh? Seriously, don’t lose this.

How does the CRDD work?[edit]

Glad you asked! Not really, it’s a little complicated, so our best guys dumbed it down so even the new recruits (from any faction!) can get it, if they tried. Basically, the device’ll ask you a bunch of questions about the Stables—Subjects we mean, we call ‘em Stables—in a Seam, and then questions about the Items, and then about the Seam itself! That’s it! As it calculates, it’ll update in real time, telling you what it thinks the Rating is so far.

Afterwards, it’ll calculate the rest to tell you the estimated Rating of the Seam you’re in. Isn’t that neat? You can also use it to get the individual estimates of Items and Subjects too, since that’s kinda baked in too.

Don’t know what a Subject or Seam is? You’re in the wrong place. But if you do, great, give it a go! As homework away from home, go somewhere and figure out its Stability Rating. We believe in you!

We even added sliders, it’s really intuitive. Revolutionary stuff.

CRDD Calculator[edit]

SYSTEM ONLINE // CONNECTED
USER: GUEST SURVEYOR
1 / 3 SUBJECT INFO
0
0
0
0
0
0
0
ESTIMATED BEHAVIOR: 0.0 (DOCILE)
2 / 3 ITEM INFO
0
0
0
0
0
0
0
0
ESTIMATED UTILITY: 0.0 (FUNCTIONAL)
3 / 3 SEAM INFO
0
0
0
0
0
0
0
ESTIMATED STABILITY: 0.0 (ANCHORED)
STAND BY...
ANCHORED (0.0%)

P.S.[edit]

It won’t tell you purple Ratings. :)

—the Rescue and Removal Corps.