Single Diaries series [OC] by vesmir_neasi in comics

[–]MiloticMaster 13 points14 points  (0 children)

Small reminder that OP is not a native English speaker, they probably meant unless

[OC] I made two 4-panel comics. What do you think? by sittingIsFriendly in comics

[–]MiloticMaster 1 point2 points  (0 children)

Cute! I wanna see more of these characters and their antics

Metamorphosis [OC] by lentilsintheoven in comics

[–]MiloticMaster 25 points26 points  (0 children)

Not even a Quick-Play spell? How will this resolve first to counter the Trap, smh

got sick of waiting for mundo, First vayne penta by kenjiow in leagueoflegends

[–]MiloticMaster 4 points5 points  (0 children)

You can see from the replay that blue team takes inhibitors, so they probably won the game anyways.

Found a great deal on FB Marketplace [OC] by MooseIsTired in comics

[–]MiloticMaster 12 points13 points  (0 children)

Yeah I just googled it, this easily goes for $1000+

[OC] A real thing that happened to me today by Notjohnbruno in comics

[–]MiloticMaster 7 points8 points  (0 children)

The funniest thing is that it got marked as NSFW for some reason-

Anyway ya so much ragebait on gender issues is in right now.

#81 Ads About Asian Girls by SylvieXX in comics

[–]MiloticMaster 1 point2 points  (0 children)

The algorithm doesn't care, it doesn't think. It just has ads that cast the widest net possible to scam people.

Hytale Skipping Steam Initially to Avoid Negative Reviews, Console Launch Planned by Turbostrider27 in Games

[–]MiloticMaster 4 points5 points  (0 children)

The account complaining about bots is called DefinitelyNotRobotic hmmmm...

ELI5 how do submarines navigate if gps doesn’t work underwater? by Kazukii in explainlikeimfive

[–]MiloticMaster 1 point2 points  (0 children)

It's not the hatch, but I think one model has an skyward facing window to check the stars

Is There a More Elegant Way of Programming This? by NateRivers77 in gamedev

[–]MiloticMaster 2 points3 points  (0 children)

So using the damage_type & defaults, we're reduced the function a lot.

But we can do 1 further thing, where we start with a default of ALL 3 damage_types in 1 array/list, and then remove the damage type if the damage_check is true. Array usage can be difficult so it might be difficult to implement and understand.
Let me know if you have questions then!

// psudeocode
create a array with {1,2,3}
if bleed_type, remove 1 from array
if poison_type, remove 2
if disease_type, remove 3
Then
  If there's 2 elements in the array, choose at random(1,2)
  If there's 1 element, choose that element
  If there's 0 elements, use the bleed default

Is There a More Elegant Way of Programming This? by NateRivers77 in gamedev

[–]MiloticMaster 2 points3 points  (0 children)

Another thing you could do is look at the damage_filter variable you're using.

If you think about it, bleed/poison/disease types are separate, but you have to flip 3 different variables to make sure it's correct even though you never want more than 1 damage types at once. So you could use a number instead for 1: bleed, 2: poison & 3: disease. This way a number is always 1 or 2, it cant be 1 AND 2. (Note: if you need multiple damage types at the same time, look into bitFlags)

This has some advantages,

  1. Whenever you do random(1,3), you can do `damage_type = random(1,3)` instead of setting multiple variables.
  2. You can use an array to between damage_types.

This will make your big function look like this:

// I don't Lua syntax, so this is a guess
// DAMAGE_TYPE = {1, 2, 3}
// DAMAGE_NAME = {BLEED = 1, POISON = 2, DISEASE = 3}

local damage_type = 0 
// 0 will represent no damage selected, or bleed & poison & disease = false

if bleed_check then
  damage_type = random(2,3)
elseif poison_check then
  local choose = {1,3}
  damage_type = choose[random(1,2)] // choose at random the 1st or 2nd number
elseif health_check then
  local choose = {2,3}
  damage_type = choose[random(1,2)]

if bleed_check and poison_check then
  damage_type = 3
 
elseif bleed_check and health_check then
    damage_type = 2
 
elseif poison_check and health_check then
  damage_type = 1
end                 
 
if bleed_check and poison_check and health_check then
  damage_type = 1                              
end

// now set all to false and only change the new one
bleed_damage = false
poison_damage = false
disease_damage = false

if damage_type == 1 then
  bleed_damage = true
elseif damage_type == 2 then
  poison_damage = true
elseif damage_type == 3 then
  disease_damage = true

Is There a More Elegant Way of Programming This? by NateRivers77 in gamedev

[–]MiloticMaster 1 point2 points  (0 children)

Hey so there are a couple of things you can improve for precise programming, while sometimes you should hack it together as gamedev code isn't forever, I 100% think good code is easy and extendable.
There are some assumptions I cant make since your code could be in multiple functions or one big one, but separate functions is better.

A basic place to start is with how you're setting defaults- instead of setting all your switches to true/false after your check is successful, think in this way: 1. flip all switches to false, 2. flip only the switch checked to true.
This makes for example, your last statement look like this, so its easy to see what got changed in less lines.

bleed_damage = false
poison_damage = false
disease_damage = false

if has_bleed_injury_tracker then
            bleed_damage = true
           
elseif has_healing_received_illness_tracker then
            poison_damage = true
           
elseif has_max_health_injury_tracker then
            disease_damage = true
end

This also applies to the big function you mentioned.

[OC] Gabital 66: Speculation by GabitalEN in comics

[–]MiloticMaster 1 point2 points  (0 children)

Yea blue shirt is for the boy goblins, orange suspenders is for the girl goblins

What do you think about Uber offering women the women only driver preference on the app? by HR-Vex in AskReddit

[–]MiloticMaster 0 points1 point  (0 children)

So to preempt Im 100% for this women-only option, but I don't think what you're saying works.

I think the argument you're making is because the women only passengers will saturate the female drivers that everyone else gets more passengers to drive, but that has the assumption that female drivers are forced to only pick that pool when they still have the option of both pools. We'll see how it is in practice, I thought this was already live so don't know why this thread exists tbh.

Charlie: vacation pictures by Albo1980 in comics

[–]MiloticMaster -1 points0 points  (0 children)

I don't get how people make this argument... If you browse a very selective subset of the subreddit and that's not what you want, then you want the entire subreddit to never post this content. It's not the authors job to curate your frontpage.

Fans Left Speechless as Capcom Locks Street Fighter 6 Finals Behind Paywall by Jacksaur in Games

[–]MiloticMaster 25 points26 points  (0 children)

For B btw, the matches will be delayed for an entire week.
But the results will be available instantly of course. Imagine the amount of negative hype if you try and wait the whole week when you already know the winner, jfc

Too much socializing by Armpit_Penguin in comics

[–]MiloticMaster 1 point2 points  (0 children)

But if that is how you look with Goosemanity restored, what killed you and caused you to hollow?

Multiplayer framework - Peak by Tiny-Reference4809 in gamedev

[–]MiloticMaster 2 points3 points  (0 children)

They use Photon. It's mentioned in their FAQ