Jump to content

Recommended Posts

Hey modders, I will just leave this here and hope someone of you takes over.

I replaced some lines in the gamefiles of pigman_city.lua and citypigbrain.lua so the Royal Pig Guards don't have torches in their inventory anymore but candlehats instead. When the daytime changes to dusk, their helm will be hidden and they equip the candlehat while keeping the halberd in their hands.

Yes, this means that they will no longer burn the city or your base by setting monsters on fire! That's perfect, right?

So what is left to improve:
Right now, this writes directly into the gamefiles. You could change it to overwrite as few as possible with the correct postinits.

Have fun to improve it and feel free to upload it to the workshop.  :)

 

royalguard_candlehat_better.png

NoTorches.rar

NoTorches.zip

Edited by KainMorgen

Some improvements in the code. Still overwriting the gamedata files.
Modmain has to add the proper AddComponentPostInit and AddPrefabPostInits.

Containers include the current and original pigman_city.lua and citypigbrain.lua as well as a nice png to use as the modicon later on.

Reuploaded the container as a .rar and a .zip but the previous container worked for me, so probably just an error during your download.

12 hours ago, noobyt2 said:

okay now this is something hamlet needs or something like that

https://steamcommunity.com/sharedfiles/filedetails/?id=1566480214

This may break on future updates. So I'd be happy if someone else improved on the code. But for now, use it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...