ContentsGenius Programmer Masters Magic and Saves the World with Beautiful AI ~This is How Magic Works!~ Fildiana Programming25/147
0%

21. Maximum Mana Capacity

21. Maximum Mana Capacity

After confirming the method of mana enhancement with Mitoka, Shiro considered whether he could code the procedure.

"Mana absorption skill activated—check current mana value, stop at 105%. Wait fifty seconds in that state. Then use materialization skill to generate a ten-centimeter iron block, consuming mana. Right?"

Shiro verified the steps.

Simple coding was done using the Ideatool’s magical script editor.

First, pull out the loop block.

The continuation condition: current mana divided by current maximum mana must be less than or equal to 1.05.

Inside the loop, activate Ideatool’s mana absorption to absorb one unit of mana.

If the ratio exceeds 1.05, exit the loop, then wait fifty seconds with a wait command.

Then activate the materialization skill, setting the parameter to a ten-centimeter iron block.

Shiro created the script and registered it as [Maximum Mana Capacity Expansion].

Incidentally, this script editor resembled a certain child-oriented programming environment’s drag-and-drop editor. Though, this one was three-dimensional with a VR-like interface.

Shiro confirmed his current maximum mana capacity was 142, then executed [Maximum Mana Capacity Expansion].

A sensation of drawing in mana from around him followed, accompanied by a sharp pain in his chest.

"Whoa—this is tougher than I expected…" Shiro groaned in pain but endured it anyway.

After a time that felt like an instant or an eternity, the pain subsided. A block of iron appeared before him. Shiro put it into his inventory. As he did, he thought it’d be better if the script auto-added it, and adjusted the script accordingly.

“Phew… that’s an odd sensation. Well then, what’s the result?”

Checking his status, his maximum mana capacity had increased to 143.

“Ooh, success confirmed! Small gains, but solid…”

“Appears to be about a 0.9% increase,” Mitoka said.

“Good. If I automate this and repeat it daily, I could see a significant boost. Though that pain… it’s a bit intense.”

“Shiro, this method puts some strain on the body. Maybe limit it to a few times a day? Four times, perhaps?”

“Yeah, fair enough.”

“With this approach, four times daily for ten days—about 1.4 times the original capacity. After thirty days, roughly triple. It’s a manageable scaling method, I’d say,” Mitoka calculated.

“Still, how does this compare to slaying monsters? Say, a level 20 beast—how much would that gain?” Shiro started to compute.

“…For you, due to various multipliers, it’d be around a 4% increase.”

“So slaying’s easier, then?”

“Indeed. Especially here, it might be simpler. But knowing this method’s value is never a waste—especially when you can’t go out to hunt, or need immediate access. For you, since repetition’s easy, I’d recommend training now, just in case. Four or five sessions equal one level 20 monster kill,” Mitoka explained.

“Huh. I see,” Shiro nodded.

“Alright, got it. Consistent daily effort matters. Normal people wouldn’t even consider this—but thanks to scripting, it’s doable. I’m really starting to appreciate how handy this is,” Shiro mused, impressed by the power of automation.

“By the way, Shiro. I almost forgot—running a script right away is risky. You’ll need to test it first. I’ve checked this one since it’s simple.”

“Ah, thanks. So, can you actually test them?”

“Yes. There’s an emulator designed for script execution,” she explained, sharing the new information with Shiro.

“Huh. That’s handy—kind of like something my old tools didn’t have…?”

Shiro thought he’d start using it from now on.

“Then I was wondering—what if something goes wrong during execution? Does it stop properly?”

“Yes. It stops. If it detects a critical issue, it’ll auto-abort. In that case, the magic manifestation might end up incomplete, especially with complex spells. The outcome can’t be predicted then.”

“Got it. Well, that’s expected.”

Shiro paused, then a thought struck him.

“Since there’s an emulator… does that mean you can actually build a pocket dimension, or even a standalone world environment?”

“Hmm. I’m not sure. I don’t know the emulator’s internal structure. You might be able to figure it out if you analyze it.”

“Ah, right. I’ll look into it someday.”

Shiro smiled—a child who’d just found a new toy.

If you found it interesting, please consider rating or bookmarking it. It really helps!

Japanese source: https://ncode.syosetu.com/n4745fe/23/