Jump to content

[mod request] Attribute Gate / Automatically set door restrictions based on attributes


Recommended Posts

I've long desired a feature that is like door restrictions but instead of limiting Duplicants based on the specific Duplicant, it limits them based on an attribute of the Duplicant.

Three concrete examples: limiting access to the Atmo Suit docks to Duplicants with at least +6 Athletics. Or limiting access to the Metal Refinery to Dupes with at least +10 Machinery. Or limiting the hamster wheel gym to dupes with less than 10 Athletics.

At first glance this might seem difficult to implement, but at second glance I don't think it would be, in fact it would even be technically a strict QoL mod. How so? Because Attribute Gate could be implemented such that all it does is automatically set the Door Restrictions.

I absolutely could pause the game, go to the doors, and set the restrictions so that only Dupes with the proper attributes are allowed through. Unpause and continue. Pause again when a Dupe gains an attribute. A mod could do exactly that, just automatically.

Although a special Attribute Gate building, which internally would probably use door restrictions to avoid having to mess with pathfinder code, would also serve the purpose.

Link to comment
Share on other sites

I made the door based on the attributes,

I'll do some design adjusts and publish 

(maybe I create another one based on the professions)

you can config using comparative operator, and combine with ALL and SOME 

the current permissions is visible on the information panel :D

the code is available on https://github.com/castrolol/ONI-Mods

details:

 

internally I update the access restrictions based on the conditions, and hide the access control per minion screen

thanks to https://github.com/peterhaneve/ONIMods by the PLibUI \o

 

 

740297553_Capturadetela2022-07-26180804.png.8279412104f23df6b10f1414acf7128c.png1319166028_Capturadetela2022-07-26182335.png.62679bd68685891894d5b312cb1863c2.png

974182097_Capturadetela2022-07-26182805.thumb.png.87b94d2e8e0d02e7cd7c92a407960989.png

 

2047939514_Capturadetela2022-07-26182756.thumb.png.12dff5a18398af56fb90597a80d28bc5.png

 

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...