Derpumu / Pacifist

A Factorio mod to remove military items, recipes, and technologies so you can concentrate on building useful things in peaceful mode.
MIT License
2 stars 1 forks source link

Remove enemy entities and unit damage #57

Closed dperelman closed 3 months ago

dperelman commented 3 months ago

Adds the enemy unit, spawner, and turret types to the entities to be removed and adds dummies for those entity types. The category was already renamed to "Units" and given a new icon in e29ff57. The "compilatron" unit is added to the default exceptions list.

Compilatron has a "damage" stat so there's a new list PacifistMod.units_to_disarm of units whose attack_parameters.ammo_type.action should be set to nil to get rid of that. That could possibly be handled differently, but I figured an explicit list of units to modify would be less likely to break mods (although all units added by mods will be removed anyway). Not sure what mods exist that actually add units that aren't enemies.

Together with #58, this should fix #56.

dperelman commented 3 months ago

This makes enabling enemies on map gen not do anything, so the wording about that should probably be changed. Or possibly the "Pacifist default" can just be removed entirely (and pollution disabled for the default settings)?

EDIT: Oh, you can't change settings on the default, that's why you did it this way. Well, I just changed the wording.