Fix guns disappearing when empty
This commit is contained in:
parent
8e18c0b117
commit
2a5674e67d
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ shooter.register_weapon = function(name, def)
|
||||||
def.spec.wear = math.ceil(65535 / def.spec.rounds)
|
def.spec.wear = math.ceil(65535 / def.spec.rounds)
|
||||||
def.spec.unloaded_item = name
|
def.spec.unloaded_item = name
|
||||||
def.unloaded_item = def.unloaded_item or {
|
def.unloaded_item = def.unloaded_item or {
|
||||||
|
name = name,
|
||||||
description = def.description.." (unloaded)",
|
description = def.description.." (unloaded)",
|
||||||
inventory_image = def.inventory_image,
|
inventory_image = def.inventory_image,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue