Module:ItemEconomy: Difference between revisions

m
no edit summary
m (Add deep copy method instead of implied copy.)
mNo edit summary
Line 51: Line 51:
      
      
     -- Clamp economy values (clamp the verified copy values)
     -- Clamp economy values (clamp the verified copy values)
     self.preservationChanceP = number.clamp(cpy.preservationChance, 0, 80) / 100
     self.preservationChanceP = number.clamp(self.preservationChance, 0, 80) / 100
     self.duplicationChanceP = number.clamp(cpy.duplicationChance, 0, 100) / 100
     self.duplicationChanceP = number.clamp(self.duplicationChance, 0, 100) / 100
     self.extraItemChanceP = number.clamp(cpy.extraItemChance, 0, 100) / 100
     self.extraItemChanceP = number.clamp(self.extraItemChance, 0, 100) / 100
     self.extraBaseItemChanceP = number.clamp(cpy.extraBaseItemChance, 0, 100) / 100
     self.extraBaseItemChanceP = number.clamp(self.extraBaseItemChance, 0, 100) / 100
      
      
     return self
     return self
2,875

edits