Uveto question

Theron

Well-Known Member
Nov 8, 2018
4,382
1,629
46
Code:
tryApplyUvetoColdDamage = function(e) {
            var t = pc
              , o = -1
              , n = -1;
            if (!vi.L.RoomIsOnUveto(getCurrentRoom()))
                return pc.removeStatusEffect("Bitterly Cold"),
                !1;
            var a = t ? t.getStatusEffect("Bitterly Cold") : null;
            if (a && (a.hidden = [un.tb.CAVE, un.tb.INDOOR].some((function(e) {
                return InRoomWithFlag(e)
            }
            ))),
            InRoomWithFlag(un.tb.OUTDOOR) ? (o = .5,
            n = 25) : InRoomWithFlag(un.tb.ICYTUNDRA) ? (o = 1,
            n = 35) : InRoomWithFlag(un.tb.FROZENTUNDRA) && (o = 1,
            n = 50),
            window.uvetoBlizzard() && (o *= 2),
            o > 0 && t.willTakeColdDamage(n)) {
                if (t.skinType === GLOBAL.SKIN_TYPE_FUR ? o *= .5 : [GLOBAL.SKIN_TYPE_CHITIN, GLOBAL.SKIN_TYPE_SCALES].includes(t.skinType) && "frostwyrm" !== t.race() ? o *= 1.25 : [GLOBAL.SKIN_TYPE_GOO, GLOBAL.SKIN_TYPE_LATEX].includes(t.skinType) && (o *= 1.5),
                t.isNude())
                    o *= 2;
                else {
                    var i = 1;
                    t.inventory.hasArmor || (i += .333),
                    t.hasUpperGarment() && !t.isChestExposed() || (i += .333),
                    (!t.hasLowerGarment() || t.isCrotchExposed() || t.isAssExposed()) && (i += .333),
                    o *= i
                }
                var s = o * e
                  , r = new Kf.x({
                    freezing: s
                },Qf.G.BYPASS_SHIELD)
                  , u = applyDamage({
                    baseDamage: r,
                    target: t,
                    outputSuppressed: !0
                });
                if (!(t.HP() > 0))
                    return output("\n\nThe Uvetan cold chills you to your"),
                    t.isGoo() ? output(" gooey core") : output(" bones"),
                    output(", making you shiver uncontrollably. No matter where you go, there’s no stopping the incessant, numbing cold. It physically <i>hurts</i> to be out here, and the longer you stay, the more your vision blurs and blurs... "),
                    output("\n\nSuddenly, your [pc.foot] catches, and before you can realize what’s happening you pitch forward, planting your face in the thick snow. You gasp, flailing your arms for a moment, but... you can’t seem to find the energy -- the vital strength -- to pick yourself up again. Snow settles onto your back, still blowing over you with heartless, frigid force. Try as you might, you find yourself fading, eyes starting to close. So sleepy..."),
                    output("\n\nBlackness takes you."),
                    u.totalDamage > 0 && outputDamage(u),
                    clearMenu(),
                    addButton(0, "Next", gG),
                    !0;
                InRoomWithFlag(un.tb.ICYTUNDRA) || InRoomWithFlag(un.tb.OUTDOOR) ? (output("\n\nYou wrap your arms around yourself, desperately trying to fend off the overwhelming cold. The planet’s freezing you to your bones"),
                t.isNude() ? output(" -- and being naked, you’ve got next to no defense against the chill") : output(", no matter how much clothing you wear"),
                output(". You feel like you might collapse if you don’t take shelter soon!"),
                u.totalDamage > 0 && outputDamage(u)) : (output("\n\nThe cold on Uveto is absolutely piercing out here, with no walls or fluffy ausar to block the howling winds and free-flying shards of ice tearing across the rolling plains of ice and alien obsidian. You clutch your arms around yourself, trying to shield your body from the frigid cold, but to no avail. Shivering madly, you glance around in desperation: <b>you need to find shelter fast, or you’re going to freeze!</b>"),
                u.totalDamage > 0 && outputDamage(u))
            }
            return !1
/Code]
 
Last edited:

Jarylan

Well-Known Member
Jun 28, 2022
258
126
42
Okay, the calculations for that are way more complex than I assumed.

Honestly, I always get something to keep warm, like Nova or a thermal cocksock. Now I feel like I am letting all that code go to waste. XD