New modifiers
Posted: Thu Oct 15, 2020 12:34 pm
				
				TL;DR
Please add a couple new modifiers to expand modding capabilities.What ?
I'm asking to implement a couple of new modifiers.Here's the proposals:
Code: Select all
{
  type = "entity-health-bonus",  --adds a flat amount of max health
  entity_id = "small_biter",  --entity prototype name, string
  modifier = 20  --integer
  --this modifier can replace current "character-health-bonus" to be more generic
},
{
  type = "entity-resistance-bonus",  --modifies resistance values of a given entity
  entity_id = "stone-wall", --entity prototype name, string
  resitance_type = "acid", --which type of resistance to modify, string
  flat_modifier = 5, --flat resistance change by a flat amount, integer
  percentage_modifier = 10  --percentage resistance change by a flat amount, integer
},
{
  type = "entity-speed-bonus",  --adds a percentage of max speed
  entity_id = "car",  --entity prototype name, string
  modifier = 0.1  --double
  --this modifier can replace current "character-running-speed" to be more generic
},
{
  type = "entity-attack-range-bonus",  --adds flat maximum attack range to a unit or turret. Maybe extend to items, like hand weapons?
  entity_id = "gun-turret",  --entity prototype name, string
  modifier = 2.0  --double
},
{
  type = "unit-pollution-cost",  --modifies unit's pollution to join attack by a flat amount. This is a unit-specific, unlike a map setting, which is global.
  unit_id = "behemoth-spitter", --unit prototype name, string
  modifier = -50  --double
},
{
  type = "radar-scanning-range",  --scanning range of a radar entity
  entity_id = "radar",  --radar entity prototype, string
  modifier = 1  --integer
},
{
  type = "radar-vision-range",  --vision range of a radar entity
  entity_id = "radar",  --radar entity prototype, string
  modifier = 1  --integer
}