var luckoutcome := { 1: [ func(player:MainPlayer):…
- User
var luck_outcome := { 1: [ func(player:MainPlayer): player.change_max_health_by(-player.max_health / 3); info_text = "Decreased max health by 33%", func(player:MainPlayer): player.fire_time_reduction_percentage -= 10; info_text = "Decreased firing speed by 10%" ], 2: [ func(player:MainPlayer): player.currency -= 300; info_text = "Lost 500 ink", func(player:MainPlayer): player.speed_boosts.append(-10); info_text = "Movement speed decreased by 10" ], 3: [ func(player:MainPlayer): player.stamina_regen_time_multiplier += 0.1; info_text = "Stamina regeneration slowed by 10%" ], 4: [ func(player:MainPlayer): player.stamina_regen_time_multiplier += 0.1; info_text = "Stamina regeneration slowed by 10%" ], 5: [ func(player:MainPlayer): player.currency += 300; info_text = "Gained 500 Ink", func(player:MainPlayer): player.speed_boosts.append(15); info_text = "Movement speed increased by 15" ], 6: [ func(player:MainPlayer): player.change_max_health_by(player.max_health / 2); info_text = "Increased max health by 50%", func(player:MainPlayer): player.fire_time_reduction_percentage += 7; info_text = "Increased firing speed by 7%" ] } This code is a list of functions given the dice possible dice rolls in godot 4. Make it more readable and easily expandable
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.