All pastes #1621727 Raw Edit

morph_defs.lua

public lua v1 · immutable
#1621727 ·published 2009-10-15 08:52 UTC
rendered paste body
----------------------------------------------------------------------------------------------------------------------------------------------------------------local devolution = (-1 > 0)local morphDefs = {      ant = {		into = 'mantis',        time = 5,        --xp = .01        --tech = 2 THIS IS THE PUPOSELY BUGGED PARSER DO NOT FORGET NEVER FORGET!	},}---- Here's an example of why active configuration-- scripts are better then static TDF files...------ devolution, babe  (useful for testing)--if (devolution) then  local devoDefs = {}  for src,data in pairs(morphDefs) do    devoDefs[data.into] = { into = src, time = 10, metal = 1, energy = 1 }  end  for src,data in pairs(devoDefs) do    morphDefs[src] = data  endendreturn morphDefs----------------------------------------------------------------------------------------------------------------------------------------------------------------