Genetics: Resequenced

Genetics: Resequenced

202k Downloads

[Bug] Matching Genes in Plasmid Infuser not giving correct amount of DNA points

MuteTiefling opened this issue · 3 comments

commented

Describe the bug
When using matching DNA Helixes to create Plasmids the UI will say it gives +2 DNA points towards completion but they actually only give 1 point.

Expected behavior
Non Generic helixes should grant +2 progress on a plasmid

Additional context
Add any other context about the problem here.

commented
        if (DnaHelixItem.getGene(inputHelix) == ModGenes.BASIC.get()) {
            PlasmidItem.increaseAmount(outputPlasmid, 1)
            return
        } else {
            if (inputGene != plasmidGene) return
            PlasmidItem.increaseAmount(outputPlasmid, 1)
        }

yeah nope whoops, i'll fix that ty

commented

Is it just the first one that gives 1? I should probably make that one give nothing and just set the gene, actually

commented
        when (DnaHelixItem.getGene(inputHelix)) {
            ModGenes.BASIC.get() -> PlasmidItem.increaseDnaPoints(outputPlasmid, 1)
            plasmidGene -> PlasmidItem.increaseDnaPoints(outputPlasmid, 2)
            else -> return
        }

much nicer