1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-05-13 21:56:29 +02:00

planet_prison: add bandits with shotguns

Adds randomly shotguns to bandits in 1 to 7 odds.
This commit is contained in:
cogito 2020-01-12 09:35:34 +01:00
parent 729a332d54
commit be4e1dfa44

View File

@ -111,8 +111,13 @@ local function noise_hostile_hook(ent, common)
b = shade
}
ent.insert({name="pistol", count=1})
ent.insert({name="firearm-magazine", count=20})
if common.rand_range(1, 5) == 1 then
ent.insert({name="shotgun", count=1})
ent.insert({name="shotgun-shell", count=20})
else
ent.insert({name="pistol", count=1})
ent.insert({name="firearm-magazine", count=20})
end
else
ent.insert({name="firearm-magazine", count=200})
end