How can we modify the default event badge barcode?
A better approach would probably to use the Barcode hook and alter the value in there instead of overriding the core file.

https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterBarcode/