Files
VOREStation/code/modules
ARGUS 5fda487e43 fix: update_dna no longer resets SE blocks, fixing morph gene wipe bug (#19291)
update_dna() was calling dna.ready_dna() which internally calls
ResetSE(), setting all SE blocks to rand(1,1024) (the OFF range).
Any subsequent domutcheck(MUTCHK_FORCED) call would then deactivate
every trait gene because all SE values read as inactive, including
the morph gene itself.

Replace dna.ready_dna(src) with dna.ResetUIFrom(src), which re-encodes
appearance DNA from the mob's current state without touching the SE
layer. Also correct the stale sync_organ_dna(dna) call to the correct
no-argument form matching the proc signature.

Affected call sites that triggered this bug: the morph appearance
editor, change_gender, add_marking, remove_marking,
change_priority_of_marking, and change_marking_color.

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2026-03-20 00:32:37 +01:00
..
2026-03-17 01:44:25 +01:00
2026-03-08 23:38:42 +01:00
2026-03-15 02:54:17 -04:00
2026-03-09 00:31:33 +01:00
2026-03-13 23:10:39 +01:00
2026-03-09 00:36:28 +01:00
2026-03-15 02:54:17 -04:00
2026-03-15 19:26:42 +01:00
2026-03-02 22:57:27 +01:00
2026-03-18 21:27:27 +01:00
2026-03-15 02:54:17 -04:00
2026-03-18 21:27:27 +01:00
2026-02-22 22:10:59 +01:00
2026-03-15 19:26:42 +01:00
2026-03-15 02:54:17 -04:00
2026-03-15 02:54:17 -04:00
2026-03-15 02:54:17 -04:00
2026-03-02 23:57:41 +01:00
2026-03-15 02:54:17 -04:00
2026-03-20 00:29:50 +01:00
2026-03-15 02:54:17 -04:00
2026-03-15 02:54:17 -04:00
2026-03-02 23:57:41 +01:00
2026-03-15 02:54:17 -04:00
2026-03-18 21:27:27 +01:00
2026-03-18 21:27:27 +01:00
2026-03-15 02:54:17 -04:00
2026-03-15 02:54:17 -04:00
2026-03-17 01:44:25 +01:00
2026-03-11 21:17:52 +01:00
2026-03-15 02:54:17 -04:00
2026-03-15 02:54:17 -04:00
2026-03-15 02:54:17 -04:00
2026-03-15 02:54:17 -04:00
2026-03-18 21:27:27 +01:00
2026-03-15 02:54:17 -04:00
2026-03-11 21:17:52 +01:00
2026-03-13 23:10:39 +01:00
2026-02-09 00:36:52 +01:00
2026-03-13 23:10:39 +01:00
2026-02-22 22:10:59 +01:00
2026-02-22 22:10:59 +01:00