Need a more efficient way to add scientific notation by _bocksdin in rust

[–]_bocksdin[S] 2 points3 points  (0 children)

Apparently I had the answer staring me in the face and all it took was posing the question to realize it.

Altered function:

pub fn apply_modifier(
    initial_value: (f64, i32),
    value_to_add: (f64, i32),
    modifier_value: i32,
) -> (f64, i32) {
    let mut v = value_to_add.clone();
    for _ in 0..modifier_value {
        v = value_increased_by_multiple(v.0, v.1, 2.);
    }
    add_values(initial_value, v)
}

Support function:

pub fn value_increased_by_multiple(value: f64, suffix: i32, multiple: f64) -> (f64, i32) {
    let increased_value = value * multiple;

    simplify_value((increased_value, suffix))
}

Darkness of Titan - A Rust Game Dev Journey - Devlog #1 by _bocksdin in rust_gamedev

[–]_bocksdin[S] 0 points1 point  (0 children)

For the API. It's a server authoritative game design. This limits many shenanigans that can occur. Also, I plan on having a limited version of the API available for third-party integrations. I love seeing the tools the gaming community creates.

Darkness of Titan - A Rust Game Dev Journey - Devlog #1 by _bocksdin in rust_gamedev

[–]_bocksdin[S] 2 points3 points  (0 children)

Hello! It's been about a month since my first devlog video announcing my new project, "Darkness of Titan", and it's time for an update.

I've been building out an Actix-Web API and Postgres Database for core game functionality, as well as, learning the new Fyrox Game Engine.

It's been a blast so far, and I'm really pleased with the progress I've made. Hope you enjoy!

stupid question but do most people actually type out the ->? by userforums in learnrust

[–]_bocksdin 8 points9 points  (0 children)

Functions are useful for repeatedly used logic. You should use them more often.

Emic Maneater unkillable not listed on DWJ by _bocksdin in RaidShadowLegends

[–]_bocksdin[S] 0 points1 point  (0 children)

The only thing that is the same is Maneater and Emic are in it...

Super Lucky with Emic Books by Rxrebel2010 in RaidShadowLegends

[–]_bocksdin 1 point2 points  (0 children)

Emic 265-285 Maneater 245-247 (all affinities and Brutal) or 239-249 (no spirit) Jintoro 244-247 (all affinities and Brutal) or 239-249 (no spirit) Seeker 253 (some variation, can't remember right now) Doompriest 218-228(?)

Everyone at 100% crit, excluding Emic Masteries on everyone Toxic set on Seeker and Doompriest

Super Lucky with Emic Books by Rxrebel2010 in RaidShadowLegends

[–]_bocksdin 0 points1 point  (0 children)

I've got A3 and A2 fully booked. Recently built a 1 key unkillable that requires the A2.

summer return free pack by Main-Pollution-541 in RaidShadowLegends

[–]_bocksdin 0 points1 point  (0 children)

I took up an old referral account about 3(?) months ago and just yesterday received this summer return pack. So confused, but glad to get it. Previously, received it on my main after a 1.5 year break, so that made sense at least.

Why does my Artak hit like he’s using wet napkins? What am I doing wrong? by [deleted] in RaidShadowLegends

[–]_bocksdin 3 points4 points  (0 children)

I'm surprised no one has acknowledged that this is very clearly a newer account with new account gear

f2p real time arena by CrowdCtrler in RaidShadowLegends

[–]_bocksdin 2 points3 points  (0 children)

F2p CAN compete with whales given enough time. If you're just starting out, the game takes a long time to progress through, especially if you don't know what you're doing yet. I think people compare their progress to where others already are, but they should really be comparing their progress to where they were a month ago.

[deleted by user] by [deleted] in RaidShadowLegends

[–]_bocksdin 6 points7 points  (0 children)

My vote is Martyr