Module:Creature Mutation Query: Difference between revisions

m
no edit summary
(dont crash if there is no mut type specified)
mNo edit summary
Line 38: Line 38:
   if isDefect then
   if isDefect then
     parentheses ='<b><span style="color:#b1c9c3;">&nbsp;(</span><span style="color:#a64a2e;">D</span><span style="color:#b1c9c3;">)</b>'
     parentheses ='<b><span style="color:#b1c9c3;">&nbsp;(</span><span style="color:#a64a2e;">D</span><span style="color:#b1c9c3;">)</b>'
   elseif (cost > 1) then
   elseif (cost ~= nil) or (cost > 1) then
     parentheses = '<b><span style="color:#b1c9c3;">&nbsp;(<span style="color:#77bfcf;">' .. level .. '</span>'
     parentheses = '<b><span style="color:#b1c9c3;">&nbsp;(<span style="color:#77bfcf;">' .. level .. '</span>'
     if isMental then
     if isMental then