feat(D-01/B): add can_attach_padlock field to data-driven items (B0)
- DataDrivenItemDefinition: add canAttachPadlock boolean (default true) - DataDrivenItemParser: parse "can_attach_padlock" from JSON - DataDrivenBondageItem: add static canAttachPadlockTo(stack) method - AnvilEventHandler: check V2 definition before allowing padlock attach
This commit is contained in:
@@ -40,7 +40,11 @@ public class AnvilEventHandler {
|
||||
|
||||
// Check if item can have a padlock attached (tape, slime, vine, web cannot)
|
||||
if (!lockable.canAttachPadlock()) {
|
||||
return; // Item type cannot have padlock
|
||||
return; // Item type cannot have padlock (V1)
|
||||
}
|
||||
// V2 data-driven items: check definition's can_attach_padlock field
|
||||
if (!com.tiedup.remake.v2.bondage.datadriven.DataDrivenBondageItem.canAttachPadlockTo(left)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Item must not already have a padlock attached
|
||||
|
||||
Reference in New Issue
Block a user