“根号三工作笔记”的版本间的差异
跳到导航
跳到搜索
Chinodaisuki(讨论 | 贡献) 小 (清空全部内容) |
Chinodaisuki(讨论 | 贡献) |
||
第1行: | 第1行: | ||
var unittype = wread(unitptr + 0x64); | |||
var player = bread(unitptr + 0x4C); | |||
if( | |||
Command((player), (0), 1, (unittype)) && | |||
wread(unitptr + 0xA2) <= (250 - gainmp - 1) * 0x100 | |||
){ | |||
wwrite(unitptr + 0xA2, wread(unitptr + 0xA2) + gainmp * 0x100); | |||
} | |||
else if( | |||
Command((player), (0), 1, (unittype)) && | |||
wread(unitptr + 0xA2) > (250 - gainmp - 1) * 0x100 | |||
) | |||
{ | |||
wwrite(unitptr + 0xA2, 250 * 0x100); | |||
} |
2021年6月7日 (一) 19:33的版本
var unittype = wread(unitptr + 0x64);
var player = bread(unitptr + 0x4C);
if(
Command((player), (0), 1, (unittype)) &&
wread(unitptr + 0xA2) <= (250 - gainmp - 1) * 0x100
){
wwrite(unitptr + 0xA2, wread(unitptr + 0xA2) + gainmp * 0x100);
}
else if(
Command((player), (0), 1, (unittype)) &&
wread(unitptr + 0xA2) > (250 - gainmp - 1) * 0x100
)
{
wwrite(unitptr + 0xA2, 250 * 0x100);
}