Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,23 @@
package object_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/inkyblackness/hacked/ss1/content/object"
)
func TestDestroyEffectValueRange(t *testing.T) {
for _, showExplosion := range []bool{false, true} {
for _, playSound := range []bool{false, true} {
for value := byte(0); value <= object.DestroyEffectValueLimit; value++ {
effect := object.DestroyEffect(0).WithExplosion(showExplosion).WithSound(playSound).WithValue(value)
assert.Equal(t, showExplosion, effect.ShowExplosion(), "Explosion bit wrong")
assert.Equal(t, playSound, effect.PlaySound(), "Sound value wrong")
assert.Equal(t, value, effect.Value(), "Value wrong")
}
}
}
}