Registers a new platform from the given data.
Registers a new platform from the given data.
1 table data
the config.
2 string inherit
the ID of another platform data to inherit (optional).
platforms:registerNew({ id = "pc", manufacturer = "hardmacro", display = _T("PLATFORM_PC", "PC"), month = 1, releaseDate = {year = 1980, month = 1}, defaultAttractiveness = 100, startingSharePercentage = 0.5, developmentTimeAffector = 0.6, frustrationMultiplier = 1.3, cutPerSale = 0, scaleProgression = { {year = 1988, scale = 4}, {year = 1989, scale = 4.5}, {year = 1990, scale = 5}, {year = 1991, scale = 5.5}, {year = 1992, scale = 6}, {year = 1993, scale = 7}, {year = 1994, scale = 7.5}, {year = 1995, scale = 8}, {year = 1996, scale = 9}, {year = 1997, scale = 10}, {year = 1998, scale = 10.5}, {year = 1999, scale = 11}, {year = 2000, scale = 12}, {year = 2001, scale = 13}, {year = 2003, scale = 14}, {year = 2005, scale = 15}, {year = 2007, scale = 16}, {year = 2009, scale = 17}, {year = 2010, scale = 18}, {year = 2011, scale = 19}, {year = 2012, scale = 20}, }, getMaxProjectScale = function(self, targetTime) local curYear = timeline:getYear(targetTime) local scaleValue = self.scaleProgression[1].scale for key, data in ipairs(self.scaleProgression) do if curYear >= data.year and data.scale > scaleValue then scaleValue = data.scale end end return scaleValue end, startingQuad = "platform_pc_1", laterQuad = "platform_pc_2", laterQuadYear = 2004, getDisplayQuad = function(self) if timeline:getYear() >= self.laterQuadYear then return self.laterQuad end return self.startingQuad end, genreMatching = { action = 1, adventure = 1, horror = 1, simulation = 1.15, strategy = 1.15, rpg = 1.05, sandbox = 1.15, fighting = 0.7, racing = 1.1} })