모듈:SimMD5 문서 원본 보기
보이기
문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
문서의 원본을 보거나 복사할 수 있습니다.
--나무위키:MD5 배틀 문서의 내용을 바탕으로 제작되었습니다.
local p = {}
function p.stat (frame)
local hash = mw.hash.hashValue('md5', mw.text.unstripNoWiki(frame.args[1]))
local data = frame.args[2] or 'JSON'
local stat = {}
for index = 1, 12, 2 do
local value = tonumber('0x' .. string.sub(hash, index, index + 1)) / 2.55
if (index == 9) then value = value * 3 end
value = math.floor(value + 0.5)
if (index == 1) then stat.attack = value
elseif (index == 3) then stat.defense = value
elseif (index == 5) then stat.hit = value
elseif (index == 7) then stat.luck = value
elseif (index == 9) then stat.HP = value
elseif (index == 11) then stat.quick = value
end
end
000
1:0
이 문서에서 사용한 틀:
- 틀:틀 설명문서 (원본 보기)
- 모듈:Arguments (원본 보기)
- 모듈:Category handler (원본 보기) (준보호됨)
- 모듈:Category handler/blacklist (원본 보기)
- 모듈:Category handler/config (원본 보기)
- 모듈:Category handler/data (원본 보기)
- 모듈:Category handler/shared (원본 보기)
- 모듈:Documentation (원본 보기)
- 모듈:Documentation/config (원본 보기)
- 모듈:Message box (원본 보기)
- 모듈:Message box/configuration (원본 보기)
- 모듈:Message box/localize (원본 보기)
- 모듈:Namespace detect/config (원본 보기)
- 모듈:Namespace detect/data (원본 보기)
- 모듈:No globals (원본 보기)
- 모듈:SimMD5/설명문서 (원본 보기)
- 모듈:Yesno (원본 보기)
모듈:SimMD5 문서로 돌아갑니다.