Jump to content

[MOD] Auto-Equip


Recommended Posts

So, yes I admit. I've mislead you, this isn't a mod but a mod request. I got a good reason to say that auto-equip is a fairly awesome mod that makes Don't Starve much more comfortable. Here we go. Please make this mod compatible with Shipwrecked. I did peek into the files but I'm far too clumsy to make it work. I even crashed DS-SW a few times with my string manipulation.

 

 

Welp!

Link to comment
Share on other sites

4 hours ago, Mobbstar said:

Did you try adding "shipwrecked_compatible = true" to modinfo.lua? :p

Well, you see, no.

569d6209d73a5_obamacantsay.png.a27dfc16e

But I've seen as much to know that wouldn't solve the Shipwrecked problems since there is a list of objects within the code that determine when and what tool should the character use automatically.

local function FindWorkableEntity(inst, action, radius)
	return FindEntity(inst, radius, function(entitiy) 
			return (action ~= ACTIONS.NET or (entitiy.components.health and not entitiy.components.health:IsDead()))
				and (action ~= ACTIONS.DIG or (entitiy.prefab ~= "berrybush" and entitiy.prefab ~= "berrybush2" and entitiy.prefab ~= "grass" and entitiy.prefab ~= "rabbithole" and entitiy.prefab ~= "sapling"))
				and entitiy.components.workable
				and	entitiy.components.workable.action == action

I got no idea what am I supposed to do with the code. I ain't no coder. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...