Jump to content

Multiple Explosives in a stack do the same amount of "work" as one explosive.


Hornete
  • Pending

10 Slurtle slime in a stack will do the same amount of "work" to objects(trees, rocks, structures, etc) as a singular slurtle slime. This goes for other explosives too, but other explosives work damage is so high it usually doesn't matter.

This means to get the full potential of 10 slurtle slime for "working" objects, you'll need to drop each slime as an individual stack, as 10 slurtle slime to get the full "working" potential.

An easy fix would simply be to multiply the self.buildingdamage variable here by the stacksize variable

if v.components.workable ~= nil and v.components.workable:CanBeWorked() then
	v.components.workable:WorkedBy(self.inst, self.buildingdamage)
end
if v.components.workable ~= nil and v.components.workable:CanBeWorked() then
	v.components.workable:WorkedBy(self.inst, self.buildingdamage * stacksize) --stacksize variable is defined a few lines before this
end

 


Steps to Reproduce

1. Drop one slurtle slime near a "workable" object
2. Drop 10 slurtle slime in a stack near a "workable" object
3. Ignite both stacks
4. Notice that they did the same amount of work, despite there being 9 more slurtle slime in the 2nd stack

  • Like 1
  • Spool 1



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...