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:
parent
729a332d54
commit
be4e1dfa44
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user