Why Nostr? What is Njump?
2024-11-25 07:40:45

Gene Boggs on Nostr: nprofile1q…cuetd I'm using your excellent module, but would like my dice to return ...

I'm using your excellent https://metacpan.org/pod/Games::Dice::Advanced module, but would like my dice to return non-integer things (like musical notes). There is repo to PR, so here's a diff:

```
151c151,152
< $self = sub { $mul * &{$recipe} };
---
> my $r = &{$recipe};
> $self = $r =~ /^\d+$/ ? sub { $mul * $r } : sub { $r };
```

Something like that, maybe? :)
Author Public Key
npub16703wfe273mhdzhpennmtst2ps0g9s92z2jr7767mx0mzawkrvxqk4nlt6