Would it be possible to make a mod so atomic explosion would not leave a sheep shit on the map?
I just don't like that shit
A crater is ok.
[Request] A clean nuclear explosion site
-
- Filter Inserter
- Posts: 500
- Joined: Tue Jun 26, 2018 10:14 am
- Contact:
- NotRexButCaesar
- Smart Inserter
- Posts: 1133
- Joined: Sun Feb 16, 2020 12:47 am
- Contact:
Re: [Request] A clean nuclear explosion site
I’m pretty sure that there is already a mod for this
Ⅲ—Crevez, chiens, si vous n'étes pas contents!
Re: [Request] A clean nuclear explosion site
Mod code (add it to the data.lua):coppercoil wrote: ↑Mon Dec 21, 2020 6:24 pmWould it be possible to make a mod so atomic explosion would not leave a sheep shit on the map?
SheepShit.jpg
I just don't like that shit
A crater is ok.
Code: Select all
data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects[8] = nil
viewtopic.php?p=524347#p524347
-
- Filter Inserter
- Posts: 500
- Joined: Tue Jun 26, 2018 10:14 am
- Contact:
Re: [Request] A clean nuclear explosion site
Code: Select all
table.remove (data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects, 8)
Code: Select all
data.raw.corpse["huge-scorchmark"].time_before_removed = 30*60
-
- Filter Inserter
- Posts: 500
- Joined: Tue Jun 26, 2018 10:14 am
- Contact:
-
- Fast Inserter
- Posts: 153
- Joined: Sun Jul 26, 2020 4:05 pm
- Contact:
Re: [Request] A clean nuclear explosion site
Your code assumes that the crater is the one making the effect, it is actually the ground tile changes, so the code should be:
The first one removes the ring of decoratives around the edge, the second removes the tile change. This should also work from the map.
Code: Select all
table.remove (data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects, 11)
table.remove (data.raw.projectile["atomic-rocket"].action.action_delivery.target_effects, 0)