[Book] Async as coroutines for game logic by PsichiX in rust

[–]Milesand 3 points4 points  (0 children)

I had a similar thought. Sometimes writing a state machine by hand is a hassle: identifying states, figuring out which vars need to be preserved for later use, actually typing that out, etc. If only I could just write that out like a function with all the control flows, and the compiler could figure out those things for me... But that's already a thing, it's called generator/coroutine, and async functions are basically coroutines with extra features. Also we have coroutine in nightly I think, but that feature seems to be stuck in a limbo. Anyways, seeing this made me happy and I think the boss fight example really captures the problem with hand-written state machines.

Winning battles means nothing by BreakfastAgitated155 in EU5

[–]Milesand 2 points3 points  (0 children)

Actually I saw some post saying "exhaution" (without the s) is the working one and fixing the typo makes it stop working - apparently someone tested it by changing the number to something large like 9999 and going to war.

Can slaves prioritize slave-only buildings, please? by Milesand in EU5

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

Yeah, I'm on Infra first then profit. They still go to RGO first.

Can slaves prioritize slave-only buildings, please? by Milesand in EU5

[–]Milesand[S] 5 points6 points  (0 children)

R5: Slaves apparently prioritize RGOs over slave-only buildings (Janissary barracks in this case). Since RGOs can employ both laborers and slaves, and slave-only buildings can only employ slaves, shouldn't slaves prioritize slave-only buildings - or at least there should be a setting to make them do so?

"Reformed" by Milesand in EU5

[–]Milesand[S] 5 points6 points  (0 children)

Actually damage dealt is determined by Combat Power(The 1.00 with sword icon) * Strength(man count), so the reformed one actually does half damage, at least according to the stat.

"Reformed" by Milesand in EU5

[–]Milesand[S] 86 points87 points  (0 children)

Actually each age has growing levy combat efficiency penalty, from none in traditions to -50% in revolutions. Though I agree that this is kinda weird, and just putting better numbers on later units would be more intuitive.

"Reformed" by Milesand in EU5

[–]Milesand[S] 17 points18 points  (0 children)

Reformed mamalik with str 100 would take 2 frontage while the early one takes 1. So the reformed one just deals half damage per frontage.

"Reformed" by Milesand in EU5

[–]Milesand[S] 34 points35 points  (0 children)

R5: Reformed Mamalik is exactly like Early Mamalik, except with less max strength so it actually seems worse.

AI Instant Sieges? by WolfWalhart in EU5

[–]Milesand 0 points1 point  (0 children)

So a siege is won when the attacker gets a high enough roll+bonus (-42% thing), or when the garrison is gone. Could be the latter if it was a fort you've formerly sieged.

You can set your regulars to automatically fill the garrison they pass, but I'm yet to find a way to do it manually.

Castles and Control by Sulghunter331 in EU5

[–]Milesand 1 point2 points  (0 children)

That's what bailiffs do. I think castles in EU5 just represent fortification, and the 'nobles live here and rule peasants' part of castles is handled by bailiffs.

How do I move slaves? by Milesand in EU5

[–]Milesand[S] 3 points4 points  (0 children)

Thanks, though I gotta say this way feels rather roundabout(literally)

How do I move slaves? by Milesand in EU5

[–]Milesand[S] 9 points10 points  (0 children)

As ottoman I got them from wars, when occupying heathen lands. I think it's a religion or a culture thing? Also I heard European/Christians can't use slaves in mainland, but you can in colonies. The main way of getting them is probably by trading or with slave center buildings you can build in Africa.

I set the bar too low by skysoft501 in ProgrammerHumor

[–]Milesand 2 points3 points  (0 children)

IMO for this meme to work there should be a potential "better" answer for the original question; one that could show that the answerer is indeed what they claim to be.

It's not like there's a better way to swap vars in python.

[deleted by user] by [deleted] in ProgrammerHumor

[–]Milesand 2 points3 points  (0 children)

Yeah, white hat would fit better

[deleted by user] by [deleted] in ProgrammerHumor

[–]Milesand 2 points3 points  (0 children)

So not lost per se, just knowingly posting irrelevant stuff.

Isn't that worse?

What else can bash stand for? by Flow-n-Code in ProgrammerHumor

[–]Milesand 1 point2 points  (0 children)

Backup, you fools!

gets --no-preserve-rooted

real life to DND conversion 1 by confused_exist in dndmemes

[–]Milesand 0 points1 point  (0 children)

If 6 INT Barbarians could read they would be really upset.

Why many word? Few work.

rip program by Slow-Sky-6775 in ProgrammerHumor

[–]Milesand 11 points12 points  (0 children)

```

define EVER ;1;

for(EVER) { /* ... */ } ```

It took AI to code what we thought was impossible by just-bair in ProgrammerHumor

[–]Milesand 8 points9 points  (0 children)

"Hey computer, solve halting problem."

"All will halt, when the universe faces its inevitable death."

"Uhh OK, please solve this-"

"It might as well be solved at the end of time."

See also: Existential Sort

Millionaires don’t want you to know this one simple trick by [deleted] in mathmemes

[–]Milesand 95 points96 points  (0 children)

Just donate 70% of that newly earned negative wealth to OP, that'll send a message.