Explosive Replicator, how does it work?

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
User avatar
stylesrj
Posts: 3638
Joined: Tue Jul 08, 2014 7:54 am

Explosive Replicator, how does it work?

Post by stylesrj »

I wanted to create an Explosive Replicator that well... has a value of 100% so that every time you use a bomb, any bomb that it doesn't use a missile. So naturally I set the value on the blueprints to 1.

I fire a missile, and it doesn't use one up. Great. Awesome. Fire a second... missile is used up... umm not so great?

So I set it to 0. Missile used up. Set it to 2, missile used up.

Is the Explosive Replicator set to 50% or am I doing something wrong?

Here's my code from dlcblueprints.xml.append

Code: Select all

<augBlueprint name="EXPLOSIVE_REPLICATOR"> 
	<title>Explosive Replicator</title>
	<desc>Missile based weapons do not use a missile.</desc>
	<cost>60</cost>
	<bp>8</bp>
	<rarity>0</rarity>
	<stackable>false</stackable>
	<value>1</value>
</augBlueprint>
User avatar
Sleeper Service
Posts: 2275
Joined: Sun Mar 24, 2013 8:49 pm

Re: Explosive Replicator, how does it work?

Post by Sleeper Service »

I guess the value might not actually take effect then. Or any full integer don't work? Have you tried 0.999999?
Image
Working on a sci-fi deckbuilder nowadays.
Other games I made.
User avatar
stylesrj
Posts: 3638
Joined: Tue Jul 08, 2014 7:54 am

Re: Explosive Replicator, how does it work?

Post by stylesrj »

Just tried it and it doesn't seem to work, unless I've had really bad luck and managed to hit the 0.000001% twice in a row.

I guess value doesn't work and I can't make a ship that has a function like Minecraft's Infinity Enchantment (as long as you have one arrow, you can keep firing the bow). Because I have tried lower numbers like 10% and it seems to not use a missile 50% of the time regardless.
Post Reply