根号三工作笔记

来自星际争霸重制版地图研究所
Chinodaisuki讨论 | 贡献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);

       }