Skip to content

Commit

Permalink
add lifebuoy bar soap code and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanrk committed Jun 3, 2024
1 parent cda69a3 commit 68f12a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions DingusThings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ private void Awake()
Utilities.FixMixerGroups(steamGiftItem.spawnPrefab);
Items.RegisterScrap(steamGiftItem, steamGiftRarity, Levels.LevelTypes.All);

/// Lifebuoy Bar Soap
int lifebuoyBarSoapRarity = 60;
Item lifebuoyBarSoapItem = Bundle.LoadAsset<Item>("Assets/DingusThings/Items/LifebuoyBarSoap.asset");
PhysicsProp lifebuoyBarSoapItemPhysicsProp = lifebuoyBarSoapItem.spawnPrefab.AddComponent<PhysicsProp>();
lifebuoyBarSoapItemPhysicsProp.grabbable = true;
lifebuoyBarSoapItemPhysicsProp.grabbableToEnemies = true;
lifebuoyBarSoapItemPhysicsProp.isInFactory = true;
lifebuoyBarSoapItemPhysicsProp.itemProperties = lifebuoyBarSoapItem;

// register prefab
NetworkPrefabs.RegisterNetworkPrefab(lifebuoyBarSoapItem.spawnPrefab);
Utilities.FixMixerGroups(lifebuoyBarSoapItem.spawnPrefab);
Items.RegisterScrap(lifebuoyBarSoapItem, lifebuoyBarSoapRarity, Levels.LevelTypes.All);

Logger.LogInfo($"{PluginString} has loaded!");
}
}
Expand Down
2 changes: 1 addition & 1 deletion DingusThings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<AssemblyName>milodinosaur.DingusThings</AssemblyName>
<Product>DingusThings</Product>
<!-- Change to whatever version you're currently on. -->
<Version>1.1.2</Version>
<Version>1.2.0</Version>
</PropertyGroup>

<!-- Project Properties -->
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ Yet another Lethal Company custom scrap pack
Model made by me, sounds and images by Valve
</td>
</tr>
<tr>
<td>
Lifebuoy Bar Soap
</td>
<td>
Model made by me
</td>
</tr>
</table>

Assets: https://github.com/ryantanrk/DingusThings-Assets
Expand Down

0 comments on commit 68f12a8

Please sign in to comment.