Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
you can ask them to not rewrite the entire component and use this code instead :
--
AddComponentPostInit("armor", function(self)
local _SC = self.SetCondition
function self:SetCondition(amount, ...)
if self.inst:HasTag("beargerhat") then
if self.indestructible then return end
self.condition = math.min(amount, self.maxcondition)
self.inst:PushEvent("percentusedchange", { percent = self:GetPercent() })
if self.condition <= 0 then
local owner = self.inst.components.inventoryitem and self.inst.components.inventoryitem.owner or nil
local holder = owner and (owner.components.inventory or owner.components.container) or nil
if holder then
local s = holder:GetItemSlot(self.inst)
local fur = SpawnPrefab("bearger_fur")
holder:GiveItem(fur, s)
end
self.inst:Remove()
end
elseif _SC then
_SC(self, amount, ...)
end
end
end)
--
not tested yet tho, they need to test it them self
我以为是别的mod的原因,结果他说是因为这个mod导致游戏崩溃