Create my own Contract Works?

Hi does anyone know the code to create my own contract work?

I am working on an expansion pack mod and I would love to be able to have custom contracts too

There’s a mod in the Workshop.
On the 1st page I think.

What is the mod called?

I dunno, it has contract in it’s name, so you should find it easily…
My Steam won’t work now.

There isn’t one on steam, but I figured it out :smiley:

// Mod Name: GigasoftExpansionPack
// Mod Id: GigasoftExpansionPack
// Author: Brad Greiner (Gigasoft Computers)
// Notes: This file is loaded from main.js
// Contacts

var Contracts=(function(a){a.store=function(){return GDT.getDataStore(“Contracts”).data;
};
return a;
})(Contracts||{});

// Small Contracts (A-H)
Contracts.Contracts=(function(b){var a=“Contracts”;
var a={title:“Test”,ulid:a+“Test”,description:“Test”,isRandom:false,randomChance:4,canTrigger:function(g){return g.gameLog.length>5;
},complete:function(g){g.fans=Math.floor(g.fans*0.01);
},repeatable:true,requiredD:18,requiredT:25,payment:20000,penalty:-1000,weeksToFinish:8,rF:10,size:“small”};

var b={title:“Test”,ulid:a+“Test”,description:“Test”,isRandom:false,randomChance:4,canTrigger:function(g){return g.gameLog.length>5;
},complete:function(g){g.fans=Math.floor(g.fans*0.01);
},repeatable:false,requiredD:18,requiredT:25,payment:20000,penalty:-1000,weeksToFinish:8,rF:10,size:“small”};

// Medium Contracts (I-P)
var i={title:“Test”,ulid:a+“Test”,description:“Test”,isRandom:false,randomChance:4,canTrigger:function(g){return LevelCalculator.getMissionLevel(“Engine”)>5;
},complete:function(g){g.flags.good+=1;
},repeatable:false,requiredD:15,requiredT:38,payment:100000,penalty:-20000,weeksToFinish:2,rF:1.5,size:“medium”};

// Large Contracts (Q-X)
var p={title:“Test”,ulid:a+“Test”,description:“Test”,isRandom:false,randomChance:4,canTrigger:function(g){return LevelCalculator.getMissionLevel(“World Design”)>5;
},complete:function(g){},repeatable:false,requiredD:45,requiredT:92,payment:100000,penalty:-20000,weeksToFinish:2,rF:2,size:“large”};

// Sort Order
b.runStartUp=function(){
UltimateLib.Contracts.add(a);
UltimateLib.Contracts.add(b);
UltimateLib.Contracts.add(i);
UltimateLib.Contracts.add§;
};
return b;
})(Contracts.Contracts||{});

Found it, Contractor mod.
Maybe not the thing you wanted, but it exists…

Thats not what I wanted, but I figured out the code myself :smiley: